package com.google.android.gms.internal.atv_ads_framework;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.content.Context;
import android.content.res.TypedArray;
import android.database.Cursor;
import android.graphics.ImageDecoder;
import android.graphics.drawable.Drawable;
import android.media.AudioManager;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.animation.Animation;
import androidx.cardview.widget.CardView;
import androidx.media3.common.util.ParsableByteArray;
import androidx.media3.common.util.TimestampAdjuster;
import androidx.media3.common.util.Util;
import androidx.media3.exoplayer.audio.SilenceSkippingAudioProcessor;
import androidx.room.RoomDatabase;
import com.google.android.datatransport.Priority;
import com.google.android.gms.internal.ads.za;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.nio.channels.OverlappingFileLockException;
import java.security.GeneralSecurityException;
import java.security.InvalidAlgorithmParameterException;
import java.util.ArrayList;
import java.util.Formatter;
import java.util.List;
import java.util.Map;
import tv.danmaku.ijk.media.player.misc.ITrackInfo;
import tv.danmaku.ijk.media.player.ui.IjkPlayerRuntime;
import xyz.stream.view.listener.OnDialogSelectListener;

/* JADX INFO: loaded from: classes2.dex */
public class d1 implements s.b, androidx.media3.extractor.m, n4.e, a5.e, x6.b, w8.b, com.google.android.material.floatingactionbutton.s, ed.d, OnDialogSelectListener, vf.t {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static d1 f19912d;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f19913a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Object f19914b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Object f19915c;

    public /* synthetic */ d1(Object obj, Object obj2, int i10) {
        this.f19913a = i10;
        this.f19914b = obj;
        this.f19915c = obj2;
    }

    public static d1 c(Context context) {
        FileChannel channel;
        FileLock fileLockLock;
        try {
            channel = new RandomAccessFile(new File(context.getFilesDir(), "generatefid.lock"), "rw").getChannel();
            try {
                fileLockLock = channel.lock();
                try {
                    return new d1(channel, fileLockLock, 15);
                } catch (IOException | Error | OverlappingFileLockException unused) {
                    if (fileLockLock != null) {
                        try {
                            fileLockLock.release();
                        } catch (IOException unused2) {
                        }
                    }
                    if (channel != null) {
                        try {
                            channel.close();
                        } catch (IOException unused3) {
                        }
                    }
                    return null;
                }
            } catch (IOException | Error | OverlappingFileLockException unused4) {
                fileLockLock = null;
            }
        } catch (IOException | Error | OverlappingFileLockException unused5) {
            channel = null;
            fileLockLock = null;
        }
    }

    public static j5.d0 f(ImageDecoder.Source source, int i10, int i11, a5.l lVar) throws IOException {
        Drawable drawableDecodeDrawable = ImageDecoder.decodeDrawable(source, new i5.b(i10, i11, lVar));
        if (j4.a.x(drawableDecodeDrawable)) {
            return new j5.d0(j4.a.f(drawableDecodeDrawable), 2);
        }
        throw new IOException("Received unexpected drawable type for animated webp, failing: " + drawableDecodeDrawable);
    }

    public static synchronized d1 s(Context context) {
        try {
            if (f19912d == null) {
                v6.y.b(context.getApplicationContext());
                f19912d = new d1(context.getApplicationContext(), v6.y.a().c(com.google.android.datatransport.cct.a.f7720d));
            }
        } catch (Throwable th) {
            throw th;
        }
        return f19912d;
    }

