Home
last modified time | relevance | path

Searched refs:WorkManagerImpl (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobServiceTest.java51 import androidx.work.impl.WorkManagerImpl;
65 @SdkSuppress(minSdkVersion = WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL)
71 private WorkManagerImpl mWorkManagerImpl;
78 if (Build.VERSION.SDK_INT < WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) { in setUp()
103 mWorkManagerImpl = new WorkManagerImpl(context, configuration); in setUp()
104 WorkManagerImpl.setDelegate(mWorkManagerImpl); in setUp()
114 if (Build.VERSION.SDK_INT < WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) { in tearDown()
119 WorkManagerImpl.setDelegate(null); in tearDown()
127 if (Build.VERSION.SDK_INT < WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) { in testOnStopJob_ResetsWorkStatus()
153 if (Build.VERSION.SDK_INT < WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) { in testOnStopJob_ReschedulesWhenNotCancelled()
[all …]
DSystemJobSchedulerTest.java48 import androidx.work.impl.WorkManagerImpl;
61 @SdkSuppress(minSdkVersion = WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL)
66 private WorkManagerImpl mWorkManager;
78 mWorkManager = mock(WorkManagerImpl.class); in setUp()
/frameworks/support/work/workmanager-test/src/main/java/androidx/work/test/
DWorkManagerTestInitHelper.java24 import androidx.work.impl.WorkManagerImpl;
62 WorkManagerImpl workManager = new TestWorkManagerImpl(context, configuration) { in initializeTestWorkManager()
75 WorkManagerImpl.setDelegate(workManager); in initializeTestWorkManager()
83 WorkManagerImpl workManager = WorkManagerImpl.getInstance(); in getTestDriver()
87 return ((TestWorkManagerImpl) WorkManagerImpl.getInstance()); in getTestDriver()
DTestScheduler.java27 import androidx.work.impl.WorkManagerImpl;
74 WorkManagerImpl.getInstance().stopWork(workSpecId); in cancel()
122 WorkManagerImpl.getInstance() in scheduleInternal()
DTestWorkManagerImpl.java26 import androidx.work.impl.WorkManagerImpl;
37 abstract class TestWorkManagerImpl extends WorkManagerImpl implements TestDriver {
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DForceStopRunnable.java36 import androidx.work.impl.WorkManagerImpl;
61 private final WorkManagerImpl mWorkManager;
63 public ForceStopRunnable(@NonNull Context context, @NonNull WorkManagerImpl workManager) { in ForceStopRunnable()
105 return Build.VERSION.SDK_INT >= WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL in shouldCancelPersistedJobs()
135 @TargetApi(WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL)
170 WorkManagerImpl workManager = WorkManagerImpl.getInstance(); in onReceive()
DCancelWorkRunnable.java32 import androidx.work.impl.WorkManagerImpl;
47 void cancel(WorkManagerImpl workManagerImpl, String workSpecId) { in cancel()
58 void reschedulePendingWorkers(WorkManagerImpl workManagerImpl) { in reschedulePendingWorkers()
90 @NonNull final WorkManagerImpl workManagerImpl) { in forId()
110 @NonNull final WorkManagerImpl workManagerImpl) {
141 @NonNull final WorkManagerImpl workManagerImpl) {
169 public static Runnable forAll(@NonNull final WorkManagerImpl workManagerImpl) {
DPruneWorkRunnable.java22 import androidx.work.impl.WorkManagerImpl;
35 private WorkManagerImpl mWorkManagerImpl;
37 public PruneWorkRunnable(WorkManagerImpl workManagerImpl) { in PruneWorkRunnable()
DStartWorkRunnable.java22 import androidx.work.impl.WorkManagerImpl;
34 private WorkManagerImpl mWorkManagerImpl;
39 WorkManagerImpl workManagerImpl, in StartWorkRunnable()
DStopWorkRunnable.java24 import androidx.work.impl.WorkManagerImpl;
37 private WorkManagerImpl mWorkManagerImpl;
40 public StopWorkRunnable(WorkManagerImpl workManagerImpl, String workSpecId) { in StopWorkRunnable()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DSchedulersTest.java47 private WorkManagerImpl mWorkManager;
51 mWorkManager = mock(WorkManagerImpl.class); in setUp()
56 @SdkSuppress(minSdkVersion = WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL)
65 @SdkSuppress(maxSdkVersion = WorkManagerImpl.MAX_PRE_JOB_SCHEDULER_API_LEVEL)
76 if (Build.VERSION.SDK_INT >= WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) { in assertServicesEnabled()
DWorkManagerImplLargeExecutorTest.java78 private WorkManagerImpl mWorkManagerImpl;
111 mWorkManagerImpl = new WorkManagerImpl(context, configuration, true); in setUp()
113 WorkManagerImpl.setDelegate(mWorkManagerImpl); in setUp()
118 WorkManagerImpl.setDelegate(null); in tearDown()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/worker/
DCheckLimitsWorker.java26 import androidx.work.impl.WorkManagerImpl;
43 WorkManagerImpl workManager = WorkManagerImpl.getInstance(); in doWork()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/
DSystemJobScheduler.java31 import androidx.work.impl.WorkManagerImpl;
44 @TargetApi(WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL)
50 private final WorkManagerImpl mWorkManager;
54 public SystemJobScheduler(@NonNull Context context, @NonNull WorkManagerImpl workManager) { in SystemJobScheduler()
64 WorkManagerImpl workManager, in SystemJobScheduler()
DSystemJobService.java31 import androidx.work.impl.WorkManagerImpl;
42 @TargetApi(WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL)
45 private WorkManagerImpl mWorkManagerImpl;
51 mWorkManagerImpl = WorkManagerImpl.getInstance(); in onCreate()
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/
DFirebaseDelayedJobAlarmReceiver.java27 import androidx.work.impl.WorkManagerImpl;
44 final WorkManagerImpl workManagerImpl = WorkManagerImpl.getInstance(); in onReceive()
DFirebaseJobService.java25 import androidx.work.impl.WorkManagerImpl;
41 private WorkManagerImpl mWorkManagerImpl;
47 mWorkManagerImpl = WorkManagerImpl.getInstance(); in onCreate()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/greedy/
DGreedyScheduler.java29 import androidx.work.impl.WorkManagerImpl;
49 private WorkManagerImpl mWorkManagerImpl;
53 public GreedyScheduler(Context context, WorkManagerImpl workManagerImpl) { in GreedyScheduler()
59 public GreedyScheduler(WorkManagerImpl workManagerImpl, in GreedyScheduler()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DSystemAlarmDispatcher.java34 import androidx.work.impl.WorkManagerImpl;
59 private final WorkManagerImpl mWorkManager;
76 @Nullable WorkManagerImpl workManager) { in SystemAlarmDispatcher()
81 mWorkManager = workManager != null ? workManager : WorkManagerImpl.getInstance(); in SystemAlarmDispatcher()
166 WorkManagerImpl getWorkManager() { in getWorkManager()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkManager.java24 import androidx.work.impl.WorkManagerImpl;
127 return WorkManagerImpl.getInstance(); in getInstance()
140 WorkManagerImpl.initialize(context, configuration); in initialize()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkContinuationImpl.java55 private final WorkManagerImpl mWorkManagerImpl;
65 public WorkManagerImpl getWorkManagerImpl() { in getWorkManagerImpl()
108 @NonNull WorkManagerImpl workManagerImpl, in WorkContinuationImpl()
119 @NonNull WorkManagerImpl workManagerImpl, in WorkContinuationImpl()
126 WorkContinuationImpl(@NonNull WorkManagerImpl workManagerImpl, in WorkContinuationImpl()
DWorkManagerImpl.java63 public class WorkManagerImpl extends WorkManager implements SynchronousWorkManager { class
76 private static WorkManagerImpl sDelegatedInstance = null;
77 private static WorkManagerImpl sDefaultInstance = null;
87 public static void setDelegate(WorkManagerImpl delegate) { in setDelegate()
100 public static WorkManagerImpl getInstance() { in getInstance()
126 sDefaultInstance = new WorkManagerImpl(context, configuration); in initialize()
141 public WorkManagerImpl( in WorkManagerImpl() method in WorkManagerImpl
158 public WorkManagerImpl( in WorkManagerImpl() method in WorkManagerImpl
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DWorkManagerTest.java24 import androidx.work.impl.WorkManagerImpl;
36 if (Build.VERSION.SDK_INT >= WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) { in clearJobs()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/greedy/
DGreedySchedulerTest.java31 import androidx.work.impl.WorkManagerImpl;
50 private WorkManagerImpl mWorkManagerImpl;
56 mWorkManagerImpl = mock(WorkManagerImpl.class); in setUp()
/frameworks/support/work/workmanager-test/src/androidTest/java/androidx/work/test/
DWorkManagerInitHelperTest.java29 import androidx.work.impl.WorkManagerImpl;
50 WorkManagerImpl.setDelegate(null); in tearDown()

12