导航菜单

页面标题

页面副标题

Kaspi.kz v5.85.1 - createECCBlock.java 源代码

正在查看: Kaspi.kz v5.85.1 应用的 createECCBlock.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o;

import android.net.Uri;
import android.text.TextUtils;
import android.util.Xml;
import androidx.annotation.Nullable;
import androidx.media3.common.ParserException;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import o.illegalCharacter;
import o.rotateArray;
import o.setMaxSupportedZoomRatio;
import o.setZoom;
import org.xml.sax.helpers.DefaultHandler;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import org.xmlpull.v1.XmlSerializer;

public class createECCBlock extends DefaultHandler implements rotateArray.setOptions<encodeHighLevel> {
    private static final String setBackground = "MpdParser";
    private final XmlPullParserFactory read;
    private static final Pattern setLabel = Pattern.compile("(\\d+)(?:/(\\d+))?");
    private static final Pattern setOptions = Pattern.compile("CC([1-4])=.*");
    private static final Pattern setFieldValue = Pattern.compile("([1-9]|[1-5][0-9]|6[0-3])=.*");
    private static final int[] setError = {-1, 1, 2, 3, 4, 5, 6, 8, 2, 3, 4, 7, 8, 24, 8, 12, 10, 12, 14, 12, 14};

    private static long setOptions(long j, long j2) {
        if (j2 != -9223372036854775807L) {
            j = j2;
        }
        if (j == Long.MAX_VALUE) {
            return -9223372036854775807L;
        }
        return j;
    }

    public createECCBlock() {
        try {
            this.read = XmlPullParserFactory.newInstance();
        } catch (XmlPullParserException e) {
            throw new RuntimeException("Couldn't create XmlPullParserFactory instance", e);
        }
    }

    @Override
    public encodeHighLevel setError(Uri uri, InputStream inputStream) throws IOException {
        try {
            XmlPullParser newPullParser = this.read.newPullParser();
            newPullParser.setInput(inputStream, null);
            if (newPullParser.next() != 2 || !"MPD".equals(newPullParser.getName())) {
                throw ParserException.setError("inputStream does not contain a valid media presentation description", (Throwable) null);
            }
            return setLabel(newPullParser, uri);
        } catch (XmlPullParserException e) {
            throw ParserException.setError((String) null, e);
        }
    }

