/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/ |
D | PeriodicWorkTest.java | 66 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_onlyIntervalDuration_inRange() 67 assertThat(getWorkSpec(periodicWork).flexDuration, is(testInterval)); in testBuild_setPeriodic_onlyIntervalDuration_inRange() 79 assertThat(getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_onlyIntervalDuration_outOfRange() 81 assertThat(getWorkSpec(periodicWork).flexDuration, in testBuild_setPeriodic_onlyIntervalDuration_outOfRange() 97 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_intervalAndFlexDurations_inRange() 98 assertThat(getWorkSpec(periodicWork).flexDuration, is(testFlex)); in testBuild_setPeriodic_intervalAndFlexDurations_inRange() 113 assertThat(getWorkSpec(periodicWork).intervalDuration, in testBuild_setPeriodic_intervalAndFlexDurations_outOfRange() 115 assertThat(getWorkSpec(periodicWork).flexDuration, in testBuild_setPeriodic_intervalAndFlexDurations_outOfRange() 131 assertThat(getWorkSpec(periodicWork).intervalDuration, is(testInterval)); in testBuild_setPeriodic_intervalInRange_flexOutOfRange() 132 assertThat(getWorkSpec(periodicWork).flexDuration, in testBuild_setPeriodic_intervalInRange_flexOutOfRange() [all …]
|
D | WorkSpecTest.java | 50 long actualDelay = getWorkSpec(work).calculateNextRunTime(); in testCalculateNextRunTime_firstRunAttempt_oneOff() 65 assertThat(getWorkSpec(periodicWork).calculateNextRunTime(), in testCalculateNextRunTime_firstRunAttempt_periodic() 97 long nextRunTime1 = getWorkSpec(work1).calculateNextRunTime(); in testCalculateNextRunTime_rerunAttempt_exponential() 98 long nextRunTime2 = getWorkSpec(work2).calculateNextRunTime(); in testCalculateNextRunTime_rerunAttempt_exponential() 99 long nextRunTime3 = getWorkSpec(work3).calculateNextRunTime(); in testCalculateNextRunTime_rerunAttempt_exponential() 136 long nextRunTime1 = getWorkSpec(work1).calculateNextRunTime(); in testCalculateNextRunTime_rerunAttempt_linear() 137 long nextRunTime2 = getWorkSpec(work2).calculateNextRunTime(); in testCalculateNextRunTime_rerunAttempt_linear() 138 long nextRunTime3 = getWorkSpec(work3).calculateNextRunTime(); in testCalculateNextRunTime_rerunAttempt_linear() 157 assertThat(getWorkSpec(work).calculateNextRunTime(), in testCalculateNextRunTime_rerunAttempt_linear_upperBound() 172 assertThat(getWorkSpec(work).calculateNextRunTime(), in testCalculateNextRunTime_rerunAttempt_exponential_upperBound()
|
D | WorkTest.java | 53 assertThat(getWorkSpec(work).initialDelay, is(expectedInitialDelay)); in testBuild_withInitialDelay() 63 getWorkSpec(work).initialDelay, in testBuild_withInitialDelayUsingDurationParameter() 76 assertThat(getWorkSpec(work).backoffDelayDuration, is(WorkRequest.MAX_BACKOFF_MILLIS)); in testBuild_setBackoffCriteria_exceedMaxBackoffDuration() 88 assertThat(getWorkSpec(work).backoffDelayDuration, is(WorkRequest.MIN_BACKOFF_MILLIS)); in testBuild_setBackoffCriteria_lessThanMinBackoffDuration()
|
D | DatabaseTest.java | 43 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(work)); in insertWork() 47 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(periodicWork)); in insertWork()
|
D | WorkManagerTest.java | 43 protected WorkSpec getWorkSpec(WorkRequest work) { in getWorkSpec() method in WorkManagerTest 44 return work.getWorkSpec(); in getWorkSpec()
|
D | WorkSpecDaoTest.java | 79 containsInAnyOrder(work.getWorkSpec(), enqueued.getWorkSpec())); in testEligibleWorkSpecsForScheduling() 110 assertThat(eligibleWorkSpecs, containsInAnyOrder(enqueued.getWorkSpec())); in testScheduledWorkSpecCount()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/ |
D | WorkManagerImplTest.java | 164 assertThat(mDatabase.workSpecDao().getWorkSpec(id), is(notNullValue())); in testEnqueue_insertWork() 194 assertThat(workSpecDao.getWorkSpec(work1.getStringId()), is(notNullValue())); in testEnqueue_insertMultipleWork() 195 assertThat(workSpecDao.getWorkSpec(work2.getStringId()), is(notNullValue())); in testEnqueue_insertMultipleWork() 196 assertThat(workSpecDao.getWorkSpec(work3.getStringId()), is(notNullValue())); in testEnqueue_insertMultipleWork() 211 assertThat(workSpecDao.getWorkSpec(work1.getStringId()), is(notNullValue())); in testEnqueue_insertMultipleWork_continuationBlocking() 212 assertThat(workSpecDao.getWorkSpec(work2.getStringId()), is(notNullValue())); in testEnqueue_insertMultipleWork_continuationBlocking() 213 assertThat(workSpecDao.getWorkSpec(work3.getStringId()), is(notNullValue())); in testEnqueue_insertMultipleWork_continuationBlocking() 231 assertThat(workSpecDao.getWorkSpec(work1a.getStringId()), is(notNullValue())); in testEnqueue_insertWithDependencies() 232 assertThat(workSpecDao.getWorkSpec(work1b.getStringId()), is(notNullValue())); in testEnqueue_insertWithDependencies() 233 assertThat(workSpecDao.getWorkSpec(work2.getStringId()), is(notNullValue())); in testEnqueue_insertWithDependencies() [all …]
|
D | WorkerWrapperTest.java | 125 WorkSpec latestWorkSpec = mWorkSpecDao.getWorkSpec(work.getStringId()); in testRunAttemptCountIncremented_successfulExecution() 139 WorkSpec latestWorkSpec = mWorkSpecDao.getWorkSpec(work.getStringId()); in testRunAttemptCountIncremented_failedExecution() 187 getWorkSpec(work).workerClassName = "INVALID_CLASS_NAME"; in testPermanentErrorWithInvalidWorkerClass() 201 getWorkSpec(work).inputMergerClassName = "INVALID_CLASS_NAME"; in testPermanentErrorWithInvalidInputMergerClass() 410 WorkSpec workSpec = mWorkSpecDao.getWorkSpec(work.getStringId()); in testDependencies_setsPeriodStartTimesForUnblockedWork() 461 getWorkSpec(periodicWork).periodStartTime = periodStartTime; in testRun_periodicWork_success_updatesPeriodStartTime() 470 WorkSpec updatedWorkSpec = mWorkSpecDao.getWorkSpec(periodicWork.getStringId()); in testRun_periodicWork_success_updatesPeriodStartTime() 484 getWorkSpec(periodicWork).periodStartTime = periodStartTime; in testRun_periodicWork_failure_updatesPeriodStartTime() 493 WorkSpec updatedWorkSpec = mWorkSpecDao.getWorkSpec(periodicWork.getStringId()); in testRun_periodicWork_failure_updatesPeriodStartTime() 513 WorkSpec periodicWorkSpecAfterFirstRun = mWorkSpecDao.getWorkSpec(periodicWorkId); in testPeriodicWork_success() [all …]
|
D | WorkContinuationImplTest.java | 279 workSpecDao.insertWorkSpec(getWorkSpec(firstWork)); in testContinuation_joinPassesAllOutput() 280 workSpecDao.insertWorkSpec(getWorkSpec(secondWork)); in testContinuation_joinPassesAllOutput() 316 WorkSpec joinWorkSpec = mDatabase.workSpecDao().getWorkSpec(joinId); in testContinuation_joinPassesAllOutput()
|
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/ |
D | FirebaseJobConverterTest.java | 127 .getWorkSpec(); in testConvert_requireContentUriTrigger() 143 .getWorkSpec(); in testConvert_requiresCharging() 178 .getWorkSpec(); in testConvert_requiresDeviceIdle() 191 .getWorkSpec(); in testConvert_requiresNetworkAny() 204 .getWorkSpec(); in testConvert_requiresNetworkMetered_unsupported() 217 .getWorkSpec(); in testConvert_requiresNetworkNotRoaming_unsupported() 230 .getWorkSpec(); in testConvert_requiresNetworkUnmetered()
|
D | FirebaseJobServiceTest.java | 119 mDatabase.workSpecDao().insertWorkSpec(work.getWorkSpec()); in insertWork()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/greedy/ |
D | GreedySchedulerTest.java | 67 WorkSpec workSpec = getWorkSpec(work); in testGreedyScheduler_startsUnconstrainedWork() 78 mGreedyScheduler.schedule(getWorkSpec(periodicWork)); in testGreedyScheduler_ignoresPeriodicWork() 88 mGreedyScheduler.schedule(getWorkSpec(work)); in testGreedyScheduler_ignoresInitialDelayWork()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/ |
D | SystemJobSchedulerTest.java | 114 WorkSpec workSpec1 = getWorkSpec(work1); in testSystemJobScheduler_schedulesTwiceOnApi23() 117 WorkSpec workSpec2 = getWorkSpec(work2); in testSystemJobScheduler_schedulesTwiceOnApi23() 132 WorkSpec workSpec1 = getWorkSpec(work1); in testSystemJobScheduler_schedulesOnceAtOrAboveApi24() 135 WorkSpec workSpec2 = getWorkSpec(work2); in testSystemJobScheduler_schedulesOnceAtOrAboveApi24()
|
D | SystemJobServiceTest.java | 268 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(work)); in insertWork()
|
D | SystemJobInfoConverterTest.java | 281 return getWorkSpec(new OneTimeWorkRequest.Builder(TestWorker.class) in getTestWorkSpecWithConstraints()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/workers/ |
D | ConstraintTrackingWorkerTest.java | 164 WorkSpec workSpec = mDatabase.workSpecDao().getWorkSpec(workSpecId); in testConstraintTrackingWorker_onConstraintsMet() 210 WorkSpec workSpec = mDatabase.workSpecDao().getWorkSpec(workSpecId); in testConstraintTrackingWorker_onConstraintsNotMet() 261 WorkSpec workSpec = mDatabase.workSpecDao().getWorkSpec(workSpecId); in testConstraintTrackingWorker_onConstraintsChanged() 322 WorkSpec workSpec = mDatabase.workSpecDao().getWorkSpec(workSpecId); in testConstraintTrackingWorker_onConstraintsChangedTwice()
|
/frameworks/support/work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/ |
D | FirebaseDelayedJobAlarmReceiver.java | 51 WorkSpec workSpec = database.workSpecDao().getWorkSpec(workSpecId); in onReceive()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/ |
D | EnqueueRunnable.java | 173 WorkSpec prerequisiteWorkSpec = workDatabase.workSpecDao().getWorkSpec(id); in enqueueWorkWithPrerequisites() 241 WorkSpec workSpec = work.getWorkSpec(); in enqueueWorkWithPrerequisites()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/workers/ |
D | ConstraintTrackingWorker.java | 88 WorkSpec workSpec = workDatabase.workSpecDao().getWorkSpec(getId().toString()); in doWork()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/ |
D | WorkSpecDao.java | 62 WorkSpec getWorkSpec(String id); in getWorkSpec() method
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/ |
D | WorkRequest.java | 93 public WorkSpec getWorkSpec() { in getWorkSpec() method in WorkRequest
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/ |
D | DelayMetCommandHandler.java | 144 .getWorkSpec(mWorkSpecId); in handleProcessWork()
|
D | CommandHandler.java | 201 WorkSpec workSpec = workSpecDao.getWorkSpec(workSpecId); in handleScheduleWorkIntent()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/ |
D | SystemAlarmDispatcherTest.java | 340 WorkSpec workSpec = workSpecDao.getWorkSpec(work.getStringId()); in testDelayMet_withUnMetConstraint() 374 WorkSpec workSpec = workSpecDao.getWorkSpec(work.getStringId()); in testDelayMet_withMetConstraint()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/controllers/ |
D | ConstraintControllerTest.java | 60 return getWorkSpec(new OneTimeWorkRequest.Builder(TestWorker.class) in createTestWorkSpec()
|