- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
171 lines
4.4 KiB
Java
171 lines
4.4 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class ej extends xl {
|
|
private long b;
|
|
private long[] c;
|
|
private long[] d;
|
|
|
|
private static HashMap f(bh bhVar) {
|
|
HashMap hashMap = new HashMap();
|
|
while (true) {
|
|
String h = h(bhVar);
|
|
int i = i(bhVar);
|
|
if (i == 9) {
|
|
return hashMap;
|
|
}
|
|
Object a = a(bhVar, i);
|
|
if (a != null) {
|
|
hashMap.put(h, a);
|
|
}
|
|
}
|
|
}
|
|
|
|
public long a() {
|
|
return this.b;
|
|
}
|
|
|
|
@Override // com.applovin.impl.xl
|
|
public boolean a(bh bhVar) {
|
|
return true;
|
|
}
|
|
|
|
public long[] b() {
|
|
return this.d;
|
|
}
|
|
|
|
public long[] c() {
|
|
return this.c;
|
|
}
|
|
|
|
public ej() {
|
|
super(new i7());
|
|
this.b = C.TIME_UNSET;
|
|
this.c = new long[0];
|
|
this.d = new long[0];
|
|
}
|
|
|
|
private static Date c(bh bhVar) {
|
|
Date date = new Date((long) d(bhVar).doubleValue());
|
|
bhVar.g(2);
|
|
return date;
|
|
}
|
|
|
|
private static int i(bh bhVar) {
|
|
return bhVar.w();
|
|
}
|
|
|
|
@Override // com.applovin.impl.xl
|
|
public boolean b(bh bhVar, long j) {
|
|
if (i(bhVar) != 2 || !"onMetaData".equals(h(bhVar)) || i(bhVar) != 8) {
|
|
return false;
|
|
}
|
|
HashMap e = e(bhVar);
|
|
Object obj = e.get(IronSourceConstants.EVENTS_DURATION);
|
|
if (obj instanceof Double) {
|
|
double doubleValue = ((Double) obj).doubleValue();
|
|
if (doubleValue > 0.0d) {
|
|
this.b = (long) (doubleValue * 1000000.0d);
|
|
}
|
|
}
|
|
Object obj2 = e.get("keyframes");
|
|
if (obj2 instanceof Map) {
|
|
Map map = (Map) obj2;
|
|
Object obj3 = map.get("filepositions");
|
|
Object obj4 = map.get("times");
|
|
if ((obj3 instanceof List) && (obj4 instanceof List)) {
|
|
List list = (List) obj3;
|
|
List list2 = (List) obj4;
|
|
int size = list2.size();
|
|
this.c = new long[size];
|
|
this.d = new long[size];
|
|
for (int i = 0; i < size; i++) {
|
|
Object obj5 = list.get(i);
|
|
Object obj6 = list2.get(i);
|
|
if (!(obj6 instanceof Double) || !(obj5 instanceof Double)) {
|
|
this.c = new long[0];
|
|
this.d = new long[0];
|
|
break;
|
|
}
|
|
this.c[i] = (long) (((Double) obj6).doubleValue() * 1000000.0d);
|
|
this.d[i] = ((Double) obj5).longValue();
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
private static Double d(bh bhVar) {
|
|
return Double.valueOf(Double.longBitsToDouble(bhVar.s()));
|
|
}
|
|
|
|
private static String h(bh bhVar) {
|
|
int C = bhVar.C();
|
|
int d = bhVar.d();
|
|
bhVar.g(C);
|
|
return new String(bhVar.c(), d, C);
|
|
}
|
|
|
|
private static ArrayList g(bh bhVar) {
|
|
int A = bhVar.A();
|
|
ArrayList arrayList = new ArrayList(A);
|
|
for (int i = 0; i < A; i++) {
|
|
Object a = a(bhVar, i(bhVar));
|
|
if (a != null) {
|
|
arrayList.add(a);
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
private static HashMap e(bh bhVar) {
|
|
int A = bhVar.A();
|
|
HashMap hashMap = new HashMap(A);
|
|
for (int i = 0; i < A; i++) {
|
|
String h = h(bhVar);
|
|
Object a = a(bhVar, i(bhVar));
|
|
if (a != null) {
|
|
hashMap.put(h, a);
|
|
}
|
|
}
|
|
return hashMap;
|
|
}
|
|
|
|
private static Object a(bh bhVar, int i) {
|
|
if (i == 8) {
|
|
return e(bhVar);
|
|
}
|
|
if (i == 10) {
|
|
return g(bhVar);
|
|
}
|
|
if (i == 11) {
|
|
return c(bhVar);
|
|
}
|
|
if (i == 0) {
|
|
return d(bhVar);
|
|
}
|
|
if (i == 1) {
|
|
return b(bhVar);
|
|
}
|
|
if (i == 2) {
|
|
return h(bhVar);
|
|
}
|
|
if (i != 3) {
|
|
return null;
|
|
}
|
|
return f(bhVar);
|
|
}
|
|
|
|
private static Boolean b(bh bhVar) {
|
|
return Boolean.valueOf(bhVar.w() == 1);
|
|
}
|
|
}
|