Home
last modified time | relevance | path

Searched refs:getElapsedSinceBootMillis (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DLinkProbeManagerTest.java86 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in setUp()
113 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndAcked()
130 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndAcked()
157 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndFailed()
173 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeTriggeredAndFailed()
200 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredTooFrequently()
215 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded()
223 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded()
236 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded()
248 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenScreenJustTurnedOn()
[all …]
DScanRequestProxyTest.java519 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameFgAppThrottled()
521 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameFgAppThrottled()
545 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
547 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
555 when(mClock.getElapsedSinceBootMillis()).thenReturn(lastRequestMs); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
573 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
575 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
596 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameAppWithNetworkSetupWizardPermissionNotThrottled()
598 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameAppWithNetworkSetupWizardPermissionNotThrottled()
629 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameAppWhenThrottlingIsDisabledNotThrottled()
[all …]
DSelfRecoveryTest.java53 when(mClock.getElapsedSinceBootMillis()) in testValidTriggerReasonsSendMessageToWifiController()
89 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in testTimeWindowLimiting_typicalUse()
135 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
141 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
DWifiConnectivityManagerTest.java103 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
456 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
464 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
495 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff()
503 when(mClock.getElapsedSinceBootMillis()).thenReturn( in connectionAttemptNotRateLimitedWhenScreenOff()
535 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
547 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
908 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected()
916 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected()
929 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected()
[all …]
DWakeupLockTest.java62 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp()
124 when(mClock.getElapsedSinceBootMillis()) in verifyInitializingLockByTimeout()
281 when(mClock.getElapsedSinceBootMillis()) in unlockingShouldRecordEventInMetrics()
293 when(mClock.getElapsedSinceBootMillis()) in setLockAndInitializeByTimeout()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPRequestManagerTest.java165 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsWithPendingRequest()
171 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsWithPendingRequest()
178 when(mClock.getElapsedSinceBootMillis()) in requestANQPElementsWithPendingRequest()
194 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure()
200 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure()
215 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSucceeded()
224 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestSucceeded()
240 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestFailed()
249 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestFailed()
255 when(mClock.getElapsedSinceBootMillis()) in requestANQPElementsAfterRequestFailed()
[all …]
DAnqpCacheTest.java55 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp()
92 when(mClock.getElapsedSinceBootMillis()) in sweepRemoveExpiredEntry()
98 when(mClock.getElapsedSinceBootMillis()).thenReturn(ANQPData.DATA_LIFETIME_MILLISECONDS); in sweepRemoveExpiredEntry()
DANQPDataTest.java53 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DTimedQuotaManagerTest.java47 when(mClock.getElapsedSinceBootMillis()).thenReturn(100000000L); in setUp()
66 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_newDay_exhaustQuotaAgain()
67 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS + 1000); in exhaustQuota_newDay_exhaustQuotaAgain()
93 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_sameDay_stillExhausted()
94 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS - 1000); in exhaustQuota_sameDay_stillExhausted()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DLinkProbeManager.java168 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection()
182 mLastScreenOnTimestampMs = mClock.getElapsedSinceBootMillis(); in resetOnScreenTurnedOn()
197 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
272 mLastLinkProbeTimestampMs = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
330 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection()
337 mLastScreenOnTimestampMs = mClock.getElapsedSinceBootMillis(); in resetOnScreenTurnedOn()
341 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
374 mLastLinkProbeTimestampMs = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
DSelfRecovery.java94 mPastRestartTimes.add(mClock.getElapsedSinceBootMillis()); in trigger()
104 long now = mClock.getElapsedSinceBootMillis(); in trimPastRestartTimes()
DWifiConfigStore.java430 mClock.getElapsedSinceBootMillis() + BUFFERED_WRITE_ALARM_INTERVAL_MS, in startBufferedWriteAlarm()
453 long writeStartTime = mClock.getElapsedSinceBootMillis(); in writeBufferedData()
460 long writeTime = mClock.getElapsedSinceBootMillis() - writeStartTime; in writeBufferedData()
483 long readStartTime = mClock.getElapsedSinceBootMillis(); in read()
492 long readTime = mClock.getElapsedSinceBootMillis() - readStartTime; in read()
522 long readStartTime = mClock.getElapsedSinceBootMillis(); in switchUserStoresAndRead()
527 long readTime = mClock.getElapsedSinceBootMillis() - readStartTime; in switchUserStoresAndRead()
DWifiLockManager.java537 mClock.getElapsedSinceBootMillis() - wifiLock.getAcqTimestamp()); in releaseLock()
549 mClock.getElapsedSinceBootMillis() - wifiLock.getAcqTimestamp()); in releaseLock()
582 mClock.getElapsedSinceBootMillis() - mCurrentSessionStartTimeMs); in updateOpMode()
591 mClock.getElapsedSinceBootMillis() - mCurrentSessionStartTimeMs); in updateOpMode()
610 mCurrentSessionStartTimeMs = mClock.getElapsedSinceBootMillis(); in updateOpMode()
618 mCurrentSessionStartTimeMs = mClock.getElapsedSinceBootMillis(); in updateOpMode()
800 mAcqTimestamp = mClock.getElapsedSinceBootMillis(); in WifiLock()
DDppManager.java248 mDppRequestInfo.startTime = mClock.getElapsedSinceBootMillis(); in startDppAsConfiguratorInitiator()
328 mDppRequestInfo.startTime = mClock.getElapsedSinceBootMillis(); in startDppAsEnrolleeInitiator()
437 long now = mClock.getElapsedSinceBootMillis(); in onSuccessConfigReceived()
474 long now = mClock.getElapsedSinceBootMillis(); in onSuccessConfigSent()
534 long now = mClock.getElapsedSinceBootMillis(); in onFailure()
DClock.java39 public long getElapsedSinceBootMillis() { in getElapsedSinceBootMillis() method in Clock
DWifiConnectivityManager.java735 long elapsedTimeMillis = mClock.getElapsedSinceBootMillis(); in connectToNetwork()
837 long currentTimeStamp = mClock.getElapsedSinceBootMillis(); in startPeriodicSingleScan()
1050 mClock.getElapsedSinceBootMillis() + WATCHDOG_INTERVAL_MS, in scheduleWatchdogTimer()
1058 mClock.getElapsedSinceBootMillis() + intervalMs, in schedulePeriodicScanTimer()
1079 mClock.getElapsedSinceBootMillis() + RESTART_SCAN_DELAY_MS, in scheduleDelayedSingleScan()
1089 mClock.getElapsedSinceBootMillis() + msFromNow, in scheduleDelayedConnectivityScan()
1310 status.blacklistedTimeStamp = mClock.getElapsedSinceBootMillis(); in updateBssidBlacklist()
1427 Long currentTimeStamp = mClock.getElapsedSinceBootMillis(); in refreshBssidBlacklist()
DWakeupLock.java71 mLockTimestamp = mClock.getElapsedSinceBootMillis(); in setLock()
238 maybeSetInitializedByTimeout(mClock.getElapsedSinceBootMillis()); in update()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMetrics.java332 mCurrentConnectionEventStartTime = mClock.getElapsedSinceBootMillis(); in startConnectionEvent()
362 (mClock.getElapsedSinceBootMillis() in endConnectionEvent()
390 mCurrentGroupEventStartTime = mClock.getElapsedSinceBootMillis(); in startGroupEvent()
392 mCurrentGroupEventIdleStartTime = mClock.getElapsedSinceBootMillis(); in startGroupEvent()
441 (mClock.getElapsedSinceBootMillis() in updateGroupEvent()
447 mCurrentGroupEventIdleStartTime = mClock.getElapsedSinceBootMillis(); in updateGroupEvent()
460 (mClock.getElapsedSinceBootMillis() in endGroupEvent()
464 (mClock.getElapsedSinceBootMillis() in endGroupEvent()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java242 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
248 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
254 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
260 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
276 mClock.getElapsedSinceBootMillis(), mWifiPermissionsUtil)); in testAttachSessionMetrics()
321 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
327 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
333 true, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
339 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
345 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpCache.java46 mLastSweep = mClock.getElapsedSinceBootMillis(); in AnqpCache()
75 long now = mClock.getElapsedSinceBootMillis(); in sweep()
97 out.println("Last sweep " + Utils.toHMS(mClock.getElapsedSinceBootMillis() - mLastSweep) in dump()
DANQPData.java48 mExpiryTime = mClock.getElapsedSinceBootMillis() + DATA_LIFETIME_MILLISECONDS; in ANQPData()
74 long now = mClock.getElapsedSinceBootMillis(); in toString()
DANQPRequestManager.java161 long currentTime = mClock.getElapsedSinceBootMillis(); in canSendRequestNow()
183 info.holdOffExpirationTime = mClock.getElapsedSinceBootMillis() in updateHoldOffInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTimedQuotaManager.java49 mStartTimeMillis = clock.getElapsedSinceBootMillis(); in TimedQuotaManager()
72 return (mClock.getElapsedSinceBootMillis() - mStartTimeMillis) / mPeriodMillis; in getCurrentPeriod()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java149 mLastEnableUsageMs = mClock.getElapsedSinceBootMillis(); in recordEnableUsage()
166 long now = mClock.getElapsedSinceBootMillis(); in recordDisableUsage()
183 mLastEnableAwareMs = mClock.getElapsedSinceBootMillis(); in recordEnableAware()
197 long now = mClock.getElapsedSinceBootMillis(); in recordDisableAware()
246 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordAttachSessionDuration()
373 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordDiscoverySessionDuration()
472 long creationTime = mClock.getElapsedSinceBootMillis() - startTimestamp; in recordNdpStatus()
491 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordNdpSessionDuration()
501 long now = mClock.getElapsedSinceBootMillis(); in consolidateProto()
596 long now = mClock.getElapsedSinceBootMillis(); in clear()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java185 mClock.getElapsedSinceBootMillis(), in startSingleScan()
214 mClock.getElapsedSinceBootMillis() + SCAN_TIMEOUT_MS, in startSingleScan()
452 mClock.getElapsedSinceBootMillis(), in setHwPnoList()
486 long nowMs = mClock.getElapsedSinceBootMillis(); in dump()

123