Home
last modified time | relevance | path

Searched refs:dbName (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/StatsD/statsd/src/utils/
DDbUtils.cpp138 const string dbName = getDbName(key); in createTableIfNeeded() local
140 if (sqlite3_open(dbName.c_str(), &db) != SQLITE_OK) { in createTableIfNeeded()
157 const string dbName = getDbName(key); in isEventCompatible() local
159 if (sqlite3_open(dbName.c_str(), &db) != SQLITE_OK) { in isEventCompatible()
191 const string dbName = getDbName(key); in deleteTable() local
193 if (sqlite3_open(dbName.c_str(), &db) != SQLITE_OK) { in deleteTable()
209 const string dbName = getDbName(key); in deleteDb() local
210 StorageManager::deleteFile(dbName.c_str()); in deleteDb()
214 const string dbName = getDbName(key); in getDb() local
216 if (sqlite3_open(dbName.c_str(), &db) == SQLITE_OK) { in getDb()
[all …]
/packages/modules/Bluetooth/android/BluetoothLegacyMigration/
DBluetoothLegacyMigration.kt179 abstract class DatabaseHandler(private val ctx: Context, private val dbName: String) : constant in com.google.android.bluetooth.BluetoothLegacyMigration.DatabaseHandler
185 val databasePath = ctx.getDatabasePath(dbName) in toCursor()
187 Log.d(TAG, "No migration needed for database: $dbName") in toCursor()
203 val databasePath = ctx.getDatabasePath(dbName) in delete()
205 Log.d(TAG, "$dbName: database deleted") in delete()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/
DDbHelperTest.java193 String dbName = FileCompatUtils.getAdservicesFilename("test_db"); in testOnUpgrade_topicsV8Migration_loggedTopicColumnExist() local
194 DbHelperV1 dbHelperV1 = new DbHelperV1(sContext, dbName, /* dbVersion */ 1); in testOnUpgrade_topicsV8Migration_loggedTopicColumnExist()
199 DbHelper dbHelper = new DbHelper(sContext, dbName, /* dbVersion */ 7); in testOnUpgrade_topicsV8Migration_loggedTopicColumnExist()
330 String dbName = FileCompatUtils.getAdservicesFilename("test_db"); in testOnUpgrade_measurementMigration_tablesExist() local
331 DbHelperV1 dbHelperV1 = new DbHelperV1(sContext, dbName, 1); in testOnUpgrade_measurementMigration_tablesExist()
336 DbHelper dbHelper = new DbHelper(sContext, dbName, DATABASE_VERSION_7); in testOnUpgrade_measurementMigration_tablesExist()
343 String dbName = FileCompatUtils.getAdservicesFilename("test_db_2"); in testOnUpgrade_measurementMigration_tablesDoNotExist() local
344 DbHelperV1 dbHelperV1 = new DbHelperV1(sContext, dbName, 1); in testOnUpgrade_measurementMigration_tablesDoNotExist()
350 DbHelper dbHelper = new DbHelper(sContext, dbName, DATABASE_VERSION_7); in testOnUpgrade_measurementMigration_tablesDoNotExist()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java74 public static void deleteFiles(Context context, File rootDir, String dbName) { in deleteFiles() argument
76 context.getDatabasePath(dbName).delete(); in deleteFiles()
89 public FileCache(Context context, File rootDir, String dbName, long capacity) { in FileCache() argument
92 mDbHelper = new DatabaseHelper(context, dbName); in FileCache()
289 public DatabaseHelper(Context context, String dbName) { in DatabaseHelper() argument
290 super(context, dbName, null, DATABASE_VERSION); in DatabaseHelper()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/rule/
DBackAndRestoreRule.kt60 private fun uploadDatabase(dbName: String) { in uploadDatabase()
61 val file = File(File(getInstrumentation().targetContext.dataDir, "/databases"), dbName) in uploadDatabase()
66 .open("databases/BackupAndRestore/$dbName") in uploadDatabase()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMigrationTestHelper.java46 Context context, String dbName, int version) { in createReferenceDbAtVersion() argument
47 EmptySqliteOpenHelper dbHelper = new EmptySqliteOpenHelper(context, dbName); in createReferenceDbAtVersion()
168 private EmptySqliteOpenHelper(@NonNull Context context, @NonNull String dbName) { in EmptySqliteOpenHelper() argument
169 super(context, dbName, null, DB_VERSION); in EmptySqliteOpenHelper()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoDatabase.java94 public PhotoDatabase(Context context, String dbName, int dbVersion) { in PhotoDatabase() argument
95 super(context, dbName, null, dbVersion); in PhotoDatabase()
98 public PhotoDatabase(Context context, String dbName) { in PhotoDatabase() argument
99 super(context, dbName, null, DB_VERSION); in PhotoDatabase()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/data/topics/
DTopicsDbHelper.java59 public TopicsDbHelper(@NonNull Context context, @NonNull String dbName, int dbVersion) { in TopicsDbHelper() argument
60 super(context, dbName, null, dbVersion); in TopicsDbHelper()
61 mDbFile = context.getDatabasePath(dbName); in TopicsDbHelper()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/
DMigrationTestHelper.java44 Context context, String dbName, int version) { in createReferenceDbAtVersion() argument
45 EmptySqliteOpenHelper dbHelper = new EmptySqliteOpenHelper(context, dbName); in createReferenceDbAtVersion()
187 private EmptySqliteOpenHelper(@NonNull Context context, @NonNull String dbName) { in EmptySqliteOpenHelper() argument
188 super(context, dbName, null, DB_VERSION); in EmptySqliteOpenHelper()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/
DFederatedComputeDbHelper.java128 private FederatedComputeDbHelper(Context context, String dbName) { in FederatedComputeDbHelper() argument
129 super(context, dbName, null, DATABASE_VERSION); in FederatedComputeDbHelper()
167 Context context, String dbName) { in getNonSingletonInstanceForTest() argument
168 return new FederatedComputeDbHelper(context, dbName); in getNonSingletonInstanceForTest()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelDbController.java116 String dbName = isSandbox ? null : InvariantDeviceProfile.INSTANCE.get(mContext).dbFile; in createDatabaseHelper() local
120 : () -> LauncherPrefs.get(mContext).putSync(getEmptyDbCreatedKey(dbName).to(true)); in createDatabaseHelper()
122 DatabaseHelper databaseHelper = new DatabaseHelper(mContext, dbName, in createDatabaseHelper()
608 private ConstantItem<Boolean> getEmptyDbCreatedKey(String dbName) { in getEmptyDbCreatedKey() argument
613 String key = TextUtils.equals(dbName, LauncherFiles.LAUNCHER_DB) in getEmptyDbCreatedKey()
614 ? EMPTY_DATABASE_CREATED : EMPTY_DATABASE_CREATED + "@" + dbName; in getEmptyDbCreatedKey()
DDatabaseHelper.java89 public DatabaseHelper(Context context, String dbName, in DatabaseHelper() argument
91 super(context, dbName, SCHEMA_VERSION); in DatabaseHelper()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/
DDbHelper.java85 public DbHelper(Context context, String dbName, int dbVersion) { in DbHelper() argument
86 super(context, dbName, null, dbVersion); in DbHelper()
87 mDbFile = FileCompatUtils.getDatabasePathHelper(context, dbName); in DbHelper()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/migration/
DTopicsDbHelperV6.java52 TopicsDbHelperV6(Context context, String dbName, int dbVersion) { in TopicsDbHelperV6() argument
53 super(context, dbName, dbVersion); in TopicsDbHelperV6()
DTopicsDbHelperV8.java50 TopicsDbHelperV8(Context context, String dbName, int dbVersion) { in TopicsDbHelperV8() argument
51 super(context, dbName, dbVersion); in TopicsDbHelperV8()
DTopicsDbHelperV7.java51 TopicsDbHelperV7(Context context, String dbName, int dbVersion) { in TopicsDbHelperV7() argument
52 super(context, dbName, dbVersion); in TopicsDbHelperV7()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java172 .filter(dbName -> new File(dbName).exists()) in existingDbs()
182 .filter(dbName -> !dbName.equals(oldPhoneDbFileName)) in removeOldDBs()
183 .forEach(dbName -> { in removeOldDBs()
184 if (context.getDatabasePath(dbName).delete()) { in removeOldDBs()
185 FileLog.d(TAG, "Removed old grid db file: " + dbName); in removeOldDBs()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java54 final String dbName = DatabaseHelper.DATABASE_NAME; in executeAction() local
59 final File inFile = context.getDatabasePath(dbName); in executeAction()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DOnDevicePersonalizationDbHelper.java51 private OnDevicePersonalizationDbHelper(Context context, String dbName) { in OnDevicePersonalizationDbHelper() argument
52 super(context, dbName, null, DATABASE_VERSION); in OnDevicePersonalizationDbHelper()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DMeasurementDbHelper.java89 @NonNull Context context, @NonNull String dbName, int dbVersion, DbHelper dbHelper) { in MeasurementDbHelper() argument
90 super(context, dbName, null, dbVersion); in MeasurementDbHelper()
91 mDbFile = FileCompatUtils.getDatabasePathHelper(context, dbName); in MeasurementDbHelper()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/
DSharedDbHelper.java80 public SharedDbHelper(Context context, String dbName, int dbVersion, DbHelper dbHelper) { in SharedDbHelper() argument
81 super(context, dbName, null, dbVersion); in SharedDbHelper()
82 mDbFile = FileCompatUtils.getDatabasePathHelper(context, dbName); in SharedDbHelper()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionInternalTest.java49 @NonNull String dbName) { in createSearchSessionAsync()
51 new AppSearchManager.SearchContext.Builder(dbName).build()); in createSearchSessionAsync()
56 @NonNull String dbName, @NonNull ExecutorService executor) { in createSearchSessionAsync()
59 context, new AppSearchManager.SearchContext.Builder(dbName).build(), executor); in createSearchSessionAsync()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java146 public CellBroadcastDatabaseHelper(Context context, boolean legacyProvider, String dbName) { in CellBroadcastDatabaseHelper() argument
147 super(context, dbName, null, DATABASE_VERSION); in CellBroadcastDatabaseHelper()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DDbHelperV1.java241 public DbHelperV1(Context context, String dbName, int dbVersion) { in DbHelperV1() argument
242 super(context, dbName, dbVersion); in DbHelperV1()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java421 protected void dump(PrintWriter pw, String dbName) { in dump() argument
423 pw.println(dbName); in dump()

12