    public static g7.g[] u(String str) {
        String[] strArrSplit = str.split("\\s*,\\s*");
        int length = strArrSplit.length;
        g7.g[] gVarArr = new g7.g[length];
        for (int i10 = 0; i10 < strArrSplit.length; i10++) {
            String strTrim = strArrSplit[i10].trim();
            if (strTrim.matches("^(\\d+|FULL_WIDTH)\\s*[xX]\\s*(\\d+|AUTO_HEIGHT)$")) {
                String[] strArrSplit2 = strTrim.split("[xX]");
                strArrSplit2[0] = strArrSplit2[0].trim();
                strArrSplit2[1] = strArrSplit2[1].trim();
                try {
                    String str2 = strArrSplit2[0];
                    int i11 = "FULL_WIDTH".equals(str2) ? -1 : Integer.parseInt(str2);
                    String str3 = strArrSplit2[1];
                    gVarArr[i10] = new g7.g(i11, "AUTO_HEIGHT".equals(str3) ? -2 : Integer.parseInt(str3));
                } catch (NumberFormatException unused) {
                    throw new IllegalArgumentException("Could not parse XML attribute \"adSize\": ".concat(strTrim));
                }
            } else if ("BANNER".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26280h;
            } else if ("LARGE_BANNER".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26282j;
            } else if ("FULL_BANNER".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26281i;
            } else if ("LEADERBOARD".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26283k;
            } else if ("MEDIUM_RECTANGLE".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26284l;
            } else if ("SMART_BANNER".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26286n;
            } else if ("WIDE_SKYSCRAPER".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26285m;
            } else if ("FLUID".equals(strTrim)) {
                gVarArr[i10] = g7.g.f26287o;
            } else {
                if (!"ICON".equals(strTrim)) {
                    throw new IllegalArgumentException("Could not parse XML attribute \"adSize\": ".concat(strTrim));
                }
                gVarArr[i10] = g7.g.f26289q;
            }
        }
        if (length != 0) {
            return gVarArr;
        }
        throw new IllegalArgumentException("Could not parse XML attribute \"adSize\": ".concat(str));
    }

    /* JADX WARN: Removed duplicated region for block: B:38:0x0106  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x0141 A[EDGE_INSN: B:64:0x0141->B:50:0x0141 BREAK  A[LOOP:1: B:36:0x0100->B:49:0x012c], SYNTHETIC] */
    @Override // androidx.media3.extractor.m
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final androidx.media3.extractor.l a(androidx.media3.extractor.z zVar, long j10) {
        androidx.media3.extractor.l lVar;
        long position = zVar.getPosition();
        int iMin = (int) Math.min(20000L, zVar.getLength() - position);
        ((ParsableByteArray) this.f19915c).reset(iMin);
        zVar.a(0, iMin, ((ParsableByteArray) this.f19915c).getData());
        ParsableByteArray parsableByteArray = (ParsableByteArray) this.f19915c;
        int position2 = -1;
        int position3 = -1;
        long j11 = -9223372036854775807L;
        while (parsableByteArray.bytesLeft() >= 4) {
            if (x2.c0.e(parsableByteArray.getPosition(), parsableByteArray.getData()) != 442) {
                parsableByteArray.skipBytes(1);
            } else {
                parsableByteArray.skipBytes(4);
                long jC = za.c(parsableByteArray);
                if (jC != -9223372036854775807L) {
                    long jAdjustTsTimestamp = ((TimestampAdjuster) this.f19914b).adjustTsTimestamp(jC);
                    if (jAdjustTsTimestamp > j10) {
                        if (j11 == -9223372036854775807L) {
                            return new androidx.media3.extractor.l(-1, jAdjustTsTimestamp, position);
                        }
                        lVar = new androidx.media3.extractor.l(0, -9223372036854775807L, position + ((long) position3));
                    } else if (SilenceSkippingAudioProcessor.DEFAULT_MINIMUM_SILENCE_DURATION_US + jAdjustTsTimestamp > j10) {
                        lVar = new androidx.media3.extractor.l(0, -9223372036854775807L, position + ((long) parsableByteArray.getPosition()));
                    } else {
                        position3 = parsableByteArray.getPosition();
                        j11 = jAdjustTsTimestamp;
                    }
                    return lVar;
                }
                int iLimit = parsableByteArray.limit();
                if (parsableByteArray.bytesLeft() < 10) {
                    parsableByteArray.setPosition(iLimit);
                } else {
                    parsableByteArray.skipBytes(9);
                    int unsignedByte = parsableByteArray.readUnsignedByte() & 7;
                    if (parsableByteArray.bytesLeft() < unsignedByte) {
                        parsableByteArray.setPosition(iLimit);
                    } else {
                        parsableByteArray.skipBytes(unsignedByte);
                        if (parsableByteArray.bytesLeft() < 4) {
                            parsableByteArray.setPosition(iLimit);
                        } else {
                            if (x2.c0.e(parsableByteArray.getPosition(), parsableByteArray.getData()) == 443) {
                                parsableByteArray.skipBytes(4);
                                int unsignedShort = parsableByteArray.readUnsignedShort();
                                if (parsableByteArray.bytesLeft() >= unsignedShort) {
                                    parsableByteArray.skipBytes(unsignedShort);
                                    while (true) {
                                        if (parsableByteArray.bytesLeft() >= 4) {
                                            break;
                                        }
                                        int iE = x2.c0.e(parsableByteArray.getPosition(), parsableByteArray.getData());
                                        if (iE == 442 || iE == 441 || (iE >>> 8) != 1) {
                                            break;
                                        }
                                        parsableByteArray.skipBytes(4);
                                        if (parsableByteArray.bytesLeft() < 2) {
                                            parsableByteArray.setPosition(iLimit);
                                            break;
                                        }
                                        parsableByteArray.setPosition(Math.min(parsableByteArray.limit(), parsableByteArray.getPosition() + parsableByteArray.readUnsignedShort()));
                                    }
                                } else {
                                    parsableByteArray.setPosition(iLimit);
                                }
                            } else {
                                while (true) {
                                    if (parsableByteArray.bytesLeft() >= 4) {
                                    }
                                    parsableByteArray.setPosition(Math.min(parsableByteArray.limit(), parsableByteArray.getPosition() + parsableByteArray.readUnsignedShort()));
                                }
                            }
                        }
                    }
                }
                position2 = parsableByteArray.getPosition();
            }
        }
        return j11 != -9223372036854775807L ? new androidx.media3.extractor.l(-2, j11, position + ((long) position2)) : androidx.media3.extractor.l.f3409d;
    }

