Home
last modified time | relevance | path

Searched refs:getElapsedSinceBootMillis (Results 1 – 25 of 62) 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 …]
DWifiDataStallTest.java128 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallTxFailure()
133 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallTxFailure()
145 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallWhenTxFailureIsNotConsecutive()
150 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallWhenTxFailureIsNotConsecutive()
166 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallRxFailure()
171 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallRxFailure()
185 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallBothTxRxFailure()
190 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallBothTxRxFailure()
203 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyDataStallDurationDeviceConfigChange()
211 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyDataStallDurationDeviceConfigChange()
[all …]
DScanRequestProxyTest.java534 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameFgAppThrottled()
536 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameFgAppThrottled()
560 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
562 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
570 when(mClock.getElapsedSinceBootMillis()).thenReturn(lastRequestMs); in testSuccessiveScanRequestFromSameFgAppNotThrottled()
588 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
590 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
611 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameAppWithNetworkSetupWizardPermissionNotThrottled()
613 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameAppWithNetworkSetupWizardPermissionNotThrottled()
644 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.java107 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
461 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
469 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
500 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff()
508 when(mClock.getElapsedSinceBootMillis()).thenReturn( in connectionAttemptNotRateLimitedWhenScreenOff()
540 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
552 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
913 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected()
921 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected()
934 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()
/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()
DWifiLockManager.java539 mClock.getElapsedSinceBootMillis() - wifiLock.getAcqTimestamp()); in releaseLock()
551 mClock.getElapsedSinceBootMillis() - wifiLock.getAcqTimestamp()); in releaseLock()
584 mClock.getElapsedSinceBootMillis() - mCurrentSessionStartTimeMs); in updateOpMode()
593 mClock.getElapsedSinceBootMillis() - mCurrentSessionStartTimeMs); in updateOpMode()
612 mCurrentSessionStartTimeMs = mClock.getElapsedSinceBootMillis(); in updateOpMode()
620 mCurrentSessionStartTimeMs = mClock.getElapsedSinceBootMillis(); in updateOpMode()
802 mAcqTimestamp = mClock.getElapsedSinceBootMillis(); in WifiLock()
DWifiConfigStore.java469 mClock.getElapsedSinceBootMillis() + BUFFERED_WRITE_ALARM_INTERVAL_MS, in startBufferedWriteAlarm()
492 long writeStartTime = mClock.getElapsedSinceBootMillis(); in writeBufferedData()
499 long writeTime = mClock.getElapsedSinceBootMillis() - writeStartTime; in writeBufferedData()
522 long readStartTime = mClock.getElapsedSinceBootMillis(); in read()
531 long readTime = mClock.getElapsedSinceBootMillis() - readStartTime; in read()
561 long readStartTime = mClock.getElapsedSinceBootMillis(); in switchUserStoresAndRead()
566 long readTime = mClock.getElapsedSinceBootMillis() - readStartTime; in switchUserStoresAndRead()
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()
1053 mClock.getElapsedSinceBootMillis() + WATCHDOG_INTERVAL_MS, in scheduleWatchdogTimer()
1061 mClock.getElapsedSinceBootMillis() + intervalMs, in schedulePeriodicScanTimer()
1082 mClock.getElapsedSinceBootMillis() + RESTART_SCAN_DELAY_MS, in scheduleDelayedSingleScan()
1092 mClock.getElapsedSinceBootMillis() + msFromNow, in scheduleDelayedConnectivityScan()
1313 status.blacklistedTimeStamp = mClock.getElapsedSinceBootMillis(); in updateBssidBlacklist()
1430 Long currentTimeStamp = mClock.getElapsedSinceBootMillis(); in refreshBssidBlacklist()
DWifiLastResortWatchdog.java172 mLastStartConnectTime = mClock.getElapsedSinceBootMillis(); in noteStartConnectTime()
181 long durationMs = mClock.getElapsedSinceBootMillis() - mLastStartConnectTime; in processMessage()
244 || (mClock.getElapsedSinceBootMillis() - mTimeLastTrigger) in updateAvailableNetworks()
329 mTimeLastTrigger = mClock.getElapsedSinceBootMillis(); in noteConnectionFailureAndTriggerIfNeeded()
357 long durationMs = mClock.getElapsedSinceBootMillis() - mTimeLastTrigger; in connectedStateTransition()
/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