package qh;

import com.bumptech.glide.load.data.j;
import jh.g;
import ph.h;
import ph.m;
import ph.n;
import ph.o;
import ph.r;

/* loaded from: classes4.dex */
public class a implements n {

    /* renamed from: b, reason: collision with root package name */
    public static final g f33788b = g.f("com.bumptech.glide.load.model.stream.HttpGlideUrlLoader.Timeout", 2500);

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

    /* renamed from: qh.a$a, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    public static class C0788a implements o {

        /* renamed from: a, reason: collision with root package name */
        private final m f33790a = new m(500);

        @Override // ph.o
        public void d() {
        }

        @Override // ph.o
        public n e(r rVar) {
            return new a(this.f33790a);
        }
    }

    public a(m mVar) {
        this.f33789a = mVar;
    }

    @Override // ph.n
    /* renamed from: c, reason: merged with bridge method [inline-methods] */
    public n.a b(h hVar, int i10, int i11, jh.h hVar2) {
        m mVar = this.f33789a;
        if (mVar != null) {
            h hVar3 = (h) mVar.a(hVar, 0, 0);
            if (hVar3 == null) {
                this.f33789a.b(hVar, 0, 0, hVar);
            } else {
                hVar = hVar3;
            }
        }
        return new n.a(hVar, new j(hVar, ((Integer) hVar2.c(f33788b)).intValue()));
    }

    @Override // ph.n
    /* renamed from: d, reason: merged with bridge method [inline-methods] */
    public boolean a(h hVar) {
        return true;
    }
}
