Home
last modified time | relevance | path

Searched refs:PeriodicWorkRequest (Results 1 – 16 of 16) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DPeriodicWorkTest.java46 new PeriodicWorkRequest.Builder( in testBuild_backoffAndIdleMode_throwsIllegalArgumentException()
48 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS, in testBuild_backoffAndIdleMode_throwsIllegalArgumentException()
60 long testInterval = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS + 123L; in testBuild_setPeriodic_onlyIntervalDuration_inRange()
61 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testBuild_setPeriodic_onlyIntervalDuration_inRange()
73 long testInterval = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS - 123L; in testBuild_setPeriodic_onlyIntervalDuration_outOfRange()
74 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testBuild_setPeriodic_onlyIntervalDuration_outOfRange()
80 is(PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS)); in testBuild_setPeriodic_onlyIntervalDuration_outOfRange()
82 is(PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS)); in testBuild_setPeriodic_onlyIntervalDuration_outOfRange()
88 long testInterval = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS + 123L; in testBuild_setPeriodic_intervalAndFlexDurations_inRange()
89 long testFlex = PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS + 123L; in testBuild_setPeriodic_intervalAndFlexDurations_inRange()
[all …]
DWorkSpecTest.java39 PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS + 5000L;
41 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS + 5000L;
57 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testCalculateNextRunTime_firstRunAttempt_periodic()
DDatabaseTest.java46 protected void insertWork(PeriodicWorkRequest periodicWork) { in insertWork()
/frameworks/support/work/workmanager-ktx/src/main/java/androidx/work/
DPeriodicWorkRequest.kt31 repeatIntervalTimeUnit: TimeUnit): PeriodicWorkRequest.Builder { in PeriodicWorkRequestBuilder()
32 return PeriodicWorkRequest.Builder(W::class.java, repeatInterval, repeatIntervalTimeUnit) in PeriodicWorkRequestBuilder()
42 repeatInterval: Duration): PeriodicWorkRequest.Builder { in PeriodicWorkRequestBuilder()
43 return PeriodicWorkRequest.Builder(W::class.java, repeatInterval) in PeriodicWorkRequestBuilder()
58 flexTimeIntervalUnit: TimeUnit): PeriodicWorkRequest.Builder { in PeriodicWorkRequestBuilder()
60 return PeriodicWorkRequest.Builder( in PeriodicWorkRequestBuilder()
77 flexTimeInterval: Duration): PeriodicWorkRequest.Builder { in PeriodicWorkRequestBuilder()
78 return PeriodicWorkRequest.Builder(W::class.java, repeatInterval, flexTimeInterval) in PeriodicWorkRequestBuilder()
/frameworks/support/work/workmanager-ktx/src/main/java/androidx/work/ktx/
DPeriodicWorkRequest.kt19 import androidx.work.PeriodicWorkRequest
37 repeatIntervalTimeUnit: TimeUnit): PeriodicWorkRequest.Builder { in PeriodicWorkRequestBuilder()
38 return PeriodicWorkRequest.Builder(W::class.java, repeatInterval, repeatIntervalTimeUnit) in PeriodicWorkRequestBuilder()
59 flexTimeIntervalUnit: TimeUnit): PeriodicWorkRequest.Builder { in PeriodicWorkRequestBuilder()
61 return PeriodicWorkRequest.Builder( in PeriodicWorkRequestBuilder()
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DPeriodicWorkRequest.java29 public final class PeriodicWorkRequest extends WorkRequest { class
40 PeriodicWorkRequest(Builder builder) { in PeriodicWorkRequest() method in PeriodicWorkRequest
47 public static final class Builder extends WorkRequest.Builder<Builder, PeriodicWorkRequest> {
154 public PeriodicWorkRequest build() { in build()
161 return new PeriodicWorkRequest(this); in build()
DSynchronousWorkManager.java74 @NonNull PeriodicWorkRequest periodicWork); in enqueueUniquePeriodicWorkSync()
DWorkManager.java258 @NonNull PeriodicWorkRequest periodicWork); in enqueueUniquePeriodicWork()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/greedy/
DGreedySchedulerTest.java28 import androidx.work.PeriodicWorkRequest;
75 PeriodicWorkRequest periodicWork = in testGreedyScheduler_ignoresPeriodicWork()
76 new PeriodicWorkRequest.Builder(TestWorker.class, 0L, TimeUnit.MILLISECONDS) in testGreedyScheduler_ignoresPeriodicWork()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkerWrapperTest.java51 import androidx.work.PeriodicWorkRequest;
454 long intervalDuration = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS; in testRun_periodicWork_success_updatesPeriodStartTime()
458 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testRun_periodicWork_success_updatesPeriodStartTime()
477 long intervalDuration = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS; in testRun_periodicWork_failure_updatesPeriodStartTime()
481 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testRun_periodicWork_failure_updatesPeriodStartTime()
500 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testPeriodicWork_success()
502 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS, in testPeriodicWork_success()
522 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testPeriodicWork_fail()
524 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS, in testPeriodicWork_fail()
544 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testPeriodicWork_retry()
[all …]
DWorkManagerImplTest.java73 import androidx.work.PeriodicWorkRequest;
421 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testEnqueue_insertPeriodicWork()
423 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS, in testEnqueue_insertPeriodicWork()
431 assertThat(workSpec.intervalDuration, is(PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS)); in testEnqueue_insertPeriodicWork()
432 assertThat(workSpec.flexDuration, is(PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS)); in testEnqueue_insertPeriodicWork()
451 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testEnqueued_periodicWork_setsPeriodStartTime()
453 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS, in testEnqueued_periodicWork_setsPeriodStartTime()
486 PeriodicWorkRequest periodicWork = new PeriodicWorkRequest.Builder( in testEnqueueUniquePeriodicWork_setsUniqueName()
538 PeriodicWorkRequest originalWork = new PeriodicWorkRequest.Builder( in testEnqueueUniquePeriodicWork_deletesOldWorkOnReplace()
548 PeriodicWorkRequest replacementWork = new PeriodicWorkRequest.Builder( in testEnqueueUniquePeriodicWork_deletesOldWorkOnReplace()
[all …]
/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/
DMainActivity.java37 import androidx.work.PeriodicWorkRequest;
135 PeriodicWorkRequest request = in onCreate()
136 new PeriodicWorkRequest.Builder(ToastWorker.class, 15, TimeUnit.MINUTES) in onCreate()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/
DSystemJobInfoConverterTest.java41 import androidx.work.PeriodicWorkRequest;
56 PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS + 1232L;
58 PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS + 112L;
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/
DFirebaseJobConverterTest.java39 import androidx.work.PeriodicWorkRequest;
151 long testInterval = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS; in testConvert_periodic()
152 long testFlex = PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS; in testConvert_periodic()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkManagerImpl.java32 import androidx.work.PeriodicWorkRequest;
284 @NonNull PeriodicWorkRequest periodicWork) { in enqueueUniquePeriodicWork()
296 @NonNull PeriodicWorkRequest periodicWork) { in enqueueUniquePeriodicWorkSync()
308 @NonNull PeriodicWorkRequest periodicWork) { in createWorkContinuationForUniquePeriodicWork()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java19 import static androidx.work.PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS;
20 import static androidx.work.PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS;