Home
last modified time | relevance | path

Searched refs:runInTransactionWithResult (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DVerboseDebugReportingJobServiceTest.java122 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
155 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
200 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
228 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
415 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DDebugReportingJobServiceTest.java125 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
159 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
200 verify(mMockDatastoreManager, times(4)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
226 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
408 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DImmediateAggregateReportingJobServiceTest.java194 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
460 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
479 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
502 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
514 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DEventFallbackReportingJobServiceTest.java209 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
475 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
496 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
518 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
526 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DAggregateReportingJobServiceTest.java201 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
461 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
479 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
501 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
512 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DEventReportingJobServiceTest.java199 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
458 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
479 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
501 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
509 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DAggregateFallbackReportingJobServiceTest.java205 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
476 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
496 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
520 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
532 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DReportingJobServiceTest.java565 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_featureDisabled()
573 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in onStartJob_featureEnabled()
602 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
DDebugReportingFallbackJobServiceTest.java482 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DVerboseDebugReportingFallbackJobServiceTest.java495 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyManagerTest.java88 .when(mDatastoreManager).runInTransactionWithResult(any()); in getAggregateEncryptionKeys_hasKeysInDatastore_doesNotCallFetcher()
114 .when(mDatastoreManager).runInTransactionWithResult(any()); in getAggregateEncryptionKeys_fetcherFails_returnsEmptyList()
141 .when(mDatastoreManager).runInTransactionWithResult(any()); in getAggregateEncryptionKeys_localhostCoordinator_doesNotCacheKeys()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DDatastoreManager.java89 public final <T> Optional<T> runInTransactionWithResult(ThrowingCheckedFunction<T> execute) { in runInTransactionWithResult() method in DatastoreManager
144 return runInTransactionWithResult((measurementDao) -> { in runInTransaction()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DSQLDatastoreManagerTest.java85 () -> mSQLDatastoreManager.runInTransactionWithResult(mFunction)); in runInTransactionWithResult_throwsException_logsDbVersion()
111 mSQLDatastoreManager.runInTransactionWithResult(mFunction); in runInTransactionWithResult_throwsDataStoreExceptionExceptionDisable_logsDbVersion()
138 mSQLDatastoreManager.runInTransactionWithResult(mFunction); in runInTransactionWithResult_throwsDataStoreExceptionExceptionEnable_rethrows()
DMeasurementDaoTest.java231 .runInTransactionWithResult( in testInsertSource()
278 .runInTransactionWithResult( in testInsertSource()
298 .runInTransactionWithResult( in testInsertSource_flexibleEventReport_equal()
345 .runInTransactionWithResult( in testInsertSource_flexibleEventReport_equal()
384 .runInTransactionWithResult( in testInsertSource_attributionScopeEnabled_success()
392 .runInTransactionWithResult( in testInsertSource_attributionScopeEnabled_success()
417 .runInTransactionWithResult( in testInsertSource_attributionScopeDisabled_doesNotInsertAttributionScopeRelatedData()
425 .runInTransactionWithResult( in testInsertSource_attributionScopeDisabled_doesNotInsertAttributionScopeRelatedData()
594 mDatastoreManager.runInTransactionWithResult( in testGetUninstalledAppNamesContainingData_withDataInSource()
620 mDatastoreManager.runInTransactionWithResult( in testGetUninstalledAppNamesContainingData_withDataInTrigger()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/
DAttributionFallbackJobServiceTest.java211 verify(mMockDatastoreManager, times(2)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff_unlockingCheck()
481 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_featureDisabled()
508 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_featureEnabled()
542 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
551 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
DAttributionJobServiceTest.java642 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_killSwitchOn()
666 verify(mMockDatastoreManager, times(1)).runInTransactionWithResult(any()); in onStartJob_killSwitchOff()
690 verify(mMockDatastoreManager, never()).runInTransactionWithResult(any()); in onStartJob_shouldDisableJobTrue()
700 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DReportingJobService.java218 .runInTransactionWithResult( in getNextScheduledExecution()
231 return dataStoreManager.runInTransactionWithResult( in getLastReportTimeInBatch()
259 .runInTransactionWithResult(
DEventReportingJobHandler.java125 mDatastoreManager.runInTransactionWithResult( in performScheduledPendingReportsInWindow()
195 mDatastoreManager.runInTransactionWithResult( in getAppPackageName()
213 mDatastoreManager.runInTransactionWithResult((dao) in performReport()
DAggregateReportingJobHandler.java130 mDatastoreManager.runInTransactionWithResult( in performScheduledPendingReportsInWindow()
212 mDatastoreManager.runInTransactionWithResult( in getAppPackageName()
233 mDatastoreManager.runInTransactionWithResult((dao) in performReport()
DDebugReportingJobHandler.java88 mDatastoreManager.runInTransactionWithResult(IMeasurementDao::getDebugReportIds); in performScheduledPendingReports()
139 mDatastoreManager.runInTransactionWithResult( in performReport()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyManager.java84 mDatastoreManager.runInTransactionWithResult( in getAggregateEncryptionKeys()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementImplTest.java572 doReturn(Optional.of(true)).when(mDatastoreManager).runInTransactionWithResult(any()); in testDeletePackageRecords_success_recordsDeletionInSystemServer()
620 doReturn(Optional.of(false)).when(mDatastoreManager).runInTransactionWithResult(any()); in testDeletePackageRecords_noDeletion_doesNotRecordDeletion()
729 doReturn(Optional.of(true)).when(mDatastoreManager).runInTransactionWithResult(any()); in testDeleteAllUninstalledMeasurementData_success_recordsDeletionInSystemServer()
799 .runInTransactionWithResult(any()); in testDeleteAllUninstalledMeasurementData_noDeletion_doesNotRecordDeletion()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/deletion/
DMeasurementDataDeleter.java116 mDatastoreManager.runInTransactionWithResult( in deleteAppUninstalledData()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementImpl.java412 mDatastoreManager.runInTransactionWithResult( in deleteAllUninstalledMeasurementData()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationFallbackJobServiceTest.java504 doReturn(Optional.empty()).when(mMockDatastoreManager).runInTransactionWithResult(any()); in runWithMocks()

12