package androidx.work.impl.workers;

import android.content.Context;
import android.os.Build;
import androidx.work.WorkerParameters;
import o.AbstractC0504Tl;
import o.AbstractC0995dM;
import o.AbstractC1320gm;
import o.C0669Zu;
import o.C1224fm;
import o.C2595u70;
import o.Dm0;
import o.JT;
import o.RunnableC2108p1;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class ConstraintTrackingWorker extends AbstractC0995dM implements JT {
    public final WorkerParameters p;
    public final Object q;
    public volatile boolean r;
    public final C2595u70 s;
    public AbstractC0995dM t;

    public ConstraintTrackingWorker(Context context, WorkerParameters workerParameters) {
        super(context, workerParameters);
        this.p = workerParameters;
        this.q = new Object();
        this.s = new C2595u70();
    }

    @Override // o.AbstractC0995dM
    public final void b() {
        AbstractC0995dM abstractC0995dM = this.t;
        if (abstractC0995dM == null || abstractC0995dM.n != -256) {
            return;
        }
        abstractC0995dM.e(Build.VERSION.SDK_INT >= 31 ? this.n : 0);
    }

    @Override // o.JT
    public final void c(Dm0 dm0, AbstractC1320gm abstractC1320gm) {
        C0669Zu c0669ZuE = C0669Zu.e();
        int i = AbstractC0504Tl.a;
        dm0.toString();
        c0669ZuE.getClass();
        if (abstractC1320gm instanceof C1224fm) {
            synchronized (this.q) {
                this.r = true;
            }
        }
    }

    @Override // o.AbstractC0995dM
    public final C2595u70 d() {
        this.m.c.execute(new RunnableC2108p1(8, this));
        return this.s;
    }
}
