NetMirror.apk
Download file
package androidx.versionedparcelable;
import android.os.Parcelable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import l.C0589a;
/* JADX INFO: loaded from: classes.dex */
public abstract class a {
/* JADX INFO: renamed from: a, reason: collision with root package name */
protected final C0589a f5556a;
/* JADX INFO: renamed from: b, reason: collision with root package name */
protected final C0589a f5557b;
/* JADX INFO: renamed from: c, reason: collision with root package name */
protected final C0589a f5558c;
public a(C0589a c0589a, C0589a c0589a2, C0589a c0589a3) {
this.f5556a = c0589a;
this.f5557b = c0589a2;
this.f5558c = c0589a3;
}
private void N(L.a aVar) {
try {
I(c(aVar.getClass()).getName());
} catch (ClassNotFoundException e4) {
throw new RuntimeException(aVar.getClass().getSimpleName() + " does not have a Parcelizer", e4);
}
}
private Class c(Class cls) throws ClassNotFoundException {
Class cls2 = (Class) this.f5558c.get(cls.getName());
if (cls2 != null) {
return cls2;
}
Class<?> cls3 = Class.forName(String.format("%s.%sParcelizer", cls.getPackage().getName(), cls.getSimpleName()), false, cls.getClassLoader());
this.f5558c.put(cls.getName(), cls3);
return cls3;
}
private Method d(String str) throws NoSuchMethodException {
Method method = (Method) this.f5556a.get(str);
if (method != null) {
return method;
}
System.currentTimeMillis();
Method declaredMethod = Class.forName(str, true, a.class.getClassLoader()).getDeclaredMethod("read", a.class);
this.f5556a.put(str, declaredMethod);
return declaredMethod;
}
private Method e(Class cls) throws NoSuchMethodException, ClassNotFoundException {
Method method = (Method) this.f5557b.get(cls.getName());
if (method != null) {
return method;
}
Class clsC = c(cls);
System.currentTimeMillis();
Method declaredMethod = clsC.getDeclaredMethod("write", cls, a.class);
this.f5557b.put(cls.getName(), declaredMethod);
return declaredMethod;
}
protected abstract void A(byte[] bArr);
public void B(byte[] bArr, int i3) {
w(i3);
A(bArr);
}
protected abstract void C(CharSequence charSequence);
public void D(CharSequence charSequence, int i3) {
w(i3);
C(charSequence);
}
protected abstract void E(int i3);
public void F(int i3, int i4) {
w(i4);
E(i3);
}
protected abstract void G(Parcelable parcelable);
public void H(Parcelable parcelable, int i3) {
w(i3);
G(parcelable);
}
protected abstract void I(String str);
public void J(String str, int i3) {
w(i3);
I(str);
}
protected void K(L.a aVar, a aVar2) {
try {
e(aVar.getClass()).invoke(null, aVar, aVar2);
} catch (ClassNotFoundException e4) {
throw new RuntimeException("VersionedParcel encountered ClassNotFoundException", e4);
} catch (IllegalAccessException e5) {
throw new RuntimeException("VersionedParcel encountered IllegalAccessException", e5);
} catch (NoSuchMethodException e6) {
throw new RuntimeException("VersionedParcel encountered NoSuchMethodException", e6);
} catch (InvocationTargetException e7) {
if (!(e7.getCause() instanceof RuntimeException)) {
throw new RuntimeException("VersionedParcel encountered InvocationTargetException", e7);
}
throw ((RuntimeException) e7.getCause());
}
}
protected void L(L.a aVar) {
if (aVar == null) {
I(null);
return;
}
N(aVar);
a aVarB = b();
K(aVar, aVarB);
aVarB.a();
}
public void M(L.a aVar, int i3) {
w(i3);
L(aVar);
}
protected abstract void a();
protected abstract a b();
public boolean f() {
return false;
}
protected abstract boolean g();
public boolean h(boolean z3, int i3) {
return !m(i3) ? z3 : g();
}
protected abstract byte[] i();
public byte[] j(byte[] bArr, int i3) {
return !m(i3) ? bArr : i();
}
protected abstract CharSequence k();
public CharSequence l(CharSequence charSequence, int i3) {
return !m(i3) ? charSequence : k();
}
protected abstract boolean m(int i3);
protected L.a n(String str, a aVar) {
try {
return (L.a) d(str).invoke(null, aVar);
} catch (ClassNotFoundException e4) {
throw new RuntimeException("VersionedParcel encountered ClassNotFoundException", e4);
} catch (IllegalAccessException e5) {
throw new RuntimeException("VersionedParcel encountered IllegalAccessException", e5);
} catch (NoSuchMethodException e6) {
throw new RuntimeException("VersionedParcel encountered NoSuchMethodException", e6);
} catch (InvocationTargetException e7) {
if (e7.getCause() instanceof RuntimeException) {
throw ((RuntimeException) e7.getCause());
}
throw new RuntimeException("VersionedParcel encountered InvocationTargetException", e7);
}
}
protected abstract int o();
public int p(int i3, int i4) {
return !m(i4) ? i3 : o();
}
protected abstract Parcelable q();
public Parcelable r(Parcelable parcelable, int i3) {
return !m(i3) ? parcelable : q();
}
protected abstract String s();
public String t(String str, int i3) {
return !m(i3) ? str : s();
}
protected L.a u() {
String strS = s();
if (strS == null) {
return null;
}
return n(strS, b());
}
public L.a v(L.a aVar, int i3) {
return !m(i3) ? aVar : u();
}
protected abstract void w(int i3);
public void x(boolean z3, boolean z4) {
}
protected abstract void y(boolean z3);
public void z(boolean z3, int i3) {
w(i3);
y(z3);
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file