package w1; import android.util.Log; import com.bumptech.glide.load.data.d; import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; import w1.m; /* loaded from: classes.dex */ public class d implements m { private static final class a implements com.bumptech.glide.load.data.d { /* renamed from: a, reason: collision with root package name */ private final File f15016a; a(File file) { this.f15016a = file; } @Override // com.bumptech.glide.load.data.d public Class a() { return ByteBuffer.class; } @Override // com.bumptech.glide.load.data.d public void b() { } @Override // com.bumptech.glide.load.data.d public void cancel() { } @Override // com.bumptech.glide.load.data.d public q1.a d() { return q1.a.LOCAL; } @Override // com.bumptech.glide.load.data.d public void f(com.bumptech.glide.g gVar, d.a aVar) { try { aVar.e(m2.a.a(this.f15016a)); } catch (IOException e10) { if (Log.isLoggable("ByteBufferFileLoader", 3)) { Log.d("ByteBufferFileLoader", "Failed to obtain ByteBuffer for file", e10); } aVar.c(e10); } } } public static class b implements n { @Override // w1.n public m b(q qVar) { return new d(); } } @Override // w1.m /* renamed from: c, reason: merged with bridge method [inline-methods] */ public m.a b(File file, int i10, int i11, q1.h hVar) { return new m.a(new l2.b(file), new a(file)); } @Override // w1.m /* renamed from: d, reason: merged with bridge method [inline-methods] */ public boolean a(File file) { return true; } }