    @Override // androidx.media3.extractor.m
    public final void b() {
        ((ParsableByteArray) this.f19915c).reset(Util.EMPTY_BYTE_ARRAY);
    }

    @Override // a5.e
    public final int d(a5.c cVar) {
        return cVar.c((ByteBuffer) this.f19914b, (c5.b) this.f19915c);
    }

    public final ea.y e() throws GeneralSecurityException {
        Integer num = (Integer) this.f19914b;
        if (num == null) {
            throw new GeneralSecurityException("Key size is not set");
        }
        if (((ea.x) this.f19915c) != null) {
            return new ea.y(num.intValue(), (ea.x) this.f19915c);
        }
        throw new GeneralSecurityException("Variant is not set");
    }

    public final synchronized void g(fe.i iVar) {
        try {
            Object obj = this.f19915c;
            if (((fe.i) obj) != null) {
                ((fe.i) obj).f26085c = iVar;
                this.f19915c = iVar;
            } else {
                if (((fe.i) this.f19914b) != null) {
                    throw new IllegalStateException("Head present, but no tail");
                }
                this.f19915c = iVar;
                this.f19914b = iVar;
            }
            notifyAll();
        } catch (Throwable th) {
            throw th;
        }
    }

    @Override // jd.a
    public final Object get() {
        return new w6.m((Context) ((jd.a) this.f19914b).get(), (w6.j) ((jd.a) this.f19915c).get());
    }

    @Override // n4.e
    public final Long getLongValue(String str) {
        androidx.room.s0 s0VarK = androidx.room.s0.k(1, "SELECT long_value FROM Preference where `key`=?");
        if (str == null) {
            s0VarK.d(1);
        } else {
            s0VarK.l(1, str);
        }
        ((RoomDatabase) this.f19914b).assertNotSuspendingTransaction();
        Cursor cursorC = androidx.room.util.b.c((RoomDatabase) this.f19914b, s0VarK);
        try {
            Long lValueOf = null;
            if (cursorC.moveToFirst() && !cursorC.isNull(0)) {
                lValueOf = Long.valueOf(cursorC.getLong(0));
            }
            return lValueOf;
        } finally {
            cursorC.close();
            s0VarK.m();
        }
    }

    public final androidx.media3.extractor.f h(int i10) {
        androidx.media3.extractor.f fVar;
        androidx.media3.extractor.f fVar2;
        androidx.media3.extractor.f fVar3 = ((androidx.media3.extractor.f[]) this.f19915c)[j(i10)];
        if (fVar3 != null) {
            return fVar3;
        }
        for (int i11 = 1; i11 < 5; i11++) {
            int iJ = j(i10) - i11;
            if (iJ >= 0 && (fVar2 = ((androidx.media3.extractor.f[]) this.f19915c)[iJ]) != null) {
                return fVar2;
            }
            int iJ2 = j(i10) + i11;
            androidx.media3.extractor.f[] fVarArr = (androidx.media3.extractor.f[]) this.f19915c;
            if (iJ2 < fVarArr.length && (fVar = fVarArr[iJ2]) != null) {
                return fVar;
            }
        }
        return null;
    }

