Searched refs:intervalDuration (Results 1 – 8 of 8) sorted by relevance
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/ |
D | WorkSpec.java | 88 public long intervalDuration; field in WorkSpec 142 return intervalDuration != 0L; in isPeriodic() 154 public void setPeriodic(long intervalDuration) { in setPeriodic() argument 155 if (intervalDuration < MIN_PERIODIC_INTERVAL_MILLIS) { in setPeriodic() 159 intervalDuration = MIN_PERIODIC_INTERVAL_MILLIS; in setPeriodic() 161 setPeriodic(intervalDuration, intervalDuration); in setPeriodic() 170 public void setPeriodic(long intervalDuration, long flexDuration) { in setPeriodic() argument 171 if (intervalDuration < MIN_PERIODIC_INTERVAL_MILLIS) { in setPeriodic() 175 intervalDuration = MIN_PERIODIC_INTERVAL_MILLIS; in setPeriodic() 183 if (flexDuration > intervalDuration) { in setPeriodic() [all …]
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/ |
D | PeriodicWorkTest.java | 66 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_onlyIntervalDuration_inRange() 79 assertThat(getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_onlyIntervalDuration_outOfRange() 97 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_intervalAndFlexDurations_inRange() 113 assertThat(getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_intervalAndFlexDurations_outOfRange() 131 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_intervalInRange_flexOutOfRange() 148 assertThat(getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_intervalOutOfRange_flexInRange() 165 getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_withDurationParameters()
|
/frameworks/support/work/workmanager-ktx/src/androidTest/java/androidx/work/ |
D | PeriodicWorkRequestTest.kt | 40 assertEquals(workRequest.workSpec.intervalDuration, TimeUnit.MINUTES.toMillis(15)) in testPeriodicWorkRequestBuilder() 52 assertEquals(workRequest.workSpec.intervalDuration, repeatInterval.toMillis()) in testPeriodicWorkRequestBuilder_withDuration() 80 assertEquals(workRequest.workSpec.intervalDuration, repeatInterval.toMillis()) in testPeriodicWorkRequestBuilder_withFlexTimeandDuration()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/ |
D | SystemJobInfoConverter.java | 91 builder.setPeriodic(workSpec.intervalDuration, workSpec.flexDuration); in convert() 95 builder.setPeriodic(workSpec.intervalDuration); in convert()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/ |
D | WorkerWrapperTest.java | 454 long intervalDuration = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS; in testRun_periodicWork_success_updatesPeriodStartTime() local 456 long expectedNextPeriodStartTime = periodStartTime + intervalDuration; in testRun_periodicWork_success_updatesPeriodStartTime() 459 TestWorker.class, intervalDuration, TimeUnit.MILLISECONDS).build(); in testRun_periodicWork_success_updatesPeriodStartTime() 477 long intervalDuration = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS; in testRun_periodicWork_failure_updatesPeriodStartTime() local 479 long expectedNextPeriodStartTime = periodStartTime + intervalDuration; in testRun_periodicWork_failure_updatesPeriodStartTime() 482 FailureWorker.class, intervalDuration, TimeUnit.MILLISECONDS).build(); in testRun_periodicWork_failure_updatesPeriodStartTime()
|
D | WorkManagerImplTest.java | 431 assertThat(workSpec.intervalDuration, is(PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS)); in testEnqueue_insertPeriodicWork()
|
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/ |
D | FirebaseJobConverter.java | 93 int windowEndSeconds = convertMillisecondsToSeconds(workSpec.intervalDuration); in createPeriodicTrigger()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/ |
D | WorkerWrapper.java | 338 long nextPeriodStartTime = currentPeriodStartTime + mWorkSpec.intervalDuration; in resetPeriodicAndNotify()
|