Searched refs:backoffDelayDuration (Results 1 – 5 of 5) sorted by relevance
105 public long backoffDelayDuration = WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS; field in WorkSpec128 public void setBackoffDelayDuration(long backoffDelayDuration) { in setBackoffDelayDuration() argument129 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 …]
76 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()
86 builder.setBackoffCriteria(workSpec.backoffDelayDuration, backoffPolicy); in convert()
108 .convert(workSpec.backoffDelayDuration, TimeUnit.MILLISECONDS); in createRetryStrategy()
386 assertThat(workSpec0.backoffDelayDuration, is(50000L)); in testEnqueue_insertWorkBackoffPolicy()389 assertThat(workSpec1.backoffDelayDuration, in testEnqueue_insertWorkBackoffPolicy()