Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DWorkSpecDaoTest.java74 List<WorkSpec> eligibleWorkSpecs = in testEligibleWorkSpecsForScheduling() local
77 assertThat(eligibleWorkSpecs.size(), equalTo(2)); in testEligibleWorkSpecsForScheduling()
78 assertThat(eligibleWorkSpecs, in testEligibleWorkSpecsForScheduling()
106 List<WorkSpec> eligibleWorkSpecs = in testScheduledWorkSpecCount() local
108 assertThat(eligibleWorkSpecs, notNullValue()); in testScheduledWorkSpecCount()
109 assertThat(eligibleWorkSpecs.size(), is(1)); in testScheduledWorkSpecCount()
110 assertThat(eligibleWorkSpecs, containsInAnyOrder(enqueued.getWorkSpec())); in testScheduledWorkSpecCount()
138 List<WorkSpec> eligibleWorkSpecs = in testAlreadyScheduledWorkIsNotRescheduled() local
140 assertThat(eligibleWorkSpecs, notNullValue()); in testAlreadyScheduledWorkIsNotRescheduled()
141 assertThat(eligibleWorkSpecs.size(), is(0)); in testAlreadyScheduledWorkIsNotRescheduled()
[all …]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DConstraintsCommandHandler.java73 List<WorkSpec> eligibleWorkSpecs = new ArrayList<>(candidates.size()); in handleConstraintsChanged() local
76 eligibleWorkSpecs.add(candidate); in handleConstraintsChanged()
82 ConstraintProxy.updateAll(mContext, eligibleWorkSpecs); in handleConstraintsChanged()
85 mWorkConstraintsTracker.replace(eligibleWorkSpecs); in handleConstraintsChanged()
87 for (WorkSpec workSpec : eligibleWorkSpecs) { in handleConstraintsChanged()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/worker/
DCheckLimitsWorker.java44 List<WorkSpec> eligibleWorkSpecs = workManager.getWorkDatabase() in doWork() local
47 int size = eligibleWorkSpecs != null ? eligibleWorkSpecs.size() : 0; in doWork()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DSchedulers.java70 List<WorkSpec> eligibleWorkSpecs = in schedule() local
73 scheduleInternal(workDatabase, schedulers, eligibleWorkSpecs); in schedule()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkContinuationImplTest.java526 List<WorkSpec> eligibleWorkSpecs = in verifyScheduled() local
537 for (WorkSpec eligibleWorkSpec : eligibleWorkSpecs) { in verifyScheduled()