    protected o.encodeHighLevel setLabel(org.xmlpull.v1.XmlPullParser r47, android.net.Uri r48) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
        throw new UnsupportedOperationException("Method not decompiled: o.createECCBlock.setLabel(org.xmlpull.v1.XmlPullParser, android.net.Uri):o.encodeHighLevel");
    }

    protected encodeHighLevel setLabel(long j, long j2, long j3, boolean z, long j4, long j5, long j6, long j7, @Nullable isExtendedASCII isextendedascii, @Nullable isX12TermSep isx12termsep, @Nullable isSpecialB256 isspecialb256, @Nullable Uri uri, List<getMinimumCount> list) {
        return new encodeHighLevel(j, j2, j3, z, j4, j5, j6, j7, isextendedascii, isx12termsep, isspecialb256, uri, list);
    }

    protected isX12TermSep MediaBrowserCompatSearchResultReceiver(XmlPullParser xmlPullParser) {
        return setLabel(xmlPullParser.getAttributeValue(null, "schemeIdUri"), xmlPullParser.getAttributeValue(null, "value"));
    }

    protected isX12TermSep setLabel(String str, String str2) {
        return new isX12TermSep(str, str2);
    }

    protected isSpecialB256 AudioAttributesCompatParcelizer(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
        long j = -9223372036854775807L;
        long j2 = -9223372036854775807L;
        long j3 = -9223372036854775807L;
        float f = -3.4028235E38f;
        float f2 = -3.4028235E38f;
        while (true) {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "Latency")) {
                j = setBackground(xmlPullParser, "target", -9223372036854775807L);
                j2 = setBackground(xmlPullParser, "min", -9223372036854775807L);
                j3 = setBackground(xmlPullParser, "max", -9223372036854775807L);
            } else if (DetectorDetectorType.setOptions(xmlPullParser, "PlaybackRate")) {
                f = setFieldValue(xmlPullParser, "min", -3.4028235E38f);
                f2 = setFieldValue(xmlPullParser, "max", -3.4028235E38f);
            }
            long j4 = j;
            long j5 = j2;
            long j6 = j3;
            float f3 = f;
            float f4 = f2;
            if (DetectorDetectorType.setLabel(xmlPullParser, "ServiceDescription")) {
                return new isSpecialB256(j4, j5, j6, f3, f4);
            }
            j = j4;
            j2 = j5;
            j3 = j6;
            f = f3;
            f2 = f4;
        }
    }

    protected android.util.Pair<getMinimumCount, Long> setError(XmlPullParser xmlPullParser, List<encodeECC200> list, long j, long j2, long j3, long j4, boolean z) throws XmlPullParserException, IOException {
        long j5;
        ArrayList arrayList;
        ArrayList arrayList2;
        ArrayList arrayList3;
        Object obj;
        long j6;
        long options;
        illegalCharacter label;
        ArrayList arrayList4;
        createECCBlock createeccblock = this;
        XmlPullParser xmlPullParser2 = xmlPullParser;
        Object obj2 = null;
        String attributeValue = xmlPullParser2.getAttributeValue(null, AlipayPlusClient.IconCompatParcelizer);
        long label2 = setLabel(xmlPullParser2, AlipayPlusClient.onSaveInstanceState, j);
        long j7 = -9223372036854775807L;
        long j8 = j3 != -9223372036854775807L ? j3 + label2 : -9223372036854775807L;
        long label3 = setLabel(xmlPullParser2, "duration", -9223372036854775807L);
        ArrayList arrayList5 = new ArrayList();
        ArrayList arrayList6 = new ArrayList();
        ArrayList arrayList7 = new ArrayList();
        long j9 = j2;
        boolean z2 = false;
        long j10 = -9223372036854775807L;
        illegalCharacter illegalcharacter = null;
        determineConsecutiveDigitCount determineconsecutivedigitcount = null;
        while (true) {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser2, "BaseURL")) {
                if (!z2) {
                    j9 = createeccblock.setOptions(xmlPullParser2, j9);
                    z2 = true;
                }
                arrayList7.addAll(createeccblock.setLabel(xmlPullParser2, list, z));
                arrayList3 = arrayList6;
                arrayList = arrayList7;
                j6 = j7;
                obj = obj2;
                arrayList2 = arrayList5;
            } else {
                if (DetectorDetectorType.setOptions(xmlPullParser2, "AdaptationSet")) {
                    j5 = j9;
                    arrayList = arrayList7;
                    arrayList2 = arrayList5;
                    arrayList2.add(setOptions(xmlPullParser, !arrayList7.isEmpty() ? arrayList7 : list, illegalcharacter, label3, j9, j10, j8, j4, z));
                    xmlPullParser2 = xmlPullParser;
                    arrayList4 = arrayList6;
                } else {
                    j5 = j9;
                    ArrayList arrayList8 = arrayList6;
                    arrayList = arrayList7;
                    arrayList2 = arrayList5;
                    xmlPullParser2 = xmlPullParser;
                    if (DetectorDetectorType.setOptions(xmlPullParser2, "EventStream")) {
                        arrayList4 = arrayList8;
                        arrayList4.add(write(xmlPullParser));
                    } else if (DetectorDetectorType.setOptions(xmlPullParser2, "SegmentBase")) {
                        arrayList3 = arrayList8;
                        illegalcharacter = setFieldValue(xmlPullParser2, (illegalCharacter.setError) null);
                        obj = null;
                        j9 = j5;
                        j6 = -9223372036854775807L;
                    } else {
                        arrayList3 = arrayList8;
                        if (DetectorDetectorType.setOptions(xmlPullParser2, "SegmentList")) {
                            options = setOptions(xmlPullParser2, -9223372036854775807L);
                            obj = null;
                            label = setError(xmlPullParser, (illegalCharacter.setFieldValue) null, j8, label3, j5, options, j4);
                            j6 = -9223372036854775807L;
                        } else {
                            obj = null;
                            if (DetectorDetectorType.setOptions(xmlPullParser2, "SegmentTemplate")) {
                                options = setOptions(xmlPullParser2, -9223372036854775807L);
                                j6 = -9223372036854775807L;
                                label = setLabel(xmlPullParser, null, getJavaModuleResolver.setError(), j8, label3, j5, options, j4);
                            } else {
                                j6 = -9223372036854775807L;
                                if (DetectorDetectorType.setOptions(xmlPullParser2, "AssetIdentifier")) {
                                    determineconsecutivedigitcount = setFieldValue(xmlPullParser2, "AssetIdentifier");
                                } else {
                                    setBackground(xmlPullParser);
                                }
                                j9 = j5;
                            }
                        }
                        j10 = options;
                        j9 = j5;
                        illegalcharacter = label;
                    }
                }
                arrayList3 = arrayList4;
                obj = null;
                j6 = -9223372036854775807L;
                j9 = j5;
            }
            if (DetectorDetectorType.setLabel(xmlPullParser2, "Period")) {
                return android.util.Pair.create(setError(attributeValue, label2, arrayList2, arrayList3, determineconsecutivedigitcount), Long.valueOf(label3));
            }
            arrayList5 = arrayList2;
            arrayList7 = arrayList;
            obj2 = obj;
            arrayList6 = arrayList3;
            j7 = j6;
            createeccblock = this;
        }
    }

    protected getMinimumCount setError(@Nullable String str, long j, List<writeCodeword> list, List<findMinimums> list2, @Nullable determineConsecutiveDigitCount determineconsecutivedigitcount) {
        return new getMinimumCount(str, j, list, list2, determineconsecutivedigitcount);
    }

    protected o.writeCodeword setOptions(org.xmlpull.v1.XmlPullParser r57, java.util.List<o.encodeECC200> r58, @androidx.annotation.Nullable o.illegalCharacter r59, long r60, long r62, long r64, long r66, long r68, boolean r70) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
        throw new UnsupportedOperationException("Method not decompiled: o.createECCBlock.setOptions(org.xmlpull.v1.XmlPullParser, java.util.List, o.illegalCharacter, long, long, long, long, long, boolean):o.writeCodeword");
    }

    protected writeCodeword setOptions(long j, int i, List<isDigit> list, List<determineConsecutiveDigitCount> list2, List<determineConsecutiveDigitCount> list3, List<determineConsecutiveDigitCount> list4) {
        return new writeCodeword(j, i, list, list2, list3, list4);
    }

    protected int setElement(XmlPullParser xmlPullParser) {
        String attributeValue = xmlPullParser.getAttributeValue(null, "contentType");
        if (!TextUtils.isEmpty(attributeValue)) {
            if ("audio".equals(attributeValue)) {
                return 1;
            }
            if ("video".equals(attributeValue)) {
                return 2;
            }
            if (AlipayPlusClient.getLifecycle.equals(attributeValue)) {
                return 3;
            }
            if (AlipayPlusClient.onStop.equals(attributeValue)) {
                return 4;
            }
        }
        return -1;
    }

    protected android.util.Pair<java.lang.String, o.setMaxSupportedZoomRatio.setFieldValue> read(org.xmlpull.v1.XmlPullParser r12) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
        throw new UnsupportedOperationException("Method not decompiled: o.createECCBlock.read(org.xmlpull.v1.XmlPullParser):android.util.Pair");
    }

    protected void IconCompatParcelizer(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
        setBackground(xmlPullParser);
    }

    protected o.createECCBlock.setLabel setError(org.xmlpull.v1.XmlPullParser r36, java.util.List<o.encodeECC200> r37, @androidx.annotation.Nullable java.lang.String r38, @androidx.annotation.Nullable java.lang.String r39, int r40, int r41, float r42, int r43, int r44, @androidx.annotation.Nullable java.lang.String r45, java.util.List<o.determineConsecutiveDigitCount> r46, java.util.List<o.determineConsecutiveDigitCount> r47, java.util.List<o.determineConsecutiveDigitCount> r48, java.util.List<o.determineConsecutiveDigitCount> r49, @androidx.annotation.Nullable o.illegalCharacter r50, long r51, long r53, long r55, long r57, long r59, boolean r61) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
        throw new UnsupportedOperationException("Method not decompiled: o.createECCBlock.setError(org.xmlpull.v1.XmlPullParser, java.util.List, java.lang.String, java.lang.String, int, int, float, int, int, java.lang.String, java.util.List, java.util.List, java.util.List, java.util.List, o.illegalCharacter, long, long, long, long, long, boolean):o.createECCBlock$setLabel");
    }

    protected setZoom setFieldValue(@Nullable String str, @Nullable String str2, int i, int i2, float f, int i3, int i4, int i5, @Nullable String str3, List<determineConsecutiveDigitCount> list, List<determineConsecutiveDigitCount> list2, @Nullable String str4, List<determineConsecutiveDigitCount> list3, List<determineConsecutiveDigitCount> list4) {
        String str5 = str4;
        String fieldValue = setFieldValue(str2, str5);
        if ("audio/eac3".equals(fieldValue)) {
            fieldValue = setBackground(list4);
            if ("audio/eac3-joc".equals(fieldValue)) {
                str5 = "ec+3";
            }
        }
        int write = write(list);
        int element = setElement(list);
        int label = setLabel(list2);
        int read = read(list3);
        int read2 = read(list4);
        android.util.Pair<Integer, Integer> RemoteActionCompatParcelizer = RemoteActionCompatParcelizer(list3);
        setZoom.setOptions options = new setZoom.setOptions().setError(str).setBackground(str2).read(fieldValue).setLabel(str5).AudioAttributesImplApi21Parcelizer(i5).MediaBrowserCompatItemReceiver(write).MediaBrowserCompatCustomActionResultReceiver(element | label | read | read2).setOptions(str3);
        int i6 = -1;
        setZoom.setOptions MediaBrowserCompatSearchResultReceiver = options.MediaBrowserCompatMediaItem(RemoteActionCompatParcelizer != null ? ((Integer) RemoteActionCompatParcelizer.first).intValue() : -1).MediaBrowserCompatSearchResultReceiver(RemoteActionCompatParcelizer != null ? ((Integer) RemoteActionCompatParcelizer.second).intValue() : -1);
        if (getRawValue.AudioAttributesCompatParcelizer(fieldValue)) {
            MediaBrowserCompatSearchResultReceiver.MediaSessionCompatResultReceiverWrapper(i).IconCompatParcelizer(i2).setFieldValue(f);
        } else if (getRawValue.write(fieldValue)) {
            MediaBrowserCompatSearchResultReceiver.setError(i3).MediaMetadataCompat(i4);
        } else if (getRawValue.AudioAttributesImplBaseParcelizer(fieldValue)) {
            if ("application/cea-608".equals(fieldValue)) {
                i6 = setFieldValue(list2);
            } else if ("application/cea-708".equals(fieldValue)) {
                i6 = setOptions(list2);
            }
            MediaBrowserCompatSearchResultReceiver.setOptions(i6);
        } else if (getRawValue.setElement(fieldValue)) {
            MediaBrowserCompatSearchResultReceiver.MediaSessionCompatResultReceiverWrapper(i).IconCompatParcelizer(i2);
        }
        return MediaBrowserCompatSearchResultReceiver.setFieldValue();
    }

    protected isDigit setBackground(setLabel setlabel, @Nullable String str, List<getDisplayValue> list, @Nullable String str2, ArrayList<setMaxSupportedZoomRatio.setFieldValue> arrayList, ArrayList<determineConsecutiveDigitCount> arrayList2) {
        setZoom.setOptions fieldValue = setlabel.setBackground.setFieldValue();
        if (str != null && list.isEmpty()) {
            fieldValue.setFieldValue(str);
        } else {
            fieldValue.setBackground(list);
        }
        String str3 = setlabel.setError;
        if (str3 == null) {
            str3 = str2;
        }
        ArrayList<setMaxSupportedZoomRatio.setFieldValue> arrayList3 = setlabel.setFieldValue;
        arrayList3.addAll(arrayList);
        if (!arrayList3.isEmpty()) {
            setBackground(arrayList3);
            setLabel(arrayList3);
            fieldValue.setFieldValue(new setMaxSupportedZoomRatio(str3, arrayList3));
        }
        ArrayList<determineConsecutiveDigitCount> arrayList4 = setlabel.RemoteActionCompatParcelizer;
        arrayList4.addAll(arrayList2);
        return isDigit.setBackground(setlabel.write, fieldValue.setFieldValue(), setlabel.setLabel, setlabel.read, arrayList4, setlabel.setOptions, setlabel.IconCompatParcelizer, null);
    }

    protected illegalCharacter.setError setFieldValue(XmlPullParser xmlPullParser, @Nullable illegalCharacter.setError seterror) throws XmlPullParserException, IOException {
        long j;
        long j2;
        long background = setBackground(xmlPullParser, "timescale", seterror != null ? seterror.setError : 1L);
        long background2 = setBackground(xmlPullParser, "presentationTimeOffset", seterror != null ? seterror.setOptions : 0L);
        long j3 = seterror != null ? seterror.setFieldValue : 0L;
        long j4 = seterror != null ? seterror.setLabel : 0L;
        String attributeValue = xmlPullParser.getAttributeValue(null, "indexRange");
        if (attributeValue != null) {
            String[] split = attributeValue.split("-");
            j2 = Long.parseLong(split[0]);
            j = (Long.parseLong(split[1]) - j2) + 1;
        } else {
            j = j4;
            j2 = j3;
        }
        isNativeC40 isnativec40 = seterror != null ? seterror.setBackground : null;
        do {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "Initialization")) {
                isnativec40 = AudioAttributesImplApi26Parcelizer(xmlPullParser);
            } else {
                setBackground(xmlPullParser);
            }
        } while (!DetectorDetectorType.setLabel(xmlPullParser, "SegmentBase"));
        return setOptions(isnativec40, background, background2, j2, j);
    }

    protected illegalCharacter.setError setOptions(isNativeC40 isnativec40, long j, long j2, long j3, long j4) {
        return new illegalCharacter.setError(isnativec40, j, j2, j3, j4);
    }

    protected illegalCharacter.setFieldValue setError(XmlPullParser xmlPullParser, @Nullable illegalCharacter.setFieldValue setfieldvalue, long j, long j2, long j3, long j4, long j5) throws XmlPullParserException, IOException {
        List<isNativeC40> list;
        long background = setBackground(xmlPullParser, "timescale", setfieldvalue != null ? setfieldvalue.setError : 1L);
        long background2 = setBackground(xmlPullParser, "presentationTimeOffset", setfieldvalue != null ? setfieldvalue.setOptions : 0L);
        long background3 = setBackground(xmlPullParser, "duration", setfieldvalue != null ? setfieldvalue.setLabel : -9223372036854775807L);
        long background4 = setBackground(xmlPullParser, "startNumber", setfieldvalue != null ? setfieldvalue.RemoteActionCompatParcelizer : 1L);
        long options = setOptions(j3, j4);
        List<illegalCharacter.setLabel> list2 = null;
        ArrayList arrayList = null;
        isNativeC40 isnativec40 = null;
        do {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "Initialization")) {
                isnativec40 = AudioAttributesImplApi26Parcelizer(xmlPullParser);
            } else if (DetectorDetectorType.setOptions(xmlPullParser, "SegmentTimeline")) {
                list2 = setError(xmlPullParser, background, j2);
            } else if (DetectorDetectorType.setOptions(xmlPullParser, "SegmentURL")) {
                if (arrayList == null) {
                    arrayList = new ArrayList();
                }
                arrayList.add(MediaBrowserCompatCustomActionResultReceiver(xmlPullParser));
            } else {
                setBackground(xmlPullParser);
            }
        } while (!DetectorDetectorType.setLabel(xmlPullParser, "SegmentList"));
        if (setfieldvalue != null) {
            if (isnativec40 == null) {
                isnativec40 = setfieldvalue.setBackground;
            }
            if (list2 == null) {
                list2 = setfieldvalue.read;
            }
            if (arrayList == null) {
                list = setfieldvalue.setElement;
                return setLabel(isnativec40, background, background2, background4, background3, list2, options, list, j5, j);
            }
        }
        list = arrayList;
        return setLabel(isnativec40, background, background2, background4, background3, list2, options, list, j5, j);
    }

    protected illegalCharacter.setFieldValue setLabel(isNativeC40 isnativec40, long j, long j2, long j3, long j4, @Nullable List<illegalCharacter.setLabel> list, long j5, @Nullable List<isNativeC40> list2, long j6, long j7) {
        return new illegalCharacter.setFieldValue(isnativec40, j, j2, j3, j4, list, j5, list2, getLandmarkType.setOptions(j6), getLandmarkType.setOptions(j7));
    }

    protected illegalCharacter.setBackground setLabel(XmlPullParser xmlPullParser, @Nullable illegalCharacter.setBackground setbackground, List<determineConsecutiveDigitCount> list, long j, long j2, long j3, long j4, long j5) throws XmlPullParserException, IOException {
        long background = setBackground(xmlPullParser, "timescale", setbackground != null ? setbackground.setError : 1L);
        long background2 = setBackground(xmlPullParser, "presentationTimeOffset", setbackground != null ? setbackground.setOptions : 0L);
        long background3 = setBackground(xmlPullParser, "duration", setbackground != null ? setbackground.setLabel : -9223372036854775807L);
        long background4 = setBackground(xmlPullParser, "startNumber", setbackground != null ? setbackground.RemoteActionCompatParcelizer : 1L);
        long error = setError(list);
        long options = setOptions(j3, j4);
        List<illegalCharacter.setLabel> list2 = null;
        isNativeText options2 = setOptions(xmlPullParser, "media", setbackground != null ? setbackground.IconCompatParcelizer : null);
        isNativeText options3 = setOptions(xmlPullParser, "initialization", setbackground != null ? setbackground.setElement : null);
        isNativeC40 isnativec40 = null;
        do {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "Initialization")) {
                isnativec40 = AudioAttributesImplApi26Parcelizer(xmlPullParser);
            } else if (DetectorDetectorType.setOptions(xmlPullParser, "SegmentTimeline")) {
                list2 = setError(xmlPullParser, background, j2);
            } else {
                setBackground(xmlPullParser);
            }
        } while (!DetectorDetectorType.setLabel(xmlPullParser, "SegmentTemplate"));
        if (setbackground != null) {
            if (isnativec40 == null) {
                isnativec40 = setbackground.setBackground;
            }
            if (list2 == null) {
                list2 = setbackground.read;
            }
        }
        return setLabel(isnativec40, background, background2, background4, error, background3, list2, options, options3, options2, j5, j);
    }

    protected illegalCharacter.setBackground setLabel(isNativeC40 isnativec40, long j, long j2, long j3, long j4, long j5, List<illegalCharacter.setLabel> list, long j6, @Nullable isNativeText isnativetext, @Nullable isNativeText isnativetext2, long j7, long j8) {
        return new illegalCharacter.setBackground(isnativec40, j, j2, j3, j4, j5, list, j6, isnativetext, isnativetext2, getLandmarkType.setOptions(j7), getLandmarkType.setOptions(j8));
    }

    protected findMinimums write(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
        ByteArrayOutputStream byteArrayOutputStream;
        long j;
        ArrayList arrayList;
        String fieldValue = setFieldValue(xmlPullParser, "schemeIdUri", "");
        String fieldValue2 = setFieldValue(xmlPullParser, "value", "");
        long background = setBackground(xmlPullParser, "timescale", 1L);
        long background2 = setBackground(xmlPullParser, "presentationTimeOffset", 0L);
        ArrayList arrayList2 = new ArrayList();
        ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream(512);
        while (true) {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "Event")) {
                byteArrayOutputStream = byteArrayOutputStream2;
                long j2 = background2;
                j = background2;
                arrayList = arrayList2;
                arrayList.add(setOptions(xmlPullParser, fieldValue, fieldValue2, background, j2, byteArrayOutputStream));
            } else {
                byteArrayOutputStream = byteArrayOutputStream2;
                j = background2;
                arrayList = arrayList2;
                setBackground(xmlPullParser);
            }
            if (DetectorDetectorType.setLabel(xmlPullParser, "EventStream")) {
                break;
            }
            arrayList2 = arrayList;
            byteArrayOutputStream2 = byteArrayOutputStream;
            background2 = j;
        }
        long[] jArr = new long[arrayList.size()];
        FormatInformation[] formatInformationArr = new FormatInformation[arrayList.size()];
        for (int i = 0; i < arrayList.size(); i++) {
            android.util.Pair pair = (android.util.Pair) arrayList.get(i);
            jArr[i] = ((Long) pair.first).longValue();
            formatInformationArr[i] = (FormatInformation) pair.second;
        }
        return setFieldValue(fieldValue, fieldValue2, background, jArr, formatInformationArr);
    }

    protected findMinimums setFieldValue(String str, String str2, long j, long[] jArr, FormatInformation[] formatInformationArr) {
        return new findMinimums(str, str2, j, jArr, formatInformationArr);
    }

    protected android.util.Pair<Long, FormatInformation> setOptions(XmlPullParser xmlPullParser, String str, String str2, long j, long j2, ByteArrayOutputStream byteArrayOutputStream) throws IOException, XmlPullParserException {
        long background = setBackground(xmlPullParser, AlipayPlusClient.IconCompatParcelizer, 0L);
        long background2 = setBackground(xmlPullParser, "duration", -9223372036854775807L);
        long background3 = setBackground(xmlPullParser, "presentationTime", 0L);
        long options = getLandmarkType.setOptions(background2, 1000L, j);
        long options2 = getLandmarkType.setOptions(background3 - j2, setSegmentIndex.setLabel, j);
        String fieldValue = setFieldValue(xmlPullParser, "messageData", (String) null);
        byte[] label = setLabel(xmlPullParser, byteArrayOutputStream);
        if (fieldValue != null) {
            label = getLandmarkType.IconCompatParcelizer(fieldValue);
        }
        return android.util.Pair.create(Long.valueOf(options2), setFieldValue(str, str2, background, options, label));
    }

    protected byte[] setLabel(XmlPullParser xmlPullParser, ByteArrayOutputStream byteArrayOutputStream) throws XmlPullParserException, IOException {
        byteArrayOutputStream.reset();
        XmlSerializer newSerializer = Xml.newSerializer();
        newSerializer.setOutput(byteArrayOutputStream, childSafe.read.name());
        xmlPullParser.nextToken();
        while (!DetectorDetectorType.setLabel(xmlPullParser, "Event")) {
            switch (xmlPullParser.getEventType()) {
                case 0:
                    newSerializer.startDocument(null, Boolean.FALSE);
                    break;
                case 1:
                    newSerializer.endDocument();
                    break;
                case 2:
                    newSerializer.startTag(xmlPullParser.getNamespace(), xmlPullParser.getName());
                    for (int i = 0; i < xmlPullParser.getAttributeCount(); i++) {
                        newSerializer.attribute(xmlPullParser.getAttributeNamespace(i), xmlPullParser.getAttributeName(i), xmlPullParser.getAttributeValue(i));
                    }
                    break;
                case 3:
                    newSerializer.endTag(xmlPullParser.getNamespace(), xmlPullParser.getName());
                    break;
                case 4:
                    newSerializer.text(xmlPullParser.getText());
                    break;
                case 5:
                    newSerializer.cdsect(xmlPullParser.getText());
                    break;
                case 6:
                    newSerializer.entityRef(xmlPullParser.getText());
                    break;
                case 7:
                    newSerializer.ignorableWhitespace(xmlPullParser.getText());
                    break;
                case 8:
                    newSerializer.processingInstruction(xmlPullParser.getText());
                    break;
                case 9:
                    newSerializer.comment(xmlPullParser.getText());
                    break;
                case 10:
                    newSerializer.docdecl(xmlPullParser.getText());
                    break;
            }
            xmlPullParser.nextToken();
        }
        newSerializer.flush();
        return byteArrayOutputStream.toByteArray();
    }

    protected FormatInformation setFieldValue(String str, String str2, long j, long j2, byte[] bArr) {
        return new FormatInformation(str, str2, j2, j, bArr);
    }

    protected List<illegalCharacter.setLabel> setError(XmlPullParser xmlPullParser, long j, long j2) throws XmlPullParserException, IOException {
        ArrayList arrayList = new ArrayList();
        long j3 = 0;
        long j4 = -9223372036854775807L;
        boolean z = false;
        int i = 0;
        do {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "S")) {
                long background = setBackground(xmlPullParser, "t", -9223372036854775807L);
                if (z) {
                    j3 = setBackground(arrayList, j3, j4, i, background);
                }
                if (background == -9223372036854775807L) {
                    background = j3;
                }
                j4 = setBackground(xmlPullParser, PDF417Writer.AudioAttributesImplApi26Parcelizer, -9223372036854775807L);
                i = setLabel(xmlPullParser, "r", 0);
                z = true;
                j3 = background;
            } else {
                setBackground(xmlPullParser);
            }
        } while (!DetectorDetectorType.setLabel(xmlPullParser, "SegmentTimeline"));
        if (z) {
            setBackground(arrayList, j3, j4, i, getLandmarkType.setOptions(j2, j, 1000L));
        }
        return arrayList;
    }

    private long setBackground(List<illegalCharacter.setLabel> list, long j, long j2, int i, long j3) {
        int options = i >= 0 ? i + 1 : (int) getLandmarkType.setOptions(j3 - j, j2);
        for (int i2 = 0; i2 < options; i2++) {
            list.add(setLabel(j, j2));
            j += j2;
        }
        return j;
    }

    protected illegalCharacter.setLabel setLabel(long j, long j2) {
        return new illegalCharacter.setLabel(j, j2);
    }

    protected isNativeText setOptions(XmlPullParser xmlPullParser, String str, @Nullable isNativeText isnativetext) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue != null ? isNativeText.setLabel(attributeValue) : isnativetext;
    }

    protected isNativeC40 AudioAttributesImplApi26Parcelizer(XmlPullParser xmlPullParser) {
        return setLabel(xmlPullParser, "sourceURL", "range");
    }

    protected isNativeC40 MediaBrowserCompatCustomActionResultReceiver(XmlPullParser xmlPullParser) {
        return setLabel(xmlPullParser, "media", "mediaRange");
    }

    protected isNativeC40 setLabel(XmlPullParser xmlPullParser, String str, String str2) {
        long j;
        long j2;
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        String attributeValue2 = xmlPullParser.getAttributeValue(null, str2);
        if (attributeValue2 != null) {
            String[] split = attributeValue2.split("-");
            j = Long.parseLong(split[0]);
            if (split.length == 2) {
                j2 = (Long.parseLong(split[1]) - j) + 1;
                return setOptions(attributeValue, j, j2);
            }
        } else {
            j = 0;
        }
        j2 = -1;
        return setOptions(attributeValue, j, j2);
    }

    protected isNativeC40 setOptions(String str, long j, long j2) {
        return new isNativeC40(str, j, j2);
    }

    protected isExtendedASCII AudioAttributesImplBaseParcelizer(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
        String str = null;
        String fieldValue = setFieldValue(xmlPullParser, "moreInformationURL", (String) null);
        String fieldValue2 = setFieldValue(xmlPullParser, "lang", (String) null);
        String str2 = null;
        String str3 = null;
        while (true) {
            xmlPullParser.next();
            if (DetectorDetectorType.setOptions(xmlPullParser, "Title")) {
                str = xmlPullParser.nextText();
            } else if (DetectorDetectorType.setOptions(xmlPullParser, "Source")) {
                str2 = xmlPullParser.nextText();
            } else if (DetectorDetectorType.setOptions(xmlPullParser, "Copyright")) {
                str3 = xmlPullParser.nextText();
            } else {
                setBackground(xmlPullParser);
            }
            String str4 = str3;
            if (DetectorDetectorType.setLabel(xmlPullParser, "ProgramInformation")) {
                return new isExtendedASCII(str, str2, str4, fieldValue, fieldValue2);
            }
            str3 = str4;
        }
    }

    protected getDisplayValue AudioAttributesImplApi21Parcelizer(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
        return new getDisplayValue(xmlPullParser.getAttributeValue(null, "lang"), setLabel(xmlPullParser, "Label"));
    }

    protected List<encodeECC200> setLabel(XmlPullParser xmlPullParser, List<encodeECC200> list, boolean z) throws XmlPullParserException, IOException {
        int i;
        String attributeValue = xmlPullParser.getAttributeValue(null, "dvb:priority");
        if (attributeValue != null) {
            i = Integer.parseInt(attributeValue);
        } else {
            i = z ? 1 : Integer.MIN_VALUE;
        }
        String attributeValue2 = xmlPullParser.getAttributeValue(null, "dvb:weight");
        int parseInt = attributeValue2 != null ? Integer.parseInt(attributeValue2) : 1;
        String attributeValue3 = xmlPullParser.getAttributeValue(null, "serviceLocation");
        String label = setLabel(xmlPullParser, "BaseURL");
        if (FaceDetectorOptionsClassificationMode.setFieldValue(label)) {
            if (attributeValue3 == null) {
                attributeValue3 = label;
            }
            return getTypeResolver.setFieldValue(new encodeECC200(label, attributeValue3, i, parseInt));
        }
        ArrayList arrayList = new ArrayList();
        for (int i2 = 0; i2 < list.size(); i2++) {
            encodeECC200 encodeecc200 = list.get(i2);
            String error = FaceDetectorOptionsClassificationMode.setError(encodeecc200.setElement, label);
            String str = attributeValue3 == null ? error : attributeValue3;
            if (z) {
                i = encodeecc200.setOptions;
                parseInt = encodeecc200.write;
                str = encodeecc200.setBackground;
            }
            arrayList.add(new encodeECC200(error, str, i, parseInt));
        }
        return arrayList;
    }

    protected long setOptions(XmlPullParser xmlPullParser, long j) {
        String attributeValue = xmlPullParser.getAttributeValue(null, "availabilityTimeOffset");
        if (attributeValue == null) {
            return j;
        }
        if ("INF".equals(attributeValue)) {
            return Long.MAX_VALUE;
        }
        return (long) (Float.parseFloat(attributeValue) * 1000000.0f);
    }

    protected int RemoteActionCompatParcelizer(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
        char c;
        String fieldValue = setFieldValue(xmlPullParser, "schemeIdUri", (String) null);
        fieldValue.hashCode();
        int i = -1;
        switch (fieldValue.hashCode()) {
            case -2128649360:
                if (fieldValue.equals("urn:dts:dash:audio_channel_configuration:2012")) {
                    c = 0;
                    break;
                }
                c = 65535;
                break;
            case -1352850286:
                if (fieldValue.equals("urn:mpeg:dash:23003:3:audio_channel_configuration:2011")) {
                    c = 1;
                    break;
                }
                c = 65535;
                break;
            case -1138141449:
                if (fieldValue.equals("tag:dolby.com,2014:dash:audio_channel_configuration:2011")) {
                    c = 2;
                    break;
                }
                c = 65535;
                break;
            case -986633423:
                if (fieldValue.equals("urn:mpeg:mpegB:cicp:ChannelConfiguration")) {
                    c = 3;
                    break;
                }
                c = 65535;
                break;
            case -79006963:
                if (fieldValue.equals("tag:dts.com,2014:dash:audio_channel_configuration:2012")) {
                    c = 4;
                    break;
                }
                c = 65535;
                break;
            case 312179081:
                if (fieldValue.equals("tag:dts.com,2018:uhd:audio_channel_configuration")) {
                    c = 5;
                    break;
                }
                c = 65535;
                break;
            case 2036691300:
                if (fieldValue.equals("urn:dolby:dash:audio_channel_configuration:2011")) {
                    c = 6;
                    break;
                }
                c = 65535;
                break;
            default:
                c = 65535;
                break;
        }
        switch (c) {
            case 0:
            case 4:
                i = setOptions(xmlPullParser);
                break;
            case 1:
                i = setLabel(xmlPullParser, "value", -1);
                break;
            case 2:
            case 6:
                i = setLabel(xmlPullParser);
                break;
            case 3:
                i = setFieldValue(xmlPullParser);
                break;
            case 5:
                i = setError(xmlPullParser);
                break;
        }
        do {
            xmlPullParser.next();
        } while (!DetectorDetectorType.setLabel(xmlPullParser, "AudioChannelConfiguration"));
        return i;
    }

    protected int write(List<determineConsecutiveDigitCount> list) {
        int i = 0;
        for (int i2 = 0; i2 < list.size(); i2++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i2);
            if (getPropertyNameCandidatesBySpecialGetterName.setError("urn:mpeg:dash:role:2011", determineconsecutivedigitcount.setOptions)) {
                i |= setLabel(determineconsecutivedigitcount.setBackground);
            }
        }
        return i;
    }

    protected int setLabel(@Nullable String str) {
        if (str == null) {
            return 0;
        }
        return (str.equals("forced_subtitle") || str.equals("forced-subtitle")) ? 2 : 0;
    }

    protected int setElement(List<determineConsecutiveDigitCount> list) {
        int i = 0;
        for (int i2 = 0; i2 < list.size(); i2++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i2);
            if (getPropertyNameCandidatesBySpecialGetterName.setError("urn:mpeg:dash:role:2011", determineconsecutivedigitcount.setOptions)) {
                i |= setFieldValue(determineconsecutivedigitcount.setBackground);
            }
        }
        return i;
    }

    protected int setLabel(List<determineConsecutiveDigitCount> list) {
        int options;
        int i = 0;
        for (int i2 = 0; i2 < list.size(); i2++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i2);
            if (getPropertyNameCandidatesBySpecialGetterName.setError("urn:mpeg:dash:role:2011", determineconsecutivedigitcount.setOptions)) {
                options = setFieldValue(determineconsecutivedigitcount.setBackground);
            } else if (getPropertyNameCandidatesBySpecialGetterName.setError("urn:tva:metadata:cs:AudioPurposeCS:2007", determineconsecutivedigitcount.setOptions)) {
                options = setOptions(determineconsecutivedigitcount.setBackground);
            }
            i |= options;
        }
        return i;
    }

    protected int read(List<determineConsecutiveDigitCount> list) {
        int i = 0;
        for (int i2 = 0; i2 < list.size(); i2++) {
            if (getPropertyNameCandidatesBySpecialGetterName.setError("http://dashif.org/guidelines/trickmode", list.get(i2).setOptions)) {
                i = 16384;
            }
        }
        return i;
    }

    protected int setFieldValue(@Nullable String str) {
        char c;
        if (str == null) {
            return 0;
        }
        switch (str.hashCode()) {
            case -2060497896:
                if (str.equals("subtitle")) {
                    c = 0;
                    break;
                }
                c = 65535;
                break;
            case -1724546052:
                if (str.equals("description")) {
                    c = 1;
                    break;
                }
                c = 65535;
                break;
            case -1580883024:
                if (str.equals("enhanced-audio-intelligibility")) {
                    c = 2;
                    break;
                }
                c = 65535;
                break;
            case -1574842690:
                if (str.equals("forced_subtitle")) {
                    c = 3;
                    break;
                }
                c = 65535;
                break;
            case -1408024454:
                if (str.equals("alternate")) {
                    c = 4;
                    break;
                }
                c = 65535;
                break;
            case -1396432756:
                if (str.equals("forced-subtitle")) {
                    c = 5;
                    break;
                }
                c = 65535;
                break;
            case 99825:
                if (str.equals("dub")) {
                    c = 6;
                    break;
                }
                c = 65535;
                break;
            case 3343801:
                if (str.equals("main")) {
                    c = 7;
                    break;
                }
                c = 65535;
                break;
            case 3530173:
                if (str.equals("sign")) {
                    c = '\b';
                    break;
                }
                c = 65535;
                break;
            case 552573414:
                if (str.equals("caption")) {
                    c = '\t';
                    break;
                }
                c = 65535;
                break;
            case 899152809:
                if (str.equals("commentary")) {
                    c = '\n';
                    break;
                }
                c = 65535;
                break;
            case 1629013393:
                if (str.equals("emergency")) {
                    c = 11;
                    break;
                }
                c = 65535;
                break;
            case 1855372047:
                if (str.equals("supplementary")) {
                    c = '\f';
                    break;
                }
                c = 65535;
                break;
            default:
                c = 65535;
                break;
        }
        switch (c) {
        }
        return 0;
    }

    protected int setOptions(@Nullable String str) {
        char c;
        if (str == null) {
            return 0;
        }
        switch (str.hashCode()) {
            case 49:
                if (str.equals(onCrop.RemoteActionCompatParcelizer)) {
                    c = 0;
                    break;
                }
                c = 65535;
                break;
            case mapWhiteBalance.setFieldValue:
                if (str.equals("2")) {
                    c = 1;
                    break;
                }
                c = 65535;
                break;
            case 51:
                if (str.equals("3")) {
                    c = 2;
                    break;
                }
                c = 65535;
                break;
            case 52:
                if (str.equals("4")) {
                    c = 3;
                    break;
                }
                c = 65535;
                break;
            case 53:
            default:
                c = 65535;
                break;
            case 54:
                if (str.equals("6")) {
                    c = 4;
                    break;
                }
                c = 65535;
                break;
        }
        if (c == 0) {
            return 512;
        }
        if (c == 1) {
            return 2048;
        }
        if (c == 2) {
            return 4;
        }
        if (c != 3) {
            return c != 4 ? 0 : 1;
        }
        return 8;
    }

    protected String[] setBackground(XmlPullParser xmlPullParser, String str, String[] strArr) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? strArr : attributeValue.split(",");
    }

    protected android.util.Pair<Integer, Integer> RemoteActionCompatParcelizer(List<determineConsecutiveDigitCount> list) {
        String str;
        for (int i = 0; i < list.size(); i++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i);
            if ((getPropertyNameCandidatesBySpecialGetterName.setError("http://dashif.org/thumbnail_tile", determineconsecutivedigitcount.setOptions) || getPropertyNameCandidatesBySpecialGetterName.setError("http://dashif.org/guidelines/thumbnail_tile", determineconsecutivedigitcount.setOptions)) && (str = determineconsecutivedigitcount.setBackground) != null) {
                String[] fieldValue = getLandmarkType.setFieldValue(str, "x");
                if (fieldValue.length != 2) {
                    continue;
                } else {
                    try {
                        return android.util.Pair.create(Integer.valueOf(Integer.parseInt(fieldValue[0])), Integer.valueOf(Integer.parseInt(fieldValue[1])));
                    } catch (NumberFormatException unused) {
                        continue;
                    }
                }
            }
        }
        return null;
    }

    public static void setBackground(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
        if (DetectorDetectorType.setLabel(xmlPullParser)) {
            int i = 1;
            while (i != 0) {
                xmlPullParser.next();
                if (DetectorDetectorType.setLabel(xmlPullParser)) {
                    i++;
                } else if (DetectorDetectorType.setFieldValue(xmlPullParser)) {
                    i--;
                }
            }
        }
    }

    private static void setLabel(ArrayList<setMaxSupportedZoomRatio.setFieldValue> arrayList) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            setMaxSupportedZoomRatio.setFieldValue setfieldvalue = arrayList.get(size);
            if (!setfieldvalue.setError()) {
                int i = 0;
                while (true) {
                    if (i >= arrayList.size()) {
                        break;
                    }
                    if (arrayList.get(i).setOptions(setfieldvalue)) {
                        arrayList.remove(size);
                        break;
                    }
                    i++;
                }
            }
        }
    }

    private static void setBackground(ArrayList<setMaxSupportedZoomRatio.setFieldValue> arrayList) {
        String str;
        int i = 0;
        while (true) {
            if (i >= arrayList.size()) {
                str = null;
                break;
            }
            setMaxSupportedZoomRatio.setFieldValue setfieldvalue = arrayList.get(i);
            if (openConnection.MediaSessionCompatResultReceiverWrapper.equals(setfieldvalue.setError) && (str = setfieldvalue.setOptions) != null) {
                arrayList.remove(i);
                break;
            }
            i++;
        }
        if (str == null) {
            return;
        }
        for (int i2 = 0; i2 < arrayList.size(); i2++) {
            setMaxSupportedZoomRatio.setFieldValue setfieldvalue2 = arrayList.get(i2);
            if (openConnection.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.equals(setfieldvalue2.setError) && setfieldvalue2.setOptions == null) {
                arrayList.set(i2, new setMaxSupportedZoomRatio.setFieldValue(openConnection.MediaSessionCompatResultReceiverWrapper, str, setfieldvalue2.setLabel, setfieldvalue2.setBackground));
            }
        }
    }

    private static String setFieldValue(@Nullable String str, @Nullable String str2) {
        if (getRawValue.write(str)) {
            return getRawValue.setBackground(str2);
        }
        if (getRawValue.AudioAttributesCompatParcelizer(str)) {
            return getRawValue.IconCompatParcelizer(str2);
        }
        if (getRawValue.AudioAttributesImplBaseParcelizer(str) || getRawValue.setElement(str)) {
            return str;
        }
        if (!"application/mp4".equals(str)) {
            return null;
        }
        String error = getRawValue.setError(str2);
        return "text/vtt".equals(error) ? "application/x-mp4-vtt" : error;
    }

    private static String setOptions(@Nullable String str, @Nullable String str2) {
        if (str == null) {
            return str2;
        }
        if (str2 == null) {
            return str;
        }
        nv21ToBitmap.setFieldValue(str.equals(str2));
        return str;
    }

    private static int setError(int i, int i2) {
        if (i == -1) {
            return i2;
        }
        if (i2 == -1) {
            return i;
        }
        nv21ToBitmap.setFieldValue(i == i2);
        return i;
    }

    protected static determineConsecutiveDigitCount setFieldValue(XmlPullParser xmlPullParser, String str) throws XmlPullParserException, IOException {
        String fieldValue = setFieldValue(xmlPullParser, "schemeIdUri", "");
        String fieldValue2 = setFieldValue(xmlPullParser, "value", (String) null);
        String fieldValue3 = setFieldValue(xmlPullParser, AlipayPlusClient.IconCompatParcelizer, (String) null);
        do {
            xmlPullParser.next();
        } while (!DetectorDetectorType.setLabel(xmlPullParser, str));
        return new determineConsecutiveDigitCount(fieldValue, fieldValue2, fieldValue3);
    }

    protected static int setFieldValue(List<determineConsecutiveDigitCount> list) {
        String str;
        for (int i = 0; i < list.size(); i++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i);
            if ("urn:scte:dash:cc:cea-608:2015".equals(determineconsecutivedigitcount.setOptions) && (str = determineconsecutivedigitcount.setBackground) != null) {
                Matcher matcher = setOptions.matcher(str);
                if (matcher.matches()) {
                    return Integer.parseInt(matcher.group(1));
                }
                getAllLandmarks.setError(setBackground, "Unable to parse CEA-608 channel number from: " + determineconsecutivedigitcount.setBackground);
            }
        }
        return -1;
    }

    protected static int setOptions(List<determineConsecutiveDigitCount> list) {
        String str;
        for (int i = 0; i < list.size(); i++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i);
            if ("urn:scte:dash:cc:cea-708:2015".equals(determineconsecutivedigitcount.setOptions) && (str = determineconsecutivedigitcount.setBackground) != null) {
                Matcher matcher = setFieldValue.matcher(str);
                if (matcher.matches()) {
                    return Integer.parseInt(matcher.group(1));
                }
                getAllLandmarks.setError(setBackground, "Unable to parse CEA-708 service block number from: " + determineconsecutivedigitcount.setBackground);
            }
        }
        return -1;
    }

    protected static String setBackground(List<determineConsecutiveDigitCount> list) {
        for (int i = 0; i < list.size(); i++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i);
            String str = determineconsecutivedigitcount.setOptions;
            if (!"tag:dolby.com,2018:dash:EC3_ExtensionType:2018".equals(str) || !"JOC".equals(determineconsecutivedigitcount.setBackground)) {
                if ("tag:dolby.com,2014:dash:DolbyDigitalPlusExtensionType:2014".equals(str) && "ec+3".equals(determineconsecutivedigitcount.setBackground)) {
                    return "audio/eac3-joc";
                }
            } else {
                return "audio/eac3-joc";
            }
        }
        return "audio/eac3";
    }

    protected static float setLabel(XmlPullParser xmlPullParser, float f) {
        String attributeValue = xmlPullParser.getAttributeValue(null, "frameRate");
        if (attributeValue == null) {
            return f;
        }
        Matcher matcher = setLabel.matcher(attributeValue);
        if (!matcher.matches()) {
            return f;
        }
        int parseInt = Integer.parseInt(matcher.group(1));
        return !TextUtils.isEmpty(matcher.group(2)) ? parseInt / Integer.parseInt(r2) : parseInt;
    }

    protected static long setLabel(XmlPullParser xmlPullParser, String str, long j) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? j : getLandmarkType.AudioAttributesCompatParcelizer(attributeValue);
    }

    protected static long setError(XmlPullParser xmlPullParser, String str, long j) throws ParserException {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? j : getLandmarkType.AudioAttributesImplApi26Parcelizer(attributeValue);
    }

    protected static String setLabel(XmlPullParser xmlPullParser, String str) throws XmlPullParserException, IOException {
        String str2 = "";
        do {
            xmlPullParser.next();
            if (xmlPullParser.getEventType() == 4) {
                str2 = xmlPullParser.getText();
            } else {
                setBackground(xmlPullParser);
            }
        } while (!DetectorDetectorType.setLabel(xmlPullParser, str));
        return str2;
    }

    protected static int setLabel(XmlPullParser xmlPullParser, String str, int i) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? i : Integer.parseInt(attributeValue);
    }

    protected static long setBackground(XmlPullParser xmlPullParser, String str, long j) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? j : Long.parseLong(attributeValue);
    }

    protected static float setFieldValue(XmlPullParser xmlPullParser, String str, float f) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? f : Float.parseFloat(attributeValue);
    }

    protected static String setFieldValue(XmlPullParser xmlPullParser, String str, String str2) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? str2 : attributeValue;
    }

    protected static int setFieldValue(XmlPullParser xmlPullParser) {
        int label = setLabel(xmlPullParser, "value", -1);
        if (label < 0) {
            return -1;
        }
        int[] iArr = setError;
        if (label < iArr.length) {
            return iArr[label];
        }
        return -1;
    }

    protected static int setOptions(XmlPullParser xmlPullParser) {
        int label = setLabel(xmlPullParser, "value", -1);
        if (label <= 0 || label >= 33) {
            return -1;
        }
        return label;
    }

    protected static int setError(XmlPullParser xmlPullParser) {
        int bitCount;
        String attributeValue = xmlPullParser.getAttributeValue(null, "value");
        if (attributeValue == null || (bitCount = Integer.bitCount(Integer.parseInt(attributeValue, 16))) == 0) {
            return -1;
        }
        return bitCount;
    }

    protected static int setLabel(XmlPullParser xmlPullParser) {
        char c;
        String attributeValue = xmlPullParser.getAttributeValue(null, "value");
        if (attributeValue == null) {
            return -1;
        }
        String label = getPropertyNameCandidatesBySpecialGetterName.setLabel(attributeValue);
        label.hashCode();
        switch (label.hashCode()) {
            case 1596796:
                if (label.equals("4000")) {
                    c = 0;
                    break;
                }
                c = 65535;
                break;
            case 2937391:
                if (label.equals("a000")) {
                    c = 1;
                    break;
                }
                c = 65535;
                break;
            case 3094034:
                if (label.equals("f800")) {
                    c = 2;
                    break;
                }
                c = 65535;
                break;
            case 3094035:
                if (label.equals("f801")) {
                    c = 3;
                    break;
                }
                c = 65535;
                break;
            case 3133436:
                if (label.equals("fa01")) {
                    c = 4;
                    break;
                }
                c = 65535;
                break;
            default:
                c = 65535;
                break;
        }
        if (c == 0) {
            return 1;
        }
        if (c == 1) {
            return 2;
        }
        if (c == 2) {
            return 5;
        }
        if (c != 3) {
            return c != 4 ? -1 : 8;
        }
        return 6;
    }

    protected static long setError(List<determineConsecutiveDigitCount> list) {
        for (int i = 0; i < list.size(); i++) {
            determineConsecutiveDigitCount determineconsecutivedigitcount = list.get(i);
            if (getPropertyNameCandidatesBySpecialGetterName.setError("http://dashif.org/guidelines/last-segment-number", determineconsecutivedigitcount.setOptions)) {
                return Long.parseLong(determineconsecutivedigitcount.setBackground);
            }
        }
        return -1L;
    }

    private boolean setOptions(String[] strArr) {
        for (String str : strArr) {
            if (str.startsWith("urn:dvb:dash:profile:dvb-dash:")) {
                return true;
            }
        }
        return false;
    }

    protected static final class setLabel {
        public final List<determineConsecutiveDigitCount> IconCompatParcelizer;
        public final ArrayList<determineConsecutiveDigitCount> RemoteActionCompatParcelizer;
        public final illegalCharacter read;
        public final setZoom setBackground;
        public final String setError;
        public final ArrayList<setMaxSupportedZoomRatio.setFieldValue> setFieldValue;
        public final getJavaModuleResolver<encodeECC200> setLabel;
        public final List<determineConsecutiveDigitCount> setOptions;
        public final long write;

        public setLabel(setZoom setzoom, List<encodeECC200> list, illegalCharacter illegalcharacter, @Nullable String str, ArrayList<setMaxSupportedZoomRatio.setFieldValue> arrayList, ArrayList<determineConsecutiveDigitCount> arrayList2, List<determineConsecutiveDigitCount> list2, List<determineConsecutiveDigitCount> list3, long j) {
            this.setBackground = setzoom;
            this.setLabel = getJavaModuleResolver.setFieldValue(list);
            this.read = illegalcharacter;
            this.setError = str;
            this.setFieldValue = arrayList;
            this.RemoteActionCompatParcelizer = arrayList2;
            this.setOptions = list2;
            this.IconCompatParcelizer = list3;
            this.write = j;
        }
    }
}