NetMirror.apk
Download file
package androidx.core.graphics;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.os.CancellationSignal;
import androidx.core.content.res.d;
import java.io.File;
import java.io.InputStream;
import java.util.concurrent.ConcurrentHashMap;
import p.g;
/* JADX INFO: loaded from: classes.dex */
abstract class j {
/* JADX INFO: renamed from: a, reason: collision with root package name */
private ConcurrentHashMap f4507a = new ConcurrentHashMap();
class a implements b {
a() {
}
@Override // androidx.core.graphics.j.b
/* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
public int a(g.b bVar) {
return bVar.e();
}
@Override // androidx.core.graphics.j.b
/* JADX INFO: renamed from: d, reason: merged with bridge method [inline-methods] */
public boolean b(g.b bVar) {
return bVar.f();
}
}
private interface b {
int a(Object obj);
boolean b(Object obj);
}
j() {
}
private static Object e(Object[] objArr, int i3, b bVar) {
return f(objArr, (i3 & 1) == 0 ? 400 : 700, (i3 & 2) != 0, bVar);
}
private static Object f(Object[] objArr, int i3, boolean z3, b bVar) {
Object obj = null;
int i4 = Integer.MAX_VALUE;
for (Object obj2 : objArr) {
int iAbs = (Math.abs(bVar.a(obj2) - i3) * 2) + (bVar.b(obj2) == z3 ? 0 : 1);
if (obj == null || i4 > iAbs) {
obj = obj2;
i4 = iAbs;
}
}
return obj;
}
public abstract Typeface a(Context context, d.c cVar, Resources resources, int i3);
public abstract Typeface b(Context context, CancellationSignal cancellationSignal, g.b[] bVarArr, int i3);
protected Typeface c(Context context, InputStream inputStream) {
File fileE = k.e(context);
if (fileE == null) {
return null;
}
try {
if (k.d(fileE, inputStream)) {
return Typeface.createFromFile(fileE.getPath());
}
return null;
} catch (RuntimeException unused) {
return null;
} finally {
fileE.delete();
}
}
public Typeface d(Context context, Resources resources, int i3, String str, int i4) {
File fileE = k.e(context);
if (fileE == null) {
return null;
}
try {
if (k.c(fileE, resources, i3)) {
return Typeface.createFromFile(fileE.getPath());
}
return null;
} catch (RuntimeException unused) {
return null;
} finally {
fileE.delete();
}
}
protected g.b g(g.b[] bVarArr, int i3) {
return (g.b) e(bVarArr, i3, new a());
}
}
⚠️ 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