Searched refs:ENQUEUED (Results 1 – 17 of 17) sorted by relevance
23 import static androidx.work.State.ENQUEUED;52 int ENQUEUED = 0; field90 case ENQUEUED: in stateToInt()91 return StateIds.ENQUEUED; in stateToInt()123 case StateIds.ENQUEUED: in intToState()124 return ENQUEUED; in intToState()
21 import static androidx.work.State.ENQUEUED;67 public State state = ENQUEUED;146 return state == ENQUEUED && runAttemptCount > 0; in isBackedOff()
283 + "state=" + WorkTypeConverters.StateIds.ENQUEUED
20 import static androidx.work.State.ENQUEUED;106 if (mWorkSpec.state != ENQUEUED) { in run()275 if (currentState == ENQUEUED) { in trySetRunning()324 mWorkSpecDao.setState(ENQUEUED, mWorkSpecId); in rescheduleAndNotify()340 mWorkSpecDao.setState(ENQUEUED, mWorkSpecId); in resetPeriodicAndNotify()364 mWorkSpecDao.setState(ENQUEUED, dependentWorkId); in setSucceededAndNotify()
20 import static androidx.work.impl.model.WorkTypeConverters.StateIds.ENQUEUED;64 private static final String CLEANUP_SQL = "UPDATE workspec SET state=" + ENQUEUED
27 ENQUEUED, enumConstant
23 import static androidx.work.State.ENQUEUED;222 if (idAndState.state == ENQUEUED || idAndState.state == RUNNING) { in enqueueWorkWithPrerequisites()262 if (workSpec.state == ENQUEUED) { in enqueueWorkWithPrerequisites()
52 workSpecDao.setState(State.ENQUEUED, mWorkSpecId); in run()
26 import static androidx.work.State.ENQUEUED;267 assertThat(workSpecDao.getState(work2.getStringId()), isOneOf(ENQUEUED, RUNNING)); in testEnqueue_insertWithCompletedDependencies_isNotStatusBlocked()854 ENQUEUED, in testGetStatusesById()859 ENQUEUED, in testGetStatusesById()992 workSpecDao.setState(ENQUEUED, work0.getStringId()); in testGetStatusesByTag()1000 ENQUEUED, in testGetStatusesByTag()1097 workSpecDao.setState(ENQUEUED, work0.getStringId()); in testGetStatusesByName()1105 ENQUEUED, in testGetStatusesByName()1156 .setInitialState(ENQUEUED) in testCancelWorkById_cancelsUnfinishedWorkOnly()1293 assertThat(workSpecDao.getState(work0.getStringId()), is(ENQUEUED)); in testCancelAllWork()[all …]
21 import static androidx.work.State.ENQUEUED;274 assertThat(mWorkSpecDao.getState(prerequisiteWork.getStringId()), is(ENQUEUED)); in testDependencies()286 assertThat(mWorkSpecDao.getState(work.getStringId()), is(ENQUEUED)); in testDependencies()516 assertThat(periodicWorkSpecAfterFirstRun.state, is(ENQUEUED)); in testPeriodicWork_success()538 assertThat(periodicWorkSpecAfterFirstRun.state, is(ENQUEUED)); in testPeriodicWork_fail()560 assertThat(periodicWorkSpecAfterFirstRun.state, is(ENQUEUED)); in testPeriodicWork_retry()
212 assertThat(workSpec.state, is(State.ENQUEUED)); in testConstraintTrackingWorker_onConstraintsNotMet()263 assertThat(workSpec.state, is(State.ENQUEUED)); in testConstraintTrackingWorker_onConstraintsChanged()324 assertThat(workSpec.state, is(State.ENQUEUED)); in testConstraintTrackingWorker_onConstraintsChangedTwice()
84 assertThat(workSpecDao.getState(work.getStringId()), is(State.ENQUEUED)); in testOnStopJob_ResetsWorkStatus()
71 if (workSpec.state == State.ENQUEUED in schedule()
146 assertThat(workSpecDao.getState(work.getStringId()), is(State.ENQUEUED)); in testOnStopJob_ResetsWorkStatus()
98 contentValues.put("state", WorkTypeConverters.StateIds.ENQUEUED); in testMigrationVersion1To2()
56 ENQUEUED = 0; enumerator
351 assertThat(workSpec.state, is(State.ENQUEUED)); in testDelayMet_withUnMetConstraint()