Home
last modified time | relevance | path

Searched refs:getWallClockMillis (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiBlocklistMonitorTest.java196 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()
381 when(mClock.getWallClockMillis()).thenReturn(duration + 1); in testBssidIsRemoveFromBlocklistAfterTimoutExponentialBackoff()
390 when(mClock.getWallClockMillis()).thenReturn(0L); in testBssidIsRemoveFromBlocklistAfterTimoutExponentialBackoff()
[all …]
DVelocityBasedConnectedScoreTest.java49 public long getWallClockMillis() { in getWallClockMillis() method in VelocityBasedConnectedScoreTest.FakeClock
122 mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
128 mVelocityBasedConnectedScore.updateUsingWifiInfo(mWifiInfo, mClock.getWallClockMillis()); in allowLowRssiIfErrorRateIsLowAndSomeDataIsMoving()
148 mClock.getWallClockMillis());
DScanDetailCacheTest.java98 when(mClock.getWallClockMillis()).thenReturn(millis); in setClockTime()
108 frequency, mClock.getUptimeSinceBootMillis(), mClock.getWallClockMillis()); in createScanDetailForNetwork()
DWifiConfigManagerTest.java2359 when(mClock.getWallClockMillis()).thenReturn(TEST_WALLCLOCK_CREATION_TIME_MILLIS in testEnhancedMacRandomizationEvery24Hours()
2369 when(mClock.getWallClockMillis()).thenReturn(timeAfter24Hours); in testEnhancedMacRandomizationEvery24Hours()
2394 when(mClock.getWallClockMillis()).thenReturn(TEST_WALLCLOCK_CREATION_TIME_MILLIS in testRandomizedMacUpdateAndRestore()
2428 when(mClock.getWallClockMillis()).thenReturn(0L); in testUpdateRandomizedMacExpireTime()
2460 when(mClock.getWallClockMillis()).thenReturn(0L); in testRandomizedMacExpirationTimeUpdatedAtDisconnect()
2479 when(mClock.getWallClockMillis()).thenReturn(5000L); in testRandomizedMacExpirationTimeUpdatedAtDisconnect()
2502 when(mClock.getWallClockMillis()).thenReturn(TEST_WALLCLOCK_CREATION_TIME_MILLIS in testRandomizedMacIsNotUpdatedDueToTimeConstraint()
3065 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
5055 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
5061 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
[all …]
DWifiHealthMonitorTest.java139 when(mClock.getWallClockMillis()).thenReturn(mMilliSecondsSinceBoot + 1_500_000_000_000L); in millisecondsPass()
479 when(mClock.getWallClockMillis()).thenReturn(currentWallClockTimeMs); in testTimerMultiDayRun()
519 when(mClock.getWallClockMillis()).thenReturn(currentWallClockTimeMs); in testTimerWith()
DNonCarrierMergedNetworksStatusTrackerTest.java55 when(mClock.getWallClockMillis()).thenReturn(millis); in setClockTime()
DWifiDiagnosticsTest.java940 when(mClock.getWallClockMillis()).thenReturn(10L);
944 when(mClock.getWallClockMillis()).thenReturn(BUG_REPORT_MIN_WINDOW_MS - 20L);
DOpenNetworkNotifierTest.java452 when(mClock.getWallClockMillis()).thenReturn(DEFAULT_REPEAT_DELAY_SEC * 1000L * 2); in delaySet_delayPassed_shouldPostNotification()
DClientModeImplTest.java2967 when(mClock.getWallClockMillis()).thenReturn(startMillis + 0); in verifyConnectedModeRssiPolling()
2971 when(mClock.getWallClockMillis()).thenReturn(startMillis + 3333); in verifyConnectedModeRssiPolling()
3018 when(mClock.getWallClockMillis()).thenReturn(startMillis + 0); in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
3023 when(mClock.getWallClockMillis()).thenReturn(startMillis + 3333); in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
3036 when(mClock.getWallClockMillis()).thenReturn(startMillis + 3333); in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
DWifiScoreReportTest.java82 public long getWallClockMillis() { in getWallClockMillis() method in WifiScoreReportTest.FakeClock
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMissingCounterTimerLockListTest.java75 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/util/
DMissingCounterTimerLockList.java128 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/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java133 long millis = mClock.getWallClockMillis(); in notifyScoreUpdate()
338 long millis = mClock.getWallClockMillis(); in reportNetworkScoreToConnectivityServiceIfNecessary()
551 long millis = mClock.getWallClockMillis(); in calculateAndReportScore()
680 long millis = mClock.getWallClockMillis(); in shouldCheckIpLayer()
727 long millis = mClock.getWallClockMillis(); in noteIpCheck()
928 long millis = mClock.getWallClockMillis(); in stopConnectedNetworkScorer()
DWifiBlocklistMonitor.java323 && status.blocklistEndTimeMs - mClock.getWallClockMillis() > durationMs) { in blockBssidForDurationMs()
434 if (mClock.getWallClockMillis() - connectionTime in handleBssidConnectionFailure()
472 long connectionTime = mClock.getWallClockMillis(); in handleBssidConnectionSuccess()
680 long curTime = mClock.getWallClockMillis(); in updateAndGetBssidBlocklistInternal()
797 calendar.setTimeInMillis(mClock.getWallClockMillis()); in createStringBuilderWithLogTime()
861 blocklistStartTimeMs = mClock.getWallClockMillis(); in setAsBlocked()
DAvailableNetworkNotifier.java294 && mClock.getWallClockMillis() < mNotificationRepeatTime) { in handleScanResults()
417 mNotificationRepeatTime = mClock.getWallClockMillis() + mNotificationRepeatDelay; in postInitialNotification()
540 pw.println("currentTime: " + mClock.getWallClockMillis()); in dump()
DWifiConfigManager.java548 internalConfig.randomizedMacExpirationTimeMs = mClock.getWallClockMillis() in updateRandomizedMacExpireTime()
554 config.randomizedMacLastModifiedTimeMs = mClock.getWallClockMillis(); in setRandomizedMacAddress()
582 < mClock.getWallClockMillis() || mClock.getWallClockMillis() in updateRandomizedMacIfNeeded()
1194 newInternalConfig.lastUpdated = mClock.getWallClockMillis(); in createNewInternalWifiConfigurationFromExternal()
1221 newInternalConfig.lastUpdated = mClock.getWallClockMillis(); in updateExistingInternalWifiConfigurationFromExternal()
2055 config.lastConnected = mClock.getWallClockMillis(); in updateNetworkAfterConnect()
2094 config.lastDisconnected = mClock.getWallClockMillis(); in updateNetworkAfterDisconnect()
2791 if (mClock.getWallClockMillis() - scanResult.seen in startRestrictingAutoJoinToSubscriptionId()
3532 long nowInMillis = mClock.getWallClockMillis(); in findScanRssi()
3657 long timeNowMs = mClock.getWallClockMillis();
DClock.java34 public long getWallClockMillis() { in getWallClockMillis() method in Clock
DConnectedScore.java64 return mClock.getWallClockMillis(); in getMillis()
DWifiHealthMonitor.java282 scanStats.setLastScanTimeMs(mClock.getWallClockMillis()); in handleScanResults()
300 long currTimeMs = mClock.getWallClockMillis(); in setFirstHealthDetectionAlarm()
339 boolean isRecentlyConnected = (mClock.getWallClockMillis() - network.lastConnected) in dump()
DWifiDiagnostics.java364 long currentTime = mClock.getWallClockMillis(); in takeBugReport()
677 long currentTime = mClock.getWallClockMillis(); in flushDump()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMetrics.java335 mCurrentConnectionEvent.startTimeMillis = mClock.getWallClockMillis(); in startConnectionEvent()
399 mCurrentGroupEvent.startTimeMillis = mClock.getWallClockMillis(); in startGroupEvent()
/packages/modules/StatsD/statsd/src/
Dstats_log_util.h71 int64_t getWallClockMillis();
Dstats_log_util.cpp577 int64_t getWallClockMillis() { in getWallClockMillis() function
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java833 mLastRequestTimestamp = mClock.getWallClockMillis(); in startRanging()
1071 (int) (mClock.getWallClockMillis() - mLastRequestTimestamp)); in onRangingResults()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java270 doAnswer(clock).when(mockClock).getWallClockMillis(); in testRangingFlow()
337 doAnswer(clock).when(mockClock).getWallClockMillis(); in testRangingFlowUsingAwarePeerHandles()

12