Home
last modified time | relevance | path

Searched refs:periodStartTime (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java112 public long periodStartTime; field in WorkSpec
222 return periodStartTime + Math.min(WorkRequest.MAX_BACKOFF_MILLIS, delay); in calculateNextRunTime()
224 return periodStartTime + intervalDuration - flexDuration; in calculateNextRunTime()
226 return periodStartTime + initialDelay; in calculateNextRunTime()
249 if (periodStartTime != workSpec.periodStartTime) return false; in equals()
281 result = 31 * result + (int) (periodStartTime ^ (periodStartTime >>> 32)); in hashCode()
DWorkSpecDao.java115 void setPeriodStartTime(String id, long periodStartTime); in setPeriodStartTime() argument
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkRequest.java271 public B setPeriodStartTime(long periodStartTime, @NonNull TimeUnit timeUnit) { in setPeriodStartTime() argument
272 mWorkSpec.periodStartTime = timeUnit.toMillis(periodStartTime); in setPeriodStartTime()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkerWrapperTest.java411 assertThat(workSpec.periodStartTime, is(greaterThan(beforeUnblockedTime))); in testDependencies_setsPeriodStartTimesForUnblockedWork()
455 long periodStartTime = System.currentTimeMillis(); in testRun_periodicWork_success_updatesPeriodStartTime() local
456 long expectedNextPeriodStartTime = periodStartTime + intervalDuration; in testRun_periodicWork_success_updatesPeriodStartTime()
461 getWorkSpec(periodicWork).periodStartTime = periodStartTime; in testRun_periodicWork_success_updatesPeriodStartTime()
471 assertThat(updatedWorkSpec.periodStartTime, is(expectedNextPeriodStartTime)); in testRun_periodicWork_success_updatesPeriodStartTime()
478 long periodStartTime = System.currentTimeMillis(); in testRun_periodicWork_failure_updatesPeriodStartTime() local
479 long expectedNextPeriodStartTime = periodStartTime + intervalDuration; in testRun_periodicWork_failure_updatesPeriodStartTime()
484 getWorkSpec(periodicWork).periodStartTime = periodStartTime; in testRun_periodicWork_failure_updatesPeriodStartTime()
494 assertThat(updatedWorkSpec.periodStartTime, is(expectedNextPeriodStartTime)); in testRun_periodicWork_failure_updatesPeriodStartTime()
DWorkManagerImplTest.java439 assertThat(work.getWorkSpec().periodStartTime, is(0L)); in testEnqueued_work_setsPeriodStartTime()
445 assertThat(workSpec.periodStartTime, is(greaterThanOrEqualTo(beforeEnqueueTime))); in testEnqueued_work_setsPeriodStartTime()
456 assertThat(periodicWork.getWorkSpec().periodStartTime, is(0L)); in testEnqueued_periodicWork_setsPeriodStartTime()
463 assertThat(workSpec.periodStartTime, is(greaterThanOrEqualTo(beforeEnqueueTime))); in testEnqueued_periodicWork_setsPeriodStartTime()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DEnqueueRunnable.java254 workSpec.periodStartTime = currentTimeMillis; in enqueueWorkWithPrerequisites()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkerWrapper.java337 long currentPeriodStartTime = mWorkSpec.periodStartTime; in resetPeriodicAndNotify()