Home
last modified time | relevance | path

Searched refs:timeRemaining (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java337 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation() local
338 assertEquals(TIME_10_MIN * 2, timeRemaining); in testAppUsageObserver_Accumulation()
344 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation()
345 assertEquals(TIME_10_MIN, timeRemaining); in testAppUsageObserver_Accumulation()
372 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation() local
373 assertEquals(TIME_10_MIN * 2, timeRemaining); in testUsageSessionObserver_Accumulation()
379 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation()
380 assertEquals(TIME_10_MIN, timeRemaining); in testUsageSessionObserver_Accumulation()
407 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageLimitObserver_Accumulation() local
408 assertEquals(TIME_10_MIN * 2, timeRemaining); in testAppUsageLimitObserver_Accumulation()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPersistentConnection.java400 final long timeRemaining = (mLastConnectedTime + mResetBackoffDelay) - now; in stableConnectionCheck() local
403 + " remaining=" + timeRemaining); in stableConnectionCheck()
405 if (mBound && mIsConnected && timeRemaining <= 0) { in stableConnectionCheck()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java299 final long timeRemaining = in noteUsageStart() local
301 if (timeRemaining > 0) { in noteUsageStart()
304 + timeRemaining + "ms"); in noteUsageStart()
306 postCheckTimeoutLocked(this, timeRemaining); in noteUsageStart()
/frameworks/base/core/java/android/os/
DBatteryStats.java6921 long timeRemaining = steps.computeTimeEstimate(0, 0, tmpOutInt); in dumpDailyLevelStepSummary() local
6922 if (timeRemaining >= 0) { in dumpDailyLevelStepSummary()
6925 formatTimeMs(tmpSb, timeRemaining); in dumpDailyLevelStepSummary()
7053 long timeRemaining = computeBatteryTimeRemaining( in dumpLocked() local
7055 if (timeRemaining >= 0) { in dumpLocked()
7057 TimeUtils.formatDuration(timeRemaining / 1000, pw); in dumpLocked()
7070 long timeRemaining = computeChargeTimeRemaining( in dumpLocked() local
7072 if (timeRemaining >= 0) { in dumpLocked()
7074 TimeUtils.formatDuration(timeRemaining / 1000, pw); in dumpLocked()
7232 long timeRemaining = computeBatteryTimeRemaining(SystemClock.elapsedRealtime() * 1000); in dumpCheckinLocked() local
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStackSupervisor.java2005 long timeRemaining = endTime - System.currentTimeMillis(); in shutdownLocked() local
2006 if (timeRemaining > 0) { in shutdownLocked()
2008 mService.mGlobalLock.wait(timeRemaining); in shutdownLocked()