    public final String i(a5.h hVar) {
        String str;
        synchronized (((t5.k) this.f19914b)) {
            str = (String) ((t5.k) this.f19914b).get(hVar);
        }
        if (str == null) {
            d5.k kVar = (d5.k) t5.n.checkNotNull(((p0.e) this.f19915c).acquire());
            try {
                hVar.updateDiskCacheKey(kVar.f24998a);
                byte[] bArrDigest = kVar.f24998a.digest();
                char[] cArr = t5.p.f32978b;
                synchronized (cArr) {
                    for (int i10 = 0; i10 < bArrDigest.length; i10++) {
                        byte b10 = bArrDigest[i10];
                        int i11 = i10 * 2;
                        char[] cArr2 = t5.p.f32977a;
                        cArr[i11] = cArr2[(b10 & 255) >>> 4];
                        cArr[i11 + 1] = cArr2[b10 & 15];
                    }
                    str = new String(cArr);
                }
            } finally {
                ((p0.e) this.f19915c).a(kVar);
            }
        }
        synchronized (((t5.k) this.f19914b)) {
            ((t5.k) this.f19914b).put(hVar, str);
        }
        return str;
    }

    public final int j(int i10) {
        return i10 - ((ec.b) this.f19914b).f25820h;
    }

    public final void k(n4.d dVar) {
        ((RoomDatabase) this.f19914b).assertNotSuspendingTransaction();
        ((RoomDatabase) this.f19914b).beginTransaction();
        try {
            ((androidx.room.i) this.f19915c).e(dVar);
            ((RoomDatabase) this.f19914b).setTransactionSuccessful();
        } finally {
            ((RoomDatabase) this.f19914b).endTransaction();
        }
    }

    public final void l() throws IOException {
        if (((FileChannel) this.f19915c) != null) {
            return;
        }
        try {
            File file = new File((String) this.f19914b);
            File parentFile = file.getParentFile();
            if (parentFile != null) {
                parentFile.mkdirs();
            }
            FileChannel channel = new FileOutputStream(file).getChannel();
            this.f19915c = channel;
            if (channel != null) {
                channel.lock();
            }
        } catch (Throwable th) {
            FileChannel fileChannel = (FileChannel) this.f19915c;
            if (fileChannel != null) {
                fileChannel.close();
            }
            this.f19915c = null;
            throw new IllegalStateException(defpackage.e.o(new StringBuilder("Unable to lock file: '"), (String) this.f19914b, "'."), th);
        }
    }

    public final synchronized fe.i m() {
        fe.i iVar;
        Object obj = this.f19914b;
        iVar = (fe.i) obj;
        if (((fe.i) obj) != null) {
            fe.i iVar2 = ((fe.i) obj).f26085c;
            this.f19914b = iVar2;
            if (iVar2 == null) {
                this.f19915c = null;
            }
        }
        return iVar;
    }

    public final synchronized fe.i n() {
        try {
            if (((fe.i) this.f19914b) == null) {
                wait(1000);
            }
        } catch (Throwable th) {
            throw th;
        }
        return m();
    }

    public final void o() {
        try {
            ((FileLock) this.f19915c).release();
            ((FileChannel) this.f19914b).close();
        } catch (IOException unused) {
        }
    }

    @Override // xyz.stream.view.listener.OnDialogSelectListener
    public final void onCancelClick() {
        switch (this.f19913a) {
            case 21:
                ((ve.v) this.f19915c).p();
                break;
            default:
                super.onCancelClick();
                ((rf.w) this.f19915c).D();
                break;
        }
    }

