正在查看: Aplazo v2.4.68 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package E2;
import A4.v;
import C9.C0127q;
import android.net.Uri;
import android.text.TextUtils;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import oa.I3;
import org.xml.sax.helpers.DefaultHandler;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import t2.y;
import w2.AbstractC3329b;
public final class e extends DefaultHandler implements U2.o {
public static final Pattern f3766d = Pattern.compile("(\\d+)(?:/(\\d+))?");
public static final Pattern f3767e = Pattern.compile("CC([1-4])=.*");
public static final Pattern f3768f = Pattern.compile("([1-9]|[1-5][0-9]|6[0-3])=.*");
public static final int[] f3769g = {-1, 1, 2, 3, 4, 5, 6, 8, 2, 3, 4, 7, 8, 24, 8, 12, 10, 12, 14, 12, 14};
public final XmlPullParserFactory f3770c;
public e() {
try {
this.f3770c = XmlPullParserFactory.newInstance();
} catch (XmlPullParserException e10) {
throw new RuntimeException("Couldn't create XmlPullParserFactory instance", e10);
}
}
public static long a(ArrayList arrayList, long j10, long j11, int i10, long j12) {
int i11;
if (i10 >= 0) {
i11 = i10 + 1;
} else {
int i12 = w2.r.f33460a;
i11 = (int) ((((j12 - j10) + j11) - 1) / j11);
}
for (int i13 = 0; i13 < i11; i13++) {
arrayList.add(new q(j10, j11));
j10 += j11;
}
return j10;
}
public static void b(XmlPullParser xmlPullParser) {
if (AbstractC3329b.t(xmlPullParser)) {
int i10 = 1;
while (i10 != 0) {
xmlPullParser.next();
if (AbstractC3329b.t(xmlPullParser)) {
i10++;
} else if (xmlPullParser.getEventType() == 3) {
i10--;
}
}
}
}
public static int c(org.xmlpull.v1.XmlPullParser r12) {
throw new UnsupportedOperationException("Method not decompiled: E2.e.c(org.xmlpull.v1.XmlPullParser):int");
}
public static long d(XmlPullParser xmlPullParser, long j10) {
String attributeValue = xmlPullParser.getAttributeValue(null, "availabilityTimeOffset");
if (attributeValue == null) {
return j10;
}
if ("INF".equals(attributeValue)) {
return Long.MAX_VALUE;
}
return (long) (Float.parseFloat(attributeValue) * 1000000.0f);
}
public static ArrayList e(XmlPullParser xmlPullParser, List list, boolean z6) {
String attributeValue = xmlPullParser.getAttributeValue(null, "dvb:priority");
int parseInt = attributeValue != null ? Integer.parseInt(attributeValue) : z6 ? 1 : Integer.MIN_VALUE;
String attributeValue2 = xmlPullParser.getAttributeValue(null, "dvb:weight");
int parseInt2 = attributeValue2 != null ? Integer.parseInt(attributeValue2) : 1;
String attributeValue3 = xmlPullParser.getAttributeValue(null, "serviceLocation");
String str = "";
do {
xmlPullParser.next();
if (xmlPullParser.getEventType() == 4) {
str = xmlPullParser.getText();
} else {
b(xmlPullParser);
}
} while (!AbstractC3329b.s(xmlPullParser, "BaseURL"));
if (str != null && AbstractC3329b.q(str)[0] != -1) {
if (attributeValue3 == null) {
attributeValue3 = str;
}
return rb.r.q(new b(str, attributeValue3, parseInt, parseInt2));
}
ArrayList arrayList = new ArrayList();
for (int i10 = 0; i10 < list.size(); i10++) {
b bVar = (b) list.get(i10);
String x6 = AbstractC3329b.x(bVar.f3741a, str);
String str2 = attributeValue3 == null ? x6 : attributeValue3;
if (z6) {
parseInt = bVar.f3743c;
parseInt2 = bVar.f3744d;
str2 = bVar.f3742b;
}
arrayList.add(new b(x6, str2, parseInt, parseInt2));
}
return arrayList;
}
public static android.util.Pair f(org.xmlpull.v1.XmlPullParser r14) {
throw new UnsupportedOperationException("Method not decompiled: E2.e.f(org.xmlpull.v1.XmlPullParser):android.util.Pair");
}
public static int g(XmlPullParser xmlPullParser) {
String attributeValue = xmlPullParser.getAttributeValue(null, "contentType");
if (TextUtils.isEmpty(attributeValue)) {
return -1;
}
if ("audio".equals(attributeValue)) {
return 1;
}
if ("video".equals(attributeValue)) {
return 2;
}
if ("text".equals(attributeValue)) {
return 3;
}
return "image".equals(attributeValue) ? 4 : -1;
}
public static f h(XmlPullParser xmlPullParser, String str) {
String attributeValue = xmlPullParser.getAttributeValue(null, "schemeIdUri");
if (attributeValue == null) {
attributeValue = "";
}
String attributeValue2 = xmlPullParser.getAttributeValue(null, "value");
if (attributeValue2 == null) {
attributeValue2 = null;
}
String attributeValue3 = xmlPullParser.getAttributeValue(null, "id");
String str2 = attributeValue3 != null ? attributeValue3 : null;
do {
xmlPullParser.next();
} while (!AbstractC3329b.s(xmlPullParser, str));
return new f(attributeValue, attributeValue2, str2);
}
public static long i(XmlPullParser xmlPullParser, String str, long j10) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
if (attributeValue == null) {
return j10;
}
Matcher matcher = w2.r.f33468i.matcher(attributeValue);
if (!matcher.matches()) {
return (long) (Double.parseDouble(attributeValue) * 3600.0d * 1000.0d);
}
boolean isEmpty = TextUtils.isEmpty(matcher.group(1));
String group = matcher.group(3);
double parseDouble = group != null ? Double.parseDouble(group) * 3.1556908E7d : 0.0d;
String group2 = matcher.group(5);
double parseDouble2 = parseDouble + (group2 != null ? Double.parseDouble(group2) * 2629739.0d : 0.0d);
String group3 = matcher.group(7);
double parseDouble3 = parseDouble2 + (group3 != null ? Double.parseDouble(group3) * 86400.0d : 0.0d);
String group4 = matcher.group(10);
double parseDouble4 = parseDouble3 + (group4 != null ? Double.parseDouble(group4) * 3600.0d : 0.0d);
String group5 = matcher.group(12);
double parseDouble5 = parseDouble4 + (group5 != null ? Double.parseDouble(group5) * 60.0d : 0.0d);
String group6 = matcher.group(14);
long parseDouble6 = (long) ((parseDouble5 + (group6 != null ? Double.parseDouble(group6) : 0.0d)) * 1000.0d);
return !isEmpty ? -parseDouble6 : parseDouble6;
}
public static float j(XmlPullParser xmlPullParser, float f3) {
String attributeValue = xmlPullParser.getAttributeValue(null, "frameRate");
if (attributeValue == null) {
return f3;
}
Matcher matcher = f3766d.matcher(attributeValue);
if (!matcher.matches()) {
return f3;
}
int parseInt = Integer.parseInt(matcher.group(1));
return !TextUtils.isEmpty(matcher.group(2)) ? parseInt / Integer.parseInt(r2) : parseInt;
}
public static int l(XmlPullParser xmlPullParser, String str, int i10) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
return attributeValue == null ? i10 : Integer.parseInt(attributeValue);
}
public static long m(XmlPullParser xmlPullParser, String str, long j10) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
return attributeValue == null ? j10 : Long.parseLong(attributeValue);
}
public static E2.c n(org.xmlpull.v1.XmlPullParser r155, android.net.Uri r156) {
throw new UnsupportedOperationException("Method not decompiled: E2.e.n(org.xmlpull.v1.XmlPullParser, android.net.Uri):E2.c");
}
public static j o(XmlPullParser xmlPullParser, String str, String str2) {
long j10;
long j11;
String attributeValue = xmlPullParser.getAttributeValue(null, str);
String attributeValue2 = xmlPullParser.getAttributeValue(null, str2);
if (attributeValue2 != null) {
String[] split = attributeValue2.split("-");
j10 = Long.parseLong(split[0]);
if (split.length == 2) {
j11 = (Long.parseLong(split[1]) - j10) + 1;
return new j(attributeValue, j10, j11);
}
} else {
j10 = 0;
}
j11 = -1;
return new j(attributeValue, j10, j11);
}
public static int p(String str) {
if (str == null) {
return 0;
}
switch (str) {
}
return 0;
}
public static int q(ArrayList arrayList) {
int i10 = 0;
for (int i11 = 0; i11 < arrayList.size(); i11++) {
if (I3.a("http://dashif.org/guidelines/trickmode", ((f) arrayList.get(i11)).f3771a)) {
i10 = 16384;
}
}
return i10;
}
public static r r(XmlPullParser xmlPullParser, r rVar) {
long j10;
long j11;
long m6 = m(xmlPullParser, "timescale", rVar != null ? rVar.f3812a : 1L);
long m10 = m(xmlPullParser, "presentationTimeOffset", rVar != null ? rVar.f3813b : 0L);
long j12 = rVar != null ? rVar.f3810d : 0L;
long j13 = rVar != null ? rVar.f3811e : 0L;
String attributeValue = xmlPullParser.getAttributeValue(null, "indexRange");
if (attributeValue != null) {
String[] split = attributeValue.split("-");
long parseLong = Long.parseLong(split[0]);
j10 = (Long.parseLong(split[1]) - parseLong) + 1;
j11 = parseLong;
} else {
j10 = j13;
j11 = j12;
}
j jVar = rVar != null ? (j) rVar.f3814c : null;
do {
xmlPullParser.next();
if (AbstractC3329b.u(xmlPullParser, "Initialization")) {
jVar = o(xmlPullParser, "sourceURL", "range");
} else {
b(xmlPullParser);
}
} while (!AbstractC3329b.s(xmlPullParser, "SegmentBase"));
return new r(jVar, m6, m10, j11, j10);
}
public static o s(XmlPullParser xmlPullParser, o oVar, long j10, long j11, long j12, long j13, long j14) {
long m6 = m(xmlPullParser, "timescale", oVar != null ? oVar.f3812a : 1L);
long m10 = m(xmlPullParser, "presentationTimeOffset", oVar != null ? oVar.f3813b : 0L);
long m11 = m(xmlPullParser, "duration", oVar != null ? oVar.f3800e : -9223372036854775807L);
long m12 = m(xmlPullParser, "startNumber", oVar != null ? oVar.f3799d : 1L);
long j15 = j13 == -9223372036854775807L ? j12 : j13;
long j16 = j15 == Long.MAX_VALUE ? -9223372036854775807L : j15;
List list = null;
j jVar = null;
List list2 = null;
do {
xmlPullParser.next();
if (AbstractC3329b.u(xmlPullParser, "Initialization")) {
jVar = o(xmlPullParser, "sourceURL", "range");
} else if (AbstractC3329b.u(xmlPullParser, "SegmentTimeline")) {
list2 = u(xmlPullParser, m6, j11);
} else if (AbstractC3329b.u(xmlPullParser, "SegmentURL")) {
if (list == null) {
list = new ArrayList();
}
list.add(o(xmlPullParser, "media", "mediaRange"));
} else {
b(xmlPullParser);
}
} while (!AbstractC3329b.s(xmlPullParser, "SegmentList"));
if (oVar != null) {
if (jVar == null) {
jVar = (j) oVar.f3814c;
}
if (list2 == null) {
list2 = oVar.f3801f;
}
if (list == null) {
list = oVar.f3805j;
}
}
return new o(jVar, m6, m10, m12, m11, list2, j16, list, w2.r.O(j14), w2.r.O(j10));
}
public static p t(XmlPullParser xmlPullParser, p pVar, List list, long j10, long j11, long j12, long j13, long j14) {
long j15;
long m6 = m(xmlPullParser, "timescale", pVar != null ? pVar.f3812a : 1L);
long m10 = m(xmlPullParser, "presentationTimeOffset", pVar != null ? pVar.f3813b : 0L);
long m11 = m(xmlPullParser, "duration", pVar != null ? pVar.f3800e : -9223372036854775807L);
long m12 = m(xmlPullParser, "startNumber", pVar != null ? pVar.f3799d : 1L);
int i10 = 0;
while (true) {
if (i10 >= list.size()) {
j15 = -1;
break;
}
f fVar = (f) list.get(i10);
if (I3.a("http://dashif.org/guidelines/last-segment-number", fVar.f3771a)) {
j15 = Long.parseLong(fVar.f3772b);
break;
}
i10++;
}
long j16 = j15;
long j17 = j13 == -9223372036854775807L ? j12 : j13;
long j18 = j17 == Long.MAX_VALUE ? -9223372036854775807L : j17;
j jVar = null;
v v8 = v(xmlPullParser, "media", pVar != null ? pVar.k : null);
v v10 = v(xmlPullParser, "initialization", pVar != null ? pVar.f3806j : null);
List list2 = null;
do {
xmlPullParser.next();
if (AbstractC3329b.u(xmlPullParser, "Initialization")) {
jVar = o(xmlPullParser, "sourceURL", "range");
} else if (AbstractC3329b.u(xmlPullParser, "SegmentTimeline")) {
list2 = u(xmlPullParser, m6, j11);
} else {
b(xmlPullParser);
}
} while (!AbstractC3329b.s(xmlPullParser, "SegmentTemplate"));
if (pVar != null) {
if (jVar == null) {
jVar = (j) pVar.f3814c;
}
if (list2 == null) {
list2 = pVar.f3801f;
}
}
return new p(jVar, m6, m10, m12, j16, m11, list2, j18, v10, v8, w2.r.O(j14), w2.r.O(j10));
}
public static ArrayList u(XmlPullParser xmlPullParser, long j10, long j11) {
ArrayList arrayList = new ArrayList();
long j12 = 0;
long j13 = -9223372036854775807L;
boolean z6 = false;
int i10 = 0;
do {
xmlPullParser.next();
if (AbstractC3329b.u(xmlPullParser, "S")) {
long m6 = m(xmlPullParser, "t", -9223372036854775807L);
if (z6) {
j12 = a(arrayList, j12, j13, i10, m6);
}
if (m6 == -9223372036854775807L) {
m6 = j12;
}
long m10 = m(xmlPullParser, "d", -9223372036854775807L);
i10 = l(xmlPullParser, "r", 0);
z6 = true;
j13 = m10;
j12 = m6;
} else {
b(xmlPullParser);
}
} while (!AbstractC3329b.s(xmlPullParser, "SegmentTimeline"));
if (z6) {
int i11 = w2.r.f33460a;
a(arrayList, j12, j13, i10, w2.r.W(j11, j10, 1000L, RoundingMode.FLOOR));
}
return arrayList;
}
public static v v(XmlPullParser xmlPullParser, String str, v vVar) {
String str2;
boolean z6;
String attributeValue = xmlPullParser.getAttributeValue(null, str);
if (attributeValue == null) {
return vVar;
}
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
ArrayList arrayList3 = new ArrayList();
arrayList.add("");
int i10 = 0;
while (i10 < attributeValue.length()) {
int indexOf = attributeValue.indexOf("$", i10);
if (indexOf == -1) {
arrayList.set(arrayList2.size(), ((String) arrayList.get(arrayList2.size())) + attributeValue.substring(i10));
i10 = attributeValue.length();
} else if (indexOf != i10) {
arrayList.set(arrayList2.size(), ((String) arrayList.get(arrayList2.size())) + attributeValue.substring(i10, indexOf));
i10 = indexOf;
} else if (attributeValue.startsWith("$$", i10)) {
arrayList.set(arrayList2.size(), ((String) arrayList.get(arrayList2.size())) + "$");
i10 += 2;
} else {
arrayList3.add("");
int i11 = i10 + 1;
int indexOf2 = attributeValue.indexOf("$", i11);
String substring = attributeValue.substring(i11, indexOf2);
if (substring.equals("RepresentationID")) {
arrayList2.add(1);
} else {
int indexOf3 = substring.indexOf("%0");
if (indexOf3 != -1) {
str2 = substring.substring(indexOf3);
if (!str2.endsWith("d") && !str2.endsWith("x") && !str2.endsWith("X")) {
str2 = str2.concat("d");
}
substring = substring.substring(0, indexOf3);
} else {
str2 = "%01d";
}
substring.getClass();
switch (substring.hashCode()) {
case -1950496919:
if (substring.equals("Number")) {
z6 = false;
break;
}
break;
case 2606829:
if (substring.equals("Time")) {
z6 = true;
break;
}
break;
case 38199441:
if (substring.equals("Bandwidth")) {
z6 = 2;
break;
}
break;
}
z6 = -1;
switch (z6) {
case false:
arrayList2.add(2);
break;
case true:
arrayList2.add(4);
break;
case true:
arrayList2.add(3);
break;
default:
throw new IllegalArgumentException("Invalid template: ".concat(attributeValue));
}
arrayList3.set(arrayList2.size() - 1, str2);
}
arrayList.add("");
i10 = indexOf2 + 1;
}
}
return new v(11, arrayList3, arrayList, arrayList2);
}
@Override
public final Object k(Uri uri, C0127q c0127q) {
try {
XmlPullParser newPullParser = this.f3770c.newPullParser();
newPullParser.setInput(c0127q, null);
if (newPullParser.next() == 2 && "MPD".equals(newPullParser.getName())) {
return n(newPullParser, uri);
}
throw y.b("inputStream does not contain a valid media presentation description", null);
} catch (XmlPullParserException e10) {
throw y.b(null, e10);
}
}
}