Home
last modified time | relevance | path

Searched refs:getDatabasePath (Results 1 – 25 of 63) sorted by relevance

123

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DExportManagerTest.java99 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_DATABASE_FILE_NAME)); in tearDown()
100 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_ZIP_FILE_NAME).delete(); in tearDown()
114 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_ZIP_FILE_NAME), in runExport_deletesAccessLogsTableContent()
115 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_DATABASE_FILE_NAME)); in runExport_deletesAccessLogsTableContent()
133 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_ZIP_FILE_NAME), in runExport_deletesChangeLogsTableContent()
134 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_DATABASE_FILE_NAME)); in runExport_deletesChangeLogsTableContent()
152 assertThat(databaseContext.getDatabasePath(LOCAL_EXPORT_DATABASE_FILE_NAME).exists()) in runExport_deletesLocalCopies()
154 assertThat(databaseContext.getDatabasePath(LOCAL_EXPORT_ZIP_FILE_NAME).exists()).isFalse(); in runExport_deletesLocalCopies()
167 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_ZIP_FILE_NAME), in runExport_makesRemoteCopyOfDatabase()
168 mExportedDbContext.getDatabasePath(REMOTE_EXPORT_DATABASE_FILE_NAME)); in runExport_makesRemoteCopyOfDatabase()
[all …]
DImportManagerTest.java120 File originalDb = mTransactionManager.getDatabasePath(); in copiesAllData()
158 File originalDb = mTransactionManager.getDatabasePath(); in skipsMissingTables()
198 File originalDb = mTransactionManager.getDatabasePath(); in deletesTheDatabase()
228 File originalDb = mTransactionManager.getDatabasePath(); in runImport_versionMismatch_setsVersionMismatchError()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DDataMigrationTest.java290 when(mMockContext.getDatabasePath("btopp.db")) in testIncompleteDbMigration()
291 .thenReturn(mTargetContext.getDatabasePath("TestOppDb")); in testIncompleteDbMigration()
292 when(mMockContext.getDatabasePath("bluetooth_db")) in testIncompleteDbMigration()
293 .thenReturn(mTargetContext.getDatabasePath("TestBluetoothDb")); in testIncompleteDbMigration()
312 when(mMockContext.getDatabasePath("bluetooth_db")) in testBluetoothDbMigration()
313 .thenReturn(mTargetContext.getDatabasePath("TestBluetoothDb")); in testBluetoothDbMigration()
400 when(mMockContext.getDatabasePath("btopp.db")) in testOppDbMigration()
401 .thenReturn(mTargetContext.getDatabasePath("TestOppDb")); in testOppDbMigration()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DDatabaseUpgradeHelperTest.java42 when(mContext.getDatabasePath(anyString())) in setUp()
46 .getDatabasePath("mock")); in setUp()
DHealthConnectDatabaseTest.java52 when(mContext.getDatabasePath(anyString())) in setUp()
56 .getDatabasePath("mock")); in setUp()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DHealthConnectDatabase.java73 public File getDatabasePath() { in getDatabasePath() method in HealthConnectDatabase
74 return mContext.getDatabasePath(getDatabaseName()); in getDatabasePath()
DTransactionManager.java551 return context.getDatabasePath(getReadableDb().getPath()).length(); in getDatabaseSize()
748 public File getDatabasePath() { in getDatabasePath() method in TransactionManager
749 return mHealthConnectDatabase.getDatabasePath(); in getDatabasePath()
968 SQLiteDatabase.deleteDatabase(sTransactionManager.getDatabasePath()); in cleanUpForTest()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRenamingDelegatingContext.java181 public File getDatabasePath(String name) { in getDatabasePath() method in RenamingDelegatingContext
183 return mFileContext.getDatabasePath(name); in getDatabasePath()
185 return mFileContext.getDatabasePath(renamedFileName(name)); in getDatabasePath()
DContactsDatabaseMigrationTest.java57 final File sourceDbFile = getTestContext().getDatabasePath("contacts2.db"); in testPhoneAccountHandleMigrationMarkingOnUpgrade()
/packages/modules/Bluetooth/android/BluetoothLegacyMigration/
DBluetoothLegacyMigration.kt185 val databasePath = ctx.getDatabasePath(dbName) in toCursor()
203 val databasePath = ctx.getDatabasePath(dbName) in delete()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DHealthConnectManagerServiceTest.java120 when(mContext.getDatabasePath(anyString())) in setUp()
124 .getDatabasePath("mock")); in setUp()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java182 File oldDb = mContext.getDatabasePath(OLD_DATABASE_NAME); in tryToMigrateV13()
183 File newDb = mContext.getDatabasePath(DATABASE_NAME_V13); in tryToMigrateV13()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectUserContext.java47 public File getDatabasePath(String name) { in getDatabasePath() method in HealthConnectUserContext
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDatabaseContext.java64 public File getDatabasePath(String name) { in getDatabasePath() method in DatabaseContext
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DFileCompatUtils.java76 return context.getDatabasePath(getAdservicesFilename(name)); in getDatabasePathHelper()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProviderUpgradeReceiver.java69 if (context.getDatabasePath(helper.getDatabaseName()).exists()) { in onReceive()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarUpgradeReceiver.java67 if (context.getDatabasePath(helper.getDatabaseName()).exists()) { in onReceive()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/migration/
DTopicsDbHelperV6.java79 File databaseFile = context.getDatabasePath(DATABASE_NAME_TOPICS_MIGRATION); in clearDatabase()
DTopicsDbHelperV8.java77 File databaseFile = context.getDatabasePath(DATABASE_NAME_TOPICS_MIGRATION); in clearDatabase()
DTopicsDbHelperV7.java78 File databaseFile = context.getDatabasePath(DATABASE_NAME_TOPICS_MIGRATION); in clearDatabase()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/
DSharedDbMigratorTestBase.java72 .map(sContext::getDatabasePath) in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorTestBaseDeprecated.java52 File databaseFile = sContext.getDatabasePath(DATABASE_NAME_FOR_MIGRATION); in setup()
DMeasurementDbMigratorTestBase.java72 .map(sContext::getDatabasePath) in setup()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/data/topics/
DTopicsDbHelper.java61 mDbFile = context.getDatabasePath(dbName); in TopicsDbHelper()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java59 final File inFile = context.getDatabasePath(dbName); in executeAction()

123