- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
45 lines
1.9 KiB
Java
45 lines
1.9 KiB
Java
package com.google.firebase.messaging;
|
|
|
|
import com.google.android.gms.common.util.concurrent.NamedThreadFactory;
|
|
import com.google.firebase.messaging.threads.PoolableExecutors;
|
|
import com.google.firebase.messaging.threads.ThreadPriority;
|
|
import java.util.concurrent.Executor;
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.Executors;
|
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
import java.util.concurrent.ScheduledExecutorService;
|
|
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class FcmExecutors {
|
|
public static Executor newFileIOExecutor() {
|
|
return newCachedSingleThreadExecutor("Firebase-Messaging-File-Io");
|
|
}
|
|
|
|
public static Executor newCachedSingleThreadExecutor(String str) {
|
|
return new ThreadPoolExecutor(0, 1, 30L, TimeUnit.SECONDS, new LinkedBlockingQueue(), new NamedThreadFactory(str));
|
|
}
|
|
|
|
public static ScheduledExecutorService newTopicsSyncExecutor() {
|
|
return new ScheduledThreadPoolExecutor(1, new NamedThreadFactory("Firebase-Messaging-Topics-Io"));
|
|
}
|
|
|
|
public static ExecutorService newNetworkIOExecutor() {
|
|
return Executors.newSingleThreadExecutor(new NamedThreadFactory("Firebase-Messaging-Network-Io"));
|
|
}
|
|
|
|
public static ExecutorService newTaskExecutor() {
|
|
return Executors.newSingleThreadExecutor(new NamedThreadFactory("Firebase-Messaging-Task"));
|
|
}
|
|
|
|
public static ExecutorService newIntentHandleExecutor() {
|
|
return PoolableExecutors.factory().newSingleThreadExecutor(new NamedThreadFactory("Firebase-Messaging-Intent-Handle"), ThreadPriority.HIGH_SPEED);
|
|
}
|
|
|
|
public static ScheduledExecutorService newInitExecutor() {
|
|
return new ScheduledThreadPoolExecutor(1, new NamedThreadFactory("Firebase-Messaging-Init"));
|
|
}
|
|
}
|