package androidx.work.impl; import androidx.work.WorkerParameters; import androidx.work.impl.utils.StopWorkRunnable; import androidx.work.impl.utils.taskexecutor.TaskExecutor; import kotlin.jvm.internal.Intrinsics; /* loaded from: classes.dex */ public final class WorkLauncherImpl implements WorkLauncher { private final Processor processor; private final TaskExecutor workTaskExecutor; public final Processor getProcessor() { return this.processor; } public final TaskExecutor getWorkTaskExecutor() { return this.workTaskExecutor; } public WorkLauncherImpl(Processor processor, TaskExecutor workTaskExecutor) { Intrinsics.checkNotNullParameter(processor, "processor"); Intrinsics.checkNotNullParameter(workTaskExecutor, "workTaskExecutor"); this.processor = processor; this.workTaskExecutor = workTaskExecutor; } /* JADX INFO: Access modifiers changed from: private */ public static final void startWork$lambda$0(WorkLauncherImpl workLauncherImpl, StartStopToken startStopToken, WorkerParameters.RuntimeExtras runtimeExtras) { workLauncherImpl.processor.startWork(startStopToken, runtimeExtras); } @Override // androidx.work.impl.WorkLauncher public void startWork(final StartStopToken workSpecId, final WorkerParameters.RuntimeExtras runtimeExtras) { Intrinsics.checkNotNullParameter(workSpecId, "workSpecId"); this.workTaskExecutor.executeOnTaskThread(new Runnable() { // from class: androidx.work.impl.WorkLauncherImpl$$ExternalSyntheticLambda0 @Override // java.lang.Runnable public final void run() { WorkLauncherImpl.startWork$lambda$0(WorkLauncherImpl.this, workSpecId, runtimeExtras); } }); } @Override // androidx.work.impl.WorkLauncher public void stopWork(StartStopToken workSpecId, int i) { Intrinsics.checkNotNullParameter(workSpecId, "workSpecId"); this.workTaskExecutor.executeOnTaskThread(new StopWorkRunnable(this.processor, workSpecId, false, i)); } }