Home
last modified time | relevance | path

Searched refs:ENQUEUED (Results 1 – 17 of 17) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkTypeConverters.java23 import static androidx.work.State.ENQUEUED;
52 int ENQUEUED = 0; field
90 case ENQUEUED: in stateToInt()
91 return StateIds.ENQUEUED; in stateToInt()
123 case StateIds.ENQUEUED: in intToState()
124 return ENQUEUED; in intToState()
DWorkSpec.java21 import static androidx.work.State.ENQUEUED;
67 public State state = ENQUEUED;
146 return state == ENQUEUED && runAttemptCount > 0; in isBackedOff()
DWorkSpecDao.java283 + "state=" + WorkTypeConverters.StateIds.ENQUEUED
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkerWrapper.java20 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()
DWorkDatabase.java20 import static androidx.work.impl.model.WorkTypeConverters.StateIds.ENQUEUED;
64 private static final String CLEANUP_SQL = "UPDATE workspec SET state=" + ENQUEUED
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DState.java27 ENQUEUED, enumConstant
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DEnqueueRunnable.java23 import static androidx.work.State.ENQUEUED;
222 if (idAndState.state == ENQUEUED || idAndState.state == RUNNING) { in enqueueWorkWithPrerequisites()
262 if (workSpec.state == ENQUEUED) { in enqueueWorkWithPrerequisites()
DStopWorkRunnable.java52 workSpecDao.setState(State.ENQUEUED, mWorkSpecId); in run()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java26 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 …]
DWorkerWrapperTest.java21 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()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/workers/
DConstraintTrackingWorkerTest.java212 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()
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobServiceTest.java84 assertThat(workSpecDao.getState(work.getStringId()), is(State.ENQUEUED)); in testOnStopJob_ResetsWorkStatus()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/greedy/
DGreedyScheduler.java71 if (workSpec.state == State.ENQUEUED in schedule()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobServiceTest.java146 assertThat(workSpecDao.getState(work.getStringId()), is(State.ENQUEUED)); in testOnStopJob_ResetsWorkStatus()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DWorkDatabaseMigrationTest.java98 contentValues.put("state", WorkTypeConverters.StateIds.ENQUEUED); in testMigrationVersion1To2()
/frameworks/base/core/proto/android/service/
Dnotification.proto56 ENQUEUED = 0; enumerator
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/
DSystemAlarmDispatcherTest.java351 assertThat(workSpec.state, is(State.ENQUEUED)); in testDelayMet_withUnMetConstraint()