Home
last modified time | relevance | path

Searched refs:workerClassName (Results 1 – 8 of 8) sorted by relevance

/frameworks/support/work/workmanager-ktx/src/androidTest/java/androidx/work/
DPeriodicWorkRequestTest.kt38 assertEquals(workRequest.workSpec.workerClassName, TestWorker::class.java.name) in testPeriodicWorkRequestBuilder()
50 assertEquals(workRequest.workSpec.workerClassName, TestWorker::class.java.name) in testPeriodicWorkRequestBuilder_withDuration()
64 assertEquals(workRequest.workSpec.workerClassName, TestWorker::class.java.name) in testPeriodicWorkRequestBuilder_withFlexTime()
78 assertEquals(workRequest.workSpec.workerClassName, TestWorker::class.java.name) in testPeriodicWorkRequestBuilder_withFlexTimeandDuration()
DOneTimeWorkRequestTest.kt34 assertEquals(request.workSpec.workerClassName, TestWorker::class.java.name) in testOneTimeWorkRequestBuilder()
43 assertEquals(request.workSpec.workerClassName, TestWorker::class.java.name) in testOneTimeWorkRequestBuilderDefaults()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/
DWorkSpec.java71 public String workerClassName; field in WorkSpec
120 public WorkSpec(@NonNull String id, @NonNull String workerClassName) { in WorkSpec() argument
122 this.workerClassName = workerClassName; in WorkSpec()
254 if (!workerClassName.equals(workSpec.workerClassName)) return false; in equals()
270 result = 31 * result + workerClassName.hashCode(); in hashCode()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/
DWorkerWrapper.java143 Log.e(TAG, String.format("Could for create Worker %s", mWorkSpec.workerClassName)); in run()
382 String workerClassName = workSpec.workerClassName; in workerFromWorkSpec() local
386 workerClassName, in workerFromWorkSpec()
406 @NonNull String workerClassName, in workerFromClassName() argument
411 Class<?> clazz = Class.forName(workerClassName); in workerFromClassName()
426 Log.e(TAG, "Trouble instantiating " + workerClassName, e); in workerFromClassName()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DEnqueueRunnable.java291 String workerClassName = workSpec.workerClassName; in tryDelegateConstrainedWorkSpec() local
295 .putString(ARGUMENT_CLASS_NAME, workerClassName); in tryDelegateConstrainedWorkSpec()
296 workSpec.workerClassName = ConstraintTrackingWorker.class.getName(); in tryDelegateConstrainedWorkSpec()
/frameworks/support/work/workmanager-test/src/main/java/androidx/work/test/
DTestScheduler.java113 workSpec.id, workSpec.workerClassName)); in scheduleInternal()
120 workSpec.id, workSpec.workerClassName)); in scheduleInternal()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java1479 assertThat(workSpec.workerClassName, is(TestWorker.class.getName())); in testEnqueueApi22OrLower_withBatteryNotLowConstraint_expectsOriginalWorker()
1494 assertThat(workSpec.workerClassName, is(TestWorker.class.getName())); in testEnqueueApi22OrLower_withStorageNotLowConstraint_expectsOriginalWorker()
1509 assertThat(workSpec.workerClassName, is(ConstraintTrackingWorker.class.getName())); in testEnqueueApi23To25_withBatteryNotLowConstraint_expectsConstraintTrackingWorker()
1527 assertThat(workSpec.workerClassName, is(ConstraintTrackingWorker.class.getName())); in testEnqueueApi23To25_withStorageNotLowConstraint_expectsConstraintTrackingWorker()
1545 assertThat(workSpec.workerClassName, is(TestWorker.class.getName())); in testEnqueueApi26OrHigher_withBatteryNotLowConstraint_expectsOriginalWorker()
1560 assertThat(workSpec.workerClassName, is(TestWorker.class.getName())); in testEnqueueApi26OrHigher_withStorageNotLowConstraint_expectsOriginalWorker()
DWorkerWrapperTest.java187 getWorkSpec(work).workerClassName = "INVALID_CLASS_NAME"; in testPermanentErrorWithInvalidWorkerClass()