Home
last modified time | relevance | path

Searched refs:getWorkDatabase (Results 1 – 22 of 22) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DCancelWorkRunnable.java48 recursivelyCancelWorkAndDependents(workManagerImpl.getWorkDatabase(), workSpecId); in cancel()
61 workManagerImpl.getWorkDatabase(), in reschedulePendingWorkers()
115 WorkDatabase workDatabase = workManagerImpl.getWorkDatabase();
146 WorkDatabase workDatabase = workManagerImpl.getWorkDatabase();
173 WorkDatabase workDatabase = workManagerImpl.getWorkDatabase();
DEnqueueRunnable.java92 WorkDatabase workDatabase = workManagerImpl.getWorkDatabase(); in addToDatabase()
111 workManager.getWorkDatabase(), in scheduleWorkInBackground()
161 WorkDatabase workDatabase = workManagerImpl.getWorkDatabase(); in enqueueWorkWithPrerequisites()
DPruneWorkRunnable.java43 WorkDatabase workDatabase = mWorkManagerImpl.getWorkDatabase(); in run()
DStopWorkRunnable.java47 WorkDatabase workDatabase = mWorkManagerImpl.getWorkDatabase(); in run()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/workers/
DConstraintTrackingWorker.java85 WorkDatabase workDatabase = getWorkDatabase(); in doWork()
137 public WorkDatabase getWorkDatabase() { in getWorkDatabase() method in ConstraintTrackingWorker
138 return WorkManagerImpl.getInstance().getWorkDatabase(); in getWorkDatabase()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobScheduler.java75 WorkDatabase workDatabase = mWorkManager.getWorkDatabase(); in schedule()
90 mWorkManager.getWorkDatabase() in schedule()
141 mWorkManager.getWorkDatabase() in cancel()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/workers/
DConstraintTrackingWorkerTest.java98 when(mWorkManagerImpl.getWorkDatabase()).thenReturn(mDatabase); in setUp()
154 when(spyWorker.getWorkDatabase()).thenReturn(mDatabase); in testConstraintTrackingWorker_onConstraintsMet()
200 when(spyWorker.getWorkDatabase()).thenReturn(mDatabase); in testConstraintTrackingWorker_onConstraintsNotMet()
245 when(spyWorker.getWorkDatabase()).thenReturn(mDatabase); in testConstraintTrackingWorker_onConstraintsChanged()
297 when(spyWorker.getWorkDatabase()).thenReturn(mDatabase); in testConstraintTrackingWorker_onConstraintsChangedTwice()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DAlarms.java60 WorkDatabase workDatabase = workManager.getWorkDatabase(); in setAlarm()
87 WorkDatabase workDatabase = workManager.getWorkDatabase(); in cancelAlarm()
DConstraintsCommandHandler.java68 List<WorkSpec> candidates = mDispatcher.getWorkManager().getWorkDatabase() in handleConstraintsChanged()
DDelayMetCommandHandler.java142 .getWorkDatabase() in handleProcessWork()
DCommandHandler.java198 WorkDatabase workDatabase = workManager.getWorkDatabase(); in handleScheduleWorkIntent()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/worker/
DCheckLimitsWorker.java44 List<WorkSpec> eligibleWorkSpecs = workManager.getWorkDatabase() in doWork()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseDelayedJobAlarmReceiver.java46 final WorkDatabase database = workManagerImpl.getWorkDatabase(); in onReceive()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkManagerImpl.java194 public WorkDatabase getWorkDatabase() { in getWorkDatabase() method in WorkManagerImpl
514 getWorkDatabase().workSpecDao().resetScheduledState();
519 Schedulers.schedule(getConfiguration(), getWorkDatabase(), getSchedulers());
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/
DAlarmsTest.java57 when(mWorkManager.getWorkDatabase()).thenReturn(mDatabase); in setUp()
DSystemAlarmDispatcherTest.java114 when(mWorkManager.getWorkDatabase()).thenReturn(mDatabase); in setUp()
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobServiceTest.java57 mDatabase = WorkManagerImpl.getInstance().getWorkDatabase(); in setUp()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DForceStopRunnableTest.java61 when(mWorkManager.getWorkDatabase()).thenReturn(mWorkDatabase); in setUp()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobSchedulerTest.java83 when(mWorkManager.getWorkDatabase()).thenReturn(workDatabase); in setUp()
DSystemJobServiceTest.java105 mDatabase = mWorkManagerImpl.getWorkDatabase(); in setUp()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkContinuationImplTest.java114 mDatabase = mWorkManagerImpl.getWorkDatabase(); in setUp()
525 WorkDatabase workDatabase = continuation.getWorkManagerImpl().getWorkDatabase(); in verifyScheduled()
DWorkManagerImplTest.java140 mDatabase = mWorkManagerImpl.getWorkDatabase(); in setUp()