Home
last modified time | relevance | path

Searched refs:getDatabase (Results 1 – 25 of 121) sorted by relevance

12345

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DMeasurementDao.java139 .getDatabase() in insertTrigger()
154 .getDatabase() in getPendingTriggerIds()
176 .getDatabase() in getSource()
200 .getDatabase() in getSourceDestinations()
244 .getDatabase() in getTrigger()
288 .getDatabase() in getEventReport()
311 .getDatabase() in getAggregateReport()
335 .getDatabase() in getDebugReport()
414 .getDatabase() in insertSource()
436 .getDatabase() in insertSource()
[all …]
DSQLTransaction.java61 public SQLiteDatabase getDatabase() throws DatastoreException { in getDatabase() method in SQLTransaction
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DPhonePolicy.java273 mDatabaseManager = Objects.requireNonNull(mAdapterService.getDatabase(), in PhonePolicy()
315 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
328 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
335 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
349 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
356 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
372 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
388 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
403 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
408 mAdapterService.getDatabase().setProfileConnectionPolicy(device, in processInitProfilePriorities()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java109 doReturn(mDatabaseManager).when(mAdapterService).getDatabase(); in setUp()
250 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testGetSetPolicy()
258 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testGetSetPolicy()
266 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testGetSetPolicy()
340 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testOutgoingConnectMissingVolumeControlUuid()
361 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testOutgoingConnectDisconnectExistingVolumeControlUuid()
402 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testOutgoingConnectPolicyForbidden()
417 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testOutgoingConnectTimeout()
453 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testCreateStateMachineStackEvents()
516 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testDeleteStateMachineDisconnectEvents()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/stats/
DAppSearchStatsTest.java52 assertThat(cStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_CallStats()
71 assertThat(cStats.getDatabase()).isNull(); in testAppSearchCallStats_nullValues()
102 assertThat(pStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_PutDocumentStats()
237 assertThat(sStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_SearchStats()
324 assertThat(sStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_SetSchemaStats()
389 assertThat(sStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_SchemaMigrationStats()
421 assertThat(rStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_RemoveStats()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DParticipantRefresh.java259 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshParticipants()
314 final DatabaseWrapper db = DataModel.get().getDatabase(); in getExistingSubIds()
360 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshSelfParticipantList()
629 final DatabaseWrapper db = DataModel.get().getDatabase(); in getInactiveSelfParticipantIds()
660 final DatabaseWrapper db = DataModel.get().getDatabase(); in getConversationsWithSelfParticipantIds()
698 final DatabaseWrapper db = DataModel.get().getDatabase(); in updateConversationSelfId()
728 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshConversationSelfIds()
DBugleDatabaseOperations.java370 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in createConversationInTransaction()
563 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationMetadataInTransaction()
612 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationArchiveStatusInTransaction()
719 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationDraftSnippetAndPreviewInTransaction()
825 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationNameAndAvatarInTransaction()
838 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationNameAndAvatarInTransaction()
865 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateConversationSelfIdInTransaction()
1142 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in insertNewMessagePartInTransaction()
1165 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in insertNewMessageInTransaction()
1188 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in updateMessageInTransaction()
[all …]
DMessagingContentProvider.java255 mDatabaseWrapper = mDatabaseHelper.getDatabase(); in getDatabaseWrapper()
403 protected DatabaseHelper getDatabase() { in getDatabase() method in MessagingContentProvider
472 mDatabaseHelper = (DatabaseHelper) getDatabase(); in onCreate()
DDataModelImpl.java186 public DatabaseWrapper getDatabase() { in getDatabase() method in DataModelImpl
190 return mDatabaseHelper.getDatabase(); in getDatabase()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java80 doReturn(mDatabaseManager).when(mAdapterService).getDatabase(); in setUp()
210 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testConnectAndDump()
230 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testForbiddenPolicy_FailsToConnect()
275 when(mAdapterService.getDatabase()).thenReturn(mDatabaseManager); in testCanConnectCase()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java68 final DatabaseWrapper db = DataModel.get().getDatabase(); in testWriteDraft()
127 final DatabaseWrapper db = DataModel.get().getDatabase(); in testReadDraft()
169 final DatabaseWrapper db = DataModel.get().getDatabase(); in testReadDraftForNewConversation()
225 final DatabaseWrapper db = DataModel.get().getDatabase(); in testWriteAndReadDraft()
286 final DatabaseWrapper db = DataModel.get().getDatabase(); in testUpdateDraft()
336 final DatabaseWrapper db = DataModel.get().getDatabase(); in testBugleDatabaseDraftOperations()
DGetOrCreateConversationActionTest.java51 final DatabaseWrapper db = DataModel.get().getDatabase(); in testGetOrCreateConversation()
169 provider.setDatabaseForTest(fakeDataModel.getDatabase()); in setUp()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DInsertNewMessageAction.java130 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction()
257 final DatabaseWrapper db = DataModel.get().getDatabase(); in createMessage()
297 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertBroadcastSmsMessage()
359 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertSendingSmsMessage()
428 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertSendingMmsMessage()
DUpdateConversationOptionsAction.java98 Assert.isTrue(dbWrapper.getDatabase().inTransaction()); in putOptionValuesInTransaction()
119 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction()
DDeleteConversationAction.java71 final DatabaseWrapper db = DataModel.get().getDatabase(); in doBackgroundWork()
138 final DatabaseWrapper db = DataModel.get().getDatabase(); in deleteConversationMessagesFromTelephony()
DSendMessageAction.java98 final DatabaseWrapper db = DataModel.get().getDatabase(); in queueAction()
270 final DatabaseWrapper db = DataModel.get().getDatabase(); in updateMessageUri()
318 final DatabaseWrapper db = DataModel.get().getDatabase(); in updateMessageAndStatus()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogStorage.java148 mDbHelper.onShrink(getDatabase(/* isWritable= */ true)); in shrinkDatabase()
205 SQLiteDatabase db = getDatabase(/* isWritable= */ true); in saveUserPackageSettings()
235 UserPackageSettingsTable.querySettings(getDatabase(/* isWritable= */ false)); in getUserPackageSettings()
268 ioUsagesById = IoUsageStatsTable.queryStats(getDatabase(/* isWritable= */ false), in getTodayIoUsageStats()
297 UserPackageSettingsTable.deleteUserPackage(getDatabase(/* isWritable= */ true), userId, in deleteUserPackage()
317 getDatabase(/* isWritable= */ false), userPackage.userPackageId, in getHistoricalIoOveruseStats()
330 getDatabase(/* isWritable= */ false), in getDailySystemIoUsageSummaries()
356 SQLiteDatabase db = getDatabase(/* isWritable= */ false); in getTopUsersDailyIoUsageSummaries()
399 getDatabase(/* isWritable= */ false), includingStartEpochSeconds, in getNotForgivenHistoricalIoOveruses()
445 IoUsageStatsTable.forgiveHistoricalOverusesForPackage(getDatabase(/* isWritable= */ true), in forgiveHistoricalOveruses()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java560 assertThat(pStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_putDocument_success()
618 assertThat(pStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_putDocument_failure()
705 assertThat(sStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_search_success()
756 assertThat(sStats.getDatabase()).isEqualTo(testPackageName); in testLoggingStats_search_failure()
906 assertThat(sStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_search_join()
960 assertThat(rStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_remove_success()
1012 assertThat(rStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_remove_failure()
1064 assertThat(rStats.getDatabase()).isEqualTo(testDatabase); in testLoggingStats_removeByQuery_success()
1115 assertThat(sStats.getDatabase()).isEqualTo(DATABASE); in testLoggingStats_setSchema()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/
DPlatformLogger.java259 String database = stats.getDatabase(); in logStatsImplLocked()
303 String database = stats.getDatabase(); in logStatsImplLocked()
351 String database = stats.getDatabase(); in logStatsImplLocked()
387 String database = stats.getDatabase(); in logStatsImplLocked()
424 String database = stats.getDatabase(); in logStatsImplLocked()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DPeriodicProvisionerTests.java82 RkpdDatabase.getDatabase(mContext).provisionedKeyDao().deleteAllKeys(); in setUp()
97 RkpdDatabase.getDatabase(mContext).provisionedKeyDao().deleteAllKeys(); in tearDown()
186 ProvisionedKeyDao dao = RkpdDatabase.getDatabase(mContext).provisionedKeyDao(); in fetchEekDisablesRkp()
210 ProvisionedKeyDao dao = RkpdDatabase.getDatabase(mContext).provisionedKeyDao(); in provisioningExpiresOldKeys()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DPickerDbFacade.java361 SQLiteDatabase getDatabase() { in getDatabase() method in PickerDbFacade.DbWriteOperation
418 final SQLiteDatabase database = getDatabase(); in execute()
476 if (QB_MATCH_ALL.insert(getDatabase(), values) > 0) { in insertMedia()
542 if (qb.delete(getDatabase(), /* selection */ null, deleteArgs) > 0) { in executeInternal()
607 SQLiteDatabase database = getDatabase(); in executeInternal()
1324 return qb.delete(getDatabase(), /* selection */ null, /* selectionArgs */ in executeInternal()
1383 if (qb.insert(getDatabase(), values) > 0) { in executeInternal()
1424 return qb.query(getDatabase(), sLocalMediaProjection, /* selection */ null, in getLocalMediaMetadata()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/
DRoomSchemaMigrationGuardrailTest.java118 oldSchemaBundle.getDatabase().getEntitiesByTableName(); in validateNewFieldOnly()
120 newSchemaBundle.getDatabase().getEntitiesByTableName(); in validateNewFieldOnly()
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp472 RouteDataSet::Database* RouteDataSet::getDatabase(DatabaseSelection selection) { in getDatabase() function in RouteDataSet
493 Database* db = getDatabase(DefaultRouteDatabase); in printDiagnostic()
517 db = getDatabase(SecElemRouteDatabase); in printDiagnostic()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeDataModel.java221 public DatabaseWrapper getDatabase() { in getDatabase() method in FakeDataModel
224 return mDatabaseHelper.getDatabase(); in getDatabase()
DParticipantRefreshTest.java83 final DatabaseWrapper db = DataModel.get().getDatabase(); in addParticipant()
105 final DatabaseWrapper db = DataModel.get().getDatabase(); in verifyParticipant()

12345