package ῲ.ʬ.K.K;

import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;

/* renamed from: ῲ.ʬ.K.K.ῲ  reason: contains not printable characters */
/* compiled from: DefaultTaskExecutor */
public class C1508 extends AbstractC1507 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public volatile Handler f5554;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final ExecutorService f5555 = Executors.newFixedThreadPool(2, new ThreadFactoryC1509(this));

    /* renamed from: K  reason: contains not printable characters */
    public final Object f5556 = new Object();

    /* renamed from: ῲ.ʬ.K.K.ῲ$K  reason: contains not printable characters */
    /* compiled from: DefaultTaskExecutor */
    public class ThreadFactoryC1509 implements ThreadFactory {

        /* renamed from: ῲ  reason: contains not printable characters */
        public final AtomicInteger f5557 = new AtomicInteger(0);

        public ThreadFactoryC1509(C1508 r2) {
        }

        public Thread newThread(Runnable runnable) {
            Thread thread = new Thread(runnable);
            thread.setName(String.format("arch_disk_io_%d", Integer.valueOf(this.f5557.getAndIncrement())));
            return thread;
        }
    }

    @Override // ῲ.ʬ.K.K.AbstractC1507
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m3848(Runnable runnable) {
        if (this.f5554 == null) {
            synchronized (this.f5556) {
                if (this.f5554 == null) {
                    this.f5554 = new Handler(Looper.getMainLooper());
                }
            }
        }
        this.f5554.post(runnable);
    }

    @Override // ῲ.ʬ.K.K.AbstractC1507
    /* renamed from: K  reason: contains not printable characters */
    public void m3849(Runnable runnable) {
        this.f5555.execute(runnable);
    }

    @Override // ῲ.ʬ.K.K.AbstractC1507
    /* renamed from: K  reason: contains not printable characters */
    public boolean m3850() {
        return Looper.getMainLooper().getThread() == Thread.currentThread();
    }
}
