Home
last modified time | relevance | path

Searched refs:currentTimeStamp (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiChannelUtilizationTest.java153 long currentTimeStamp = 1 + DEFAULT_CACHE_UPDATE_INTERVAL_MIN_MS; in verifyTwoReadChanStatsWithLargeTimeGap() local
154 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithLargeTimeGap()
163 currentTimeStamp = 1 + DEFAULT_CACHE_UPDATE_INTERVAL_MIN_MS * 2; in verifyTwoReadChanStatsWithLargeTimeGap()
164 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithLargeTimeGap()
181 long currentTimeStamp = DEFAULT_CACHE_UPDATE_INTERVAL_MIN_MS / 2; in verifyTwoReadChanStatsWithSmallTimeGap() local
182 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithSmallTimeGap()
191 currentTimeStamp = 1 + DEFAULT_CACHE_UPDATE_INTERVAL_MIN_MS; in verifyTwoReadChanStatsWithSmallTimeGap()
192 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyTwoReadChanStatsWithSmallTimeGap()
209 long currentTimeStamp = 1 + DEFAULT_CACHE_UPDATE_INTERVAL_MIN_MS; in verifyThreeReadChanStatsRefWithSecondLast() local
210 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in verifyThreeReadChanStatsRefWithSecondLast()
[all …]
DWifiConnectivityManagerTest.java1802 long currentTimeStamp = 0; in connectionAttemptRateLimitedWhenScreenOff() local
1804 currentTimeStamp += connectionAttemptIntervals; in connectionAttemptRateLimitedWhenScreenOff()
1805 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
1815 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff()
1844 long currentTimeStamp = 0; in connectionAttemptNotRateLimitedWhenScreenOff() local
1846 currentTimeStamp += connectionAttemptIntervals; in connectionAttemptNotRateLimitedWhenScreenOff()
1847 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff()
1858 currentTimeStamp + connectionAttemptIntervals * 2); in connectionAttemptNotRateLimitedWhenScreenOff()
1889 long currentTimeStamp = 0; in connectionAttemptNotRateLimitedWhenScreenOffForceConnectivityScan() local
1891 currentTimeStamp += connectionAttemptIntervals; in connectionAttemptNotRateLimitedWhenScreenOffForceConnectivityScan()
[all …]
DMultiInternetManagerTest.java397 long currentTimeStamp = 1000; in testStartConnectivityScan() local
398 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in testStartConnectivityScan()
405 currentTimeStamp += SCAN_INTERVAL; in testStartConnectivityScan()
406 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTimeStamp); in testStartConnectivityScan()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEpochManager.java382 long currentTimeStamp = mClock.currentTimeMillis(); in getCurrentEpochId() local
387 origin = currentTimeStamp; in getCurrentEpochId()
395 return (long) Math.floor((currentTimeStamp - origin) / (double) epochJobPeriodsMs); in getCurrentEpochId()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java906 final String currentTimeStamp = Long.toString(System.currentTimeMillis()); in getLooseMatches() local
943 new String[] {currentTimeStamp}); in getLooseMatches()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java2116 long currentTimeStamp = mClock.getElapsedSinceBootMillis(); in startPeriodicSingleScan() local
2119 long msSinceLastScan = currentTimeStamp - mLastPeriodicSingleScanTimeStamp; in startPeriodicSingleScan()
2133 ((currentTimeStamp - mLastNetworkSelectionTimeStamp) in startPeriodicSingleScan()
2168 mLastPeriodicSingleScanTimeStamp = currentTimeStamp; in startPeriodicSingleScan()