/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | RunAdBiddingPerCAExecutionLoggerTest.java | 118 @Mock private Clock mMockClock; field in RunAdBiddingPerCAExecutionLoggerTest 133 when(mMockClock.elapsedRealtime()) in testRunAdBiddingPerCAExecutionLogger_SuccessRunAdBiddingPerCA() 148 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_SuccessRunAdBiddingPerCA() 218 when(mMockClock.elapsedRealtime()) in testRunAdBiddingPerCAExecutionLogger_FailedBeforeGenerateBids() 230 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedBeforeGenerateBids() 299 when(mMockClock.elapsedRealtime()) in testRunAdBiddingPerCAExecutionLogger_FailedByGenerateBids() 313 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedByGenerateBids() 381 when(mMockClock.elapsedRealtime()) in testRunAdBiddingPerCAExecutionLogger_FailedByGetTrustedBiddingSignals() 392 new RunAdBiddingPerCAExecutionLogger(mMockClock, mAdServicesLoggerMock, mFlags); in testRunAdBiddingPerCAExecutionLogger_FailedByGetTrustedBiddingSignals() 462 when(mMockClock.elapsedRealtime()) in testRunAdBiddingPerCAExecutionLogger_FailedByGetBuyerDecisionLogic() [all …]
|
D | ApiServiceLatencyCalculatorTest.java | 39 @Mock private Clock mMockClock; field in ApiServiceLatencyCalculatorTest 48 when(mMockClock.elapsedRealtime()) in testApiServiceLatencyCalculator_currentElapsedTimeLatency() 51 new ApiServiceLatencyCalculator(mMockClock); in testApiServiceLatencyCalculator_currentElapsedTimeLatency() 52 verify(mMockClock).elapsedRealtime(); in testApiServiceLatencyCalculator_currentElapsedTimeLatency() 60 when(mMockClock.elapsedRealtime()) in testApiServiceLatencyCalculatorStop_calculateInternalFinalLatencyOnce() 63 new ApiServiceLatencyCalculator(mMockClock); in testApiServiceLatencyCalculatorStop_calculateInternalFinalLatencyOnce()
|
D | AdSelectionExecutionLoggerTest.java | 237 @Mock private Clock mMockClock; field in AdSelectionExecutionLoggerTest 254 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_SuccessAdSelection() 406 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_FailedAdSelectionDuringScoreAds() 523 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_FailedAdSelectionDuringFetchTrustedScoringSignals() 637 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_FailedAdSelectionDuringGetAdSelectionLogicScript() 743 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_redundantStartOfGetBuyersCustomAudience() 758 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_redundantEndOfGetBuyersCustomAudience() 777 when(mMockClock.elapsedRealtime()).thenReturn(START_ELAPSED_TIMESTAMP); in testAdSelectionExecutionLogger_missingStartBiddingStage() 790 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_missingGetBuyersCustomAudience() 803 when(mMockClock.elapsedRealtime()) in testAdSelectionExecutionLogger_redundantStartRunAdBidding() [all …]
|
D | SignatureVerificationLoggerImplTest.java | 59 @Mock private Clock mMockClock; field in SignatureVerificationLoggerImplTest 74 when(mMockClock.elapsedRealtime()) in testSignatureVerification_successfulVerificationLogging() 113 when(mMockClock.elapsedRealtime()).thenReturn(1L); in testSignatureVerification_failedVerificationLogging() 157 when(mMockClock.elapsedRealtime()).thenReturn(1L); in testSignatureVerification_errorDetailLoggedOnlyInCaseOfError() 186 when(mMockClock.elapsedRealtime()).thenReturn(1L); in testSignatureVerification_missingEndKeyFetchTimestamp() 204 when(mMockClock.elapsedRealtime()).thenReturn(1L); in testSignatureVerification_missingEndSerializationTimestamp() 222 when(mMockClock.elapsedRealtime()).thenReturn(1L); in testSignatureVerification_missingEndSignatureVerificationTimestamp() 237 return new SignatureVerificationLoggerImpl(mAdServicesLoggerMock, mMockClock); in getSignatureVerificationLogger()
|
D | AdFilteringLoggerImplTest.java | 61 @Mock private Clock mMockClock; field in AdFilteringLoggerImplTest 83 when(mMockClock.elapsedRealtime()) in testContextualAdsFiltering_success() 155 when(mMockClock.elapsedRealtime()) in testCustomAudienceFiltering_success() 218 return new AdFilteringLoggerImpl(filterProcessingType, mAdServicesLoggerMock, mMockClock); in getAdFilteringLogger()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/ |
D | EncryptionDataDownloadManagerTest.java | 82 @Mock private Clock mMockClock; field in EncryptionDataDownloadManagerTest 122 doReturn(841622400000L).when(mMockClock).currentTimeMillis(); in testReadFileAndInsertIntoDatabaseSuccess() 129 new EncryptionDataDownloadManager(mMockFlags, mEncryptionKeyDao, mMockClock); in testReadFileAndInsertIntoDatabaseSuccess() 155 doReturn(841622400000L).when(mMockClock).currentTimeMillis(); in testReadFileAndInsertIntoDatabaseSuccess_keysUpdated() 162 new EncryptionDataDownloadManager(mMockFlags, mEncryptionKeyDao, mMockClock); in testReadFileAndInsertIntoDatabaseSuccess_keysUpdated() 199 doReturn(1682460000000L).when(mMockClock).currentTimeMillis(); in testReadFileAndInsertIntoDatabaseSuccess_deleteExpiredKeys() 206 new EncryptionDataDownloadManager(mMockFlags, mEncryptionKeyDao, mMockClock); in testReadFileAndInsertIntoDatabaseSuccess_deleteExpiredKeys() 221 new EncryptionDataDownloadManager(mMockFlags, mEncryptionKeyDao, mMockClock); in testReadFileAndInsertIntoDatabaseFailure_missingFileGroup() 234 new EncryptionDataDownloadManager(mMockFlags, mEncryptionKeyDao, mMockClock); in testReadFileAndInsertIntoDatabaseFailure_emptyFileList() 254 new EncryptionDataDownloadManager(mMockFlags, mEncryptionKeyDao, mMockClock); in testReadFileAndInsertIntoDatabaseFailure_fileStorageIOException() [all …]
|
D | MobileDataDownloadTest.java | 176 @Mock Clock mMockClock; field in MobileDataDownloadTest 306 when(mMockClock.currentTimeMillis()).thenReturn(841622400000L); in testEncryptionKeysDataDownload_production_featureEnabled() 882 new EncryptionDataDownloadManager(mMockFlags, encryptionKeyDao, mMockClock); in verifyEncryptionKeysFileGroup()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeTest.java | 96 private SystemClockWrapper mMockClock; field in CarVolumeTest 102 when(mMockClock.uptimeMillis()).thenReturn(START_TIME); in setUp() 103 mCarVolume = new CarVolume(TEST_CAR_AUDIO_CONTEXT, mMockClock, in setUp() 111 new CarVolume(TEST_CAR_AUDIO_CONTEXT, mMockClock, VERSION_ZERO, KEY_EVENT_TIMEOUT_MS); in constructor_withVersionLessThanOne_failsTooLow() 121 new CarVolume(TEST_CAR_AUDIO_CONTEXT, mMockClock, VERSION_THREE, KEY_EVENT_TIMEOUT_MS); in constructor_withVersionGreaterThanTwo_failsTooHigh() 141 new CarVolume(null, mMockClock, VERSION_ONE, KEY_EVENT_TIMEOUT_MS); in constructor_withNullCarAudioContext_fails() 366 when(mMockClock.uptimeMillis()).thenReturn(START_TIME_ONE_SECOND); in getSuggestedAudioContext_withStillActiveContext_returnsPrevActiveContext() 389 when(mMockClock.uptimeMillis()) in getSuggestedAudioContext_withStillActiveContext_retPrevActiveContextMultipleTimes() 411 when(mMockClock.uptimeMillis()).thenReturn(START_TIME_ONE_SECOND); in getSuggestedAudioContext_withActContextAndNewHigherPrioContext_returnPrevActContext() 429 when(mMockClock.uptimeMillis()).thenReturn(START_TIME_FOUR_SECOND); in getSuggestedAudioContext_afterActiveContextTimeout_returnsDefaultContext() [all …]
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollectorTest.java | 77 @Mock private Clock mMockClock; field in UserDataCollectorTest 86 when(MonotonicClock.getInstance()).thenReturn(mMockClock); in setup() 88 mUserDataDao = UserDataDao.getInstanceForTest(mContext, mMockClock); in setup() 126 when(mMockClock.currentTimeMillis()).thenReturn(200L); in updateInstalledAppsForUserData() 139 when(mMockClock.currentTimeMillis()).thenReturn(200L); in testUpdateInstalledAppHistory() 149 when(mMockClock.currentTimeMillis()).thenReturn(450L); in testUpdateInstalledAppHistory()
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/ |
D | JobServiceTest.java | 104 @Mock private Clock mMockClock; field in JobServiceTest 113 mMockClock, in setup() 137 when(mMockClock.currentTimeMillis()) in testJobExecutionLifeCycle_succeedThenSucceed() 187 when(mMockClock.currentTimeMillis()) in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry() 238 when(mMockClock.currentTimeMillis()) in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry() 293 when(mMockClock.currentTimeMillis()) in testJobExecutionLifeCycle_successThenHaltedByDevice() 358 when(mMockClock.currentTimeMillis()) in testJobExecutionLifeCycle_haltedThenSuccess() 420 when(mMockClock.currentTimeMillis()) in testJobExecutionLifeCycle_skipThenSkip()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | EpochManagerTest.java | 113 @Mock Clock mMockClock; field in EpochManagerTest 140 mMockClock, in setup() 246 mMockClock, in testSelectRandomTopic() 289 mMockClock, in testSelectRandomTopic_invalidSize_throw() 321 mMockClock, in testComputeReturnedAppTopics() 455 mMockClock, in testGarbageCollectOutdatedEpochData() 543 mMockClock, in testGarbageCollectOutdatedEpochData_encryptedTopicsTable() 621 mMockClock, in testProcessEpoch() 789 when(mMockClock.currentTimeMillis()).thenReturn( in testProcessEpoch_enableEncryptedTopics_encryptionSucceed() 804 mMockClock, in testProcessEpoch_enableEncryptedTopics_encryptionSucceed() [all …]
|
D | CacheManagerTest.java | 105 @Mock Clock mMockClock; field in CacheManagerTest 144 mMockClock); in setup() 738 mMockClock); in testGetTopics_globalBlockedTopics() 831 mMockClock); in testGetTopics_verifyLogs() 963 when(mMockClock.currentTimeMillis()).thenReturn( in testGetTopics_enableEncryption_success() 1046 when(mMockClock.currentTimeMillis()).thenReturn( in testGetTopics_enableEncryption_missingEncryptedTopics() 1154 mMockClock); in testGetTopics_verifyLogsWithRandomizedResponse()
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/ |
D | DeleteExpiredJobTest.java | 92 @Mock private Clock mMockClock; field in DeleteExpiredJobTest 111 when(mMockClock.currentTimeMillis()).thenReturn(currentTime); in testGetExecutionFuture() 216 return mMockClock; in getClock()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/ |
D | AdServicesHttpsClientTest.java | 151 @Mock private Clock mMockClock; field in AdServicesHttpsClientTest 1252 when(mMockClock.currentTimeMillis()) in setupEncodingJsFetchStatsLogging() 1257 mAdServicesLoggerSpy, mMockClock, encodingJsFetchStatsBuilder); in setupEncodingJsFetchStatsLogging() 1258 mFetchProcessLogger.setJsDownloadStartTimestamp(mMockClock.currentTimeMillis()); in setupEncodingJsFetchStatsLogging() 1279 when(mMockClock.elapsedRealtime()) in setupServerAuctionKeyFetchCalledStatsLogging() 1282 new ServerAuctionKeyFetchExecutionLoggerImpl(mMockClock, mAdServicesLoggerSpy); in setupServerAuctionKeyFetchCalledStatsLogging() 1309 when(mMockClock.elapsedRealtime()) in setupSelectAdsFromOutcomesApiCalledStatsLogging() 1311 return new SelectAdsFromOutcomesExecutionLoggerImpl(mMockClock, mAdServicesLoggerSpy); in setupSelectAdsFromOutcomesApiCalledStatsLogging()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | EncoderLogicHandlerTest.java | 84 @Mock private Clock mMockClock; field in EncoderLogicHandlerTest 159 when(mMockClock.currentTimeMillis()).thenReturn(TEST_JS_DOWNLOAD_END_TIMESTAMP); in testDownloadAndUpdate_skipped() 163 mAdServicesLogger, mMockClock, encodingJsFetchStatsBuilder); in testDownloadAndUpdate_skipped()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiDetailPreferenceController2Test.java | 169 private WifiDetailPreferenceController2.Clock mMockClock; field in WifiDetailPreferenceController2Test 339 mMockClock); in setUpController() 372 mMockClock)); in newSpyWifiDetailPreferenceController2() 552 when(mMockClock.now()).thenReturn(now); in doShouldShowRemainingTimeTest()
|