Home
last modified time | relevance | path

Searched refs:getWorkSpec (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
DPeriodicWorkTest.java66 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 …]
DWorkSpecTest.java50 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()
DWorkTest.java53 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()
DDatabaseTest.java43 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(work)); in insertWork()
47 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(periodicWork)); in insertWork()
DWorkManagerTest.java43 protected WorkSpec getWorkSpec(WorkRequest work) { in getWorkSpec() method in WorkManagerTest
44 return work.getWorkSpec(); in getWorkSpec()
DWorkSpecDaoTest.java79 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/
DWorkManagerImplTest.java164 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 …]
DWorkerWrapperTest.java125 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 …]
DWorkContinuationImplTest.java279 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/
DFirebaseJobConverterTest.java127 .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()
DFirebaseJobServiceTest.java119 mDatabase.workSpecDao().insertWorkSpec(work.getWorkSpec()); in insertWork()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/greedy/
DGreedySchedulerTest.java67 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/
DSystemJobSchedulerTest.java114 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()
DSystemJobServiceTest.java268 mDatabase.workSpecDao().insertWorkSpec(getWorkSpec(work)); in insertWork()
DSystemJobInfoConverterTest.java281 return getWorkSpec(new OneTimeWorkRequest.Builder(TestWorker.class) in getTestWorkSpecWithConstraints()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/workers/
DConstraintTrackingWorkerTest.java164 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/
DFirebaseDelayedJobAlarmReceiver.java51 WorkSpec workSpec = database.workSpecDao().getWorkSpec(workSpecId); in onReceive()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DEnqueueRunnable.java173 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/
DConstraintTrackingWorker.java88 WorkSpec workSpec = workDatabase.workSpecDao().getWorkSpec(getId().toString()); in doWork()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpecDao.java62 WorkSpec getWorkSpec(String id); in getWorkSpec() method
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DWorkRequest.java93 public WorkSpec getWorkSpec() { in getWorkSpec() method in WorkRequest
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DDelayMetCommandHandler.java144 .getWorkSpec(mWorkSpecId); in handleProcessWork()
DCommandHandler.java201 WorkSpec workSpec = workSpecDao.getWorkSpec(workSpecId); in handleScheduleWorkIntent()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/
DSystemAlarmDispatcherTest.java340 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/
DConstraintControllerTest.java60 return getWorkSpec(new OneTimeWorkRequest.Builder(TestWorker.class) in createTestWorkSpec()

12