96 lines
2.7 KiB
Java
96 lines
2.7 KiB
Java
package o;
|
|
|
|
import android.content.ContentResolver;
|
|
import android.content.res.AssetFileDescriptor;
|
|
import android.net.Uri;
|
|
import android.os.ParcelFileDescriptor;
|
|
import java.io.InputStream;
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
import o.SCe;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class pOp<Data> implements SCe<Uri, Data> {
|
|
private static final Set<String> c = Collections.unmodifiableSet(new HashSet(Arrays.asList("file", "android.resource", "content")));
|
|
private final HBt<Data> b;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface HBt<Data> {
|
|
InterfaceC12232euN<Data> Ez_(Uri uri);
|
|
}
|
|
|
|
@Override // o.SCe
|
|
public final /* synthetic */ boolean d(Uri uri) {
|
|
return c.contains(uri.getScheme());
|
|
}
|
|
|
|
@Override // o.SCe
|
|
public final /* synthetic */ SCe.IeS e(Uri uri, int i, int i2, unA una) {
|
|
Uri uri2 = uri;
|
|
return new SCe.IeS(new xBn(uri2), this.b.Ez_(uri2));
|
|
}
|
|
|
|
public pOp(HBt<Data> hBt) {
|
|
this.b = hBt;
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class IeS implements rIx<Uri, InputStream>, HBt<InputStream> {
|
|
private final ContentResolver d;
|
|
|
|
public IeS(ContentResolver contentResolver) {
|
|
this.d = contentResolver;
|
|
}
|
|
|
|
@Override // o.pOp.HBt
|
|
public final InterfaceC12232euN<InputStream> Ez_(Uri uri) {
|
|
return new KQI(this.d, uri);
|
|
}
|
|
|
|
@Override // o.rIx
|
|
public final SCe<Uri, InputStream> c(Vzp vzp) {
|
|
return new pOp(this);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class LWm implements rIx<Uri, ParcelFileDescriptor>, HBt<ParcelFileDescriptor> {
|
|
private final ContentResolver a;
|
|
|
|
public LWm(ContentResolver contentResolver) {
|
|
this.a = contentResolver;
|
|
}
|
|
|
|
@Override // o.pOp.HBt
|
|
public final InterfaceC12232euN<ParcelFileDescriptor> Ez_(Uri uri) {
|
|
return new kVf(this.a, uri);
|
|
}
|
|
|
|
@Override // o.rIx
|
|
public final SCe<Uri, ParcelFileDescriptor> c(Vzp vzp) {
|
|
return new pOp(this);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class RVV implements rIx<Uri, AssetFileDescriptor>, HBt<AssetFileDescriptor> {
|
|
private final ContentResolver c;
|
|
|
|
public RVV(ContentResolver contentResolver) {
|
|
this.c = contentResolver;
|
|
}
|
|
|
|
@Override // o.rIx
|
|
public final SCe<Uri, AssetFileDescriptor> c(Vzp vzp) {
|
|
return new pOp(this);
|
|
}
|
|
|
|
@Override // o.pOp.HBt
|
|
public final InterfaceC12232euN<AssetFileDescriptor> Ez_(Uri uri) {
|
|
return new C17011tFZ(this.c, uri);
|
|
}
|
|
}
|
|
}
|