package w1; import android.content.res.AssetManager; import android.net.Uri; import w1.m; /* loaded from: classes.dex */ public class a implements m { /* renamed from: c, reason: collision with root package name */ private static final int f15006c = 22; /* renamed from: a, reason: collision with root package name */ private final AssetManager f15007a; /* renamed from: b, reason: collision with root package name */ private final InterfaceC0253a f15008b; /* renamed from: w1.a$a, reason: collision with other inner class name */ public interface InterfaceC0253a { com.bumptech.glide.load.data.d a(AssetManager assetManager, String str); } public static class b implements n, InterfaceC0253a { /* renamed from: a, reason: collision with root package name */ private final AssetManager f15009a; public b(AssetManager assetManager) { this.f15009a = assetManager; } @Override // w1.a.InterfaceC0253a public com.bumptech.glide.load.data.d a(AssetManager assetManager, String str) { return new com.bumptech.glide.load.data.h(assetManager, str); } @Override // w1.n public m b(q qVar) { return new a(this.f15009a, this); } } public static class c implements n, InterfaceC0253a { /* renamed from: a, reason: collision with root package name */ private final AssetManager f15010a; public c(AssetManager assetManager) { this.f15010a = assetManager; } @Override // w1.a.InterfaceC0253a public com.bumptech.glide.load.data.d a(AssetManager assetManager, String str) { return new com.bumptech.glide.load.data.m(assetManager, str); } @Override // w1.n public m b(q qVar) { return new a(this.f15010a, this); } } public a(AssetManager assetManager, InterfaceC0253a interfaceC0253a) { this.f15007a = assetManager; this.f15008b = interfaceC0253a; } @Override // w1.m /* renamed from: c, reason: merged with bridge method [inline-methods] */ public m.a b(Uri uri, int i10, int i11, q1.h hVar) { return new m.a(new l2.b(uri), this.f15008b.a(this.f15007a, uri.toString().substring(f15006c))); } @Override // w1.m /* renamed from: d, reason: merged with bridge method [inline-methods] */ public boolean a(Uri uri) { return "file".equals(uri.getScheme()) && !uri.getPathSegments().isEmpty() && "android_asset".equals(uri.getPathSegments().get(0)); } }