Home | History | Annotate | Download | only in controllers

Lines Matching refs:workSpec

23 import androidx.work.impl.model.WorkSpec;
44 * @param workSpecIds A list of {@link WorkSpec} IDs that may have become eligible to run
51 * @param workSpecIds A list of {@link WorkSpec} IDs that have become ineligible to run
67 abstract boolean hasConstraint(@NonNull WorkSpec workSpec);
72 * Replaces the list of {@link WorkSpec}s to monitor constraints for.
74 * @param workSpecs A list of {@link WorkSpec}s to monitor constraints for
76 public void replace(@NonNull List<WorkSpec> workSpecs) {
79 for (WorkSpec workSpec : workSpecs) {
80 if (hasConstraint(workSpec)) {
81 mMatchingWorkSpecIds.add(workSpec.id);
94 * Clears all tracked {@link WorkSpec}s.
104 * Determines if a particular {@link WorkSpec} is constrained. It is constrained if it is
107 * @param workSpecId The ID of the {@link WorkSpec} to check if it is constrained.
108 * @return {@code true} if the {@link WorkSpec} is considered constrained