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;

/* JADX INFO: renamed from: ٴᐧ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract /* synthetic */ class AbstractC2181 {
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static void m5690(ScheduledExecutorServiceC5248 scheduledExecutorServiceC5248) {
        if ((Build.VERSION.SDK_INT <= 23 || scheduledExecutorServiceC5248 != ForkJoinPool.commonPool()) && !scheduledExecutorServiceC5248.f19775.isTerminated()) {
            scheduledExecutorServiceC5248.shutdown();
            throw null;
        }
    }

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

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public static /* synthetic */ void m5692(ExecutorService executorService) {
        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();
            }
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static /* synthetic */ MediaCodec.CryptoInfo.Pattern m5693() {
        return new MediaCodec.CryptoInfo.Pattern(0, 0);
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static /* synthetic */ void m5694(ScheduledExecutorServiceC3721 scheduledExecutorServiceC3721) {
        boolean zIsTerminated;
        if ((Build.VERSION.SDK_INT <= 23 || scheduledExecutorServiceC3721 != ForkJoinPool.commonPool()) && !(zIsTerminated = scheduledExecutorServiceC3721.isTerminated())) {
            scheduledExecutorServiceC3721.shutdown();
            boolean z = false;
            while (!zIsTerminated) {
                try {
                    zIsTerminated = scheduledExecutorServiceC3721.awaitTermination(1L, TimeUnit.DAYS);
                } catch (InterruptedException unused) {
                    if (!z) {
                        scheduledExecutorServiceC3721.shutdownNow();
                        z = true;
                    }
                }
            }
            if (z) {
                Thread.currentThread().interrupt();
            }
        }
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public static /* synthetic */ void m5695(ExecutorService executorService) {
        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();
            }
        }
    }
}
