Home
last modified time | relevance | path

Searched refs:minDuration (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java374 private void workForRandomPeriod(int minDuration, int maxDuration) { in workForRandomPeriod() argument
376 int period = minDuration + random.nextInt(maxDuration - minDuration); in workForRandomPeriod()
/frameworks/base/services/java/com/android/server/am/
DActiveServices.java848 long minDuration = SERVICE_RESTART_DURATION; in scheduleServiceRestartLocked() local
865 if (minDuration < dur) minDuration = dur; in scheduleServiceRestartLocked()
879 r.restartDelay = minDuration; in scheduleServiceRestartLocked()
888 r.restartDelay = minDuration; in scheduleServiceRestartLocked()
894 r.restartDelay += minDuration/2; in scheduleServiceRestartLocked()
897 if (r.restartDelay < minDuration) { in scheduleServiceRestartLocked()
898 r.restartDelay = minDuration; in scheduleServiceRestartLocked()