package B0;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import d3.R0;
import java.util.ArrayList;
import v0.InterfaceC1668g;
import x0.AbstractC1709a;

/* JADX INFO: renamed from: B0.n, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0027n {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final I0.j f857b;

    public C0027n(Context context) {
        this.f856a = context;
        this.f857b = new I0.j(context, false);
    }

    public final AbstractC0020g[] a(Handler handler, F f3, F f7, F f8, F f9) {
        ArrayList arrayList = new ArrayList();
        Context context = this.f856a;
        R0.g gVar = new R0.g(context);
        I0.j jVar = this.f857b;
        gVar.f5891c = jVar;
        gVar.f5892d = 5000L;
        gVar.f5893e = handler;
        gVar.f5894f = f3;
        gVar.f5895g = 50;
        AbstractC1709a.j(!gVar.f5890b);
        Handler handler2 = gVar.f5893e;
        AbstractC1709a.j((handler2 == null && gVar.f5894f == null) || !(handler2 == null || gVar.f5894f == null));
        gVar.f5890b = true;
        arrayList.add(new R0.j(gVar));
        D0.y yVar = new D0.y(context);
        AbstractC1709a.j(!yVar.f1634q);
        yVar.f1634q = true;
        if (((A1.y) yVar.f1636s) == null) {
            yVar.f1636s = new A1.y(new InterfaceC1668g[0]);
        }
        if (((R0) yVar.f1639v) == null) {
            yVar.f1639v = new R0(context, 9);
        }
        arrayList.add(new D0.H(context, jVar, handler, f7, new D0.F(yVar)));
        arrayList.add(new N0.e(f8, handler.getLooper()));
        Looper looper = handler.getLooper();
        arrayList.add(new J0.b(f9, looper));
        arrayList.add(new J0.b(f9, looper));
        arrayList.add(new S0.b());
        arrayList.add(new H0.h(H0.c.f3045b));
        return (AbstractC0020g[]) arrayList.toArray(new AbstractC0020g[0]);
    }
}
