Searched refs:timeRemaining (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 357 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation() local 358 assertEquals(TIME_10_MIN * 2, timeRemaining); in testAppUsageObserver_Accumulation() 364 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation() 365 assertEquals(TIME_10_MIN, timeRemaining); in testAppUsageObserver_Accumulation() 392 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation() local 393 assertEquals(TIME_10_MIN * 2, timeRemaining); in testUsageSessionObserver_Accumulation() 399 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation() 400 assertEquals(TIME_10_MIN, timeRemaining); in testUsageSessionObserver_Accumulation() 427 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageLimitObserver_Accumulation() local 428 assertEquals(TIME_10_MIN * 2, timeRemaining); in testAppUsageLimitObserver_Accumulation() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PersistentConnection.java | 400 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/ |
D | AppTimeLimitController.java | 305 final long timeRemaining = in noteUsageStart() local 307 if (timeRemaining > 0) { in noteUsageStart() 310 + timeRemaining + "ms"); in noteUsageStart() 312 postCheckTimeoutLocked(this, timeRemaining); in noteUsageStart()
|
/frameworks/base/core/java/android/os/ |
D | IPowerManager.aidl | 70 void setBatteryDischargePrediction(in ParcelDuration timeRemaining, boolean isCustomized); in setBatteryDischargePrediction() argument
|
D | PowerManager.java | 2193 public void setBatteryDischargePrediction(@NonNull Duration timeRemaining, in setBatteryDischargePrediction() argument 2195 if (timeRemaining == null) { in setBatteryDischargePrediction() 2199 mService.setBatteryDischargePrediction(new ParcelDuration(timeRemaining), in setBatteryDischargePrediction()
|
D | BatteryStats.java | 7648 long timeRemaining = steps.computeTimeEstimate(0, 0, tmpOutInt); in dumpDailyLevelStepSummary() local 7649 if (timeRemaining >= 0) { in dumpDailyLevelStepSummary() 7652 formatTimeMs(tmpSb, timeRemaining); in dumpDailyLevelStepSummary() 7753 long timeRemaining = computeBatteryTimeRemaining( in dumpLocked() local 7755 if (timeRemaining >= 0) { in dumpLocked() 7757 TimeUtils.formatDuration(timeRemaining / 1000, pw); in dumpLocked() 7770 long timeRemaining = computeChargeTimeRemaining( in dumpLocked() local 7772 if (timeRemaining >= 0) { in dumpLocked() 7774 TimeUtils.formatDuration(timeRemaining / 1000, pw); in dumpLocked() 7919 long timeRemaining = computeBatteryTimeRemaining(SystemClock.elapsedRealtime() * 1000); in dumpCheckinLocked() local [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePowerManager.java | 105 public void setBatteryDischargePrediction(ParcelDuration timeRemaining, in setBatteryDischargePrediction() argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskSupervisor.java | 2011 long timeRemaining = endTime - System.currentTimeMillis(); in shutdownLocked() local 2012 if (timeRemaining > 0) { in shutdownLocked() 2014 mService.mGlobalLock.wait(timeRemaining); in shutdownLocked()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 6279 public void setBatteryDischargePrediction(@NonNull ParcelDuration timeRemaining, 6291 final long timeRemainingMs = timeRemaining.getDuration().toMillis();
|