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

项目: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    文件:RongDbFilesDumperPlugin.java   
public RongDbFilesDumperPlugin(Context context, DatabaseFilesProvider databaseFilesProvider) {
    mContext = context;
    mDatabaseFilesProvider = databaseFilesProvider;
}
项目: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);
}
项目:sealtalk-android    文件:RongDbFilesDumperPlugin.java   
public RongDbFilesDumperPlugin(Context context, DatabaseFilesProvider databaseFilesProvider) {
    mContext = context;
    mDatabaseFilesProvider = databaseFilesProvider;
}
项目:stetho    文件:Stetho.java   
/**
 * Customize the location of database files that Stetho will propogate in the UI.  Android's
 * {@link Context#getDatabasePath} method will be used by default if not overridden here.
 *
 * <p>This method is deprecated and instead it is recommended that you explicitly
 * configure the {@link SqliteDatabaseDriver} as with:</p>
 * <pre>
 *   provideDatabaseDriver(
 *     new SqliteDatabaseDriver(
 *       context,
 *       new MyDatabaseFilesProvider(...),
 *       new DefaultDatabaseConnectionProvider(...)))
 * </pre>
 *
 * @deprecated Use {@link #provideDatabaseDriver(DatabaseDriver2)} with
 *     {@link SqliteDatabaseDriver} explicitly.
 */
@Deprecated
public DefaultInspectorModulesBuilder databaseFiles(DatabaseFilesProvider provider) {
  mDatabaseFilesProvider = provider;
  return this;
}