You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.7 KiB
51 lines
1.7 KiB
package androidx.emoji2.text;
|
|
|
|
import android.os.Build;
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import java.util.concurrent.LinkedBlockingDeque;
|
|
import java.util.concurrent.ThreadFactory;
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
/* renamed from: androidx.emoji2.text.b */
|
|
/* loaded from: classes.dex */
|
|
public class C0219b {
|
|
|
|
/* renamed from: androidx.emoji2.text.b$a */
|
|
/* loaded from: classes.dex */
|
|
public static class C0220a {
|
|
/* renamed from: a */
|
|
public static Handler m4420a(Looper looper) {
|
|
Handler createAsync;
|
|
createAsync = Handler.createAsync(looper);
|
|
return createAsync;
|
|
}
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static ThreadPoolExecutor m4423b(final String str) {
|
|
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, 1, 15L, TimeUnit.SECONDS, new LinkedBlockingDeque(), new ThreadFactory() { // from class: androidx.emoji2.text.a
|
|
@Override // java.util.concurrent.ThreadFactory
|
|
public final Thread newThread(Runnable runnable) {
|
|
Thread m4422c;
|
|
m4422c = C0219b.m4422c(str, runnable);
|
|
return m4422c;
|
|
}
|
|
});
|
|
threadPoolExecutor.allowCoreThreadTimeOut(true);
|
|
return threadPoolExecutor;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static /* synthetic */ Thread m4422c(String str, Runnable runnable) {
|
|
Thread thread = new Thread(runnable, str);
|
|
thread.setPriority(10);
|
|
return thread;
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public static Handler m4421d() {
|
|
return Build.VERSION.SDK_INT >= 28 ? C0220a.m4420a(Looper.getMainLooper()) : new Handler(Looper.getMainLooper());
|
|
}
|
|
} |