    @Override // xyz.stream.view.listener.OnDialogSelectListener
    public final void onItemSelected(int i10) {
        switch (this.f19913a) {
            case 21:
                ((ve.v) this.f19915c).f33931k = i10;
                if (xyz.stream.utils.e.d().f36119h) {
                    ((ve.v) this.f19915c).f33922b.setSubtitleText((String) ((List) this.f19914b).get(i10));
                } else {
                    ((ve.v) this.f19915c).f33921a.setSubtitleText((String) ((List) this.f19914b).get(i10));
                }
                ve.v vVar = (ve.v) this.f19915c;
                vVar.f33925e.selectGroupTrack(((ITrackInfo) vVar.f33934n.get(i10)).getTrackType(), ((ITrackInfo) ((ve.v) this.f19915c).f33934n.get(i10)).getGroupIndex(), ((ITrackInfo) ((ve.v) this.f19915c).f33934n.get(i10)).getIndex());
                ((ve.v) this.f19915c).p();
                break;
            default:
                int iIntValue = ((Integer[]) ((Map) this.f19914b).keySet().toArray(new Integer[0]))[i10].intValue();
                xyz.stream.utils.f0.o().v(iIntValue, IjkPlayerRuntime.SP_VOD_VIDEO_RATIO);
                ((rf.w) this.f19915c).f32602e.setResizeMode(iIntValue);
                break;
        }
    }

    public final void p(int i10) throws InvalidAlgorithmParameterException {
        if (i10 != 16 && i10 != 32) {
            throw new InvalidAlgorithmParameterException(String.format("Invalid key size %d; only 16-byte and 32-byte AES keys are supported", Integer.valueOf(i10)));
        }
        this.f19914b = Integer.valueOf(i10);
    }

    public final void q(int i10, int i11, int i12, int i13) {
        ((CardView) this.f19915c).f922d.set(i10, i11, i12, i13);
        Object obj = this.f19915c;
        super/*android.view.View*/.setPadding(i10 + ((CardView) obj).f921c.left, i11 + ((CardView) obj).f921c.top, i12 + ((CardView) obj).f921c.right, i13 + ((CardView) obj).f921c.bottom);
    }

    public final void r(double d10, boolean z10) {
        if (d10 < 0.0d) {
            d10 = 0.0d;
        } else if (d10 > 1.0d) {
            d10 = 1.0d;
        }
        int iRint = (int) Math.rint(((double) ((AudioManager) this.f19914b).getStreamMaxVolume(3)) * d10);
        if (d10 != 0.0d) {
            this.f19915c = null;
        }
        ((AudioManager) this.f19914b).setStreamVolume(3, iRint, z10 ? 1 : 0);
    }

    @Override // ed.d
    public final void reply(Object obj) {
        ((dd.f0) this.f19915c).f25111a.remove((dd.e0) this.f19914b);
        if (((dd.f0) this.f19915c).f25111a.isEmpty()) {
            return;
        }
        String.valueOf(((dd.e0) this.f19914b).f25108a);
    }

    public final void t(s1 s1Var) {
        b bVarK = com.bumptech.glide.g.K((Context) this.f19915c);
        bVarK.c();
        c.p((c) bVarK.f20005b, s1Var);
        v((c) bVarK.a());
    }

    @Override // w8.b
    public final Object then(w8.h hVar) {
        Bundle bundle;
        d8.b bVar = (d8.b) this.f19914b;
        Bundle bundle2 = (Bundle) this.f19915c;
        bVar.getClass();
        if (!hVar.j() || (bundle = (Bundle) hVar.g()) == null || !bundle.containsKey("google.messenger")) {
            return hVar;
        }
        w8.t tVarB = bVar.b(bundle2);
        d8.p pVar = d8.p.f25045a;
        d8.c cVar = d8.c.f25017b;
        tVarB.getClass();
        w8.t tVar = new w8.t();
        tVarB.f34251b.f(new w8.q(pVar, cVar, tVar));
        tVarB.m();
        return tVar;
    }

    public String toString() {
        switch (this.f19913a) {
            case 17:
                Formatter formatter = new Formatter();
                try {
                    int i10 = 0;
                    for (androidx.media3.extractor.f fVar : (androidx.media3.extractor.f[]) this.f19915c) {
                        if (fVar == null) {
                            formatter.format("%3d:    |   %n", Integer.valueOf(i10));
                            i10++;
                        } else {
                            formatter.format("%3d: %3d|%3d%n", Integer.valueOf(i10), Integer.valueOf(fVar.f3365f), Integer.valueOf(fVar.f3364e));
                            i10++;
                        }
                    }
                    String string = formatter.toString();
                    formatter.close();
                    return string;
                } catch (Throwable th) {
                    try {
                        formatter.close();
                        break;
                    } catch (Throwable th2) {
                        th.addSuppressed(th2);
                    }
                    throw th;
                }
            default:
                return super.toString();
        }
    }

