Home
last modified time | relevance | path

Searched refs:getCurrentEpochId (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicsWorker.java127 return mCacheManager.getKnownTopicsWithConsent(mEpochManager.getCurrentEpochId()); in getKnownTopicsWithConsent()
207 mEpochManager.getCurrentEpochId(), in getTopics()
280 mCacheManager.loadCache(mEpochManager.getCurrentEpochId()); in loadCache()
346 mAppUpdateManager.reconcileUninstalledApps(context, mEpochManager.getCurrentEpochId()); in reconcileApplicationUpdate()
347 mAppUpdateManager.reconcileInstalledApps(context, mEpochManager.getCurrentEpochId()); in reconcileApplicationUpdate()
365 packageUri, mEpochManager.getCurrentEpochId()); in handleAppUninstallation()
383 packageUri, mEpochManager.getCurrentEpochId()); in handleAppInstallation()
406 app, sdk, mEpochManager.getCurrentEpochId())) { in handleSdkTopicsAssignment()
427 long currentEpochId = mEpochManager.getCurrentEpochId(); in getExistingTopicsForAppSdk()
DEpochManager.java181 long currentEpochId = getCurrentEpochId(); in processEpoch()
331 long epochId = getCurrentEpochId(); in recordUsageHistory()
380 public long getCurrentEpochId() { in getCurrentEpochId() method in EpochManager
628 long epochId = getCurrentEpochId(); in dump()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsWorkerTest.java168 when(mMockEpochManager.getCurrentEpochId()).thenReturn(epochId); in testGetTopics()
195 verify(mMockEpochManager, times(3)).getCurrentEpochId(); in testGetTopics()
238 when(mMockEpochManager.getCurrentEpochId()).thenReturn(epochId); in testGetTopics_enableEncryption_disablePlaintextTopics()
293 verify(mMockEpochManager, times(3)).getCurrentEpochId(); in testGetTopics_enableEncryption_disablePlaintextTopics()
336 when(mMockEpochManager.getCurrentEpochId()).thenReturn(epochId); in testGetTopics_enableEncryption_featureOn()
390 verify(mMockEpochManager, times(3)).getCurrentEpochId(); in testGetTopics_enableEncryption_featureOn()
433 when(mMockEpochManager.getCurrentEpochId()).thenReturn(epochId); in testGetTopics_enableEncryption_featureOff()
478 verify(mMockEpochManager, times(3)).getCurrentEpochId(); in testGetTopics_enableEncryption_featureOff()
486 when(mMockEpochManager.getCurrentEpochId()).thenReturn(epochId); in testGetTopics_emptyCache()
527 when(mMockEpochManager.getCurrentEpochId()).thenReturn(epochId); in testGetTopics_appNotInCache()
[all …]
DTopicsServiceImplTest.java687 when(mMockEpochManager.getCurrentEpochId()).thenReturn(currentEpochId); in getTopics_oneTopicBlocked()
715 verify(mMockEpochManager, Mockito.times(3)).getCurrentEpochId(); in getTopics_oneTopicBlocked()
741 when(mMockEpochManager.getCurrentEpochId()).thenReturn(currentEpochId); in getTopics_allTopicsBlocked()
763 verify(mMockEpochManager, Mockito.times(3)).getCurrentEpochId(); in getTopics_allTopicsBlocked()
778 when(mMockEpochManager.getCurrentEpochId()).thenReturn(currentEpochId); in testGetTopics_emptyTopicsReturned()
810 verify(mMockEpochManager, Mockito.times(4)).getCurrentEpochId(); in testGetTopics_emptyTopicsReturned()
820 when(mMockEpochManager.getCurrentEpochId()).thenReturn(currentEpochId); in testGetTopics_LatencyCalculateVerify()
875 verify(mMockEpochManager, Mockito.times(4)).getCurrentEpochId(); in testGetTopics_LatencyCalculateVerify()
885 when(mMockEpochManager.getCurrentEpochId()).thenReturn(currentEpochId); in testGetTopics_enforceCallingPackage_invalidPackage()
944 when(mMockEpochManager.getCurrentEpochId()).thenReturn(currentEpochId); in testGetTopics_recordObservation()
[all …]
DEpochManagerTest.java432 mTopicsDao.retrieveAppSdksUsageMap(mEpochManager.getCurrentEpochId()); in testRecordUsage()
627 doReturn(epochId).when(epochManager).getCurrentEpochId(); in testProcessEpoch()
673 verify(epochManager).getCurrentEpochId(); in testProcessEpoch()
832 doReturn(epochId).when(epochManager).getCurrentEpochId(); in testProcessEpoch_enableEncryptedTopics_encryptionSucceed()
940 doReturn(epochId).when(epochManager).getCurrentEpochId(); in testProcessEpoch_enableEncryptedTopics_encryptionFailed()
1029 doReturn(epochId).when(epochManager).getCurrentEpochId(); in testComputeEpoch_emptyTopTopics()
1055 verify(epochManager).getCurrentEpochId(); in testComputeEpoch_emptyTopTopics()
1240 assertThat(epochManager.getCurrentEpochId()).isEqualTo(0L); in testGetCurrentEpochId()
1245 assertThat(epochManager.getCurrentEpochId()).isEqualTo(1L); in testGetCurrentEpochId()
1248 assertThat(epochManager.getCurrentEpochId()).isEqualTo(2L); in testGetCurrentEpochId()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/
DMaintenanceJobServiceTest.java157 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_TopicsKillSwitchOn()
219 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_SelectAdsKillSwitchOn()
270 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_SignalsDisabled()
347 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_killSwitchOnDoesFledgeJobWhenTopicsJobThrowsException()
416 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_killSwitchOnDoesTopicsJobWhenFledgeThrowsException()
485 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_globalKillswitchOverridesAll()
726 doReturn(CURRENT_EPOCH_ID).when(mMockEpochManager).getCurrentEpochId(); in testOnStartJob_killSwitchOff()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DPackageChangedReceiverTest.java528 doReturn(epochId).when(mMockEpochManager).getCurrentEpochId(); in runPackageFullyRemovedForTopicsKillSwitchOff()
540 verify(mMockEpochManager, times(2)).getCurrentEpochId(); in runPackageFullyRemovedForTopicsKillSwitchOff()