Files
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

121 lines
5.2 KiB
Java

package com.mbridge.msdk.foundation.same.f;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import androidx.annotation.NonNull;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/* loaded from: classes4.dex */
public final class a {
public static ThreadPoolExecutor a;
private static ThreadPoolExecutor b;
private static Handler c;
private static ThreadPoolExecutor d;
private static ThreadPoolExecutor e;
private static ThreadPoolExecutor f;
public static ThreadPoolExecutor a() {
if (b == null) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 5, 10L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(10), new ThreadFactory() { // from class: com.mbridge.msdk.foundation.same.f.a.1
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(@NonNull Runnable runnable) {
Thread newThread = Executors.defaultThreadFactory().newThread(runnable);
newThread.setName("BitmapThreadPool");
return newThread;
}
}, new ThreadPoolExecutor.DiscardPolicy());
b = threadPoolExecutor;
threadPoolExecutor.allowCoreThreadTimeOut(true);
}
return b;
}
public static ThreadPoolExecutor b() {
if (a == null) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(5, 25, 10L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(100), new ThreadFactory() { // from class: com.mbridge.msdk.foundation.same.f.a.2
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(@NonNull Runnable runnable) {
Thread newThread = Executors.defaultThreadFactory().newThread(runnable);
newThread.setName("CommonThreadPool");
return newThread;
}
}, new ThreadPoolExecutor.DiscardPolicy());
a = threadPoolExecutor;
threadPoolExecutor.allowCoreThreadTimeOut(true);
}
return a;
}
public static Handler c() {
if (c == null) {
c = new HandlerC0200a();
}
return c;
}
public static ThreadPoolExecutor d() {
if (d == null) {
d = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(1), new ThreadFactory() { // from class: com.mbridge.msdk.foundation.same.f.a.3
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(@NonNull Runnable runnable) {
Thread newThread = Executors.defaultThreadFactory().newThread(runnable);
newThread.setName("NwtThreadPool");
return newThread;
}
}, new ThreadPoolExecutor.DiscardPolicy());
}
return d;
}
public static ThreadPoolExecutor e() {
if (e == null) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(5, 15, 10L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(100), new ThreadFactory() { // from class: com.mbridge.msdk.foundation.same.f.a.4
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(@NonNull Runnable runnable) {
Thread newThread = Executors.defaultThreadFactory().newThread(runnable);
newThread.setName("ReportThreadPool");
return newThread;
}
}, new ThreadPoolExecutor.DiscardPolicy());
e = threadPoolExecutor;
threadPoolExecutor.allowCoreThreadTimeOut(true);
}
return e;
}
public static ThreadPoolExecutor f() {
if (f == null) {
ThreadFactory threadFactory = new ThreadFactory() { // from class: com.mbridge.msdk.foundation.same.f.a.5
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(@NonNull Runnable runnable) {
Thread thread = new Thread(runnable);
thread.setName("rv-load-tread");
return thread;
}
};
int availableProcessors = Runtime.getRuntime().availableProcessors();
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(availableProcessors, availableProcessors * 2, 10L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(30), threadFactory, new ThreadPoolExecutor.DiscardPolicy());
f = threadPoolExecutor;
threadPoolExecutor.allowCoreThreadTimeOut(true);
}
return f;
}
/* renamed from: com.mbridge.msdk.foundation.same.f.a$a, reason: collision with other inner class name */
public static class HandlerC0200a extends Handler {
public HandlerC0200a() {
super(Looper.getMainLooper());
}
@Override // android.os.Handler
public final void handleMessage(@NonNull Message message) {
super.handleMessage(message);
}
}
}