Java 类com.facebook.stetho.inspector.database.DatabaseConnectionProvider 实例源码

项目:historian    文件:HistorianInspectorModulesProvider.java   
@Override
public Iterable<ChromeDevtoolsDomain> get() {
  return new Stetho.DefaultInspectorModulesBuilder(context)
      .provideDatabaseDriver(new SqliteDatabaseDriver(context,
          new DatabaseFilesProvider() {
            @Override
            public List<File> getDatabaseFiles() {
              List<File> list = new ArrayList<>();
              list.add(new File(historian.dbPath()));
              return list;
            }
          }, new DatabaseConnectionProvider() {
        @Override
        public SQLiteDatabase openDatabase(File file) throws SQLiteException {
          return historian.getDatabase();
        }
      }))
      .finish();
}
项目:sealtalk-android-master    文件:RongDatabaseDriver.java   
/**
 * @param context                    the context
 * @param databaseFilesProvider      a database file name provider
 * @param databaseConnectionProvider a database connection provider
 */
public RongDatabaseDriver(
        Context context,
        DatabaseFilesProvider databaseFilesProvider,
        DatabaseConnectionProvider databaseConnectionProvider) {
    super(context);
    mDatabaseFilesProvider = databaseFilesProvider;
    mDatabaseConnectionProvider = databaseConnectionProvider;
}
项目:sealtalk-android    文件:RongDatabaseDriver.java   
/**
 * @param context                    the context
 * @param databaseFilesProvider      a database file name provider
 * @param databaseConnectionProvider a database connection provider
 */
public RongDatabaseDriver(
        Context context,
        DatabaseFilesProvider databaseFilesProvider,
        DatabaseConnectionProvider databaseConnectionProvider) {
    super(context);
    mDatabaseFilesProvider = databaseFilesProvider;
    mDatabaseConnectionProvider = databaseConnectionProvider;
}
项目:sealtalk-android-master    文件:RongDatabaseDriver.java   
public RongDatabaseDriver(Context context, DatabaseFilesProvider databaseFilesProvider, DatabaseConnectionProvider databaseConnectionProvider) {
    super(context, databaseFilesProvider, databaseConnectionProvider);
}
项目:rongyunDemo    文件:RongDatabaseDriver.java   
public RongDatabaseDriver(Context context, DatabaseFilesProvider databaseFilesProvider, DatabaseConnectionProvider databaseConnectionProvider) {
    super(context, databaseFilesProvider, databaseConnectionProvider);
}
项目:RongCloudJcenter    文件:RongDatabaseDriver.java   
public RongDatabaseDriver(Context context, DatabaseFilesProvider databaseFilesProvider, DatabaseConnectionProvider databaseConnectionProvider) {
    super(context, databaseFilesProvider, databaseConnectionProvider);
}