Home
last modified time | relevance | path

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

1234

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DLinkProbeManagerTest.java85 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in setUp()
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()
230 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenTxSucceeded()
242 when(mClock.getElapsedSinceBootMillis()).thenReturn(mTimeMs); in testLinkProbeNotTriggeredWhenScreenJustTurnedOn()
[all …]
DWifiChannelUtilizationTest.java154 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()
263 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsLargeTimeGap()
273 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsLargeTimeGap()
[all …]
DWifiDataStallTest.java311 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()
449 when(mClock.getElapsedSinceBootMillis()).thenReturn(10L); in verifyNoDataStallTrafficLow()
455 when(mClock.getElapsedSinceBootMillis()).thenReturn( in verifyNoDataStallTrafficLow()
[all …]
DScanRequestProxyTest.java178 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()
702 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
704 when(mClock.getElapsedSinceBootMillis()).thenReturn(firstRequestMs + i); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
[all …]
DWifiConnectivityManagerTest.java181 when(mClock.getElapsedSinceBootMillis()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
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()
1327 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection()
1360 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterWifiToggle()
[all …]
DSelfRecoveryTest.java69 when(mClock.getElapsedSinceBootMillis()) in testValidTriggerReasonsSendMessageToWifiController()
106 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in testTimeWindowLimiting_typicalUse()
143 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
150 when(mClock.getElapsedSinceBootMillis()) in testTimeWindowLimiting_typicalUse()
165 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in testTimeWindowLimiting_NativeFailureOff()
DWakeupLockTest.java63 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp()
129 when(mClock.getElapsedSinceBootMillis()) in verifyInitializingLockByTimeout()
286 when(mClock.getElapsedSinceBootMillis()) in unlockingShouldRecordEventInMetrics()
298 when(mClock.getElapsedSinceBootMillis()) in setLockAndInitializeByTimeout()
DWifiLastResortWatchdogTest.java1463 when(mClock.getElapsedSinceBootMillis()).thenReturn(timeAtFailure); in testTriggerEnabling_enabledAfterNewNetwork()
1488 when(mClock.getElapsedSinceBootMillis()) in testTriggerEnabling_enabledAfterNewNetwork()
1538 when(mClock.getElapsedSinceBootMillis()).thenReturn(timeAtFailure, timeAtReconnect); in testMetricsCollection()
1610 when(mClock.getElapsedSinceBootMillis()).thenReturn(timeAtFailure, timeAtReconnect); in testMetricsCollection()
1625 when(mClock.getElapsedSinceBootMillis()) in testMetricsCollection()
2120 when(mClock.getElapsedSinceBootMillis()).thenReturn(timeAtFailure); in testWatchdogWithTimeBasedLogic()
2134 when(mClock.getElapsedSinceBootMillis()).thenReturn(timeAtFailure + (300 * 1000)); in testWatchdogWithTimeBasedLogic()
2233 when(mClock.getElapsedSinceBootMillis()).thenReturn(1L); in testAbnormalConnectionTimeTriggersBugreport()
2236 when(mClock.getElapsedSinceBootMillis()).thenReturn( in testAbnormalConnectionTimeTriggersBugreport()
2248 when(mClock.getElapsedSinceBootMillis()).thenReturn( in testAbnormalConnectionTimeTriggersBugreport()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPRequestManagerTest.java178 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()
270 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestFailed()
277 when(mClock.getElapsedSinceBootMillis()) in requestANQPElementsAfterRequestFailed()
[all …]
DAnqpCacheTest.java74 when(mClock.getElapsedSinceBootMillis()).thenReturn(0L); in setUp()
111 when(mClock.getElapsedSinceBootMillis()) in sweepRemoveExpiredEntry()
117 when(mClock.getElapsedSinceBootMillis()).thenReturn(ANQPData.DATA_LIFETIME_MILLISECONDS); in sweepRemoveExpiredEntry()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DLinkProbeManager.java155 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()
313 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection()
320 mLastScreenOnTimestampMs = mClock.getElapsedSinceBootMillis(); in resetOnScreenTurnedOn()
324 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
357 mLastLinkProbeTimestampMs = mClock.getElapsedSinceBootMillis(); in updateConnectionStats()
DNonCarrierMergedNetworksStatusTracker.java62 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()
DWifiLockManager.java576 mClock.getElapsedSinceBootMillis() - wifiLock.getAcqTimestamp()); in releaseLock()
588 mClock.getElapsedSinceBootMillis() - wifiLock.getAcqTimestamp()); in releaseLock()
614 mClock.getElapsedSinceBootMillis() - mCurrentSessionStartTimeMs); in resetCurrentMode()
623 mClock.getElapsedSinceBootMillis() - mCurrentSessionStartTimeMs); in resetCurrentMode()
648 mCurrentSessionStartTimeMs = mClock.getElapsedSinceBootMillis(); in setNewMode()
656 mCurrentSessionStartTimeMs = mClock.getElapsedSinceBootMillis(); in setNewMode()
882 mAcqTimestamp = mClock.getElapsedSinceBootMillis(); in WifiLock()
DWifiConfigStore.java481 mClock.getElapsedSinceBootMillis() + BUFFERED_WRITE_ALARM_INTERVAL_MS, in startBufferedWriteAlarm()
504 long writeStartTime = mClock.getElapsedSinceBootMillis(); in writeBufferedData()
513 long writeTime = mClock.getElapsedSinceBootMillis() - writeStartTime; in writeBufferedData()
660 long readStartTime = mClock.getElapsedSinceBootMillis(); in read()
665 long readTime = mClock.getElapsedSinceBootMillis() - readStartTime; in read()
695 long readStartTime = mClock.getElapsedSinceBootMillis(); in switchUserStoresAndRead()
697 long readTime = mClock.getElapsedSinceBootMillis() - readStartTime; in switchUserStoresAndRead()
DWifiConnectivityManager.java403 mLatestCandidatesTimestampMs = mClock.getElapsedSinceBootMillis(); in handleScanResults()
411 mLastNetworkSelectionTimeStamp = mClock.getElapsedSinceBootMillis(); in handleScanResults()
563 mCachedWifiCandidates = new CachedWifiCandidates(mClock.getElapsedSinceBootMillis(), in filterCandidatesHighMovement()
573 if (mClock.getElapsedSinceBootMillis() - mCachedWifiCandidates.timeSinceBootMs in filterCandidatesHighMovement()
590 new CachedWifiCandidates(mClock.getElapsedSinceBootMillis(), in filterCandidatesHighMovement()
601 mCachedWifiCandidates = new CachedWifiCandidates(mClock.getElapsedSinceBootMillis(), in filterCandidatesHighMovement()
1391 long elapsedTimeMillis = mClock.getElapsedSinceBootMillis(); in shouldConnect()
1619 long currentTimeStamp = mClock.getElapsedSinceBootMillis(); in startPeriodicSingleScan()
2003 mClock.getElapsedSinceBootMillis() + mContext.getResources().getInteger( in scheduleWatchdogTimer()
2021 mClock.getElapsedSinceBootMillis() + delayMillis, DELAYED_PARTIAL_SCAN_TIMER_TAG, in scheduleDelayedPartialScan()
[all …]
DDppManager.java281 mDppRequestInfo.startTime = mClock.getElapsedSinceBootMillis(); in startDppAsConfiguratorInitiator()
364 mDppRequestInfo.startTime = mClock.getElapsedSinceBootMillis(); in startDppAsEnrolleeInitiator()
442 mDppRequestInfo.startTime = mClock.getElapsedSinceBootMillis(); in startDppAsEnrolleeResponder()
584 long now = mClock.getElapsedSinceBootMillis(); in onSuccessConfigReceived()
626 long now = mClock.getElapsedSinceBootMillis(); in onSuccess()
819 long now = mClock.getElapsedSinceBootMillis(); in onFailure()
DWifiLastResortWatchdog.java196 networkId, mClock.getElapsedSinceBootMillis())); in noteStartConnectTime()
210 mClock.getElapsedSinceBootMillis() - lastStartConnectTimeNullable; in processMessage()
275 || (mClock.getElapsedSinceBootMillis() - mTimeLastTrigger) in updateAvailableNetworks()
363 mTimeLastTrigger = mClock.getElapsedSinceBootMillis(); in noteConnectionFailureAndTriggerIfNeeded()
398 long durationMs = mClock.getElapsedSinceBootMillis() - mTimeLastTrigger; in connectedStateTransition()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java246 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()
352 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
358 false, mClock.getElapsedSinceBootMillis())); in testDiscoverySessionMetrics()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DTimedQuotaManagerTest.java48 when(mClock.getElapsedSinceBootMillis()).thenReturn(100000000L); in setUp()
67 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_newDay_exhaustQuotaAgain()
68 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS + 1000); in exhaustQuota_newDay_exhaustQuotaAgain()
94 long now = mClock.getElapsedSinceBootMillis(); in exhaustQuota_sameDay_stillExhausted()
95 when(mClock.getElapsedSinceBootMillis()).thenReturn(now + DAY_MILLIS - 1000); in exhaustQuota_sameDay_stillExhausted()
/packages/modules/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()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpCache.java46 mLastSweep = mClock.getElapsedSinceBootMillis(); in AnqpCache()
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()
DANQPData.java66 mExpiryTime = mClock.getElapsedSinceBootMillis() + dataLifetime; in ANQPData()
76 mExpiryTime = mClock.getElapsedSinceBootMillis() + DATA_LIFETIME_MILLISECONDS; in update()
102 long now = mClock.getElapsedSinceBootMillis(); in toString()
DANQPRequestManager.java178 long currentTime = mClock.getElapsedSinceBootMillis(); in canSendRequestNow()
201 info.holdOffExpirationTime = mClock.getElapsedSinceBootMillis() in updateHoldOffInfo()
249 - mClock.getElapsedSinceBootMillis()) / 1000 + " seconds"); in dump()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java153 mLastEnableUsageMs = mClock.getElapsedSinceBootMillis(); in recordEnableUsage()
170 long now = mClock.getElapsedSinceBootMillis(); in recordDisableUsage()
187 mLastEnableAwareMs = mClock.getElapsedSinceBootMillis(); in recordEnableAware()
201 long now = mClock.getElapsedSinceBootMillis(); in recordDisableAware()
250 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordAttachSessionDuration()
377 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordDiscoverySessionDuration()
476 long creationTime = mClock.getElapsedSinceBootMillis() - startTimestamp; in recordNdpStatus()
495 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordNdpSessionDuration()
505 long now = mClock.getElapsedSinceBootMillis(); in consolidateProto()
601 long now = mClock.getElapsedSinceBootMillis(); in clear()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DTimedQuotaManager.java49 mStartTimeMillis = clock.getElapsedSinceBootMillis(); in TimedQuotaManager()
72 return (mClock.getElapsedSinceBootMillis() - mStartTimeMillis) / mPeriodMillis; in getCurrentPeriod()

1234