package defpackage;

import androidx.media3.common.VideoSize;
import androidx.media3.common.util.Util;
import androidx.media3.common.util.WakeLockManager;
import androidx.media3.common.util.WifiLockManager;
import androidx.media3.exoplayer.CodecParameters;
import androidx.media3.exoplayer.video.VideoRendererEventListener;
import java.util.concurrent.atomic.AtomicBoolean;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class fda implements Runnable {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;
    public final /* synthetic */ Object c;

    public /* synthetic */ fda(Object obj, Object obj2, int i) {
        this.a = i;
        this.b = obj;
        this.c = obj2;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.a) {
            case 0:
                Util.lambda$transformFutureAsync$1((om8) this.b, (zb5) this.c);
                break;
            case 1:
                ((VideoRendererEventListener.EventDispatcher) this.b).lambda$decoderReleased$7((String) this.c);
                break;
            case 2:
                ((VideoRendererEventListener.EventDispatcher) this.b).lambda$videoSizeChanged$5((VideoSize) this.c);
                break;
            case 3:
                ((VideoRendererEventListener.EventDispatcher) this.b).lambda$videoCodecError$9((Exception) this.c);
                break;
            case 4:
                ((VideoRendererEventListener.EventDispatcher) this.b).lambda$videoCodecParametersChanged$10((CodecParameters) this.c);
                break;
            case 5:
                ((WakeLockManager) this.b).lambda$postUpdateWakeLock$1((AtomicBoolean) this.c);
                break;
            case 6:
                ((WifiLockManager) this.b).lambda$postUpdateWifiLock$1((AtomicBoolean) this.c);
                break;
            case 7:
                dsa dsaVar = (dsa) this.b;
                pm8 pm8Var = (pm8) this.c;
                if (!dsaVar.a.isCancelled()) {
                    pm8Var.j(dsaVar.d.a());
                } else {
                    pm8Var.cancel(true);
                }
                break;
            default:
                jva jvaVar = (jva) this.b;
                zb5 zb5Var = (zb5) this.c;
                if (jvaVar.r.isCancelled()) {
                    zb5Var.cancel(true);
                }
                break;
        }
    }
}
