package t;

import I.m;
import a0.i;
import a0.j;
import a0.k;
import a0.l;
import android.content.Context;
import android.net.Uri;
import android.os.Handler;
import n.G;
import n.InterfaceC0634B;
import n.q;
import n.s;
import n.w;
import o.C0648b;
import t.c;
import v.h;

/* JADX INFO: loaded from: classes.dex */
public class d implements c.InterfaceC0095c {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final String f6447b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final Uri f6448c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private k.a f6449d;

    public d(Context context, String str, Uri uri) {
        this.f6446a = context;
        this.f6447b = str;
        this.f6448c = uri;
    }

    @Override // t.c.InterfaceC0095c
    public void a(c cVar) {
        i iVar = new i(65536);
        Handler handlerX = cVar.x();
        j jVar = new j(cVar.x(), null);
        h hVar = new h(this.f6448c, ("http".equals(this.f6448c.getScheme()) || "https".equals(this.f6448c.getScheme())) ? new k(this.f6447b, null, null, 8000, 8000, false, this.f6449d) : new l(this.f6446a, jVar, this.f6447b), iVar, 16777216, handlerX, cVar, 0, new v.e[0]);
        Context context = this.f6446a;
        s sVar = s.f5653a;
        w wVar = new w(context, hVar, sVar, 1, 5000L, handlerX, cVar, 50, new String[0]);
        q qVar = new q((InterfaceC0634B) hVar, sVar, (u.b) null, true, handlerX, (q.f) cVar, C0648b.b(this.f6446a), 3, new String[0]);
        m mVar = new m(hVar, cVar, handlerX.getLooper(), new I.i[0]);
        G[] gArr = new G[6];
        gArr[0] = wVar;
        gArr[1] = qVar;
        gArr[2] = mVar;
        cVar.K(gArr, jVar);
    }

    @Override // t.c.InterfaceC0095c
    public void b(k.a aVar) {
        this.f6449d = aVar;
    }

    @Override // t.c.InterfaceC0095c
    public boolean c() {
        return ("http".equals(this.f6448c.getScheme()) || "https".equals(this.f6448c.getScheme())) ? false : true;
    }

    @Override // t.c.InterfaceC0095c
    public void cancel() {
    }
}
