Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java115 long timeRemaining; field in AppTimeLimitController.TimeLimitGroup
214 group.timeRemaining = group.timeLimit; in addObserver()
233 if (group.timeRemaining > 0) { in addObserver()
234 postCheckTimeoutLocked(group, group.timeRemaining); in addObserver()
324 if (group.timeRemaining <= 0) continue; in moveToBackground()
329 group.timeRemaining -= diff; in moveToBackground()
330 if (group.timeRemaining <= 0) { in moveToBackground()
356 group.timeLimit - group.timeRemaining, group.callbackIntent); in informListener()
374 if (group.timeRemaining > 0) { in maybeWatchForPackageLocked()
379 + group.timeRemaining + "ms"); in maybeWatchForPackageLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java173 long timeRemaining = mController.getObserverGroup(OBS_ID1, USER_ID).timeRemaining; in testAccumulation() local
174 assertEquals(TIME_10_MIN * 2, timeRemaining); in testAccumulation()
180 timeRemaining = mController.getObserverGroup(OBS_ID1, USER_ID).timeRemaining; in testAccumulation()
181 assertEquals(TIME_10_MIN, timeRemaining); in testAccumulation()
192 assertEquals(0, mController.getObserverGroup(OBS_ID1, USER_ID).timeRemaining); in testAccumulation()
/frameworks/support/webkit/src/androidTest/java/androidx/webkit/
DWebViewOnUiThread.java360 long timeRemaining = timeout;
361 while (!doneCriteria.call() && timeRemaining > 0) {
362 this.wait(timeRemaining);
363 timeRemaining = waitEnd - SystemClock.uptimeMillis();
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java315 int bucket, long timeRemaining, boolean isPowerSaver, int batteryStatus) { in shouldShowLowBatteryWarning() argument
318 return isEnhancedTrigger(plugged, timeRemaining, isPowerSaver, batteryStatus); in shouldShowLowBatteryWarning()
329 long timeRemaining, boolean isPowerSaver) { in shouldDismissLowBatteryWarning() argument
331 && timeRemaining > mEnhancedEstimates.getLowWarningThreshold(); in shouldDismissLowBatteryWarning()
339 private boolean isEnhancedTrigger(boolean plugged, long timeRemaining, boolean isPowerSaver, in isEnhancedTrigger() argument
349 && (timeRemaining < mEnhancedEstimates.getLowWarningThreshold() in isEnhancedTrigger()
354 && (timeRemaining < mEnhancedEstimates.getSevereWarningThreshold() in isEnhancedTrigger()
/frameworks/base/core/java/android/os/
DBatteryStats.java6744 long timeRemaining = steps.computeTimeEstimate(0, 0, tmpOutInt); in dumpDailyLevelStepSummary() local
6745 if (timeRemaining >= 0) { in dumpDailyLevelStepSummary()
6748 formatTimeMs(tmpSb, timeRemaining); in dumpDailyLevelStepSummary()
6876 long timeRemaining = computeBatteryTimeRemaining( in dumpLocked() local
6878 if (timeRemaining >= 0) { in dumpLocked()
6880 TimeUtils.formatDuration(timeRemaining / 1000, pw); in dumpLocked()
6893 long timeRemaining = computeChargeTimeRemaining( in dumpLocked() local
6895 if (timeRemaining >= 0) { in dumpLocked()
6897 TimeUtils.formatDuration(timeRemaining / 1000, pw); in dumpLocked()
7055 long timeRemaining = computeBatteryTimeRemaining(SystemClock.elapsedRealtime() * 1000); in dumpCheckinLocked() local
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActivityStackSupervisor.java3513 long timeRemaining = endTime - System.currentTimeMillis(); in shutdownLocked() local
3514 if (timeRemaining > 0) { in shutdownLocked()
3516 mService.wait(timeRemaining); in shutdownLocked()