Home
last modified time | relevance | path

Searched refs:mClock (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DMessageDisplayControllerTest.java56 private Clock mClock; field in MessageDisplayControllerTest
61 mClock, in setup()
70 mClock, HELP_MINIMUM_DISPLAY_TIME, PROGRESS_MINIMUM_DISPLAY_TIME, in setMessageDisplayController()
76 when(mClock.millis()).thenReturn(START_TIME); in showsHelpMessageAfterCollectTime()
79 when(mClock.millis()).thenReturn((long) COLLECT_TIME); in showsHelpMessageAfterCollectTime()
88 when(mClock.millis()).thenReturn(START_TIME); in showsProgressMessageAfterCollectTime()
91 when(mClock.millis()).thenReturn((long) COLLECT_TIME); in showsProgressMessageAfterCollectTime()
100 when(mClock.millis()).thenReturn(START_TIME); in helpDisplayedForMinimumDisplayTime()
103 when(mClock.millis()).thenReturn((long) COLLECT_TIME); in helpDisplayedForMinimumDisplayTime()
112 when(mClock.millis()).thenReturn((long) (HELP_MINIMUM_DISPLAY_TIME + COLLECT_TIME)); in helpDisplayedForMinimumDisplayTime()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeJobManagerTest.java123 @Mock private Clock mClock; field in FederatedComputeJobManagerTest
155 new JobSchedulerHelper(mClock), in setUp()
156 mClock, in setUp()
158 when(mClock.currentTimeMillis()).thenReturn(CURRENT_TIME_MILLIS); in setUp()
184 when(mClock.currentTimeMillis()).thenReturn(1000L).thenReturn(2000L); in testOnTrainerStartCalledSuccess()
204 when(mClock.currentTimeMillis()).thenReturn(1000L).thenReturn(2000L); in testOnTrainerStartCalledFailureDueToFaultyOwnerPackage()
227 when(mClock.currentTimeMillis()).thenReturn(1000L); in testOnTrainerStartCalledFailureDueToTaskLimit()
238 when(mClock.currentTimeMillis()).thenReturn(2000L); in testOnTrainerStartCalledFailureDueToTaskLimit()
269 when(mClock.currentTimeMillis()).thenReturn(1000L); in testOnTrainerStartCalled_firstTime()
272 when(mClock.currentTimeMillis()).thenReturn(2000L); in testOnTrainerStartCalled_firstTime()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java67 private FakeClock mClock; field in ProgramDataManagerTest
72 mClock = FakeClock.createWithCurrentTime(); in setUp()
76 RuntimeEnvironment.application, mClock, TimeUnit.DAYS.toMillis(1)); in setUp()
92 mClock, in setUp()
120 int index = stub.getIndex(mClock.currentTimeMillis(), channelId); in testProgramUtils()
123 assertThat(startTimeMs).isAtMost(mClock.currentTimeMillis()); in testProgramUtils()
124 assertThat(mClock.currentTimeMillis()).isLessThan(startTimeMs + programAt.durationMs); in testProgramUtils()
140 mClock.setCurrentTimeMillis(prefetchTimeRangeStartMs + preventSnapDelayMs); in testGetPrograms()
151 .isLessThan(mClock.currentTimeMillis()); in testGetPrograms()
154 .isGreaterThan(mClock.currentTimeMillis()); in testGetPrograms()
[all …]
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/system/
DCobaltClockTest.java40 private final CobaltClock mClock = new CobaltClock(CURRENT_TIME.toEpochMilli()); field in CobaltClockTest
44 assertThat(mClock.dayIndexUtc()).isEqualTo(DAY_INDEX_UTC); in dayIndexUtc_succeeds()
51 assertThat(mClock.dayIndexLocal()).isEqualTo(DAY_INDEX_UTC - 1); in dayIndexLocal_succeeds()
57 assertThat(mClock.dayIndex("America/Los_Angeles")).isEqualTo(DAY_INDEX_UTC - 1); in dayIndex_mtv_succeeds()
63 assertThat(mClock.dayIndex("Europe/Lisbon")).isEqualTo(DAY_INDEX_UTC); in dayIndex_eu_succeeds()
68 assertThrows(ZoneRulesException.class, () -> mClock.dayIndex("Pacific")); in dayIndex_invalidTimeZone_throwsException()
74 mClock.dayIndex( in dayIndex_metricInUtc_succeeds()
85 mClock.dayIndex( in dayIndex_metricLocal_succeeds()
95 mClock.dayIndex( in dayIndex_metricInMtv_succeeds()
108 mClock.dayIndex( in dayIndex_unrecognizedPolicy_throwsException()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DZoneAudioPlaybackCallbackTest.java98 private SystemClockWrapper mClock; field in ZoneAudioPlaybackCallbackTest
107 when(mClock.uptimeMillis()).thenReturn(TIMER_START_TIME_MS); in setUp()
114 mClock, KEY_EVENT_TIMEOUT_MS)); in createZoneAudioPlaybackCallback_withNullCarAudioZones_fails()
135 new ZoneAudioPlaybackCallback(mPrimaryZone, mCarAudioPlaybackMonitor, mClock, in createZoneAudioPlaybackCallback_withNegativeKeyEventTimeout_fails()
147 mCarAudioPlaybackMonitor, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList()
166 mCarAudioPlaybackMonitor, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext()
185 /* carAudioPlaybackMonitor= */ null, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withNullPlaybackMonitor()
210 mCarAudioPlaybackMonitor, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts()
238 mCarAudioPlaybackMonitor, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext()
255 mCarAudioPlaybackMonitor, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java180 private final Clock mClock = new Clock(); field in WifiInjector
294 WifiAwareMetrics awareMetrics = new WifiAwareMetrics(mClock); in WifiInjector()
295 RttMetrics rttMetrics = new RttMetrics(mClock); in WifiInjector()
299 mWifiP2pMetrics = new WifiP2pMetrics(mClock, mContext); in WifiInjector()
304 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, wifiLooper, in WifiInjector()
315 mWifiChannelUtilizationScan = new WifiChannelUtilization(mClock, mContext); in WifiInjector()
340 mHalDeviceManager = new HalDeviceManager(mContext, mClock, this, wifiHandler); in WifiInjector()
347 mContext, mWifiMonitor, mFrameworkFacade, wifiHandler, mClock, mWifiMetrics, in WifiInjector()
382 mWifiConfigStore = new WifiConfigStore(mClock, mWifiMetrics, in WifiInjector()
388 mClock, in WifiInjector()
[all …]
DNonCarrierMergedNetworksStatusTracker.java33 private final Clock mClock; field in NonCarrierMergedNetworksStatusTracker
42 mClock = clock; in NonCarrierMergedNetworksStatusTracker()
45 WifiConfigManager.SCAN_RESULT_MISSING_COUNT_THRESHOLD, mClock); in NonCarrierMergedNetworksStatusTracker()
62 mDisableStartTimeMs = mClock.getElapsedSinceBootMillis(); in disableAllNonCarrierMergedNetworks()
107 if (mClock.getElapsedSinceBootMillis() - mDisableStartTimeMs >= mMaxDisableDurationMs) { in isNetworkDisabled()
131 return mClock.getElapsedSinceBootMillis() - mDisableStartTimeMs < mMinDisableDurationMs; in shouldDisableAllNonCarrierMergedNetworks()
140 pw.println("dumpTimeMs=" + mClock.getElapsedSinceBootMillis()); in dump()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiChannelUtilizationTest.java53 @Mock private Clock mClock; field in WifiChannelUtilizationTest
66 mWifiChannelUtilization = new WifiChannelUtilization(mClock, mContext); in setUp()
154 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithLargeTimeGap()
164 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithLargeTimeGap()
182 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithSmallTimeGap()
192 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithSmallTimeGap()
210 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsRefWithSecondLast()
220 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsRefWithSecondLast()
230 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsRefWithSecondLast()
253 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsLargeTimeGap()
[all …]
DWifiScoreReportTest.java116 FakeClock mClock; field in WifiScoreReportTest
255 mClock = new FakeClock(); in setUp()
259 mWifiScoreReport = new WifiScoreReport(mScoringParams, mClock, mWifiMetrics, mWifiInfo, in setUp()
616 mClock.mElapsedSinceBootMillis = (long) TEST_LOW_CONNECTED_SCORE_SCAN_PERIOD_SECONDS * 1000;
623 mClock.mElapsedSinceBootMillis =
664 oops += " " + mClock.mWallClockMillis + "," + rssi;
692 oops += " " + mClock.mWallClockMillis + "," + rssi;
767 assertTrue(oops, mClock.mWallClockMillis >= lastAskedMillis + 5000);
768 lastAskedMillis = mClock.mWallClockMillis;
798 assertTrue(oops, mClock.mWallClockMillis >= lastAskedMillis + 5000); in askForMoreNudChecksWhenNudKnobIsBigger()
[all …]
DSelfRecoveryTest.java59 @Mock Clock mClock; field in SelfRecoveryTest
75 mSelfRecovery = new SelfRecovery(mContext, mActiveModeWarden, mClock, mWifiNative, in setUp()
105 when(mClock.getElapsedSinceBootMillis()) in testValidTriggerReasonsSendMessageToWifiController()
142 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in testTimeWindowLimiting_typicalUse()
193 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
204 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
219 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in testTimeWindowLimiting_NativeFailureOff()
340 when(mClock.getWallClockMillis()).thenReturn(10000L); in testSelfRecoveryTriggeredMetrics()
347 when(mClock.getWallClockMillis()).thenReturn(20000L); in testSelfRecoveryTriggeredMetrics()
355 when(mClock.getWallClockMillis()).thenReturn(40000L); in testSelfRecoveryTriggeredMetrics()
[all …]
DWifiBlocklistMonitorTest.java141 @Mock private Clock mClock; field in WifiBlocklistMonitorTest
259 mWifiLastResortWatchdog, mClock, mLocalLog, mWifiScoreCard, mScoringParams, in setup()
279 when(mClock.getWallClockMillis()).thenReturn(0L); in verifyAddMultipleBssidsToBlocklist()
285 when(mClock.getWallClockMillis()).thenReturn(1L); in verifyAddMultipleBssidsToBlocklist()
332 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION); in testBssidIsRemovedFromBlocklistAfterTimeout()
338 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION + 1); in testBssidIsRemovedFromBlocklistAfterTimeout()
349 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION + 1); in testBssidRemovalUpdatesFirmwareConfiguration()
363 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION + 1); in testBssidRemovalNotUpdateFirmwareConfiguration()
459 when(mClock.getWallClockMillis()).thenReturn(0L); in testBssidIsRemoveFromBlocklistAfterTimeoutExponentialBackoff()
465 when(mClock.getWallClockMillis()).thenReturn(duration); in testBssidIsRemoveFromBlocklistAfterTimeoutExponentialBackoff()
[all …]
DVelocityBasedConnectedScoreTest.java55 FakeClock mClock; field in VelocityBasedConnectedScoreTest
91 mClock = new FakeClock(); in setUp()
93 new ScoringParams(mContext), mClock); in setUp()
123 mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
129 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
149 mClock.getWallClockMillis());
DWifiDataStallTest.java71 @Mock Clock mClock; field in WifiDataStallTest
148 mDeviceConfigFacade, mWifiChannelUtilization, mClock, mHandler, in setUp()
312 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallTxFailureInternal()
318 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallTxFailureInternal()
370 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallTxFailureWhenTxTputIsHigh()
377 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallTxFailureWhenTxTputIsHigh()
396 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallWhenTxFailureIsNotConsecutive()
404 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallWhenTxFailureIsNotConsecutive()
427 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallRxFailure()
432 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallRxFailure()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DTimedQuotaManagerTest.java43 @Mock private Clock mClock; field in TimedQuotaManagerTest
48 when(mClock.getElapsedSinceBootMillis()).thenReturn(100000000L); in setUp()
58 TimedQuotaManager qm = new TimedQuotaManager(mClock, 10, DAY_MILLIS); in exhaustQuota_newDay_exhaustQuotaAgain()
67 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_newDay_exhaustQuotaAgain()
68 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS + 1000); in exhaustQuota_newDay_exhaustQuotaAgain()
85 TimedQuotaManager qm = new TimedQuotaManager(mClock, 10, DAY_MILLIS); in exhaustQuota_sameDay_stillExhausted()
94 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_sameDay_stillExhausted()
95 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS - 1000); in exhaustQuota_sameDay_stillExhausted()
DMissingCounterTimerLockListTest.java45 @Mock Clock mClock; field in MissingCounterTimerLockListTest
51 new MissingCounterTimerLockList<>(TEST_MISSING_COUNT, mClock); in setUp()
75 when(mClock.getWallClockMillis()).thenReturn((long) 0); in testUpdateAndTimer()
82 when(mClock.getWallClockMillis()).thenReturn(BLOCKING_DURATION + 50); in testUpdateAndTimer()
91 when(mClock.getWallClockMillis()).thenReturn((long) 0); in testMaxDisableDurationTimer()
97 when(mClock.getWallClockMillis()).thenReturn(MAX_DISABLE_DURATION); in testMaxDisableDurationTimer()
102 when(mClock.getWallClockMillis()).thenReturn(MAX_DISABLE_DURATION + 1); in testMaxDisableDurationTimer()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProvider.java100 private Clock mClock; field in BatteryUsageContentProvider
108 this.mClock = clock; in setClock()
117 mClock = Clock.systemUTC(); in onCreate()
206 final long timestamp = mClock.millis(); in getLastFullChargeTimestamp()
216 "getLastFullChargeTimestamp() in %d/ms", mClock.millis() - timestamp)); in getLastFullChargeTimestamp()
222 final long timestamp = mClock.millis(); in getBatteryStateLatestTimestamp()
233 queryTimestamp, mClock.millis() - timestamp)); in getBatteryStateLatestTimestamp()
239 final long timestamp = mClock.millis(); in getBatteryStates()
250 queryTimestamp, mClock.millis() - timestamp)); in getBatteryStates()
260 final long timestamp = mClock.millis(); in getAppUsageEvents()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/util/
DTrainingConditionsCheckerTest.java54 @Mock private Clock mClock; field in TrainingConditionsCheckerTest
63 new TrainingConditionsChecker(mBatteryInfo, mPowerManager, mFlags, mClock); in setUp()
68 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_allConditionsOk()
80 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_allTrainingConditionsNotOk()
94 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_memoryConditionNotOk()
107 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_batteryNotOk()
119 when(mClock.currentTimeMillis()).thenReturn(1000L, 1100L, 2100L); in testCheckAllFlConditions_throttled()
144 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_thermallyThrottled_conditionsReported()
158 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_thermallyThrottledAtThreshold_conditionsReported()
171 when(mClock.currentTimeMillis()).thenReturn(1000L); in testCheckAllConditionsForFlTraining_notThermallyThrottled_conditionsNotReported()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpCache.java39 private Clock mClock; field in AnqpCache
44 mClock = clock; in AnqpCache()
46 mLastSweep = mClock.getElapsedSinceBootMillis(); in AnqpCache()
57 ANQPData data = new ANQPData(mClock, anqpElements); in addEntry()
93 long now = mClock.getElapsedSinceBootMillis(); in sweep()
115 out.println("Last sweep " + Utils.toHMS(mClock.getElapsedSinceBootMillis() - mLastSweep) in dump()
127 mLastSweep = mClock.getElapsedSinceBootMillis(); in flush()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DApiServiceLatencyCalculator.java44 private final Clock mClock; field in ApiServiceLatencyCalculator
48 mClock = clock; in ApiServiceLatencyCalculator()
49 mStartElapsedTimestamp = mClock.elapsedRealtime(); in ApiServiceLatencyCalculator()
66 mStopElapsedTimestamp = mClock.elapsedRealtime(); in stop()
84 return mClock.elapsedRealtime(); in getServiceElapsedTimestamp()
DSelectAdsFromOutcomesExecutionLoggerImpl.java58 private final Clock mClock; field in SelectAdsFromOutcomesExecutionLoggerImpl
65 mClock = clock; in SelectAdsFromOutcomesExecutionLoggerImpl()
78 mDownloadScriptStartTimestamp = mClock.elapsedRealtime(); in startDownloadScriptTimestamp()
97 mDownloadScriptEndTimestamp = mClock.elapsedRealtime(); in endDownloadScriptTimestamp()
105 mExecutionScriptStartTimestamp = mClock.elapsedRealtime(); in startExecutionScriptTimestamp()
125 mExecutionScriptEndTimestamp = mClock.elapsedRealtime(); in endExecutionScriptTimestamp()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialogTest.java36 @Mock private StorageManagerUpsellDialog.Clock mClock; field in StorageManagerUpsellDialogTest
43 fragment.setClock(mClock); in testNoThanksMaximumShownTimes()
50 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 2)); in testNoThanksMaximumShownTimes()
56 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 3)); in testNoThanksMaximumShownTimes()
62 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 4)); in testNoThanksMaximumShownTimes()
68 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 5)); in testNoThanksMaximumShownTimes()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMissingCounterTimerLockList.java35 private final Clock mClock; field in MissingCounterTimerLockList
45 mClock = clock; in MissingCounterTimerLockList()
128 mStartTimeStamp = mClock.getWallClockMillis(); in LockListEntry()
138 mStartTimeStamp = mClock.getWallClockMillis(); in onPresent()
151 mStartTimeStamp = mClock.getWallClockMillis(); in onAbsent()
155 long curTimeMs = mClock.getWallClockMillis(); in isExpired()
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DDynamicAnimator.java35 private final AnimationClock mClock; field in DynamicAnimator
44 mClock = clock; in DynamicAnimator()
51 mDrawTimeMillis = mClock.getTimeMillis(); in draw()
90 mLastDrawTimeMillis = mClock.getTimeMillis(); in invalidate()
114 return mClock.getTimeMillis(); in getTimeMillis()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPDataTest.java59 @Mock Clock mClock; field in ANQPDataTest
74 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp()
84 ANQPData data = new ANQPData(mClock, null); in createWithNullElements()
96 ANQPData data = new ANQPData(mClock, null); in verifyExpiration()
125 ANQPData data = new ANQPData(mClock, anqpList1); in createWithElementsAndUpdate()
176 when(mClock.getElapsedSinceBootMillis()).thenReturn(10000L); in testDataLifetime()
179 ANQPData data = new ANQPData(mClock, anqpList); in testDataLifetime()
191 data = new ANQPData(mClock, anqpList); in testDataLifetime()
204 data = new ANQPData(mClock, anqpList); in testDataLifetime()
218 data = new ANQPData(mClock, anqpList); in testDataLifetime()
DANQPRequestManagerTest.java109 Clock mClock; field in ANQPRequestManagerTest
130 mManager = new ANQPRequestManager(mHandler, mClock, mWifiInjector, in setUp()
205 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure()
213 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure()
230 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSucceeded()
241 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestSucceeded()
259 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestFailed()
270 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestFailed()
277 when(mClock.getElapsedSinceBootMillis()) in requestANQPElementsAfterRequestFailed()
296 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries()
[all …]

12345678910>>...12