Home
last modified time | relevance | path

Searched refs:workSpecIds (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DCancelWorkRunnable.java119 List<String> workSpecIds = workSpecDao.getUnfinishedWorkWithTag(tag);
120 for (String workSpecId : workSpecIds) {
150 List<String> workSpecIds = workSpecDao.getUnfinishedWorkWithName(name);
151 for (String workSpecId : workSpecIds) {
177 List<String> workSpecIds = workSpecDao.getAllUnfinishedWork();
178 for (String workSpecId : workSpecIds) {
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/
DWorkConstraintsTracker.java118 public void onConstraintMet(@NonNull List<String> workSpecIds) { in onConstraintMet() argument
120 for (String workSpecId : workSpecIds) { in onConstraintMet()
132 public void onConstraintNotMet(@NonNull List<String> workSpecIds) { in onConstraintNotMet() argument
134 mCallback.onAllConstraintsNotMet(workSpecIds); in onConstraintNotMet()
DWorkConstraintsCallback.java34 void onAllConstraintsMet(@NonNull List<String> workSpecIds); in onAllConstraintsMet() argument
41 void onAllConstraintsNotMet(@NonNull List<String> workSpecIds); in onAllConstraintsNotMet() argument
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/
DWorkConstraintsTrackerTest.java54 public void onAllConstraintsMet(@NonNull List<String> workSpecIds) {
55 mUnconstrainedWorkSpecIds = workSpecIds;
59 public void onAllConstraintsNotMet(@NonNull List<String> workSpecIds) {
60 mConstrainedWorkSpecIds = workSpecIds;
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/greedy/
DGreedyScheduler.java101 public synchronized void onAllConstraintsMet(@NonNull List<String> workSpecIds) { in onAllConstraintsMet() argument
102 for (String workSpecId : workSpecIds) { in onAllConstraintsMet()
109 public synchronized void onAllConstraintsNotMet(@NonNull List<String> workSpecIds) { in onAllConstraintsNotMet() argument
110 for (String workSpecId : workSpecIds) { in onAllConstraintsNotMet()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java477 List<String> workSpecIds = mDatabase.workNameDao().getWorkSpecIdsWithName(uniqueName); in testBeginUniqueWork_setsUniqueName() local
478 assertThat(work.getStringId(), isIn(workSpecIds)); in testBeginUniqueWork_setsUniqueName()
496 List<String> workSpecIds = mDatabase.workNameDao().getWorkSpecIdsWithName(uniqueName); in testEnqueueUniquePeriodicWork_setsUniqueName() local
497 assertThat(periodicWork.getStringId(), isIn(workSpecIds)); in testEnqueueUniquePeriodicWork_setsUniqueName()
509 List<String> workSpecIds = mDatabase.workNameDao().getWorkSpecIdsWithName(uniqueName); in testBeginUniqueWork_deletesOldWorkOnReplace() local
510 assertThat(workSpecIds, containsInAnyOrder(originalWork.getStringId())); in testBeginUniqueWork_deletesOldWorkOnReplace()
522 workSpecIds = mDatabase.workNameDao().getWorkSpecIdsWithName(uniqueName); in testBeginUniqueWork_deletesOldWorkOnReplace()
524 workSpecIds, in testBeginUniqueWork_deletesOldWorkOnReplace()
545 List<String> workSpecIds = mDatabase.workNameDao().getWorkSpecIdsWithName(uniqueName); in testEnqueueUniquePeriodicWork_deletesOldWorkOnReplace() local
546 assertThat(workSpecIds, containsInAnyOrder(originalWork.getStringId())); in testEnqueueUniquePeriodicWork_deletesOldWorkOnReplace()
[all …]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/workers/
DConstraintTrackingWorker.java142 public void onAllConstraintsMet(@NonNull List<String> workSpecIds) { in onAllConstraintsMet() argument
148 public void onAllConstraintsNotMet(@NonNull List<String> workSpecIds) { in onAllConstraintsNotMet() argument
150 Log.d(TAG, String.format("Constraints changed for %s", workSpecIds)); in onAllConstraintsNotMet()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/controllers/
DConstraintController.java46 void onConstraintMet(@NonNull List<String> workSpecIds); in onConstraintMet() argument
53 void onConstraintNotMet(@NonNull List<String> workSpecIds); in onConstraintNotMet() argument
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkManagerImpl.java462 LiveData<List<WorkStatus>> getStatusesById(@NonNull List<String> workSpecIds) {
465 dao.getWorkStatusPojoLiveDataForIds(workSpecIds);
469 List<WorkStatus> getStatusesByIdSync(@NonNull List<String> workSpecIds) {
471 .getWorkStatusPojoForIds(workSpecIds);