package g;

import android.content.Context;
import android.content.Intent;
import g.a;
import kotlin.jvm.internal.t;

/* loaded from: classes.dex */
public final class c extends a {
    @Override // g.a
    /* renamed from: d, reason: merged with bridge method [inline-methods] */
    public Intent a(Context context, String input) {
        t.g(context, "context");
        t.g(input, "input");
        return b.f18840a.a(new String[]{input});
    }

    @Override // g.a
    /* renamed from: e, reason: merged with bridge method [inline-methods] */
    public a.C0415a b(Context context, String input) {
        t.g(context, "context");
        t.g(input, "input");
        if (androidx.core.content.a.checkSelfPermission(context, input) == 0) {
            return new a.C0415a(Boolean.TRUE);
        }
        return null;
    }

    @Override // g.a
    /* renamed from: f, reason: merged with bridge method [inline-methods] */
    public Boolean c(int i10, Intent intent) {
        boolean z10;
        if (intent == null || i10 != -1) {
            return Boolean.FALSE;
        }
        int[] intArrayExtra = intent.getIntArrayExtra("androidx.activity.result.contract.extra.PERMISSION_GRANT_RESULTS");
        boolean z11 = false;
        if (intArrayExtra != null) {
            int length = intArrayExtra.length;
            int i11 = 0;
            while (true) {
                if (i11 >= length) {
                    z10 = false;
                    break;
                }
                if (intArrayExtra[i11] == 0) {
                    z10 = true;
                    break;
                }
                i11++;
            }
            if (z10) {
                z11 = true;
            }
        }
        return Boolean.valueOf(z11);
    }
}
