package q3;

import android.content.Context;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.CancellationSignal;
import android.os.Handler;
import s3.i;

/* loaded from: classes.dex */
public abstract class g {

    /* loaded from: classes.dex */
    public static class a {

        /* renamed from: a, reason: collision with root package name */
        private final int f33419a;

        /* renamed from: b, reason: collision with root package name */
        private final b[] f33420b;

        public a(int i10, b[] bVarArr) {
            this.f33419a = i10;
            this.f33420b = bVarArr;
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        public static a a(int i10, b[] bVarArr) {
            return new a(i10, bVarArr);
        }

        public b[] b() {
            return this.f33420b;
        }

        public int c() {
            return this.f33419a;
        }
    }

    /* loaded from: classes.dex */
    public static class b {

        /* renamed from: a, reason: collision with root package name */
        private final Uri f33421a;

        /* renamed from: b, reason: collision with root package name */
        private final int f33422b;

        /* renamed from: c, reason: collision with root package name */
        private final int f33423c;

        /* renamed from: d, reason: collision with root package name */
        private final boolean f33424d;

        /* renamed from: e, reason: collision with root package name */
        private final int f33425e;

        public b(Uri uri, int i10, int i11, boolean z10, int i12) {
            this.f33421a = (Uri) i.g(uri);
            this.f33422b = i10;
            this.f33423c = i11;
            this.f33424d = z10;
            this.f33425e = i12;
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        public static b a(Uri uri, int i10, int i11, boolean z10, int i12) {
            return new b(uri, i10, i11, z10, i12);
        }

        public int b() {
            return this.f33425e;
        }

        public int c() {
            return this.f33422b;
        }

        public Uri d() {
            return this.f33421a;
        }

        public int e() {
            return this.f33423c;
        }

        public boolean f() {
            return this.f33424d;
        }
    }

    /* loaded from: classes.dex */
    public static class c {
        public abstract void a(int i10);

        public abstract void b(Typeface typeface);
    }

    public static Typeface a(Context context, CancellationSignal cancellationSignal, b[] bVarArr) {
        return androidx.core.graphics.e.b(context, cancellationSignal, bVarArr, 0);
    }

    public static a b(Context context, CancellationSignal cancellationSignal, e eVar) {
        return d.e(context, eVar, cancellationSignal);
    }

    public static Typeface c(Context context, e eVar, int i10, boolean z10, int i11, Handler handler, c cVar) {
        q3.a aVar = new q3.a(cVar, handler);
        return z10 ? f.e(context, eVar, aVar, i10, i11) : f.d(context, eVar, i10, null, aVar);
    }
}