    public final void v(c cVar) {
        ((v6.w) ((t6.g) this.f19914b)).a("TV_ADS_LIB", new t6.c("proto"), j0.f19939a).d(new t6.a(null, cVar, Priority.f7714a, null));
    }

    public /* synthetic */ d1(Object obj, Object obj2, int i10, int i11) {
        this.f19913a = i10;
        this.f19915c = obj;
        this.f19914b = obj2;
    }

    public d1(nb.c cVar) {
        this.f19913a = 12;
        f fVar = f.f19919a;
        this.f19915c = cVar;
        this.f19914b = fVar;
    }

    public d1(Context context, AttributeSet attributeSet) {
        this.f19913a = 10;
        TypedArray typedArrayObtainAttributes = context.getResources().obtainAttributes(attributeSet, g7.r.AdsAttrs);
        String string = typedArrayObtainAttributes.getString(g7.r.AdsAttrs_adSize);
        String string2 = typedArrayObtainAttributes.getString(g7.r.AdsAttrs_adSizes);
        boolean z10 = !TextUtils.isEmpty(string);
        boolean z11 = !TextUtils.isEmpty(string2);
        if (z10 && !z11) {
            this.f19914b = u(string);
        } else {
            if (z10 || !z11) {
                if (z10) {
                    typedArrayObtainAttributes.recycle();
                    throw new IllegalArgumentException("Either XML attribute \"adSize\" or XML attribute \"supportedAdSizes\" should be specified, but not both.");
                }
                typedArrayObtainAttributes.recycle();
                throw new IllegalArgumentException("Required XML attribute \"adSize\" was missing.");
            }
            this.f19914b = u(string2);
        }
        this.f19915c = typedArrayObtainAttributes.getString(g7.r.AdsAttrs_adUnitId);
        typedArrayObtainAttributes.recycle();
        if (TextUtils.isEmpty((String) this.f19915c)) {
            throw new IllegalArgumentException("Required XML attribute \"adUnitId\" was missing.");
        }
    }

    public d1(Context context, v6.w wVar) {
        this.f19913a = 0;
        context.getClass();
        this.f19915c = context;
        this.f19914b = wVar;
    }

    public d1(AudioManager audioManager) {
        this.f19913a = 18;
        this.f19914b = audioManager;
        this.f19915c = null;
    }

    public d1(int i10) {
        this.f19913a = i10;
        if (i10 == 14) {
            this.f19914b = null;
            this.f19915c = ea.x.f25789d;
        } else if (i10 != 20) {
            this.f19914b = new t5.k(1000L);
            this.f19915c = u5.d.a(10, new xyz.stream.utils.j0(this, 11));
        }
    }

    public d1(RoomDatabase roomDatabase, int i10) {
        this.f19913a = i10;
        if (i10 != 23) {
            this.f19914b = roomDatabase;
            this.f19915c = new n4.c(this, roomDatabase, 1);
        } else {
            this.f19914b = roomDatabase;
            this.f19915c = new vf.g(this, 3);
        }
    }

    public d1(ec.b bVar) {
        this.f19913a = 17;
        this.f19914b = new ec.b(bVar);
        this.f19915c = new androidx.media3.extractor.f[(bVar.f25821i - bVar.f25820h) + 1];
    }

    public d1(String str) {
        this.f19913a = 4;
        this.f19914b = str.concat(".lck");
    }

    public d1(ub.a aVar) {
        this.f19913a = 16;
        this.f19914b = aVar;
        ArrayList arrayList = new ArrayList();
        this.f19915c = arrayList;
        arrayList.add(new ub.b(aVar, new int[]{1}));
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ d1() {
        this(14);
        this.f19913a = 14;
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ d1(TimestampAdjuster timestampAdjuster, int i10) {
        this(timestampAdjuster);
        this.f19913a = 3;
    }

    public d1(TimestampAdjuster timestampAdjuster) {
        this.f19913a = 3;
        this.f19914b = timestampAdjuster;
        this.f19915c = new ParsableByteArray();
    }

    public d1(Animation animation) {
        this.f19913a = 2;
        this.f19914b = animation;
        this.f19915c = null;
    }

    public d1(Animator animator) {
        this.f19913a = 2;
        this.f19914b = null;
        AnimatorSet animatorSet = new AnimatorSet();
        this.f19915c = animatorSet;
        animatorSet.play(animator);
    }

    public d1(CardView cardView) {
        this.f19913a = 1;
        this.f19915c = cardView;
    }
}
