Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java98 public int runAttemptCount; field in WorkSpec
146 return state == ENQUEUED && runAttemptCount > 0; in isBackedOff()
220 long delay = isLinearBackoff ? (backoffDelayDuration * runAttemptCount) in calculateNextRunTime()
221 : (long) Math.scalb(backoffDelayDuration, runAttemptCount - 1); in calculateNextRunTime()
247 if (runAttemptCount != workSpec.runAttemptCount) return false; in equals()
278 result = 31 * result + runAttemptCount; in hashCode()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DExtras.java48 int runAttemptCount) { in Extras() argument
52 mRunAttemptCount = runAttemptCount; in Extras()
DWorkerWrapper.java134 mWorkSpec.runAttemptCount); in run()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkRequest.java256 public B setInitialRunAttemptCount(int runAttemptCount) { in setInitialRunAttemptCount() argument
257 mWorkSpec.runAttemptCount = runAttemptCount; in setInitialRunAttemptCount()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkerWrapperTest.java126 assertThat(latestWorkSpec.runAttemptCount, is(1)); in testRunAttemptCountIncremented_successfulExecution()
140 assertThat(latestWorkSpec.runAttemptCount, is(1)); in testRunAttemptCountIncremented_failedExecution()
515 assertThat(periodicWorkSpecAfterFirstRun.runAttemptCount, is(0)); in testPeriodicWork_success()
537 assertThat(periodicWorkSpecAfterFirstRun.runAttemptCount, is(0)); in testPeriodicWork_fail()
559 assertThat(periodicWorkSpecAfterFirstRun.runAttemptCount, is(1)); in testPeriodicWork_retry()