Searched refs:repeatInterval (Results 1 – 6 of 6) sorted by relevance
/frameworks/support/work/workmanager-ktx/src/main/java/androidx/work/ |
D | PeriodicWorkRequest.kt | 30 repeatInterval: Long, 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() 55 repeatInterval: Long, in PeriodicWorkRequestBuilder() 62 repeatInterval, in PeriodicWorkRequestBuilder() 76 repeatInterval: Duration, in PeriodicWorkRequestBuilder() 78 return PeriodicWorkRequest.Builder(W::class.java, repeatInterval, flexTimeInterval) in PeriodicWorkRequestBuilder()
|
/frameworks/support/work/workmanager-ktx/src/androidTest/java/androidx/work/ |
D | PeriodicWorkRequestTest.kt | 35 repeatInterval = 15L, in testPeriodicWorkRequestBuilder() 47 val repeatInterval = Duration.ofDays(2).plusHours(3) in testPeriodicWorkRequestBuilder_withDuration() constant 48 val builder = PeriodicWorkRequestBuilder<TestWorker>(repeatInterval) in testPeriodicWorkRequestBuilder_withDuration() 52 assertEquals(workRequest.workSpec.intervalDuration, repeatInterval.toMillis()) in testPeriodicWorkRequestBuilder_withDuration() 53 assertEquals(workRequest.workSpec.flexDuration, repeatInterval.toMillis()) in testPeriodicWorkRequestBuilder_withDuration() 59 repeatInterval = 15L, in testPeriodicWorkRequestBuilder_withFlexTime() 72 val repeatInterval = Duration.ofHours(3).plusMinutes(25) in testPeriodicWorkRequestBuilder_withFlexTimeandDuration() constant 73 val flexInterval = repeatInterval.minusMinutes(15) in testPeriodicWorkRequestBuilder_withFlexTimeandDuration() 75 repeatInterval = repeatInterval, in testPeriodicWorkRequestBuilder_withFlexTimeandDuration() 80 assertEquals(workRequest.workSpec.intervalDuration, repeatInterval.toMillis()) in testPeriodicWorkRequestBuilder_withFlexTimeandDuration()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/ |
D | PeriodicWorkRequest.java | 64 long repeatInterval, in Builder() argument 67 mWorkSpec.setPeriodic(repeatIntervalTimeUnit.toMillis(repeatInterval)); in Builder() 85 @NonNull Duration repeatInterval) { in Builder() argument 87 mWorkSpec.setPeriodic(repeatInterval.toMillis()); in Builder() 114 long repeatInterval, in Builder() argument 120 repeatIntervalTimeUnit.toMillis(repeatInterval), in Builder() 147 @NonNull Duration repeatInterval, in Builder() argument 150 mWorkSpec.setPeriodic(repeatInterval.toMillis(), flexInterval.toMillis()); in Builder()
|
/frameworks/support/work/workmanager-ktx/src/main/java/androidx/work/ktx/ |
D | PeriodicWorkRequest.kt | 36 repeatInterval: Long, in PeriodicWorkRequestBuilder() 38 return PeriodicWorkRequest.Builder(W::class.java, repeatInterval, repeatIntervalTimeUnit) in PeriodicWorkRequestBuilder() 56 repeatInterval: Long, in PeriodicWorkRequestBuilder() 63 repeatInterval, in PeriodicWorkRequestBuilder()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/ |
D | PeriodicWorkTest.java | 157 Duration repeatInterval = Duration.ofDays(2).plusHours(3); in testBuild_setPeriodic_withDurationParameters() local 161 repeatInterval, in testBuild_setPeriodic_withDurationParameters()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 941 : maxTriggerTime(nowElapsed, whenElapsed, a.repeatInterval); in reAddAlarmLocked() 1044 if (alarm.repeatInterval > 0) { in deliverPendingBackgroundAlarmsLocked() 1045 alarm.count += (nowELAPSED - alarm.expectedWhenElapsed) / alarm.repeatInterval; in deliverPendingBackgroundAlarmsLocked() 1047 final long delta = alarm.count * alarm.repeatInterval; in deliverPendingBackgroundAlarmsLocked() 1050 maxTriggerTime(nowELAPSED, nextElapsed, alarm.repeatInterval), in deliverPendingBackgroundAlarmsLocked() 1051 alarm.repeatInterval, alarm.operation, null, null, alarm.flags, true, in deliverPendingBackgroundAlarmsLocked() 1695 + " interval=" + a.repeatInterval + " op=" + a.operation in setImplLocked() 3154 if (alarm.repeatInterval > 0) { in triggerAlarmsLocked() 3157 alarm.count += (nowELAPSED - alarm.expectedWhenElapsed) / alarm.repeatInterval; in triggerAlarmsLocked() 3160 final long delta = alarm.count * alarm.repeatInterval; in triggerAlarmsLocked() [all …]
|