Home
last modified time | relevance | path

Searched refs:ForceStopRunnable (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DForceStopRunnableTest.java52 private ForceStopRunnable mRunnable;
64 mRunnable = new ForceStopRunnable(mContext, mWorkManager); in setUp()
72 is(ForceStopRunnable.BroadcastReceiver.class.getName())); in testIntent()
73 assertThat(intent.getAction(), is(ForceStopRunnable.ACTION_FORCE_STOP_RESCHEDULE)); in testIntent()
78 ForceStopRunnable runnable = spy(mRunnable); in testReschedulesOnForceStop()
87 ForceStopRunnable runnable = spy(mRunnable); in test_doNothingWhenNotForceStopped()
96 ForceStopRunnable runnable = spy(mRunnable); in test_cancelAllJobSchedulerJobs()
106 ForceStopRunnable runnable = spy(mRunnable); in test_doNothingWhenThereIsNothingToCancel()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DForceStopRunnable.java49 public class ForceStopRunnable implements Runnable { class
63 public ForceStopRunnable(@NonNull Context context, @NonNull WorkManagerImpl workManager) { in ForceStopRunnable() method in ForceStopRunnable
126 intent.setComponent(new ComponentName(mContext, ForceStopRunnable.BroadcastReceiver.class)); in getIntent()
171 ForceStopRunnable runnable = new ForceStopRunnable(context, workManager); in onReceive()
172 runnable.setAlarm(ForceStopRunnable.ALARM_ID); in onReceive()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkManagerImpl.java43 import androidx.work.impl.utils.ForceStopRunnable;
177 mTaskExecutor.executeOnBackgroundThread(new ForceStopRunnable(context, this)); in WorkManagerImpl()