/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/ |
D | SystemJobScheduler.java | 50 private final WorkManagerImpl mWorkManager; field in SystemJobScheduler 67 mWorkManager = workManager; in SystemJobScheduler() 75 WorkDatabase workDatabase = mWorkManager.getWorkDatabase(); in schedule() 85 mWorkManager.getConfiguration().getMinJobSchedulerID(), in schedule() 86 mWorkManager.getConfiguration().getMaxJobSchedulerID()); in schedule() 90 mWorkManager.getWorkDatabase() in schedule() 104 mWorkManager.getConfiguration().getMinJobSchedulerID(), in schedule() 105 mWorkManager.getConfiguration().getMaxJobSchedulerID()); in schedule() 141 mWorkManager.getWorkDatabase() in cancel()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/ |
D | ForceStopRunnableTest.java | 48 private WorkManagerImpl mWorkManager; field in ForceStopRunnableTest 57 mWorkManager = mock(WorkManagerImpl.class); in setUp() 61 when(mWorkManager.getWorkDatabase()).thenReturn(mWorkDatabase); in setUp() 63 when(mWorkManager.getPreferences()).thenReturn(mPreferences); in setUp() 64 mRunnable = new ForceStopRunnable(mContext, mWorkManager); in setUp() 82 verify(mWorkManager, times(1)).rescheduleEligibleWork(); in testReschedulesOnForceStop() 91 verify(mWorkManager, times(0)).rescheduleEligibleWork(); in test_doNothingWhenNotForceStopped()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/ |
D | AlarmsTest.java | 48 private WorkManagerImpl mWorkManager; field in AlarmsTest 54 mWorkManager = mock(WorkManagerImpl.class); in setUp() 57 when(mWorkManager.getWorkDatabase()).thenReturn(mDatabase); in setUp() 66 Alarms.setAlarm(mContext, mWorkManager, workSpecId, mTriggerAt); in testSetAlarm_noPreExistingAlarms() 80 Alarms.setAlarm(mContext, mWorkManager, workSpecId, mTriggerAt); in testSetAlarm_withPreExistingAlarms() 95 Alarms.cancelAlarm(mContext, mWorkManager, workSpecId); in testCancelAlarm()
|
D | SystemAlarmDispatcherTest.java | 84 private WorkManagerImpl mWorkManager; field in SystemAlarmDispatcherTest 104 mWorkManager = mock(WorkManagerImpl.class); in setUp() 114 when(mWorkManager.getWorkDatabase()).thenReturn(mDatabase); in setUp() 115 when(mWorkManager.getConfiguration()).thenReturn(mConfiguration); in setUp() 127 new CommandInterceptingSystemDispatcher(mContext, mSpyProcessor, mWorkManager); in setUp() 212 verify(mWorkManager, times(1)).stopWork(workSpecId); in testDelayMet_withStop() 237 verify(mWorkManager, times(1)).stopWork(workSpecId); in testDelayMet_withStopWhenCancelled() 391 doCallRealMethod().when(mWorkManager).rescheduleEligibleWork(); in testReschedule() 392 when(mWorkManager.getSchedulers()).thenReturn(Collections.singletonList(scheduler)); in testReschedule()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/ |
D | ForceStopRunnable.java | 61 private final WorkManagerImpl mWorkManager; field in ForceStopRunnable 65 mWorkManager = workManager; in ForceStopRunnable() 73 mWorkManager.rescheduleEligibleWork(); in run() 75 mWorkManager.getPreferences().setMigratedPersistedJobs(); in run() 78 mWorkManager.rescheduleEligibleWork(); in run() 106 && mWorkManager.getPreferences().shouldMigratePersistedJobs(); in shouldCancelPersistedJobs()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/ |
D | SchedulersTest.java | 47 private WorkManagerImpl mWorkManager; field in SchedulersTest 51 mWorkManager = mock(WorkManagerImpl.class); in setUp() 59 Schedulers.createBestAvailableBackgroundScheduler(mAppContext, mWorkManager); in testGetBackgroundScheduler_withJobSchedulerApiLevel() 68 Schedulers.createBestAvailableBackgroundScheduler(mAppContext, mWorkManager); in testGetBackgroundScheduler_beforeJobSchedulerApiLevel()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/ |
D | SystemJobSchedulerTest.java | 66 private WorkManagerImpl mWorkManager; field in SystemJobSchedulerTest 78 mWorkManager = mock(WorkManagerImpl.class); in setUp() 81 when(mWorkManager.getConfiguration()).thenReturn(configuration); in setUp() 83 when(mWorkManager.getWorkDatabase()).thenReturn(workDatabase); in setUp() 102 mWorkManager, in setUp()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/ |
D | SystemAlarmDispatcher.java | 59 private final WorkManagerImpl mWorkManager; field in SystemAlarmDispatcher 81 mWorkManager = workManager != null ? workManager : WorkManagerImpl.getInstance(); in SystemAlarmDispatcher() 82 mProcessor = processor != null ? processor : mWorkManager.getProcessor(); in SystemAlarmDispatcher() 167 return mWorkManager; in getWorkManager()
|