Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DDeletedEphemeralSsidsStoreDataTest.java179 long currentTimeMs = 67934838L; in deserializeSsidToTimeMapFromSet() local
180 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in deserializeSsidToTimeMapFromSet()
182 ssidToTimeMap.put(TEST_SSID1, currentTimeMs); in deserializeSsidToTimeMapFromSet()
183 ssidToTimeMap.put(TEST_SSID2, currentTimeMs); in deserializeSsidToTimeMapFromSet()
DWifiConfigManagerTest.java2886 long currentTimeMs = 67823; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
2887 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2913 put(TEST_SSID, currentTimeMs); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
4595 long currentTimeMs = disableTimeMs; in verifyExpiryOfTimeout() local
4596 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
4600 currentTimeMs = disableTimeMs + WifiConfigManager.DELETED_EPHEMERAL_SSID_EXPIRY_MS - 1; in verifyExpiryOfTimeout()
4601 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
4605 currentTimeMs = disableTimeMs + WifiConfigManager.DELETED_EPHEMERAL_SSID_EXPIRY_MS + 1; in verifyExpiryOfTimeout()
4606 when(mClock.getWallClockMillis()).thenReturn(currentTimeMs); in verifyExpiryOfTimeout()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsImplTest.java314 final int currentTimeMs = 1011; in testMulticastWakelockAcqRel() local
327 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqRel()
337 final int currentTimeMs = 1011; in testMulticastWakelockAcqNoRel() local
349 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqNoRel()
352 (currentTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqNoRel()
363 final int currentTimeMs = 1011; in testMulticastWakelockAcqAcqRelRel() local
379 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqAcqRelRel()
393 final int currentTimeMs = 1011; in testMulticastWakelockAcqRelAcqRel() local
409 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqRelAcqRel()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java290 void noteUsageStart(long startTimeMs, long currentTimeMs) { in noteUsageStart() argument
300 mTimeLimitMs - mUsageTimeMs - currentTimeMs + startTimeMs; in noteUsageStart()
350 void checkTimeout(long currentTimeMs) { in checkTimeout() argument
370 final long timeUsedMs = currentTimeMs - mLastKnownUsageTimeMs; in checkTimeout()
375 mLastKnownUsageTimeMs = currentTimeMs; in checkTimeout()
463 public void noteUsageStart(long startTimeMs, long currentTimeMs) { in noteUsageStart() argument
471 super.noteUsageStart(startTimeMs, currentTimeMs); in noteUsageStart()
720 private void noteActiveLocked(UserData user, UsageGroup group, long currentTimeMs) { in noteActiveLocked() argument
726 group.noteUsageStart(currentTimeMs); in noteActiveLocked()
/frameworks/base/core/java/android/net/
DNetworkAgent.java467 long currentTimeMs = System.currentTimeMillis(); in handleMessage() local
471 if (currentTimeMs >= (mLastBwRefreshTime + BW_REFRESH_MIN_WIN_MS)) { in handleMessage()
480 - currentTimeMs + 1; in handleMessage()
/frameworks/base/telecomm/java/android/telecom/Logging/
DSessionManager.java423 long currentTimeMs = System.currentTimeMillis(); in cleanupStaleSessions() local
432 if (currentTimeMs - session.getExecutionStartTimeMilliseconds() > timeoutMs) { in cleanupStaleSessions()