Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DWorkSpecTest.java152 WorkRequest.MAX_BACKOFF_MILLIS + 1, in testCalculateNextRunTime_rerunAttempt_linear_upperBound()
158 is(DEFAULT_PERIOD_START_TIME + WorkRequest.MAX_BACKOFF_MILLIS)); in testCalculateNextRunTime_rerunAttempt_linear_upperBound()
167 WorkRequest.MAX_BACKOFF_MILLIS + 1, in testCalculateNextRunTime_rerunAttempt_exponential_upperBound()
173 is(DEFAULT_PERIOD_START_TIME + WorkRequest.MAX_BACKOFF_MILLIS)); in testCalculateNextRunTime_rerunAttempt_exponential_upperBound()
DWorkTest.java69 final long backoffDuration = WorkRequest.MAX_BACKOFF_MILLIS + 123L; in testBuild_setBackoffCriteria_exceedMaxBackoffDuration()
76 assertThat(getWorkSpec(work).backoffDelayDuration, is(WorkRequest.MAX_BACKOFF_MILLIS)); in testBuild_setBackoffCriteria_exceedMaxBackoffDuration()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java22 import static androidx.work.WorkRequest.MAX_BACKOFF_MILLIS;
129 if (backoffDelayDuration > MAX_BACKOFF_MILLIS) { in setBackoffDelayDuration()
131 backoffDelayDuration = MAX_BACKOFF_MILLIS; in setBackoffDelayDuration()
222 return periodStartTime + Math.min(WorkRequest.MAX_BACKOFF_MILLIS, delay); in calculateNextRunTime()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkRequest.java45 public static final long MAX_BACKOFF_MILLIS = 5 * 60 * 60 * 1000; // 5 hours. field in WorkRequest
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobConverter.java110 .convert(WorkRequest.MAX_BACKOFF_MILLIS, TimeUnit.MILLISECONDS); in createRetryStrategy()