Home
last modified time | relevance | path

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

123456

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DLinkProbeManagerTest.java63 @Mock private Clock mClock; field in LinkProbeManagerTest
85 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in setUp()
93 mLinkProbeManager = new LinkProbeManager(mClock, mWifiNative, mWifiMetrics, in initLinkProbeManager()
106 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndAcked()
123 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndAcked()
151 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndFailed()
167 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndFailed()
194 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredTooFrequently()
209 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded()
217 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded()
[all …]
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.java94 FakeClock mClock; field in WifiScoreReportTest
203 mClock = new FakeClock(); in setUp()
207 mWifiScoreReport = new WifiScoreReport(mScoringParams, mClock, mWifiMetrics, mWifiInfo, in setUp()
528 oops += " " + mClock.mWallClockMillis + "," + rssi;
555 oops += " " + mClock.mWallClockMillis + "," + rssi; in stayOnIfRssiDoesNotGetBelowEntryThreshold()
628 assertTrue(oops, mClock.mWallClockMillis >= lastAskedMillis + 5000);
629 lastAskedMillis = mClock.mWallClockMillis;
656 assertTrue(oops, mClock.mWallClockMillis >= lastAskedMillis + 5000); in askForMoreNudChecksWhenNudKnobIsBigger()
657 lastAskedMillis = mClock.mWallClockMillis; in askForMoreNudChecksWhenNudKnobIsBigger()
1019 mClock.mStepMillis = 0; in askForNudCheckWhenExternalScoreBreaches()
[all …]
DWifiBlocklistMonitorTest.java93 @Mock private Clock mClock; field in WifiBlocklistMonitorTest
183 mWifiLastResortWatchdog, mClock, mLocalLog, mWifiScoreCard, mScoringParams, in setup()
196 when(mClock.getWallClockMillis()).thenReturn(0L); in verifyAddMultipleBssidsToBlocklist()
200 when(mClock.getWallClockMillis()).thenReturn(1L); in verifyAddMultipleBssidsToBlocklist()
246 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION); in testBssidIsRemovedFromBlocklistAfterTimeout()
252 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION + 1); in testBssidIsRemovedFromBlocklistAfterTimeout()
263 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION + 1); in testBssidRemovalUpdatesFirmwareConfiguration()
277 when(mClock.getWallClockMillis()).thenReturn(BASE_BLOCKLIST_DURATION + 1); in testBssidRemovalNotUpdateFirmwareConfiguration()
373 when(mClock.getWallClockMillis()).thenReturn(0L); in testBssidIsRemoveFromBlocklistAfterTimoutExponentialBackoff()
379 when(mClock.getWallClockMillis()).thenReturn(duration); in testBssidIsRemoveFromBlocklistAfterTimoutExponentialBackoff()
[all …]
DWifiDataStallTest.java72 @Mock Clock mClock; field in WifiDataStallTest
147 mDeviceConfigFacade, mWifiChannelUtilization, mClock, mHandler, in setUp()
311 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallTxFailureInternal()
317 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallTxFailureInternal()
369 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallTxFailureWhenTxTputIsHigh()
376 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallTxFailureWhenTxTputIsHigh()
394 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallWhenTxFailureIsNotConsecutive()
402 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallWhenTxFailureIsNotConsecutive()
421 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallRxFailure()
426 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallRxFailure()
[all …]
DScanRequestProxyTest.java92 @Mock private Clock mClock; field in ScanRequestProxyTest
159 mWifiConfigManager, mWifiPermissionsUtil, mWifiMetrics, mClock, in setUp()
178 when(mClock.getElapsedSinceBootMillis()).thenReturn(782L); in enableScanning()
628 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testForegroundScanForPackageInExceptionListNotThrottled()
630 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testForegroundScanForPackageInExceptionListNotThrottled()
653 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameFgAppThrottled()
655 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameFgAppThrottled()
677 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
679 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
684 when(mClock.getElapsedSinceBootMillis()).thenReturn(lastRequestMs); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
[all …]
DWifiNetworkSelectorTest.java106 mWifiConfigManager, mClock, in setUp()
117 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
279 @Mock private Clock mClock; field in WifiNetworkSelectorTest
371 freqs, caps, levels, securities, mWifiConfigManager, mClock); in emptyScanResults()
404 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumRssiThreshold()
438 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumTimeGapWhenConnected()
447 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime() in verifyMinimumTimeGapWhenConnected()
486 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyNoMinimumTimeGapWhenDisconnected()
497 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime() in verifyNoMinimumTimeGapWhenDisconnected()
534 freqs, caps, levels, securities, mWifiConfigManager, mClock); in lowRssi5GNetworkIsNotSufficient()
[all …]
DWifiConnectivityManagerTest.java181 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
246 @Mock private Clock mClock; field in WifiConnectivityManagerTest
476 mWifiMetrics, new Handler(mLooper.getLooper()), mClock, in createConnectivityManager()
1186 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
1195 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
1227 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff()
1236 when(mClock.getElapsedSinceBootMillis()).thenReturn( in connectionAttemptNotRateLimitedWhenScreenOff()
1270 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffForceConnectivityScan()
1282 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffForceConnectivityScan()
1315 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
[all …]
DScoredNetworkNominatorTest.java75 @Mock private Clock mClock; field in ScoredNetworkNominatorTest
132 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
154 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled()
178 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList()
196 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored()
223 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored()
271 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResults()
294 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException()
317 ssids, bssids, freqs, caps, levels, mClock); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
353 ssids, bssids, freqs, caps, levels, mClock); in testEvaluateNetworks_noEphemeralNetworkWhenUntrustedNetworksNotAllowed()
[all …]
DVelocityBasedConnectedScoreTest.java55 FakeClock mClock; field in VelocityBasedConnectedScoreTest
91 mClock = new FakeClock(); in setUp()
93 new ScoringParams(mContext), mClock); in setUp()
122 mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
128 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
148 mClock.getWallClockMillis());
/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/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPlaybackCallbackTest.java67 private SystemClockWrapper mClock; field in CarAudioPlaybackCallbackTest
74 when(mClock.uptimeMillis()).thenReturn(TIMER_START_TIME_MS); in setUp()
80 new CarAudioPlaybackCallback(null, mClock, KEY_EVENT_TIMEOUT_MS); in createCarAudioPlaybackCallback_withNullCarAudioZones_fails()
95 new CarAudioPlaybackCallback(mPrimaryZone, mClock, -KEY_EVENT_TIMEOUT_MS); in createCarAudioPlaybackCallback_withNegativeKeyEventTimeout_fails()
103 new CarAudioPlaybackCallback(mPrimaryZone, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withNoOnPlaybackConfigChanged_returnsEmptyList()
122 new CarAudioPlaybackCallback(mPrimaryZone, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withOneMatchingConfiguration_returnsActiveContext()
147 new CarAudioPlaybackCallback(mPrimaryZone, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withMultipleConfiguration_returnsActiveContexts()
173 new CarAudioPlaybackCallback(mPrimaryZone, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withInactiveConfigurations_returnsActiveContext()
200 new CarAudioPlaybackCallback(mPrimaryZone, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withNoActiveConfigurations_returnsEmptyContexts()
237 new CarAudioPlaybackCallback(mPrimaryZone, mClock, KEY_EVENT_TIMEOUT_MS); in getAllActiveContextsForPrimaryZone_withInactiveConfig_beforeTimeout_returnsContexts()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java160 private final Clock mClock = new Clock(); field in WifiInjector
262 mWifiChannelUtilizationScan = new WifiChannelUtilization(mClock, mContext); in WifiInjector()
285 WifiAwareMetrics awareMetrics = new WifiAwareMetrics(mClock); in WifiInjector()
286 RttMetrics rttMetrics = new RttMetrics(mClock); in WifiInjector()
287 mWifiP2pMetrics = new WifiP2pMetrics(mClock); in WifiInjector()
290 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, wifiLooper, in WifiInjector()
298 mHalDeviceManager = new HalDeviceManager(mClock, this, wifiHandler); in WifiInjector()
301 mContext, mWifiMonitor, mFrameworkFacade, wifiHandler, mClock, mWifiMetrics, in WifiInjector()
336 mWifiConfigStore = new WifiConfigStore(mContext, wifiHandler, mClock, mWifiMetrics, in WifiInjector()
340 mWifiConfigStore, wifiHandler, mWifiMetrics, mClock); in WifiInjector()
[all …]
DLinkProbeManager.java67 private final Clock mClock; field in LinkProbeManager
107 mClock = clock; in LinkProbeManager()
155 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection()
169 mLastScreenOnTimestampMs = mClock.getElapsedSinceBootMillis(); in resetOnScreenTurnedOn()
184 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
255 mLastLinkProbeTimestampMs = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
262 Experiment experiment = new Experiment(mClock, mWifiMetrics, in initExperiments()
273 private final Clock mClock; field in LinkProbeManager.Experiment
290 mClock = clock; in Experiment()
313 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection()
[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/hotspot2/
DANQPRequestManagerTest.java99 Clock mClock; field in ANQPRequestManagerTest
108 mManager = new ANQPRequestManager(mHandler, mClock); in setUp()
178 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsWithPendingRequest()
185 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsWithPendingRequest()
193 when(mClock.getElapsedSinceBootMillis()) in requestANQPElementsWithPendingRequest()
210 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure()
217 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure()
233 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSucceeded()
243 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestSucceeded()
260 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestFailed()
[all …]
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()
/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/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMetrics.java48 private Clock mClock; field in WifiP2pMetrics
105 mClock = clock; in WifiP2pMetrics()
332 mCurrentConnectionEventStartTime = mClock.getElapsedSinceBootMillis(); in startConnectionEvent()
335 mCurrentConnectionEvent.startTimeMillis = mClock.getWallClockMillis(); in startConnectionEvent()
362 (mClock.getElapsedSinceBootMillis() in endConnectionEvent()
390 mCurrentGroupEventStartTime = mClock.getElapsedSinceBootMillis(); in startGroupEvent()
392 mCurrentGroupEventIdleStartTime = mClock.getElapsedSinceBootMillis(); in startGroupEvent()
399 mCurrentGroupEvent.startTimeMillis = mClock.getWallClockMillis(); in startGroupEvent()
441 (mClock.getElapsedSinceBootMillis() in updateGroupEvent()
447 mCurrentGroupEventIdleStartTime = mClock.getElapsedSinceBootMillis(); in updateGroupEvent()
[all …]
/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/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java61 @Mock Clock mClock; field in WifiAwareMetricsTest
109 mDut = new WifiAwareMetrics(mClock); in setUp()
246 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
252 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
258 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
264 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
280 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
334 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
340 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
346 true, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
[all …]
/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/Car/Calendar/src/com/android/car/calendar/
DCarCalendarActivity.java75 mDependencies.mClock)) in onCreate()
87 mDependencies.mClock)); in onCreate()
152 private final Clock mClock; field in CarCalendarActivity.CarCalendarViewModelFactory
162 mClock = clock; in CarCalendarViewModelFactory()
169 return (T) new CarCalendarViewModel(mResolver, mLocale, mTelephonyManager, mClock); in create()
175 private final Clock mClock; field in CarCalendarActivity.Dependencies
185 mClock = clock; in Dependencies()

123456