Home
last modified time | relevance | path

Searched refs:startWork (Results 1 – 11 of 11) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DProcessorTest.java70 assertThat(mProcessor.startWork(id), is(true)); in testStartWork_doesNotStartWorkTwice()
71 assertThat(mProcessor.startWork(id), is(false)); in testStartWork_doesNotStartWorkTwice()
81 mProcessor.startWork(work.getStringId()); in testHasWork()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DProcessor.java75 public synchronized boolean startWork(String id) { in startWork() method in Processor
76 return startWork(id, null); in startWork()
86 public synchronized boolean startWork(String id, Extras.RuntimeExtras runtimeExtras) { in startWork() method in Processor
DWorkManagerImpl.java481 public void startWork(String workSpecId) {
482 startWork(workSpecId, null);
491 public void startWork(String workSpecId, Extras.RuntimeExtras runtimeExtras) {
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/greedy/
DGreedySchedulerTest.java69 verify(mWorkManagerImpl).startWork(workSpec.id); in testGreedyScheduler_startsUnconstrainedWork()
96 verify(mWorkManagerImpl).startWork(TEST_ID); in testGreedyScheduler_startsWorkWhenConstraintsMet()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/greedy/
DGreedyScheduler.java83 mWorkManagerImpl.startWork(workSpec.id); in schedule()
104 mWorkManagerImpl.startWork(workSpecId); in onAllConstraintsMet()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DStartWorkRunnable.java49 mWorkManagerImpl.getProcessor().startWork(mWorkSpecId, mRuntimeExtras); in run()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/
DSystemAlarmDispatcherTest.java185 verify(mSpyProcessor, times(1)).startWork(workSpecId); in testDelayMet_success()
211 verify(mSpyProcessor, times(1)).startWork(workSpecId); in testDelayMet_withStop()
236 verify(mSpyProcessor, times(1)).startWork(workSpecId); in testDelayMet_withStopWhenCancelled()
263 verify(mSpyProcessor, times(0)).startWork(workSpecId); in testSchedule_withConstraints()
298 verify(mSpyProcessor, times(0)).startWork(workSpecId); in testConstraintsChangedMarkedNotScheduled_withNoConstraints()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseJobService.java69 mWorkManagerImpl.startWork(workSpecId); in onStartJob()
/frameworks/support/work/workmanager-test/src/main/java/androidx/work/test/
DTestScheduler.java123 .startWork(workSpec.id); in scheduleInternal()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobService.java106 mWorkManagerImpl.startWork(workSpecId, runtimeExtras); in onStartJob()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DDelayMetCommandHandler.java87 boolean isEnqueued = mDispatcher.getProcessor().startWork(mWorkSpecId); in onAllConstraintsMet()