Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java105 public long backoffDelayDuration = WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS; field in WorkSpec
128 public void setBackoffDelayDuration(long backoffDelayDuration) { in setBackoffDelayDuration() argument
129 if (backoffDelayDuration > MAX_BACKOFF_MILLIS) { in setBackoffDelayDuration()
131 backoffDelayDuration = MAX_BACKOFF_MILLIS; in setBackoffDelayDuration()
133 if (backoffDelayDuration < MIN_BACKOFF_MILLIS) { in setBackoffDelayDuration()
135 backoffDelayDuration = MIN_BACKOFF_MILLIS; in setBackoffDelayDuration()
137 this.backoffDelayDuration = backoffDelayDuration; in setBackoffDelayDuration()
220 long delay = isLinearBackoff ? (backoffDelayDuration * runAttemptCount) in calculateNextRunTime()
221 : (long) Math.scalb(backoffDelayDuration, runAttemptCount - 1); in calculateNextRunTime()
248 if (backoffDelayDuration != workSpec.backoffDelayDuration) return false; in equals()
[all …]
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DWorkTest.java76 assertThat(getWorkSpec(work).backoffDelayDuration, is(WorkRequest.MAX_BACKOFF_MILLIS)); in testBuild_setBackoffCriteria_exceedMaxBackoffDuration()
88 assertThat(getWorkSpec(work).backoffDelayDuration, is(WorkRequest.MIN_BACKOFF_MILLIS)); in testBuild_setBackoffCriteria_lessThanMinBackoffDuration()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverter.java86 builder.setBackoffCriteria(workSpec.backoffDelayDuration, backoffPolicy); in convert()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobConverter.java108 .convert(workSpec.backoffDelayDuration, TimeUnit.MILLISECONDS); in createRetryStrategy()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java386 assertThat(workSpec0.backoffDelayDuration, is(50000L)); in testEnqueue_insertWorkBackoffPolicy()
389 assertThat(workSpec1.backoffDelayDuration, in testEnqueue_insertWorkBackoffPolicy()