/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/ |
D | WorkerWrapperTest.java | 107 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, work.getStringId()) in testSuccess() 111 verify(mMockListener).onExecuted(work.getStringId(), true, false); in testSuccess() 112 assertThat(mWorkSpecDao.getState(work.getStringId()), is(SUCCEEDED)); in testSuccess() 120 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, work.getStringId()) in testRunAttemptCountIncremented_successfulExecution() 125 WorkSpec latestWorkSpec = mWorkSpecDao.getWorkSpec(work.getStringId()); in testRunAttemptCountIncremented_successfulExecution() 134 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, work.getStringId()) in testRunAttemptCountIncremented_failedExecution() 139 WorkSpec latestWorkSpec = mWorkSpecDao.getWorkSpec(work.getStringId()); in testRunAttemptCountIncremented_failedExecution() 161 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, work.getStringId()) in testNotEnqueued() 165 verify(mMockListener).onExecuted(work.getStringId(), false, true); in testNotEnqueued() 175 new WorkerWrapper.Builder(mContext, mConfiguration, mDatabase, work.getStringId()) in testCancelled() [all …]
|
D | WorkManagerImplTest.java | 163 String id = workArray[i].getStringId(); in testEnqueue_insertWork() 179 List<String> tags = workTagDao.getTagsForWorkSpecId(work.getStringId()); in testEnqueue_AddsImplicitTags() 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() [all …]
|
D | WorkContinuationImplTest.java | 135 assertThat(continuation.getIds().get(0), is(testWork.getStringId())); in testContinuation_noParent() 150 assertThat(dependent.getIds().get(0), is(dependentWork.getStringId())); in testContinuation_singleChain() 154 containsInAnyOrder(dependentWork.getStringId(), testWork.getStringId())); in testContinuation_singleChain() 217 assertThat(dependent.getIds(), containsInAnyOrder(work.getStringId())); in testContinuation_withWorkJoin() 283 firstWork.getStringId(), in testContinuation_joinPassesAllOutput() 286 secondWork.getStringId(), in testContinuation_joinPassesAllOutput() 300 if (!firstWork.getStringId().equals(id) && !secondWork.getStringId().equals(id)) { in testContinuation_joinPassesAllOutput()
|
D | ProcessorTest.java | 68 String id = work.getStringId(); in testStartWork_doesNotStartWorkTwice() 81 mProcessor.startWork(work.getStringId()); in testHasWork()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemjob/ |
D | SystemJobServiceTest.java | 134 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ResetsWorkStatus() 141 assertThat(workSpecDao.getState(work.getStringId()), is(State.RUNNING)); in testOnStopJob_ResetsWorkStatus() 146 assertThat(workSpecDao.getState(work.getStringId()), is(State.ENQUEUED)); in testOnStopJob_ResetsWorkStatus() 160 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ReschedulesWhenNotCancelled() 176 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_DoesNotRescheduleWhenCancelled() 193 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testStartJob_ReturnsFalseWithDuplicateJob() 212 work.getStringId(), in testStartJob_PassesContentUriTriggers() 213 "yet another " + work.getStringId() in testStartJob_PassesContentUriTriggers() 221 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testStartJob_PassesContentUriTriggers() 245 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testStartJob_passesNetwork()
|
/frameworks/support/work/workmanager-firebase/src/androidTest/java/androidx/work/impl/background/firebase/ |
D | FirebaseJobServiceTest.java | 74 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ResetsWorkStatus() 81 assertThat(workSpecDao.getState(work.getStringId()), is(State.RUNNING)); in testOnStopJob_ResetsWorkStatus() 84 assertThat(workSpecDao.getState(work.getStringId()), is(State.ENQUEUED)); in testOnStopJob_ResetsWorkStatus() 94 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_ReschedulesWhenNotCancelled() 106 JobParameters mockParams = createMockJobParameters(work.getStringId()); in testOnStopJob_DoesNotRescheduleWhenCancelled()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/ |
D | SystemAlarmDispatcherTest.java | 165 String workSpecId = work.getStringId(); in testSchedule() 179 String workSpecId = work.getStringId(); in testDelayMet_success() 197 String workSpecId = work.getStringId(); in testDelayMet_withStop() 222 String workSpecId = work.getStringId(); in testDelayMet_withStopWhenCancelled() 253 String workSpecId = work.getStringId(); in testSchedule_withConstraints() 291 String workSpecId = work.getStringId(); in testConstraintsChangedMarkedNotScheduled_withNoConstraints() 332 Intent delayMet = CommandHandler.createDelayMetIntent(mContext, work.getStringId()); in testDelayMet_withUnMetConstraint() 340 WorkSpec workSpec = workSpecDao.getWorkSpec(work.getStringId()); in testDelayMet_withUnMetConstraint() 366 Intent delayMet = CommandHandler.createDelayMetIntent(mContext, work.getStringId()); in testDelayMet_withMetConstraint() 374 WorkSpec workSpec = workSpecDao.getWorkSpec(work.getStringId()); in testDelayMet_withMetConstraint() [all …]
|
D | AlarmsTest.java | 64 String workSpecId = work.getStringId(); in testSetAlarm_noPreExistingAlarms() 75 String workSpecId = work.getStringId(); in testSetAlarm_withPreExistingAlarms() 90 String workSpecId = work.getStringId(); in testCancelAlarm()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/ |
D | WorkSpecDaoTest.java | 73 workSpecDao.markWorkSpecScheduled(scheduled.getStringId(), System.currentTimeMillis()); in testEligibleWorkSpecsForScheduling() 171 workSpecDao.markWorkSpecScheduled(enqueued.getStringId(), startTime); in testResetScheduledState() 183 assertThat(eligibleWorkSpecs.get(0).id, is(enqueued.getStringId())); in testResetScheduledState()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/workers/ |
D | ConstraintTrackingWorkerTest.java | 144 String workSpecId = work.getStringId(); in testConstraintTrackingWorker_onConstraintsMet() 190 String workSpecId = work.getStringId(); in testConstraintTrackingWorker_onConstraintsNotMet() 235 String workSpecId = work.getStringId(); in testConstraintTrackingWorker_onConstraintsChanged() 287 String workSpecId = work.getStringId(); in testConstraintTrackingWorker_onConstraintsChangedTwice()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/ |
D | EnqueueRunnable.java | 270 Dependency dep = new Dependency(work.getStringId(), prerequisiteId); in enqueueWorkWithPrerequisites() 276 workDatabase.workTagDao().insert(new WorkTag(tag, work.getStringId())); in enqueueWorkWithPrerequisites() 280 workDatabase.workNameDao().insert(new WorkName(name, work.getStringId())); in enqueueWorkWithPrerequisites()
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/ |
D | WorkRequest.java | 82 public String getStringId() { in getStringId() method in WorkRequest
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/ |
D | WorkContinuationImpl.java | 144 String id = work.get(i).getStringId(); in WorkContinuationImpl()
|