正在查看: Aplazo v2.4.68 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package j9;
import A2.AbstractC0007g;
import C8.C0099n0;
import C9.C0127q;
import C9.X;
import D9.AbstractC0178a;
import D9.H;
import android.net.Uri;
import android.text.TextUtils;
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;
public final class e extends DefaultHandler implements X {
public static final Pattern f26360d = Pattern.compile("(\\d+)(?:/(\\d+))?");
public static final Pattern f26361e = Pattern.compile("CC([1-4])=.*");
public static final Pattern f26362f = Pattern.compile("([1-9]|[1-5][0-9]|6[0-3])=.*");
public static final int[] f26363g = {-1, 1, 2, 3, 4, 5, 6, 8, 2, 3, 4, 7, 8, 24, 8, 12, 10, 12, 14, 12, 14};
public final XmlPullParserFactory f26364c;
public e() {
try {
this.f26364c = 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 = H.f3440a;
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 (AbstractC0178a.E(xmlPullParser)) {
int i10 = 1;
while (i10 != 0) {
xmlPullParser.next();
if (AbstractC0178a.E(xmlPullParser)) {
i10++;
} else if (xmlPullParser.getEventType() == 3) {
i10--;
}
}
}
}
public static int c(org.xmlpull.v1.XmlPullParser r10) {
throw new UnsupportedOperationException("Method not decompiled: j9.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 (!AbstractC0178a.D(xmlPullParser, "BaseURL"));
if (str != null && AbstractC0178a.z(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 M10 = AbstractC0178a.M(bVar.f26335a, str);
String str2 = attributeValue3 == null ? M10 : attributeValue3;
if (z6) {
parseInt = bVar.f26337c;
parseInt2 = bVar.f26338d;
str2 = bVar.f26336b;
}
arrayList.add(new b(M10, str2, parseInt, parseInt2));
}
return arrayList;
}
public static android.util.Pair f(org.xmlpull.v1.XmlPullParser r13) {
throw new UnsupportedOperationException("Method not decompiled: j9.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 (!AbstractC0178a.D(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 = H.f3447h.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 = f26360d.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 k(XmlPullParser xmlPullParser, String str, int i10) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
return attributeValue == null ? i10 : Integer.parseInt(attributeValue);
}
public static long l(XmlPullParser xmlPullParser, String str, long j10) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
return attributeValue == null ? j10 : Long.parseLong(attributeValue);
}
public static j9.c n(org.xmlpull.v1.XmlPullParser r158, android.net.Uri r159) {
throw new UnsupportedOperationException("Method not decompiled: j9.e.n(org.xmlpull.v1.XmlPullParser, android.net.Uri):j9.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)).f26365a)) {
i10 = 16384;
}
}
return i10;
}
public static r r(XmlPullParser xmlPullParser, r rVar) {
long j10;
long j11;
long l4 = l(xmlPullParser, "timescale", rVar != null ? rVar.f3812a : 1L);
long l10 = l(xmlPullParser, "presentationTimeOffset", rVar != null ? rVar.f3813b : 0L);
long j12 = rVar != null ? rVar.f26404d : 0L;
long j13 = rVar != null ? rVar.f26405e : 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 (AbstractC0178a.F(xmlPullParser, "Initialization")) {
jVar = o(xmlPullParser, "sourceURL", "range");
} else {
b(xmlPullParser);
}
} while (!AbstractC0178a.D(xmlPullParser, "SegmentBase"));
return new r(jVar, l4, l10, j11, j10);
}
public static o s(XmlPullParser xmlPullParser, o oVar, long j10, long j11, long j12, long j13, long j14) {
long l4 = l(xmlPullParser, "timescale", oVar != null ? oVar.f3812a : 1L);
long l10 = l(xmlPullParser, "presentationTimeOffset", oVar != null ? oVar.f3813b : 0L);
long l11 = l(xmlPullParser, "duration", oVar != null ? oVar.f26394e : -9223372036854775807L);
long l12 = l(xmlPullParser, "startNumber", oVar != null ? oVar.f26393d : 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 (AbstractC0178a.F(xmlPullParser, "Initialization")) {
jVar = o(xmlPullParser, "sourceURL", "range");
} else if (AbstractC0178a.F(xmlPullParser, "SegmentTimeline")) {
list2 = u(xmlPullParser, l4, j11);
} else if (AbstractC0178a.F(xmlPullParser, "SegmentURL")) {
if (list == null) {
list = new ArrayList();
}
list.add(o(xmlPullParser, "media", "mediaRange"));
} else {
b(xmlPullParser);
}
} while (!AbstractC0178a.D(xmlPullParser, "SegmentList"));
if (oVar != null) {
if (jVar == null) {
jVar = (j) oVar.f3814c;
}
if (list2 == null) {
list2 = oVar.f26395f;
}
if (list == null) {
list = oVar.f26399j;
}
}
return new o(jVar, l4, l10, l12, l11, list2, j16, list, H.O(j14), H.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 l4 = l(xmlPullParser, "timescale", pVar != null ? pVar.f3812a : 1L);
long l10 = l(xmlPullParser, "presentationTimeOffset", pVar != null ? pVar.f3813b : 0L);
long l11 = l(xmlPullParser, "duration", pVar != null ? pVar.f26394e : -9223372036854775807L);
long l12 = l(xmlPullParser, "startNumber", pVar != null ? pVar.f26393d : 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.f26365a)) {
j15 = Long.parseLong(fVar.f26366b);
break;
}
i10++;
}
long j16 = j15;
long j17 = j13 == -9223372036854775807L ? j12 : j13;
long j18 = j17 == Long.MAX_VALUE ? -9223372036854775807L : j17;
j jVar = null;
N9.l v8 = v(xmlPullParser, "media", pVar != null ? pVar.k : null);
N9.l v10 = v(xmlPullParser, "initialization", pVar != null ? pVar.f26400j : null);
List list2 = null;
do {
xmlPullParser.next();
if (AbstractC0178a.F(xmlPullParser, "Initialization")) {
jVar = o(xmlPullParser, "sourceURL", "range");
} else if (AbstractC0178a.F(xmlPullParser, "SegmentTimeline")) {
list2 = u(xmlPullParser, l4, j11);
} else {
b(xmlPullParser);
}
} while (!AbstractC0178a.D(xmlPullParser, "SegmentTemplate"));
if (pVar != null) {
if (jVar == null) {
jVar = (j) pVar.f3814c;
}
if (list2 == null) {
list2 = pVar.f26395f;
}
}
return new p(jVar, l4, l10, l12, j16, l11, list2, j18, v10, v8, H.O(j14), H.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 (AbstractC0178a.F(xmlPullParser, "S")) {
long l4 = l(xmlPullParser, "t", -9223372036854775807L);
if (z6) {
j12 = a(arrayList, j12, j13, i10, l4);
}
if (l4 == -9223372036854775807L) {
l4 = j12;
}
long l10 = l(xmlPullParser, "d", -9223372036854775807L);
i10 = k(xmlPullParser, "r", 0);
z6 = true;
j13 = l10;
j12 = l4;
} else {
b(xmlPullParser);
}
} while (!AbstractC0178a.D(xmlPullParser, "SegmentTimeline"));
if (z6) {
a(arrayList, j12, j13, i10, H.V(j11, j10, 1000L));
}
return arrayList;
}
public static N9.l v(XmlPullParser xmlPullParser, String str, N9.l lVar) {
String str2;
char c4;
int i10 = -1;
String attributeValue = xmlPullParser.getAttributeValue(null, str);
if (attributeValue == null) {
return lVar;
}
String[] strArr = new String[5];
int[] iArr = new int[4];
String[] strArr2 = new String[4];
strArr[0] = "";
int i11 = 0;
int i12 = 0;
while (i11 < attributeValue.length()) {
int indexOf = attributeValue.indexOf("$", i11);
if (indexOf == i10) {
strArr[i12] = strArr[i12] + attributeValue.substring(i11);
i11 = attributeValue.length();
} else if (indexOf != i11) {
strArr[i12] = strArr[i12] + attributeValue.substring(i11, indexOf);
i11 = indexOf;
} else if (attributeValue.startsWith("$$", i11)) {
strArr[i12] = AbstractC0007g.l(new StringBuilder(), strArr[i12], "$");
i11 += 2;
} else {
int i13 = i11 + 1;
int indexOf2 = attributeValue.indexOf("$", i13);
String substring = attributeValue.substring(i13, indexOf2);
if (substring.equals("RepresentationID")) {
iArr[i12] = 1;
} else {
int indexOf3 = substring.indexOf("%0");
if (indexOf3 != i10) {
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")) {
c4 = 0;
break;
}
break;
case 2606829:
if (substring.equals("Time")) {
c4 = 1;
break;
}
break;
case 38199441:
if (substring.equals("Bandwidth")) {
c4 = 2;
break;
}
break;
}
c4 = 65535;
switch (c4) {
case 0:
iArr[i12] = 2;
break;
case 1:
iArr[i12] = 4;
break;
case 2:
iArr[i12] = 3;
break;
default:
throw new IllegalArgumentException("Invalid template: ".concat(attributeValue));
}
strArr2[i12] = str2;
}
i12++;
strArr[i12] = "";
i11 = indexOf2 + 1;
}
i10 = -1;
}
return new N9.l(strArr, iArr, strArr2, i12);
}
@Override
public final Object m(Uri uri, C0127q c0127q) {
try {
XmlPullParser newPullParser = this.f26364c.newPullParser();
newPullParser.setInput(c0127q, null);
if (newPullParser.next() == 2 && "MPD".equals(newPullParser.getName())) {
return n(newPullParser, uri);
}
throw C0099n0.b("inputStream does not contain a valid media presentation description", null);
} catch (XmlPullParserException e10) {
throw C0099n0.b(null, e10);
}
}
}