package eb;

import android.content.Context;
import android.os.UserManager;
import java.util.Set;
import java.util.concurrent.Executor;
import w8.k;
import w8.t;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final gb.a f25804a;

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

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

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

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

    public d(Context context, String str, Set set, gb.a aVar, Executor executor) {
        this.f25804a = new ua.c(context, str);
        this.f25807d = set;
        this.f25808e = executor;
        this.f25806c = aVar;
        this.f25805b = context;
    }

    public final t a() {
        return ((UserManager) this.f25805b.getSystemService(UserManager.class)).isUserUnlocked() ^ true ? k.e("") : k.c(new c(this, 0), this.f25808e);
    }

    public final void b() {
        if (this.f25807d.size() <= 0) {
            k.e(null);
        } else if (!((UserManager) this.f25805b.getSystemService(UserManager.class)).isUserUnlocked()) {
            k.e(null);
        } else {
            k.c(new c(this, 1), this.f25808e);
        }
    }
}
