Searched refs:periodicWork (Results 1 – 9 of 9) sorted by relevance
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/ |
D | PeriodicWorkTest.java | 61 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testBuild_setPeriodic_onlyIntervalDuration_inRange() local 66 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_onlyIntervalDuration_inRange() 67 assertThat(getWorkSpec(periodicWork).flexDuration, is(testInterval)); in testBuild_setPeriodic_onlyIntervalDuration_inRange() 74 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testBuild_setPeriodic_onlyIntervalDuration_outOfRange() local 79 assertThat(getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_onlyIntervalDuration_outOfRange() 81 assertThat(getWorkSpec(periodicWork).flexDuration, in testBuild_setPeriodic_onlyIntervalDuration_outOfRange() 90 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testBuild_setPeriodic_intervalAndFlexDurations_inRange() local 97 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_intervalAndFlexDurations_inRange() 98 assertThat(getWorkSpec(periodicWork).flexDuration, is(testFlex)); in testBuild_setPeriodic_intervalAndFlexDurations_inRange() 106 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testBuild_setPeriodic_intervalAndFlexDurations_outOfRange() local [all …]
|
D | DatabaseTest.java | 46 protected void insertWork(PeriodicWorkRequest periodicWork) { in insertWork() argument 47 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(periodicWork)); in insertWork()
|
D | WorkSpecTest.java | 57 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testCalculateNextRunTime_firstRunAttempt_periodic() local 65 assertThat(getWorkSpec(periodicWork).calculateNextRunTime(), in testCalculateNextRunTime_firstRunAttempt_periodic()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/ |
D | WorkerWrapperTest.java | 458 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testRun_periodicWork_success_updatesPeriodStartTime() local 461 getWorkSpec(periodicWork).periodStartTime = periodStartTime; in testRun_periodicWork_success_updatesPeriodStartTime() 463 insertWork(periodicWork); in testRun_periodicWork_success_updatesPeriodStartTime() 465 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, periodicWork.getStringId()) in testRun_periodicWork_success_updatesPeriodStartTime() 470 WorkSpec updatedWorkSpec = mWorkSpecDao.getWorkSpec(periodicWork.getStringId()); in testRun_periodicWork_success_updatesPeriodStartTime() 481 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testRun_periodicWork_failure_updatesPeriodStartTime() local 484 getWorkSpec(periodicWork).periodStartTime = periodStartTime; in testRun_periodicWork_failure_updatesPeriodStartTime() 486 insertWork(periodicWork); in testRun_periodicWork_failure_updatesPeriodStartTime() 488 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, periodicWork.getStringId()) in testRun_periodicWork_failure_updatesPeriodStartTime() 493 WorkSpec updatedWorkSpec = mWorkSpecDao.getWorkSpec(periodicWork.getStringId()); in testRun_periodicWork_failure_updatesPeriodStartTime() [all …]
|
D | WorkManagerImplTest.java | 421 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testEnqueue_insertPeriodicWork() local 427 mWorkManagerImpl.synchronous().enqueueSync(periodicWork); in testEnqueue_insertPeriodicWork() 429 WorkSpec workSpec = mDatabase.workSpecDao().getWorkSpec(periodicWork.getStringId()); in testEnqueue_insertPeriodicWork() 451 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testEnqueued_periodicWork_setsPeriodStartTime() local 456 assertThat(periodicWork.getWorkSpec().periodStartTime, is(0L)); in testEnqueued_periodicWork_setsPeriodStartTime() 460 mWorkManagerImpl.synchronous().enqueueSync(periodicWork); in testEnqueued_periodicWork_setsPeriodStartTime() 462 WorkSpec workSpec = mDatabase.workSpecDao().getWorkSpec(periodicWork.getStringId()); in testEnqueued_periodicWork_setsPeriodStartTime() 486 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testEnqueueUniquePeriodicWork_setsUniqueName() local 494 periodicWork); in testEnqueueUniquePeriodicWork_setsUniqueName() 497 assertThat(periodicWork.getStringId(), isIn(workSpecIds)); in testEnqueueUniquePeriodicWork_setsUniqueName()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/ |
D | WorkManagerImpl.java | 284 @NonNull PeriodicWorkRequest periodicWork) { in enqueueUniquePeriodicWork() argument 288 periodicWork) in enqueueUniquePeriodicWork() 296 @NonNull PeriodicWorkRequest periodicWork) { in enqueueUniquePeriodicWorkSync() argument 301 periodicWork) in enqueueUniquePeriodicWorkSync() 308 @NonNull PeriodicWorkRequest periodicWork) { in createWorkContinuationForUniquePeriodicWork() argument 319 Collections.singletonList(periodicWork)); in createWorkContinuationForUniquePeriodicWork()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/greedy/ |
D | GreedySchedulerTest.java | 75 PeriodicWorkRequest periodicWork = in testGreedyScheduler_ignoresPeriodicWork() local 78 mGreedyScheduler.schedule(getWorkSpec(periodicWork)); in testGreedyScheduler_ignoresPeriodicWork()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/ |
D | SynchronousWorkManager.java | 74 @NonNull PeriodicWorkRequest periodicWork); in enqueueUniquePeriodicWorkSync() argument
|
D | WorkManager.java | 258 @NonNull PeriodicWorkRequest periodicWork); in enqueueUniquePeriodicWork() argument
|