package X2;

import N2.o;
import android.content.Context;
import android.os.UserManager;
import com.google.android.gms.internal.measurement.C1;
import java.util.Set;
import java.util.concurrent.Executor;

/* JADX INFO: loaded from: classes.dex */
public final class d implements f, g {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Z2.a f3269c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Set f3270d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final Executor f3271e;

    public d(Context context, String str, Set set, Z2.a aVar, Executor executor) {
        this.f3267a = new o(new I2.c(context, str));
        this.f3270d = set;
        this.f3271e = executor;
        this.f3269c = aVar;
        this.f3268b = context;
    }

    public final P1.o a() {
        if (!((UserManager) this.f3268b.getSystemService(UserManager.class)).isUserUnlocked()) {
            return C1.l("");
        }
        return C1.c(this.f3271e, new c(this, 0));
    }

    public final void b() {
        if (this.f3270d.size() <= 0) {
            C1.l(null);
        } else if (!((UserManager) this.f3268b.getSystemService(UserManager.class)).isUserUnlocked()) {
            C1.l(null);
        } else {
            C1.c(this.f3271e, new c(this, 1));
        }
    }
}
