NetMirror.apk
Download file
package j;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/* JADX INFO: loaded from: classes.dex */
public class d extends e {
/* JADX INFO: renamed from: a, reason: collision with root package name */
private final Object f9539a = new Object();
/* JADX INFO: renamed from: b, reason: collision with root package name */
private final ExecutorService f9540b = Executors.newFixedThreadPool(4, new a());
/* JADX INFO: renamed from: c, reason: collision with root package name */
private volatile Handler f9541c;
class a implements ThreadFactory {
/* JADX INFO: renamed from: a, reason: collision with root package name */
private final AtomicInteger f9542a = new AtomicInteger(0);
a() {
}
@Override // java.util.concurrent.ThreadFactory
public Thread newThread(Runnable runnable) {
Thread thread = new Thread(runnable);
thread.setName("arch_disk_io_" + this.f9542a.getAndIncrement());
return thread;
}
}
private static class b {
public static Handler a(Looper looper) {
return Handler.createAsync(looper);
}
}
private static Handler d(Looper looper) {
if (Build.VERSION.SDK_INT >= 28) {
return b.a(looper);
}
try {
return (Handler) Handler.class.getDeclaredConstructor(Looper.class, Handler.Callback.class, Boolean.TYPE).newInstance(looper, null, Boolean.TRUE);
} catch (IllegalAccessException | InstantiationException | NoSuchMethodException unused) {
return new Handler(looper);
} catch (InvocationTargetException unused2) {
return new Handler(looper);
}
}
@Override // j.e
public void a(Runnable runnable) {
this.f9540b.execute(runnable);
}
@Override // j.e
public boolean b() {
return Looper.getMainLooper().getThread() == Thread.currentThread();
}
@Override // j.e
public void c(Runnable runnable) {
if (this.f9541c == null) {
synchronized (this.f9539a) {
try {
if (this.f9541c == null) {
this.f9541c = d(Looper.getMainLooper());
}
} finally {
}
}
}
this.f9541c.post(runnable);
}
}
⚠️ 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