Souza NET DTunnel v4.2.6版本的 MD5 值为:9c33be9da88136132d2ea8a79815d093
以下内容为反编译后的 c.java 源代码,内容仅作参考
package l7;
import a0.h;
import a2.u;
import a2.z;
import android.content.ClipData;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.os.SystemClock;
import android.util.Base64;
import android.util.Log;
import android.view.ContentInfo;
import android.view.MenuItem;
import android.widget.TextView;
import androidx.appcompat.widget.ActionMenuView;
import androidx.appcompat.widget.Toolbar;
import androidx.datastore.preferences.protobuf.f0;
import androidx.datastore.preferences.protobuf.i;
import androidx.datastore.preferences.protobuf.j1;
import androidx.datastore.preferences.protobuf.p;
import androidx.profileinstaller.ProfileInstallReceiver;
import com.bumptech.glide.load.data.j;
import com.bumptech.glide.manager.n;
import d.v0;
import d2.k;
import h.b0;
import h.i0;
import h.m;
import h.o;
import h.q;
import i.a4;
import i.d1;
import i.l2;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.ReferenceQueue;
import java.lang.reflect.Field;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.ArrayDeque;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import n1.t;
import org.chromium.support_lib_boundary.StaticsBoundaryInterface;
import org.chromium.support_lib_boundary.WebViewProviderFactoryBoundaryInterface;
import org.chromium.support_lib_boundary.WebkitToCompatConverterBoundaryInterface;
import p6.k1;
import s.f;
import s.g;
import w1.v;
import w1.x;
public class c implements m, l2, b0, d1, t.m, h, androidx.databinding.e, x0.d, t, n2.a, u, a2.a, a2.c, k, n {
public static volatile c f7193u;
public final int f7194s;
public Object f7195t;
public c(int i10) {
this.f7194s = i10;
if (i10 == 1) {
this.f7195t = new ArrayDeque();
} else if (i10 == 9) {
this.f7195t = new ConcurrentHashMap();
} else if (i10 == 27) {
char[] cArr = m2.n.f7321a;
this.f7195t = new ArrayDeque(0);
} else if (i10 != 29) {
this.f7195t = new HashSet();
} else {
this.f7195t = null;
}
}
public static ByteArrayInputStream H(String str) {
if (str.startsWith("data:image")) {
int indexOf = str.indexOf(44);
if (indexOf != -1) {
if (str.substring(0, indexOf).endsWith(";base64")) {
return new ByteArrayInputStream(Base64.decode(str.substring(indexOf + 1), 0));
}
throw new IllegalArgumentException("Not a base64 image data URL.");
}
throw new IllegalArgumentException("Missing comma in data URL.");
}
throw new IllegalArgumentException("Not a valid image data URL.");
}
public static Object I(Object[] objArr, int i10, t.m mVar) {
int i11;
boolean z10;
int i12;
if ((i10 & 1) == 0) {
i11 = 400;
} else {
i11 = 700;
}
if ((i10 & 2) != 0) {
z10 = true;
} else {
z10 = false;
}
Object obj = null;
int i13 = Integer.MAX_VALUE;
for (Object obj2 : objArr) {
int abs = Math.abs(mVar.z(obj2) - i11) * 2;
if (mVar.C(obj2) == z10) {
i12 = 0;
} else {
i12 = 1;
}
int i14 = abs + i12;
if (obj == null || i13 > i14) {
obj = obj2;
i13 = i14;
}
}
return obj;
}
@Override
public final j A(AssetManager assetManager, String str) {
return new j(assetManager, str, 0);
}
@Override
public final void B(Object obj) {
androidx.activity.d.y(obj);
throw null;
}
@Override
public final boolean C(Object obj) {
return ((x.h) obj).f10895d;
}
public Typeface D(Context context, f fVar, Resources resources, int i10) {
long longValue;
g gVar = (g) I(fVar.f9781a, i10, new j6.d(5, this));
if (gVar == null) {
return null;
}
int i11 = gVar.f9787f;
String str = gVar.f9782a;
Typeface G = t.g.f9958a.G(context, resources, i11, str, i10);
if (G != null) {
t.g.f9959b.c(t.g.b(resources, i11, str, 0, i10), G);
}
if (G != null) {
try {
Field declaredField = Typeface.class.getDeclaredField("native_instance");
declaredField.setAccessible(true);
longValue = ((Number) declaredField.get(G)).longValue();
} catch (IllegalAccessException | NoSuchFieldException e10) {
Log.e("TypefaceCompatBaseImpl", "Could not retrieve font from family.", e10);
}
if (longValue != 0) {
((ConcurrentHashMap) this.f7195t).put(Long.valueOf(longValue), fVar);
}
return G;
}
longValue = 0;
if (longValue != 0) {
}
return G;
}
public Typeface E(Context context, x.h[] hVarArr, int i10) {
InputStream inputStream;
InputStream inputStream2 = null;
if (hVarArr.length < 1) {
return null;
}
try {
inputStream = context.getContentResolver().openInputStream(J(i10, hVarArr).f10892a);
try {
Typeface F = F(context, inputStream);
com.bumptech.glide.e.h(inputStream);
return F;
} catch (IOException unused) {
com.bumptech.glide.e.h(inputStream);
return null;
} catch (Throwable th) {
th = th;
inputStream2 = inputStream;
com.bumptech.glide.e.h(inputStream2);
throw th;
}
} catch (IOException unused2) {
inputStream = null;
} catch (Throwable th2) {
th = th2;
}
}
public Typeface F(Context context, InputStream inputStream) {
File u8 = com.bumptech.glide.e.u(context);
if (u8 == null) {
return null;
}
try {
if (com.bumptech.glide.e.k(u8, inputStream)) {
return Typeface.createFromFile(u8.getPath());
}
return null;
} catch (RuntimeException unused) {
return null;
} finally {
u8.delete();
}
}
public Typeface G(Context context, Resources resources, int i10, String str, int i11) {
File u8 = com.bumptech.glide.e.u(context);
if (u8 == null) {
return null;
}
try {
if (com.bumptech.glide.e.j(u8, resources, i10)) {
return Typeface.createFromFile(u8.getPath());
}
return null;
} catch (RuntimeException unused) {
return null;
} finally {
u8.delete();
}
}
public x.h J(int i10, x.h[] hVarArr) {
return (x.h) I(hVarArr, i10, new c(8, this));
}
public final Set K() {
Set unmodifiableSet;
synchronized (((Set) this.f7195t)) {
unmodifiableSet = Collections.unmodifiableSet((Set) this.f7195t);
}
return unmodifiableSet;
}
public final synchronized void L(t1.d dVar) {
dVar.f9993b = null;
dVar.f9994c = null;
((Queue) this.f7195t).offer(dVar);
}
public final void M(int i10, boolean z10) {
((p) this.f7195t).G(i10, z10);
}
public final void N(int i10, i iVar) {
((p) this.f7195t).I(i10, iVar);
}
public final void O(int i10, double d10) {
p pVar = (p) this.f7195t;
pVar.getClass();
pVar.M(i10, Double.doubleToRawLongBits(d10));
}
public final void P(int i10, int i11) {
((p) this.f7195t).O(i10, i11);
}
public final void Q(int i10, int i11) {
((p) this.f7195t).K(i10, i11);
}
public final void R(int i10, long j10) {
((p) this.f7195t).M(i10, j10);
}
public final void S(int i10, float f10) {
p pVar = (p) this.f7195t;
pVar.getClass();
pVar.K(i10, Float.floatToRawIntBits(f10));
}
public final void T(int i10, j1 j1Var, Object obj) {
p pVar = (p) this.f7195t;
pVar.U(i10, 3);
j1Var.i((androidx.datastore.preferences.protobuf.b) obj, pVar.f1376c);
pVar.U(i10, 4);
}
public final void U(int i10, int i11) {
((p) this.f7195t).O(i10, i11);
}
public final void V(int i10, long j10) {
((p) this.f7195t).X(i10, j10);
}
public final void W(int i10, j1 j1Var, Object obj) {
((p) this.f7195t).Q(i10, (androidx.datastore.preferences.protobuf.b) obj, j1Var);
}
public final void X(int i10, int i11) {
((p) this.f7195t).K(i10, i11);
}
public final void Y(int i10, long j10) {
((p) this.f7195t).M(i10, j10);
}
public final void Z(int i10, int i11) {
((p) this.f7195t).V(i10, (i11 >> 31) ^ (i11 << 1));
}
@Override
public final Class a() {
switch (this.f7194s) {
case 24:
return ByteBuffer.class;
default:
return InputStream.class;
}
}
public final void a0(int i10, long j10) {
((p) this.f7195t).X(i10, (j10 >> 63) ^ (j10 << 1));
}
@Override
public final long b(long j10) {
if (j10 < 0) {
return 0L;
}
long j11 = j10;
while (j11 > 0) {
long skip = ((InputStream) this.f7195t).skip(j11);
if (skip <= 0) {
if (((InputStream) this.f7195t).read() == -1) {
break;
}
skip = 1;
}
j11 -= skip;
}
return j10 - j11;
}
public final void b0(int i10, int i11) {
((p) this.f7195t).V(i10, i11);
}
@Override
public final void c(o oVar, boolean z10) {
if (oVar instanceof i0) {
oVar.k().c(false);
}
b0 b0Var = ((i.m) this.f7195t).f6100w;
if (b0Var != null) {
b0Var.c(oVar, z10);
}
}
public final void c0(int i10, long j10) {
((p) this.f7195t).X(i10, j10);
}
@Override
public final void d(o oVar) {
boolean z10;
boolean z11 = true;
switch (this.f7194s) {
case 2:
ActionMenuView actionMenuView = ((v0) this.f7195t).f3665f.f6226a.f1175s;
if (actionMenuView != null) {
i.m mVar = actionMenuView.L;
if (mVar != null && mVar.j()) {
z10 = true;
break;
} else {
z10 = false;
break;
}
}
z11 = false;
if (z11) {
((v0) this.f7195t).f3666g.onPanelClosed(108, oVar);
return;
} else if (((v0) this.f7195t).f3666g.onPreparePanel(0, null, oVar)) {
((v0) this.f7195t).f3666g.onMenuOpened(108, oVar);
return;
} else {
return;
}
default:
i.m mVar2 = ((Toolbar) this.f7195t).f1175s.L;
if (!((mVar2 == null || !mVar2.j()) ? false : false)) {
Iterator it = ((CopyOnWriteArrayList) ((Toolbar) this.f7195t).f1162b0.f1984t).iterator();
if (it.hasNext()) {
androidx.activity.d.y(it.next());
throw null;
}
}
m mVar3 = ((Toolbar) this.f7195t).f1169j0;
if (mVar3 != null) {
mVar3.d(oVar);
return;
}
return;
}
}
@Override
public final Object e() {
a4 a4Var = (a4) this.f7195t;
return new w1.u((z1.d) a4Var.f5988a, (z1.d) a4Var.f5989b, (z1.d) a4Var.f5990c, (z1.d) a4Var.f5991d, (v) a4Var.f5992e, (x) a4Var.f5993f, (z.d) a4Var.f5994g);
}
@Override
public final int f() {
return (w() << 8) | w();
}
@Override
public final ClipData g() {
ClipData clip;
clip = ((ContentInfo) this.f7195t).getClip();
return clip;
}
@Override
public final StaticsBoundaryInterface getStatics() {
return (StaticsBoundaryInterface) jb.a.a(StaticsBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f7195t).getStatics());
}
@Override
public final WebkitToCompatConverterBoundaryInterface getWebkitToCompatConverter() {
return (WebkitToCompatConverterBoundaryInterface) jb.a.a(WebkitToCompatConverterBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f7195t).getWebkitToCompatConverter());
}
@Override
public final boolean h(o oVar, MenuItem menuItem) {
switch (this.f7194s) {
case 2:
return false;
default:
m mVar = ((Toolbar) this.f7195t).f1169j0;
if (mVar == null || !mVar.h(oVar, menuItem)) {
return false;
}
return true;
}
}
@Override
public final void i(o oVar, MenuItem menuItem) {
((h.i) this.f7195t).f5541y.removeCallbacksAndMessages(oVar);
}
@Override
public final Object j(byte[] bArr) {
return ByteBuffer.wrap(bArr);
}
@Override
public final void k(Object obj) {
androidx.activity.d.y(obj);
throw null;
}
@Override
public final boolean l(o oVar) {
Object obj = this.f7195t;
if (oVar == ((i.m) obj).f6098u) {
return false;
}
((i0) oVar).A.getClass();
((i.m) obj).getClass();
b0 b0Var = ((i.m) this.f7195t).f6100w;
if (b0Var == null) {
return false;
}
return b0Var.l(oVar);
}
@Override
public final int m() {
int flags;
flags = ((ContentInfo) this.f7195t).getFlags();
return flags;
}
@Override
public final void n() {
Log.d("ProfileInstaller", "DIAGNOSTIC_PROFILE_IS_COMPRESSED");
}
@Override
public final String[] o() {
return ((WebViewProviderFactoryBoundaryInterface) this.f7195t).getSupportedFeatures();
}
@Override
public final void p(o oVar, q qVar) {
((h.i) this.f7195t).f5541y.removeCallbacksAndMessages(null);
int size = ((h.i) this.f7195t).A.size();
int i10 = 0;
while (true) {
if (i10 >= size) {
i10 = -1;
break;
} else if (oVar == ((h.h) ((h.i) this.f7195t).A.get(i10)).f5527b) {
break;
} else {
i10++;
}
}
if (i10 == -1) {
return;
}
int i11 = i10 + 1;
((h.i) this.f7195t).f5541y.postAtTime(new h.g(this, i11 < ((h.i) this.f7195t).A.size() ? (h.h) ((h.i) this.f7195t).A.get(i11) : null, qVar, oVar, 0), oVar, SystemClock.uptimeMillis() + 200);
}
@Override
public final int q(int i10, byte[] bArr) {
int i11 = 0;
int i12 = 0;
while (i11 < i10 && (i12 = ((InputStream) this.f7195t).read(bArr, i11, i10 - i11)) != -1) {
i11 += i12;
}
if (i11 == 0 && i12 == -1) {
throw new d2.j();
}
return i11;
}
@Override
public final ContentInfo r() {
return (ContentInfo) this.f7195t;
}
@Override
public final void s(int i10, Object obj) {
k1.f8467d.s(i10, obj);
((ProfileInstallReceiver) this.f7195t).setResultCode(i10);
}
public void t(int i10) {
}
public final String toString() {
switch (this.f7194s) {
case 10:
return "ContentInfoCompat{" + ((ContentInfo) this.f7195t) + "}";
case 28:
return super.toString() + "{fragment=" + ((com.bumptech.glide.manager.v) this.f7195t) + "}";
default:
return super.toString();
}
}
public void u(int i10) {
}
@Override
public final int v() {
int source;
source = ((ContentInfo) this.f7195t).getSource();
return source;
}
@Override
public final short w() {
int read = ((InputStream) this.f7195t).read();
if (read != -1) {
return (short) read;
}
throw new d2.j();
}
@Override
public final a2.t x(z zVar) {
return new a2.b((AssetManager) this.f7195t, this);
}
@Override
public final void y(androidx.lifecycle.u uVar) {
}
@Override
public final int z(Object obj) {
return ((x.h) obj).f10894c;
}
public c(int i10, Object obj) {
this.f7194s = i10;
this.f7195t = obj;
}
public c(ContentInfo contentInfo) {
this.f7194s = 10;
contentInfo.getClass();
this.f7195t = a0.d.f(contentInfo);
}
public c(TextView textView) {
this.f7194s = 15;
if (textView == null) {
throw new NullPointerException("textView cannot be null");
}
this.f7195t = new m0.i(textView);
}
public c(androidx.databinding.m mVar, int i10, ReferenceQueue referenceQueue) {
this.f7194s = 12;
this.f7195t = new androidx.databinding.n(mVar, i10, this, referenceQueue);
}
public c(p pVar) {
this.f7194s = 13;
Charset charset = f0.f1295a;
if (pVar == null) {
throw new NullPointerException("output");
}
this.f7195t = pVar;
pVar.f1376c = this;
}
}