package androidx.core.app;

import android.app.job.JobParameters;
import android.app.job.JobServiceEngine;

/* JADX INFO: loaded from: classes.dex */
public final class u extends JobServiceEngine implements p {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final JobIntentService f1674a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Object f1675b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public JobParameters f1676c;

    public u(JobIntentService jobIntentService) {
        super(jobIntentService);
        this.f1675b = new Object();
        this.f1674a = jobIntentService;
    }

    public final boolean onStartJob(JobParameters jobParameters) {
        this.f1676c = jobParameters;
        this.f1674a.ensureProcessorRunningLocked(false);
        return true;
    }

    public final boolean onStopJob(JobParameters jobParameters) {
        boolean zDoStopCurrentWork = this.f1674a.doStopCurrentWork();
        synchronized (this.f1675b) {
            this.f1676c = null;
        }
        return zDoStopCurrentWork;
    }
}
