package defpackage;

import android.media.MediaCodec;
import android.os.Build;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.TimeUnit;

/* renamed from: ˊᵖˆ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract /* synthetic */ class AbstractC1333 {
    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static /* synthetic */ void m4120(ExecutorService executorService) throws InterruptedException {
        boolean zIsTerminated;
        if ((Build.VERSION.SDK_INT <= 23 || executorService != ForkJoinPool.commonPool()) && !(zIsTerminated = executorService.isTerminated())) {
            executorService.shutdown();
            boolean z = false;
            while (!zIsTerminated) {
                try {
                    zIsTerminated = executorService.awaitTermination(1L, TimeUnit.DAYS);
                } catch (InterruptedException unused) {
                    if (!z) {
                        executorService.shutdownNow();
                        z = true;
                    }
                }
            }
            if (z) {
                Thread.currentThread().interrupt();
            }
        }
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public static /* synthetic */ void m4121(ExecutorService executorService) throws InterruptedException {
        boolean zIsTerminated;
        if ((Build.VERSION.SDK_INT <= 23 || executorService != ForkJoinPool.commonPool()) && !(zIsTerminated = executorService.isTerminated())) {
            executorService.shutdown();
            boolean z = false;
            while (!zIsTerminated) {
                try {
                    zIsTerminated = executorService.awaitTermination(1L, TimeUnit.DAYS);
                } catch (InterruptedException unused) {
                    if (!z) {
                        executorService.shutdownNow();
                        z = true;
                    }
                }
            }
            if (z) {
                Thread.currentThread().interrupt();
            }
        }
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static /* synthetic */ void m4122(ExecutorServiceC4470 executorServiceC4470) {
        boolean zIsTerminated;
        if ((Build.VERSION.SDK_INT <= 23 || executorServiceC4470 != ForkJoinPool.commonPool()) && !(zIsTerminated = executorServiceC4470.isTerminated())) {
            executorServiceC4470.shutdown();
            boolean z = false;
            while (!zIsTerminated) {
                try {
                    zIsTerminated = executorServiceC4470.awaitTermination(1L, TimeUnit.DAYS);
                } catch (InterruptedException unused) {
                    if (!z) {
                        executorServiceC4470.shutdownNow();
                        z = true;
                    }
                }
            }
            if (z) {
                Thread.currentThread().interrupt();
            }
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static /* synthetic */ MediaCodec.CryptoInfo.Pattern m4123() {
        return new MediaCodec.CryptoInfo.Pattern(0, 0);
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static void m4124(ScheduledExecutorServiceC3827 scheduledExecutorServiceC3827) {
        if ((Build.VERSION.SDK_INT <= 23 || scheduledExecutorServiceC3827 != ForkJoinPool.commonPool()) && !scheduledExecutorServiceC3827.f14223.isTerminated()) {
            scheduledExecutorServiceC3827.shutdown();
            throw null;
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static /* synthetic */ void m4125(ScheduledExecutorServiceC3360 scheduledExecutorServiceC3360) {
        boolean zIsTerminated;
        if ((Build.VERSION.SDK_INT <= 23 || scheduledExecutorServiceC3360 != ForkJoinPool.commonPool()) && !(zIsTerminated = scheduledExecutorServiceC3360.isTerminated())) {
            scheduledExecutorServiceC3360.shutdown();
            boolean z = false;
            while (!zIsTerminated) {
                try {
                    zIsTerminated = scheduledExecutorServiceC3360.awaitTermination(1L, TimeUnit.DAYS);
                } catch (InterruptedException unused) {
                    if (!z) {
                        scheduledExecutorServiceC3360.shutdownNow();
                        z = true;
                    }
                }
            }
            if (z) {
                Thread.currentThread().interrupt();
            }
        }
    }
}
