Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
package com.applovin.impl;
import android.os.Parcel;
import android.os.Parcelable;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* renamed from: com.applovin.impl.do, reason: invalid class name */
/* loaded from: classes.dex */
public final class Cdo extends sk {
public static final Parcelable.Creator<Cdo> CREATOR = new a();
public final long a;
public final long b;
private Cdo(long j, long j2) {
this.a = j;
this.b = j2;
}
public static Cdo a(bh bhVar, long j, ho hoVar) {
long a2 = a(bhVar, j);
return new Cdo(a2, hoVar.b(a2));
}
public /* synthetic */ Cdo(long j, long j2, a aVar) {
this(j, j2);
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeLong(this.a);
parcel.writeLong(this.b);
}
/* renamed from: com.applovin.impl.do$a */
public class a implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public Cdo[] newArray(int i) {
return new Cdo[i];
}
@Override // android.os.Parcelable.Creator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public Cdo createFromParcel(Parcel parcel) {
return new Cdo(parcel.readLong(), parcel.readLong(), null);
}
}
public static long a(bh bhVar, long j) {
long w = bhVar.w();
return (128 & w) != 0 ? 8589934591L & ((((w & 1) << 32) | bhVar.y()) + j) : C.TIME_UNSET;
}
}

View File

@@ -0,0 +1,275 @@
package com.applovin.impl;
import android.text.TextUtils;
import com.applovin.exoplayer2.common.base.Ascii;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import com.vungle.ads.internal.signals.SignalKey;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* renamed from: com.applovin.impl.if, reason: invalid class name */
/* loaded from: classes.dex */
public abstract class Cif {
private static final ArrayList a = new ArrayList();
private static final Pattern b = Pattern.compile("^mp4a\\.([a-zA-Z0-9]{2})(?:\\.([0-9]{1,2}))?$");
public static String a(int i) {
if (i == 32) {
return MimeTypes.VIDEO_MP4V;
}
if (i == 33) {
return "video/avc";
}
if (i == 35) {
return "video/hevc";
}
if (i == 64) {
return MimeTypes.AUDIO_AAC;
}
if (i == 163) {
return MimeTypes.VIDEO_VC1;
}
if (i == 177) {
return MimeTypes.VIDEO_VP9;
}
if (i == 165) {
return MimeTypes.AUDIO_AC3;
}
if (i == 166) {
return MimeTypes.AUDIO_E_AC3;
}
switch (i) {
case 96:
case 97:
case 98:
case 99:
case 100:
case 101:
return MimeTypes.VIDEO_MPEG2;
case 102:
case 103:
case 104:
return MimeTypes.AUDIO_AAC;
case 105:
case SignalKey.EVENT_ID /* 107 */:
return MimeTypes.AUDIO_MPEG;
case 106:
return MimeTypes.VIDEO_MPEG;
default:
switch (i) {
case 169:
case 172:
return MimeTypes.AUDIO_DTS;
case 170:
case 171:
return MimeTypes.AUDIO_DTS_HD;
case 173:
return MimeTypes.AUDIO_OPUS;
case 174:
return "audio/ac4";
default:
return null;
}
}
}
public static a c(String str) {
Matcher matcher = b.matcher(str);
if (!matcher.matches()) {
return null;
}
String str2 = (String) b1.a((Object) matcher.group(1));
String group = matcher.group(2);
try {
return new a(Integer.parseInt(str2, 16), group != null ? Integer.parseInt(group) : 0);
} catch (NumberFormatException unused) {
return null;
}
}
private static int f(String str) {
ArrayList arrayList = a;
if (arrayList.size() <= 0) {
return -1;
}
d8.a(arrayList.get(0));
throw null;
}
public static boolean g(String str) {
return "audio".equals(d(str));
}
public static boolean i(String str) {
return "video".equals(d(str));
}
public static boolean h(String str) {
return "text".equals(d(str)) || MimeTypes.APPLICATION_CEA608.equals(str) || MimeTypes.APPLICATION_CEA708.equals(str) || MimeTypes.APPLICATION_MP4CEA608.equals(str) || MimeTypes.APPLICATION_SUBRIP.equals(str) || MimeTypes.APPLICATION_TTML.equals(str) || MimeTypes.APPLICATION_TX3G.equals(str) || MimeTypes.APPLICATION_MP4VTT.equals(str) || MimeTypes.APPLICATION_RAWCC.equals(str) || MimeTypes.APPLICATION_VOBSUB.equals(str) || MimeTypes.APPLICATION_PGS.equals(str) || MimeTypes.APPLICATION_DVBSUBS.equals(str);
}
public static boolean a(String str, String str2) {
a c;
int a2;
if (str == null) {
return false;
}
switch (str) {
case "audio/mp4a-latm":
if (str2 != null && (c = c(str2)) != null && (a2 = c.a()) != 0 && a2 != 16) {
break;
}
break;
}
return false;
}
public static int e(String str) {
if (TextUtils.isEmpty(str)) {
return -1;
}
if (g(str)) {
return 1;
}
if (i(str)) {
return 2;
}
if (h(str)) {
return 3;
}
if (MimeTypes.APPLICATION_ID3.equals(str) || MimeTypes.APPLICATION_EMSG.equals(str) || MimeTypes.APPLICATION_SCTE35.equals(str)) {
return 5;
}
if (MimeTypes.APPLICATION_CAMERA_MOTION.equals(str)) {
return 6;
}
return f(str);
}
public static int b(String str, String str2) {
a c;
str.hashCode();
switch (str) {
case "audio/eac3-joc":
return 18;
case "audio/vnd.dts":
return 7;
case "audio/mp4a-latm":
if (str2 == null || (c = c(str2)) == null) {
return 0;
}
return c.a();
case "audio/ac3":
return 5;
case "audio/ac4":
return 17;
case "audio/eac3":
return 6;
case "audio/mpeg":
return 9;
case "audio/vnd.dts.hd":
return 8;
case "audio/true-hd":
return 14;
default:
return 0;
}
}
public static String j(String str) {
str.hashCode();
switch (str) {
case "audio/x-flac":
return MimeTypes.AUDIO_FLAC;
case "audio/x-wav":
return "audio/wav";
case "audio/mp3":
return MimeTypes.AUDIO_MPEG;
default:
return str;
}
}
private static String d(String str) {
int indexOf;
if (str == null || (indexOf = str.indexOf(47)) == -1) {
return null;
}
return str.substring(0, indexOf);
}
/* renamed from: com.applovin.impl.if$a */
public static final class a {
public final int a;
public final int b;
public int a() {
int i = this.b;
if (i == 2) {
return 10;
}
if (i == 5) {
return 11;
}
if (i == 29) {
return 12;
}
if (i == 42) {
return 16;
}
if (i != 22) {
return i != 23 ? 0 : 15;
}
return 1073741824;
}
public a(int i, int i2) {
this.a = i;
this.b = i2;
}
}
private static String a(String str) {
ArrayList arrayList = a;
if (arrayList.size() <= 0) {
return null;
}
d8.a(arrayList.get(0));
throw null;
}
public static String b(String str) {
a c;
String str2 = null;
if (str == null) {
return null;
}
String lowerCase = Ascii.toLowerCase(str.trim());
if (lowerCase.startsWith("avc1") || lowerCase.startsWith("avc3")) {
return "video/avc";
}
if (lowerCase.startsWith("hev1") || lowerCase.startsWith("hvc1")) {
return "video/hevc";
}
if (lowerCase.startsWith("dvav") || lowerCase.startsWith("dva1") || lowerCase.startsWith("dvhe") || lowerCase.startsWith("dvh1")) {
return "video/dolby-vision";
}
if (lowerCase.startsWith("av01")) {
return com.unity3d.services.core.device.MimeTypes.VIDEO_AV1;
}
if (lowerCase.startsWith("vp9") || lowerCase.startsWith("vp09")) {
return MimeTypes.VIDEO_VP9;
}
if (lowerCase.startsWith("vp8") || lowerCase.startsWith("vp08")) {
return MimeTypes.VIDEO_VP8;
}
if (!lowerCase.startsWith("mp4a")) {
return lowerCase.startsWith("mha1") ? "audio/mha1" : lowerCase.startsWith("mhm1") ? "audio/mhm1" : (lowerCase.startsWith("ac-3") || lowerCase.startsWith("dac3")) ? MimeTypes.AUDIO_AC3 : (lowerCase.startsWith("ec-3") || lowerCase.startsWith("dec3")) ? MimeTypes.AUDIO_E_AC3 : lowerCase.startsWith("ec+3") ? MimeTypes.AUDIO_E_AC3_JOC : (lowerCase.startsWith("ac-4") || lowerCase.startsWith("dac4")) ? "audio/ac4" : lowerCase.startsWith("dtsc") ? MimeTypes.AUDIO_DTS : lowerCase.startsWith("dtse") ? MimeTypes.AUDIO_DTS_EXPRESS : (lowerCase.startsWith("dtsh") || lowerCase.startsWith("dtsl")) ? MimeTypes.AUDIO_DTS_HD : lowerCase.startsWith("dtsx") ? "audio/vnd.dts.uhd;profile=p2" : lowerCase.startsWith("opus") ? MimeTypes.AUDIO_OPUS : lowerCase.startsWith("vorbis") ? MimeTypes.AUDIO_VORBIS : lowerCase.startsWith("flac") ? MimeTypes.AUDIO_FLAC : lowerCase.startsWith("stpp") ? MimeTypes.APPLICATION_TTML : lowerCase.startsWith("wvtt") ? MimeTypes.TEXT_VTT : lowerCase.contains("cea708") ? MimeTypes.APPLICATION_CEA708 : (lowerCase.contains("eia608") || lowerCase.contains("cea608")) ? MimeTypes.APPLICATION_CEA608 : a(lowerCase);
}
if (lowerCase.startsWith("mp4a.") && (c = c(lowerCase)) != null) {
str2 = a(c.a);
}
return str2 == null ? MimeTypes.AUDIO_AAC : str2;
}
}

View File

@@ -0,0 +1,114 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public abstract class a {
private static final int[] a = {96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350};
private static final int[] b = {0, 1, 2, 3, 4, 5, 6, 8, -1, -1, -1, 7, 8, -1, 8, -1};
public static byte[] a(int i, int i2, int i3) {
return new byte[]{(byte) (((i << 3) & 248) | ((i2 >> 1) & 7)), (byte) (((i2 << 7) & 128) | ((i3 << 3) & 120))};
}
public static final class b {
public final int a;
public final int b;
public final String c;
private b(int i, int i2, String str) {
this.a = i;
this.b = i2;
this.c = str;
}
}
private static int b(ah ahVar) {
int a2 = ahVar.a(4);
if (a2 == 15) {
return ahVar.a(24);
}
if (a2 < 13) {
return a[a2];
}
throw dh.a(null, null);
}
private static int a(ah ahVar) {
int a2 = ahVar.a(5);
return a2 == 31 ? ahVar.a(6) + 32 : a2;
}
public static b a(ah ahVar, boolean z) {
int a2 = a(ahVar);
int b2 = b(ahVar);
int a3 = ahVar.a(4);
String str = "mp4a.40." + a2;
if (a2 == 5 || a2 == 29) {
b2 = b(ahVar);
a2 = a(ahVar);
if (a2 == 22) {
a3 = ahVar.a(4);
}
}
if (z) {
if (a2 != 6 && a2 != 7 && a2 != 17 && a2 != 1 && a2 != 2 && a2 != 3 && a2 != 4) {
switch (a2) {
case 19:
case 20:
case 21:
case 22:
case 23:
break;
default:
throw dh.a("Unsupported audio object type: " + a2);
}
}
a(ahVar, a2, a3);
switch (a2) {
case 17:
case 19:
case 20:
case 21:
case 22:
case 23:
int a4 = ahVar.a(2);
if (a4 == 2 || a4 == 3) {
throw dh.a("Unsupported epConfig: " + a4);
}
}
}
int i = b[a3];
if (i != -1) {
return new b(b2, i, str);
}
throw dh.a(null, null);
}
private static void a(ah ahVar, int i, int i2) {
if (ahVar.f()) {
pc.d("AacUtil", "Unexpected frameLengthFlag = 1");
}
if (ahVar.f()) {
ahVar.d(14);
}
boolean f = ahVar.f();
if (i2 == 0) {
throw new UnsupportedOperationException();
}
if (i == 6 || i == 20) {
ahVar.d(3);
}
if (f) {
if (i == 22) {
ahVar.d(16);
}
if (i == 17 || i == 19 || i == 20 || i == 23) {
ahVar.d(3);
}
ahVar.d(1);
}
}
public static b a(byte[] bArr) {
return a(new ah(bArr), false);
}
}

View File

@@ -0,0 +1,71 @@
package com.applovin.impl;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.mediation.MaxAdFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class a0 {
private final String a;
private final String b;
private final kr c;
private final List d;
private final List e;
private boolean f = false;
public List a() {
return this.d;
}
public String b() {
return this.b;
}
public String c() {
return this.a;
}
public kr d() {
return this.c;
}
public List e() {
return this.e;
}
public boolean f() {
return this.f;
}
public a0(JSONObject jSONObject, Map map, MaxAdFormat maxAdFormat, com.applovin.impl.sdk.j jVar) {
this.a = JsonUtils.getString(jSONObject, "name", "");
this.b = JsonUtils.getString(jSONObject, "experiment", null);
this.c = a(jSONObject);
this.d = a("bidders", jSONObject, map, maxAdFormat, jVar);
this.e = a(com.ironsource.mediationsdk.d.g, jSONObject, map, maxAdFormat, jVar);
}
private List a(String str, JSONObject jSONObject, Map map, MaxAdFormat maxAdFormat, com.applovin.impl.sdk.j jVar) {
ke keVar;
ArrayList arrayList = new ArrayList();
JSONArray jSONArray = JsonUtils.getJSONArray(jSONObject, str, new JSONArray());
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject jSONObject2 = JsonUtils.getJSONObject(jSONArray, i, (JSONObject) null);
if (jSONObject2 != null && (keVar = (ke) map.get(JsonUtils.getString(jSONObject2, "adapter_class", ""))) != null) {
if (keVar.B()) {
this.f = true;
}
arrayList.add(new ir(jSONObject2, maxAdFormat, keVar, jVar));
}
}
return arrayList;
}
private kr a(JSONObject jSONObject) {
return new kr(JsonUtils.getJSONObject(jSONObject, "targeting"));
}
}

View File

@@ -0,0 +1,65 @@
package com.applovin.impl;
import com.applovin.exoplayer2.common.base.Charsets;
import java.nio.ByteBuffer;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class a1 extends dk {
@Override // com.applovin.impl.dk
public bf a(ef efVar, ByteBuffer byteBuffer) {
if (byteBuffer.get() == 116) {
return a(new ah(byteBuffer.array(), byteBuffer.limit()));
}
return null;
}
private static bf a(ah ahVar) {
ahVar.d(12);
int d = (ahVar.d() + ahVar.a(12)) - 4;
ahVar.d(44);
ahVar.e(ahVar.a(12));
ahVar.d(16);
ArrayList arrayList = new ArrayList();
while (true) {
String str = null;
if (ahVar.d() >= d) {
break;
}
ahVar.d(48);
int a = ahVar.a(8);
ahVar.d(4);
int d2 = ahVar.d() + ahVar.a(12);
String str2 = null;
while (ahVar.d() < d2) {
int a2 = ahVar.a(8);
int a3 = ahVar.a(8);
int d3 = ahVar.d() + a3;
if (a2 == 2) {
int a4 = ahVar.a(16);
ahVar.d(8);
if (a4 == 3) {
while (ahVar.d() < d3) {
str = ahVar.a(ahVar.a(8), Charsets.US_ASCII);
int a5 = ahVar.a(8);
for (int i = 0; i < a5; i++) {
ahVar.e(ahVar.a(8));
}
}
}
} else if (a2 == 21) {
str2 = ahVar.a(a3, Charsets.US_ASCII);
}
ahVar.c(d3 * 8);
}
ahVar.c(d2 * 8);
if (str != null && str2 != null) {
arrayList.add(new z0(a, str + str2));
}
}
if (arrayList.isEmpty()) {
return null;
}
return new bf(arrayList);
}
}

View File

@@ -0,0 +1,53 @@
package com.applovin.impl;
import java.util.ArrayList;
/* loaded from: classes.dex */
public abstract class a2 implements i5 {
private final boolean a;
private final ArrayList b = new ArrayList(1);
private int c;
private l5 d;
public a2(boolean z) {
this.a = z;
}
@Override // com.applovin.impl.i5
public final void a(xo xoVar) {
b1.a(xoVar);
if (this.b.contains(xoVar)) {
return;
}
this.b.add(xoVar);
this.c++;
}
public final void b(l5 l5Var) {
for (int i = 0; i < this.c; i++) {
((xo) this.b.get(i)).b(this, l5Var, this.a);
}
}
public final void c(l5 l5Var) {
this.d = l5Var;
for (int i = 0; i < this.c; i++) {
((xo) this.b.get(i)).a(this, l5Var, this.a);
}
}
public final void d(int i) {
l5 l5Var = (l5) xp.a(this.d);
for (int i2 = 0; i2 < this.c; i2++) {
((xo) this.b.get(i2)).a(this, l5Var, this.a, i);
}
}
public final void g() {
l5 l5Var = (l5) xp.a(this.d);
for (int i = 0; i < this.c; i++) {
((xo) this.b.get(i)).c(this, l5Var, this.a);
}
this.d = null;
}
}

View File

@@ -0,0 +1,169 @@
package com.applovin.impl;
import com.applovin.impl.zg;
import java.util.ArrayDeque;
import java.util.PriorityQueue;
/* loaded from: classes.dex */
abstract class a3 implements ol {
private final ArrayDeque a = new ArrayDeque();
private final ArrayDeque b;
private final PriorityQueue c;
private b d;
private long e;
private long f;
@Override // com.applovin.impl.m5
public void a() {
}
@Override // com.applovin.impl.ol
public void a(long j) {
this.e = j;
}
public abstract void a(rl rlVar);
public abstract nl e();
public final long i() {
return this.e;
}
public abstract boolean j();
public a3() {
for (int i = 0; i < 10; i++) {
this.a.add(new b());
}
this.b = new ArrayDeque();
for (int i2 = 0; i2 < 2; i2++) {
this.b.add(new c(new zg.a() { // from class: com.applovin.impl.a3$$ExternalSyntheticLambda0
@Override // com.applovin.impl.zg.a
public final void a(zg zgVar) {
a3.this.a((sl) zgVar);
}
}));
}
this.c = new PriorityQueue();
}
@Override // com.applovin.impl.m5
/* renamed from: f, reason: merged with bridge method [inline-methods] */
public rl d() {
b1.b(this.d == null);
if (this.a.isEmpty()) {
return null;
}
b bVar = (b) this.a.pollFirst();
this.d = bVar;
return bVar;
}
@Override // com.applovin.impl.m5
/* renamed from: g, reason: merged with bridge method [inline-methods] */
public sl c() {
if (this.b.isEmpty()) {
return null;
}
while (!this.c.isEmpty() && ((b) xp.a((b) this.c.peek())).f <= this.e) {
b bVar = (b) xp.a((b) this.c.poll());
if (bVar.e()) {
sl slVar = (sl) xp.a((sl) this.b.pollFirst());
slVar.b(4);
a(bVar);
return slVar;
}
a((rl) bVar);
if (j()) {
nl e = e();
sl slVar2 = (sl) xp.a((sl) this.b.pollFirst());
slVar2.a(bVar.f, e, Long.MAX_VALUE);
a(bVar);
return slVar2;
}
a(bVar);
}
return null;
}
@Override // com.applovin.impl.m5
public void b() {
this.f = 0L;
this.e = 0L;
while (!this.c.isEmpty()) {
a((b) xp.a((b) this.c.poll()));
}
b bVar = this.d;
if (bVar != null) {
a(bVar);
this.d = null;
}
}
private void a(b bVar) {
bVar.b();
this.a.add(bVar);
}
public final sl h() {
return (sl) this.b.pollFirst();
}
public static final class b extends rl implements Comparable {
private long k;
private b() {
}
@Override // java.lang.Comparable
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public int compareTo(b bVar) {
if (e() != bVar.e()) {
return e() ? 1 : -1;
}
long j = this.f - bVar.f;
if (j == 0) {
j = this.k - bVar.k;
if (j == 0) {
return 0;
}
}
return j > 0 ? 1 : -1;
}
}
public static final class c extends sl {
private zg.a g;
public c(zg.a aVar) {
this.g = aVar;
}
@Override // com.applovin.impl.zg
public final void g() {
this.g.a(this);
}
}
@Override // com.applovin.impl.m5
/* renamed from: b, reason: merged with bridge method [inline-methods] */
public void a(rl rlVar) {
b1.a(rlVar == this.d);
b bVar = (b) rlVar;
if (!bVar.d()) {
long j = this.f;
this.f = 1 + j;
bVar.k = j;
this.c.add(bVar);
} else {
a(bVar);
}
this.d = null;
}
public void a(sl slVar) {
slVar.b();
this.b.add(slVar);
}
}

View File

@@ -0,0 +1,75 @@
package com.applovin.impl;
import android.content.Context;
/* loaded from: classes.dex */
public abstract class a4 {
private static final a a = new a("Age Restricted User", uj.m);
private static final a b = new a("Has User Consent", uj.l);
private static final a c = new a("\"Do Not Sell\"", uj.n);
public static a a() {
return c;
}
public static a b() {
return b;
}
public static a c() {
return a;
}
public static boolean b(boolean z, Context context) {
return a(uj.l, Boolean.valueOf(z), context);
}
private static boolean a(uj ujVar, Boolean bool, Context context) {
if (context == null) {
com.applovin.impl.sdk.n.h("AppLovinSdk", "Failed to update compliance value for key: " + ujVar);
return false;
}
Boolean bool2 = (Boolean) vj.a(ujVar, (Object) null, context);
vj.b(ujVar, bool, context);
return bool2 == null || bool2 != bool;
}
public static boolean a(boolean z, Context context) {
return a(uj.n, Boolean.valueOf(z), context);
}
public static String a(Context context) {
return a(b, context) + a(c, context);
}
private static String a(a aVar, Context context) {
return "\n" + aVar.a + " - " + aVar.a(context);
}
public static class a {
private final String a;
private final uj b;
public String a() {
return this.a;
}
public a(String str, uj ujVar) {
this.a = str;
this.b = ujVar;
}
public Boolean b(Context context) {
if (context == null) {
com.applovin.impl.sdk.n.h("AppLovinSdk", "Failed to get value for key: " + this.b);
return null;
}
return (Boolean) vj.a(this.b, (Object) null, context);
}
public String a(Context context) {
Boolean b = b(context);
return b != null ? b.toString() : "No value set";
}
}
}

View File

@@ -0,0 +1,78 @@
package com.applovin.impl;
import android.media.MediaCodec;
/* loaded from: classes.dex */
public final class a5 {
public byte[] a;
public byte[] b;
public int c;
public int[] d;
public int[] e;
public int f;
public int g;
public int h;
private final MediaCodec.CryptoInfo i;
private final b j;
public MediaCodec.CryptoInfo a() {
return this.i;
}
/* JADX WARN: Multi-variable type inference failed */
public a5() {
MediaCodec.CryptoInfo cryptoInfo = new MediaCodec.CryptoInfo();
this.i = cryptoInfo;
this.j = xp.a >= 24 ? new b(cryptoInfo) : null;
}
public static final class b {
private final MediaCodec.CryptoInfo a;
private final MediaCodec.CryptoInfo.Pattern b;
private b(MediaCodec.CryptoInfo cryptoInfo) {
this.a = cryptoInfo;
this.b = new MediaCodec.CryptoInfo.Pattern(0, 0);
}
/* JADX INFO: Access modifiers changed from: private */
public void a(int i, int i2) {
this.b.set(i, i2);
this.a.setPattern(this.b);
}
}
public void a(int i) {
if (i == 0) {
return;
}
if (this.d == null) {
int[] iArr = new int[1];
this.d = iArr;
this.i.numBytesOfClearData = iArr;
}
int[] iArr2 = this.d;
iArr2[0] = iArr2[0] + i;
}
public void a(int i, int[] iArr, int[] iArr2, byte[] bArr, byte[] bArr2, int i2, int i3, int i4) {
this.f = i;
this.d = iArr;
this.e = iArr2;
this.b = bArr;
this.a = bArr2;
this.c = i2;
this.g = i3;
this.h = i4;
MediaCodec.CryptoInfo cryptoInfo = this.i;
cryptoInfo.numSubSamples = i;
cryptoInfo.numBytesOfClearData = iArr;
cryptoInfo.numBytesOfEncryptedData = iArr2;
cryptoInfo.key = bArr;
cryptoInfo.iv = bArr2;
cryptoInfo.mode = i2;
if (xp.a >= 24) {
((b) b1.a(this.j)).a(i3, i4);
}
}
}

View File

@@ -0,0 +1,154 @@
package com.applovin.impl;
import java.util.ArrayDeque;
/* loaded from: classes.dex */
final class a6 implements p7 {
private final byte[] a = new byte[8];
private final ArrayDeque b = new ArrayDeque();
private final zp c = new zp();
private o7 d;
private int e;
private int f;
private long g;
@Override // com.applovin.impl.p7
public void a(o7 o7Var) {
this.d = o7Var;
}
@Override // com.applovin.impl.p7
public void reset() {
this.e = 0;
this.b.clear();
this.c.b();
}
@Override // com.applovin.impl.p7
public boolean a(l8 l8Var) {
b1.b(this.d);
while (true) {
b bVar = (b) this.b.peek();
if (bVar == null || l8Var.f() < bVar.b) {
if (this.e == 0) {
long a2 = this.c.a(l8Var, true, false, 4);
if (a2 == -2) {
a2 = b(l8Var);
}
if (a2 == -1) {
return false;
}
this.f = (int) a2;
this.e = 1;
}
if (this.e == 1) {
this.g = this.c.a(l8Var, false, true, 8);
this.e = 2;
}
int b2 = this.d.b(this.f);
if (b2 != 0) {
if (b2 == 1) {
long f = l8Var.f();
this.b.push(new b(this.f, this.g + f));
this.d.a(this.f, f, this.g);
this.e = 0;
return true;
}
if (b2 == 2) {
long j = this.g;
if (j <= 8) {
this.d.a(this.f, b(l8Var, (int) j));
this.e = 0;
return true;
}
throw dh.a("Invalid integer size: " + this.g, null);
}
if (b2 == 3) {
long j2 = this.g;
if (j2 <= 2147483647L) {
this.d.a(this.f, c(l8Var, (int) j2));
this.e = 0;
return true;
}
throw dh.a("String element size: " + this.g, null);
}
if (b2 == 4) {
this.d.a(this.f, (int) this.g, l8Var);
this.e = 0;
return true;
}
if (b2 != 5) {
throw dh.a("Invalid element type " + b2, null);
}
long j3 = this.g;
if (j3 != 4 && j3 != 8) {
throw dh.a("Invalid float size: " + this.g, null);
}
this.d.a(this.f, a(l8Var, (int) j3));
this.e = 0;
return true;
}
l8Var.a((int) this.g);
this.e = 0;
} else {
this.d.a(((b) this.b.pop()).a);
return true;
}
}
}
private long b(l8 l8Var) {
l8Var.b();
while (true) {
l8Var.c(this.a, 0, 4);
int a2 = zp.a(this.a[0]);
if (a2 != -1 && a2 <= 4) {
int a3 = (int) zp.a(this.a, a2, false);
if (this.d.c(a3)) {
l8Var.a(a2);
return a3;
}
}
l8Var.a(1);
}
}
private static String c(l8 l8Var, int i) {
if (i == 0) {
return "";
}
byte[] bArr = new byte[i];
l8Var.d(bArr, 0, i);
while (i > 0 && bArr[i - 1] == 0) {
i--;
}
return new String(bArr, 0, i);
}
public static final class b {
private final int a;
private final long b;
private b(int i, long j) {
this.a = i;
this.b = j;
}
}
private long b(l8 l8Var, int i) {
l8Var.d(this.a, 0, i);
long j = 0;
for (int i2 = 0; i2 < i; i2++) {
j = (j << 8) | (this.a[i2] & 255);
}
return j;
}
private double a(l8 l8Var, int i) {
long b2 = b(l8Var, i);
if (i == 4) {
return Float.intBitsToFloat((int) b2);
}
return Double.longBitsToDouble(b2);
}
}

View File

@@ -0,0 +1,187 @@
package com.applovin.impl;
import android.os.Handler;
import com.applovin.impl.a7;
import com.applovin.impl.be;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes.dex */
public interface a7 {
void a(int i, be.a aVar);
void a(int i, be.a aVar, int i2);
void a(int i, be.a aVar, Exception exc);
void b(int i, be.a aVar);
void c(int i, be.a aVar);
void d(int i, be.a aVar);
default void e(int i, be.a aVar) {
}
public static class a {
public final int a;
public final be.a b;
private final CopyOnWriteArrayList c;
public a() {
this(new CopyOnWriteArrayList(), 0, null);
}
public void a(Handler handler, a7 a7Var) {
b1.a(handler);
b1.a(a7Var);
this.c.add(new C0013a(handler, a7Var));
}
public void e(a7 a7Var) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
if (c0013a.b == a7Var) {
this.c.remove(c0013a);
}
}
}
public void c() {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
final a7 a7Var = c0013a.b;
xp.a(c0013a.a, new Runnable() { // from class: com.applovin.impl.a7$a$$ExternalSyntheticLambda3
@Override // java.lang.Runnable
public final void run() {
a7.a.this.c(a7Var);
}
});
}
}
public void b() {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
final a7 a7Var = c0013a.b;
xp.a(c0013a.a, new Runnable() { // from class: com.applovin.impl.a7$a$$ExternalSyntheticLambda2
@Override // java.lang.Runnable
public final void run() {
a7.a.this.b(a7Var);
}
});
}
}
public void d() {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
final a7 a7Var = c0013a.b;
xp.a(c0013a.a, new Runnable() { // from class: com.applovin.impl.a7$a$$ExternalSyntheticLambda4
@Override // java.lang.Runnable
public final void run() {
a7.a.this.d(a7Var);
}
});
}
}
private a(CopyOnWriteArrayList copyOnWriteArrayList, int i, be.a aVar) {
this.c = copyOnWriteArrayList;
this.a = i;
this.b = aVar;
}
/* renamed from: com.applovin.impl.a7$a$a, reason: collision with other inner class name */
public static final class C0013a {
public Handler a;
public a7 b;
public C0013a(Handler handler, a7 a7Var) {
this.a = handler;
this.b = a7Var;
}
}
public void a() {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
final a7 a7Var = c0013a.b;
xp.a(c0013a.a, new Runnable() { // from class: com.applovin.impl.a7$a$$ExternalSyntheticLambda1
@Override // java.lang.Runnable
public final void run() {
a7.a.this.a(a7Var);
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c(a7 a7Var) {
a7Var.c(this.a, this.b);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(a7 a7Var) {
a7Var.a(this.a, this.b);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void d(a7 a7Var) {
a7Var.b(this.a, this.b);
}
public void a(final int i) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
final a7 a7Var = c0013a.b;
xp.a(c0013a.a, new Runnable() { // from class: com.applovin.impl.a7$a$$ExternalSyntheticLambda5
@Override // java.lang.Runnable
public final void run() {
a7.a.this.a(a7Var, i);
}
});
}
}
public void a(final Exception exc) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0013a c0013a = (C0013a) it.next();
final a7 a7Var = c0013a.b;
xp.a(c0013a.a, new Runnable() { // from class: com.applovin.impl.a7$a$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
a7.a.this.a(a7Var, exc);
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(a7 a7Var) {
a7Var.d(this.a, this.b);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(a7 a7Var, int i) {
a7Var.e(this.a, this.b);
a7Var.a(this.a, this.b, i);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(a7 a7Var, Exception exc) {
a7Var.a(this.a, this.b, exc);
}
public a a(int i, be.a aVar) {
return new a(this.c, i, aVar);
}
}
}

View File

@@ -0,0 +1,95 @@
package com.applovin.impl;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import com.applovin.impl.o2;
import java.io.IOException;
/* loaded from: classes.dex */
public final class a8 extends nh {
public static final o2.a l = new o2.a() { // from class: com.applovin.impl.a8$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o2.a
public final o2 a(Bundle bundle) {
return a8.$r8$lambda$EmiKJ7f3R_W6NXDeEcT0iqE9T2w(bundle);
}
};
public final int d;
public final String f;
public final int g;
public final f9 h;
public final int i;
public final yd j;
final boolean k;
public static /* synthetic */ a8 $r8$lambda$EmiKJ7f3R_W6NXDeEcT0iqE9T2w(Bundle bundle) {
return new a8(bundle);
}
public static a8 a(Throwable th, String str, int i, f9 f9Var, int i2, boolean z, int i3) {
return new a8(1, th, null, i3, str, i, f9Var, f9Var == null ? 4 : i2, z);
}
private a8(int i, Throwable th, int i2) {
this(i, th, null, i2, null, -1, null, 4, false);
}
public static a8 a(RuntimeException runtimeException) {
return a(runtimeException, 1000);
}
private a8(int i, Throwable th, String str, int i2, String str2, int i3, f9 f9Var, int i4, boolean z) {
this(a(i, str, str2, i3, f9Var, i4), th, i2, i, str2, i3, f9Var, i4, null, SystemClock.elapsedRealtime(), z);
}
private a8(Bundle bundle) {
super(bundle);
this.d = bundle.getInt(nh.b(1001), 2);
this.f = bundle.getString(nh.b(1002));
this.g = bundle.getInt(nh.b(1003), -1);
this.h = (f9) p2.a(f9.I, bundle.getBundle(nh.b(1004)));
this.i = bundle.getInt(nh.b(1005), 4);
this.k = bundle.getBoolean(nh.b(1006), false);
this.j = null;
}
private static String a(int i, String str, String str2, int i2, f9 f9Var, int i3) {
String str3;
if (i == 0) {
str3 = "Source error";
} else if (i != 1) {
str3 = i != 3 ? "Unexpected runtime error" : "Remote error";
} else {
str3 = str2 + " error, index=" + i2 + ", format=" + f9Var + ", format_supported=" + t2.b(i3);
}
if (TextUtils.isEmpty(str)) {
return str3;
}
return str3 + ": " + str;
}
public static a8 a(IOException iOException, int i) {
return new a8(0, iOException, i);
}
public static a8 a(RuntimeException runtimeException, int i) {
return new a8(2, runtimeException, i);
}
public a8 a(yd ydVar) {
return new a8((String) xp.a((Object) getMessage()), getCause(), this.a, this.d, this.f, this.g, this.h, this.i, ydVar, this.b, this.k);
}
private a8(String str, Throwable th, int i, int i2, String str2, int i3, f9 f9Var, int i4, yd ydVar, long j, boolean z) {
super(str, th, i, j);
b1.a(!z || i2 == 1);
b1.a(th != null || i2 == 3);
this.d = i2;
this.f = str2;
this.g = i3;
this.h = f9Var;
this.i = i4;
this.j = ydVar;
this.k = z;
}
}

View File

@@ -0,0 +1,187 @@
package com.applovin.impl;
import android.support.v4.media.session.PlaybackStateCompat;
import com.applovin.impl.f9;
import com.ironsource.v8;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import kotlin.jvm.internal.ByteCompanionObject;
/* loaded from: classes.dex */
public final class a9 {
public final int a;
public final int b;
public final int c;
public final int d;
public final int e;
public final int f;
public final int g;
public final int h;
public final int i;
public final long j;
public final a k;
private final bf l;
private static int a(int i) {
if (i == 8) {
return 1;
}
if (i == 12) {
return 2;
}
if (i == 16) {
return 4;
}
if (i != 20) {
return i != 24 ? -1 : 6;
}
return 5;
}
private static int b(int i) {
switch (i) {
case 8000:
return 4;
case 16000:
return 5;
case 22050:
return 6;
case 24000:
return 7;
case 32000:
return 8;
case 44100:
return 9;
case 48000:
return 10;
case 88200:
return 1;
case 96000:
return 11;
case 176400:
return 2;
case 192000:
return 3;
default:
return -1;
}
}
public static class a {
public final long[] a;
public final long[] b;
public a(long[] jArr, long[] jArr2) {
this.a = jArr;
this.b = jArr2;
}
}
private a9(int i, int i2, int i3, int i4, int i5, int i6, int i7, long j, a aVar, bf bfVar) {
this.a = i;
this.b = i2;
this.c = i3;
this.d = i4;
this.e = i5;
this.f = b(i5);
this.g = i6;
this.h = i7;
this.i = a(i7);
this.j = j;
this.k = aVar;
this.l = bfVar;
}
public a9 b(List list) {
return new a9(this.a, this.b, this.c, this.d, this.e, this.g, this.h, this.j, this.k, a(a(list, Collections.emptyList())));
}
public a9(byte[] bArr, int i) {
ah ahVar = new ah(bArr);
ahVar.c(i * 8);
this.a = ahVar.a(16);
this.b = ahVar.a(16);
this.c = ahVar.a(24);
this.d = ahVar.a(24);
int a2 = ahVar.a(20);
this.e = a2;
this.f = b(a2);
this.g = ahVar.a(3) + 1;
int a3 = ahVar.a(5) + 1;
this.h = a3;
this.i = a(a3);
this.j = ahVar.b(36);
this.k = null;
this.l = null;
}
private static bf a(List list, List list2) {
if (list.isEmpty() && list2.isEmpty()) {
return null;
}
ArrayList arrayList = new ArrayList();
for (int i = 0; i < list.size(); i++) {
String str = (String) list.get(i);
String[] b = xp.b(str, v8.i.b);
if (b.length != 2) {
pc.d("FlacStreamMetadata", "Failed to parse Vorbis comment: " + str);
} else {
arrayList.add(new dr(b[0], b[1]));
}
}
arrayList.addAll(list2);
if (arrayList.isEmpty()) {
return null;
}
return new bf(arrayList);
}
public long b() {
long j = this.j;
return j == 0 ? C.TIME_UNSET : (j * 1000000) / this.e;
}
public a9 a(List list) {
return new a9(this.a, this.b, this.c, this.d, this.e, this.g, this.h, this.j, this.k, a(a(Collections.emptyList(), list)));
}
public long a() {
long j;
long j2;
int i = this.d;
if (i > 0) {
j = (i + this.c) / 2;
j2 = 1;
} else {
int i2 = this.a;
j = ((((i2 != this.b || i2 <= 0) ? PlaybackStateCompat.ACTION_SKIP_TO_QUEUE_ITEM : i2) * this.g) * this.h) / 8;
j2 = 64;
}
return j + j2;
}
public f9 a(byte[] bArr, bf bfVar) {
bArr[4] = ByteCompanionObject.MIN_VALUE;
int i = this.d;
if (i <= 0) {
i = -1;
}
return new f9.b().f(MimeTypes.AUDIO_FLAC).i(i).c(this.g).n(this.e).a(Collections.singletonList(bArr)).a(a(bfVar)).a();
}
public bf a(bf bfVar) {
bf bfVar2 = this.l;
return bfVar2 == null ? bfVar : bfVar2.a(bfVar);
}
public long a(long j) {
return xp.b((j * this.e) / 1000000, 0L, this.j - 1);
}
public a9 a(a aVar) {
return new a9(this.a, this.b, this.c, this.d, this.e, this.g, this.h, this.j, aVar, this.l);
}
}

View File

@@ -0,0 +1,79 @@
package com.applovin.impl;
import android.os.Parcel;
import android.os.Parcelable;
import com.ironsource.mediationsdk.logger.IronSourceError;
import com.mbridge.msdk.playercommon.exoplayer2.metadata.id3.GeobFrame;
import java.util.Arrays;
/* loaded from: classes.dex */
public final class aa extends ya {
public static final Parcelable.Creator<aa> CREATOR = new a();
public final String b;
public final String c;
public final String d;
public final byte[] f;
@Override // com.applovin.impl.ya
public String toString() {
return this.a + ": mimeType=" + this.b + ", filename=" + this.c + ", description=" + this.d;
}
public aa(Parcel parcel) {
super(GeobFrame.ID);
this.b = (String) xp.a((Object) parcel.readString());
this.c = (String) xp.a((Object) parcel.readString());
this.d = (String) xp.a((Object) parcel.readString());
this.f = (byte[]) xp.a((Object) parcel.createByteArray());
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || aa.class != obj.getClass()) {
return false;
}
aa aaVar = (aa) obj;
return xp.a((Object) this.b, (Object) aaVar.b) && xp.a((Object) this.c, (Object) aaVar.c) && xp.a((Object) this.d, (Object) aaVar.d) && Arrays.equals(this.f, aaVar.f);
}
public int hashCode() {
String str = this.b;
int hashCode = ((str != null ? str.hashCode() : 0) + IronSourceError.ERROR_NON_EXISTENT_INSTANCE) * 31;
String str2 = this.c;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.d;
return ((hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31) + Arrays.hashCode(this.f);
}
public aa(String str, String str2, String str3, byte[] bArr) {
super(GeobFrame.ID);
this.b = str;
this.c = str2;
this.d = str3;
this.f = bArr;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(this.b);
parcel.writeString(this.c);
parcel.writeString(this.d);
parcel.writeByteArray(this.f);
}
public class a implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public aa[] newArray(int i) {
return new aa[i];
}
@Override // android.os.Parcelable.Creator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public aa createFromParcel(Parcel parcel) {
return new aa(parcel);
}
}
}

View File

@@ -0,0 +1,83 @@
package com.applovin.impl;
import com.applovin.impl.dp;
import com.applovin.impl.f9;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
/* loaded from: classes.dex */
public final class ab implements q7 {
private qo b;
private boolean c;
private int e;
private int f;
private final bh a = new bh(10);
private long d = C.TIME_UNSET;
@Override // com.applovin.impl.q7
public void a() {
this.c = false;
this.d = C.TIME_UNSET;
}
@Override // com.applovin.impl.q7
public void a(long j, int i) {
if ((i & 4) == 0) {
return;
}
this.c = true;
if (j != C.TIME_UNSET) {
this.d = j;
}
this.e = 0;
this.f = 0;
}
@Override // com.applovin.impl.q7
public void a(bh bhVar) {
b1.b(this.b);
if (this.c) {
int a = bhVar.a();
int i = this.f;
if (i < 10) {
int min = Math.min(a, 10 - i);
System.arraycopy(bhVar.c(), bhVar.d(), this.a.c(), this.f, min);
if (this.f + min == 10) {
this.a.f(0);
if (73 == this.a.w() && 68 == this.a.w() && 51 == this.a.w()) {
this.a.g(3);
this.e = this.a.v() + 10;
} else {
pc.d("Id3Reader", "Discarding invalid ID3 tag");
this.c = false;
return;
}
}
}
int min2 = Math.min(a, this.e - this.f);
this.b.a(bhVar, min2);
this.f += min2;
}
}
@Override // com.applovin.impl.q7
public void b() {
int i;
b1.b(this.b);
if (this.c && (i = this.e) != 0 && this.f == i) {
long j = this.d;
if (j != C.TIME_UNSET) {
this.b.a(j, 1, i, 0, null);
}
this.c = false;
}
}
@Override // com.applovin.impl.q7
public void a(m8 m8Var, dp.d dVar) {
dVar.a();
qo a = m8Var.a(dVar.c(), 5);
this.b = a;
a.a(new f9.b().c(dVar.b()).f(MimeTypes.APPLICATION_ID3).a());
}
}

View File

@@ -0,0 +1,5 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public interface ac {
}

View File

@@ -0,0 +1,40 @@
package com.applovin.impl;
import android.content.Context;
import android.view.View;
import android.widget.FrameLayout;
import com.applovin.sdk.AppLovinSdkUtils;
/* loaded from: classes.dex */
public class ad extends FrameLayout implements View.OnClickListener {
private a a;
public interface a {
void a(ad adVar);
}
public void setListener(a aVar) {
this.a = aVar;
}
public ad(cd cdVar, Context context) {
super(context);
setOnClickListener(this);
com.applovin.impl.adview.i iVar = new com.applovin.impl.adview.i(context);
int dpToPx = AppLovinSdkUtils.dpToPx(context, cdVar.e());
iVar.setLayoutParams(new FrameLayout.LayoutParams(dpToPx, dpToPx, 17));
iVar.a(dpToPx);
addView(iVar);
int dpToPx2 = AppLovinSdkUtils.dpToPx(context, cdVar.e() + (cdVar.c() * 2));
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(dpToPx2, dpToPx2, 8388661);
int dpToPx3 = AppLovinSdkUtils.dpToPx(context, cdVar.f());
int dpToPx4 = AppLovinSdkUtils.dpToPx(context, cdVar.d());
layoutParams.setMargins(dpToPx4, dpToPx3, dpToPx4, 0);
setLayoutParams(layoutParams);
}
@Override // android.view.View.OnClickListener
public void onClick(View view) {
this.a.a(this);
}
}

View File

@@ -0,0 +1,41 @@
package com.applovin.impl.adview;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.applovin.adview.AppLovinInterstitialAd;
import com.applovin.adview.AppLovinInterstitialAdDialog;
import com.applovin.sdk.AppLovinAd;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.applovin.sdk.AppLovinSdk;
/* loaded from: classes.dex */
public class AppLovinAppOpenAd {
private final AppLovinInterstitialAdDialog a;
public AppLovinAppOpenAd(@NonNull AppLovinSdk appLovinSdk) {
this.a = AppLovinInterstitialAd.create(appLovinSdk, com.applovin.impl.sdk.j.l());
}
public void setAdClickListener(@Nullable AppLovinAdClickListener appLovinAdClickListener) {
this.a.setAdClickListener(appLovinAdClickListener);
}
public void setAdDisplayListener(@Nullable AppLovinAdDisplayListener appLovinAdDisplayListener) {
this.a.setAdDisplayListener(appLovinAdDisplayListener);
}
public void setAdVideoPlaybackListener(@Nullable AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
this.a.setAdVideoPlaybackListener(appLovinAdVideoPlaybackListener);
}
public void show(@NonNull AppLovinAd appLovinAd) {
this.a.showAndRender(appLovinAd);
}
@NonNull
public String toString() {
return "AppLovinAppOpenAd{}";
}
}

View File

@@ -0,0 +1,42 @@
package com.applovin.impl.adview;
import android.content.Context;
import com.applovin.adview.AppLovinIncentivizedInterstitial;
import com.applovin.sdk.AppLovinAd;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdRewardListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.applovin.sdk.AppLovinSdk;
/* loaded from: classes.dex */
public class AppLovinRewardedInterstitialAd {
private final AppLovinIncentivizedInterstitial a;
private AppLovinAdDisplayListener b;
private AppLovinAdClickListener c;
private AppLovinAdVideoPlaybackListener d;
public AppLovinRewardedInterstitialAd(AppLovinSdk appLovinSdk) {
this.a = new AppLovinIncentivizedInterstitial(appLovinSdk);
}
public void setAdClickListener(AppLovinAdClickListener appLovinAdClickListener) {
this.c = appLovinAdClickListener;
}
public void setAdDisplayListener(AppLovinAdDisplayListener appLovinAdDisplayListener) {
this.b = appLovinAdDisplayListener;
}
public void setAdVideoPlaybackListener(AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
this.d = appLovinAdVideoPlaybackListener;
}
public void show(AppLovinAd appLovinAd, Context context, AppLovinAdRewardListener appLovinAdRewardListener) {
this.a.show(appLovinAd, context, appLovinAdRewardListener, this.d, this.b, this.c);
}
public String toString() {
return "AppLovinRewardedInterstitialAd{}";
}
}

View File

@@ -0,0 +1,104 @@
package com.applovin.impl.adview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Point;
import android.graphics.PointF;
import android.os.SystemClock;
import android.view.MotionEvent;
import android.view.View;
import com.applovin.impl.sj;
import com.applovin.impl.z3;
import com.applovin.sdk.AppLovinSdkUtils;
/* loaded from: classes.dex */
public class AppLovinTouchToClickListener implements View.OnTouchListener {
private final long a;
private final int b;
private final int c;
private final ClickRecognitionState d;
private long e;
private PointF f;
private boolean g;
private final Context h;
private final OnClickListener i;
public enum ClickRecognitionState {
DISABLED,
ACTION_DOWN,
ACTION_POINTER_UP,
ACTION_UP
}
public interface OnClickListener {
void onClick(View view, MotionEvent motionEvent);
}
private void a(View view, MotionEvent motionEvent) {
this.i.onClick(view, motionEvent);
this.g = true;
}
@Override // android.view.View.OnTouchListener
@SuppressLint({"ClickableViewAccessibility"})
public boolean onTouch(View view, MotionEvent motionEvent) {
int i;
int actionMasked = motionEvent.getActionMasked();
if (actionMasked != 0) {
if (actionMasked != 1) {
if (actionMasked == 6 && !this.g && this.d == ClickRecognitionState.ACTION_POINTER_UP) {
a(view, motionEvent);
}
} else if (!this.g && this.d == ClickRecognitionState.ACTION_UP) {
a(view, motionEvent);
} else if (this.d == ClickRecognitionState.DISABLED) {
long elapsedRealtime = SystemClock.elapsedRealtime() - this.e;
float a = a(this.f, new PointF(motionEvent.getX(), motionEvent.getY()));
if (!this.g) {
long j = this.a;
if ((j < 0 || elapsedRealtime < j) && ((i = this.b) < 0 || a < i)) {
a(view, motionEvent);
}
}
}
} else if (this.d != ClickRecognitionState.ACTION_DOWN) {
this.e = SystemClock.elapsedRealtime();
this.f = new PointF(motionEvent.getX(), motionEvent.getY());
this.g = false;
} else if (a(motionEvent)) {
a(view, motionEvent);
}
return true;
}
private float a(PointF pointF, PointF pointF2) {
float f = pointF.x - pointF2.x;
float f2 = pointF.y - pointF2.y;
return a((float) Math.sqrt((f * f) + (f2 * f2)));
}
private float a(float f) {
return f / this.h.getResources().getDisplayMetrics().density;
}
private boolean a(MotionEvent motionEvent) {
if (this.c <= 0) {
return true;
}
Point b = z3.b(this.h);
float rawX = motionEvent.getRawX();
float rawY = motionEvent.getRawY();
int i = this.c;
float f = i;
return rawX >= f && rawY >= f && rawX <= ((float) (b.x - i)) && rawY <= ((float) (b.y - i));
}
public AppLovinTouchToClickListener(com.applovin.impl.sdk.j jVar, sj sjVar, Context context, OnClickListener onClickListener) {
this.a = ((Long) jVar.a(sj.B0)).longValue();
this.b = ((Integer) jVar.a(sj.C0)).intValue();
this.c = AppLovinSdkUtils.dpToPx(context, ((Integer) jVar.a(sj.H0)).intValue());
this.d = ClickRecognitionState.values()[((Integer) jVar.a(sjVar)).intValue()];
this.h = context;
this.i = onClickListener;
}
}

View File

@@ -0,0 +1,17 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.widget.VideoView;
/* loaded from: classes.dex */
public class AppLovinVideoView extends VideoView {
public AppLovinVideoView(Context context) {
super(context, null, 0);
}
public void setVideoSize(int i, int i2) {
getHolder().setFixedSize(i, i2);
requestLayout();
invalidate();
}
}

View File

@@ -0,0 +1,5 @@
package com.applovin.impl.adview;
/* loaded from: classes.dex */
public abstract /* synthetic */ class AppLovinWebViewBase$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,105 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.applovin.impl.z3;
import com.unity3d.ads.adplayer.AndroidWebViewClient;
/* loaded from: classes.dex */
public class AppLovinWebViewBase extends WebView {
public AppLovinWebViewBase(Context context) {
super(context);
}
public void applySettings(com.applovin.impl.sdk.ad.b bVar) {
Boolean m;
loadUrl(AndroidWebViewClient.BLANK_PAGE);
int u0 = bVar.u0();
if (u0 >= 0) {
setLayerType(u0, null);
}
if (z3.d()) {
getSettings().setMediaPlaybackRequiresUserGesture(bVar.G());
}
if (z3.e() && bVar.J0()) {
WebView.setWebContentsDebuggingEnabled(true);
}
m v0 = bVar.v0();
if (v0 != null) {
WebSettings settings = getSettings();
WebSettings.PluginState b = v0.b();
if (b != null) {
settings.setPluginState(b);
}
Boolean e = v0.e();
if (e != null) {
settings.setAllowFileAccess(e.booleanValue());
}
Boolean i = v0.i();
if (i != null) {
settings.setLoadWithOverviewMode(i.booleanValue());
}
Boolean q = v0.q();
if (q != null) {
settings.setUseWideViewPort(q.booleanValue());
}
Boolean d = v0.d();
if (d != null) {
settings.setAllowContentAccess(d.booleanValue());
}
Boolean p = v0.p();
if (p != null) {
settings.setBuiltInZoomControls(p.booleanValue());
}
Boolean h = v0.h();
if (h != null) {
settings.setDisplayZoomControls(h.booleanValue());
}
Boolean l = v0.l();
if (l != null) {
settings.setSaveFormData(l.booleanValue());
}
Boolean c = v0.c();
if (c != null) {
settings.setGeolocationEnabled(c.booleanValue());
}
Boolean j = v0.j();
if (j != null) {
settings.setNeedInitialFocus(j.booleanValue());
}
Boolean f = v0.f();
if (f != null) {
settings.setAllowFileAccessFromFileURLs(f.booleanValue());
}
Boolean g = v0.g();
if (g != null) {
settings.setAllowUniversalAccessFromFileURLs(g.booleanValue());
}
Boolean o = v0.o();
if (o != null) {
settings.setLoadsImagesAutomatically(o.booleanValue());
}
Boolean n = v0.n();
if (n != null) {
settings.setBlockNetworkImage(n.booleanValue());
}
if (z3.f()) {
Integer a = v0.a();
if (a != null) {
settings.setMixedContentMode(a.intValue());
}
if (z3.g()) {
Boolean k = v0.k();
if (k != null) {
settings.setOffscreenPreRaster(k.booleanValue());
}
if (!z3.l() || (m = v0.m()) == null) {
return;
}
settings.setAlgorithmicDarkeningAllowed(m.booleanValue());
}
}
}
}
}

View File

@@ -0,0 +1,969 @@
package com.applovin.impl.adview;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.RelativeLayout;
import androidx.browser.customtabs.CustomTabsSession;
import com.applovin.adview.AppLovinAdView;
import com.applovin.adview.AppLovinAdViewDisplayErrorCode;
import com.applovin.adview.AppLovinAdViewEventListener;
import com.applovin.adview.AppLovinFullscreenActivity;
import com.applovin.communicator.AppLovinCommunicator;
import com.applovin.communicator.AppLovinCommunicatorMessage;
import com.applovin.communicator.AppLovinCommunicatorSubscriber;
import com.applovin.impl.adview.k;
import com.applovin.impl.ca;
import com.applovin.impl.e0;
import com.applovin.impl.ea;
import com.applovin.impl.g0;
import com.applovin.impl.gc;
import com.applovin.impl.jn;
import com.applovin.impl.la;
import com.applovin.impl.mg;
import com.applovin.impl.og;
import com.applovin.impl.pi;
import com.applovin.impl.qb;
import com.applovin.impl.qc;
import com.applovin.impl.sdk.AppLovinAdServiceImpl;
import com.applovin.impl.sdk.ad.b;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sj;
import com.applovin.impl.t6;
import com.applovin.impl.tm;
import com.applovin.impl.tr;
import com.applovin.impl.vb;
import com.applovin.impl.yp;
import com.applovin.impl.zq;
import com.applovin.sdk.AppLovinAd;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdLoadListener;
import com.applovin.sdk.AppLovinAdSize;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkUtils;
import com.iab.omid.library.applovin.adsession.FriendlyObstructionPurpose;
import com.tapjoy.TJAdUnitConstants;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
/* loaded from: classes.dex */
public class a implements AppLovinCommunicatorSubscriber {
private static final AtomicReference H = new AtomicReference();
private volatile AppLovinAdLoadListener C;
private volatile AppLovinAdDisplayListener D;
private volatile AppLovinAdViewEventListener E;
private volatile AppLovinAdClickListener F;
private Context a;
private ViewGroup b;
private com.applovin.impl.sdk.j c;
private AppLovinAdServiceImpl d;
private com.applovin.impl.sdk.n f;
private AppLovinCommunicator g;
private b h;
private AppLovinAdSize j;
private String k;
private CustomTabsSession l;
private com.applovin.impl.adview.c m;
private e n;
private com.applovin.impl.adview.b o;
private WebView p;
private k q;
private Runnable r;
private Runnable s;
private final Map i = Collections.synchronizedMap(new HashMap());
private volatile com.applovin.impl.sdk.ad.b t = null;
private volatile AppLovinAd u = null;
private f v = null;
private f w = null;
private final AtomicReference x = new AtomicReference();
private final AtomicBoolean y = new AtomicBoolean();
private volatile boolean z = false;
private volatile boolean A = false;
private volatile boolean B = false;
private volatile g0 G = null;
public interface b {
void a(a aVar);
}
public class c implements Runnable {
private c() {
}
@Override // java.lang.Runnable
public void run() {
if (a.this.o != null) {
a.this.o.setVisibility(8);
}
}
}
public class d implements Runnable {
/* renamed from: com.applovin.impl.adview.a$d$a, reason: collision with other inner class name */
public class C0015a implements k.a {
public C0015a() {
}
@Override // com.applovin.impl.adview.k.a
public void a() {
a.this.o.addView(a.this.q, new ViewGroup.LayoutParams(-1, -1));
}
@Override // com.applovin.impl.adview.k.a
public void onFailure() {
com.applovin.impl.sdk.n unused = a.this.f;
if (com.applovin.impl.sdk.n.a()) {
a.this.f.b("AppLovinAdView", "Watermark failed to render.");
}
}
}
private d() {
}
@Override // java.lang.Runnable
public void run() {
if (a.this.t != null) {
if (a.this.o == null) {
com.applovin.impl.sdk.n.h("AppLovinAdView", "Unable to render advertisement for ad #" + a.this.t.getAdIdNumber() + ". Please make sure you are not calling AppLovinAdView.destroy() prematurely.");
gc.a(a.this.E, a.this.t, (AppLovinAdView) null, AppLovinAdViewDisplayErrorCode.WEBVIEW_NOT_FOUND);
return;
}
a.this.w();
com.applovin.impl.sdk.n unused = a.this.f;
if (com.applovin.impl.sdk.n.a()) {
a.this.f.a("AppLovinAdView", "Rendering advertisement ad for #" + a.this.t.getAdIdNumber() + "...");
}
a.b(a.this.o, a.this.t.getSize());
if (a.this.q != null) {
zq.c(a.this.q);
a.this.q = null;
}
ea eaVar = new ea(a.this.i, a.this.c);
if (eaVar.c()) {
a.this.q = new k(eaVar, a.this.a);
a.this.q.a(new C0015a());
}
a.this.o.setAdHtmlLoaded(false);
a.this.o.a(a.this.t);
if (a.this.t.getSize() == AppLovinAdSize.INTERSTITIAL || a.this.A) {
return;
}
a.this.t.setHasShown(true);
}
}
}
public static class e implements AppLovinAdLoadListener {
private final a a;
public e(a aVar, com.applovin.impl.sdk.j jVar) {
if (aVar == null) {
throw new IllegalArgumentException("No view specified");
}
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified");
}
this.a = aVar;
}
private a a() {
return this.a;
}
@Override // com.applovin.sdk.AppLovinAdLoadListener
public void adReceived(AppLovinAd appLovinAd) {
a a = a();
if (a != null) {
a.b(appLovinAd);
} else {
com.applovin.impl.sdk.n.h("AppLovinAdView", "Ad view has been garbage collected by the time an ad was received");
}
}
@Override // com.applovin.sdk.AppLovinAdLoadListener
public void failedToReceiveAd(int i) {
a a = a();
if (a != null) {
a.b(i);
}
}
}
private void G() {
com.applovin.impl.adview.b bVar;
if (this.f != null && com.applovin.impl.sdk.n.a() && com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "Destroying...");
}
if (!((Boolean) this.c.a(sj.I1)).booleanValue() || (bVar = this.o) == null) {
tr.d(this.o);
} else {
tr.a(bVar);
f().a(this.o, new vb.b() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda1
@Override // com.applovin.impl.vb.b
public final void a(Object obj) {
tr.d((b) obj);
}
});
}
this.o = null;
tr.d(this.p);
this.p = null;
this.l = null;
this.C = null;
this.D = null;
this.F = null;
this.E = null;
this.A = true;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ com.applovin.impl.adview.b o() {
return new com.applovin.impl.adview.b(this.c, this.a.getApplicationContext());
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void p() {
this.o.loadDataWithBaseURL("/", "<html></html>", "text/html", null, "");
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void q() {
com.applovin.impl.adview.b bVar;
d();
if (this.b == null || (bVar = this.o) == null || bVar.getParent() != null) {
return;
}
this.b.addView(this.o);
b(this.o, this.t.getSize());
if (this.t.isOpenMeasurementEnabled()) {
this.t.getAdEventTracker().a((View) this.o);
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void u() {
g().loadUrl("chrome://crash");
}
private void y() {
if (this.t.V0()) {
int a = this.c.n().a();
if (com.applovin.impl.sdk.f.a(a)) {
this.o.a("javascript:al_muteSwitchOn();");
} else if (a == 2) {
this.o.a("javascript:al_muteSwitchOff();");
}
}
}
public void A() {
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "AdView fully watched...");
}
b bVar = this.h;
if (bVar != null) {
bVar.a(this);
}
}
public void B() {
if (e0.a(this.o)) {
this.c.D().c(ca.r);
}
}
public void D() {
this.B = true;
}
public void E() {
this.B = false;
}
public void F() {
if (!this.z || this.A) {
return;
}
this.A = true;
}
public void a(AppLovinAdViewEventListener appLovinAdViewEventListener) {
this.E = appLovinAdViewEventListener;
}
public void a(b bVar) {
this.h = bVar;
}
public void a(g0 g0Var) {
this.G = g0Var;
}
public void a(AppLovinAdClickListener appLovinAdClickListener) {
this.F = appLovinAdClickListener;
}
public void a(AppLovinAdDisplayListener appLovinAdDisplayListener) {
this.D = appLovinAdDisplayListener;
}
public void a(AppLovinAdLoadListener appLovinAdLoadListener) {
this.C = appLovinAdLoadListener;
}
public AppLovinAdViewEventListener e() {
return this.E;
}
public com.applovin.impl.adview.b g() {
return this.o;
}
@Override // com.applovin.communicator.AppLovinCommunicatorEntity
public String getCommunicatorId() {
return a.class.getSimpleName();
}
public g0 h() {
return this.G;
}
public com.applovin.impl.sdk.ad.b i() {
return this.t;
}
public CustomTabsSession j() {
return this.l;
}
public AppLovinAdView k() {
return (AppLovinAdView) this.b;
}
public com.applovin.impl.sdk.j l() {
return this.c;
}
public AppLovinAdSize m() {
return this.j;
}
public String n() {
return this.k;
}
@Override // com.applovin.communicator.AppLovinCommunicatorSubscriber
public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
if ("crash_applovin_ad_webview".equals(appLovinCommunicatorMessage.getTopic())) {
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda8
@Override // java.lang.Runnable
public final void run() {
a.this.u();
}
});
}
}
public void x() {
if ((this.a instanceof t6) && this.t != null && this.t.R() == b.EnumC0038b.DISMISS) {
((t6) this.a).dismiss();
}
}
/* JADX INFO: Access modifiers changed from: private */
public static void b(View view, AppLovinAdSize appLovinAdSize) {
if (view == null) {
return;
}
DisplayMetrics displayMetrics = view.getResources().getDisplayMetrics();
String label = appLovinAdSize.getLabel();
AppLovinAdSize appLovinAdSize2 = AppLovinAdSize.INTERSTITIAL;
int applyDimension = label.equals(appLovinAdSize2.getLabel()) ? -1 : appLovinAdSize.getWidth() == -1 ? displayMetrics.widthPixels : (int) TypedValue.applyDimension(1, appLovinAdSize.getWidth(), displayMetrics);
int applyDimension2 = appLovinAdSize.getLabel().equals(appLovinAdSize2.getLabel()) ? -1 : appLovinAdSize.getHeight() == -1 ? displayMetrics.heightPixels : (int) TypedValue.applyDimension(1, appLovinAdSize.getHeight(), displayMetrics);
ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
if (layoutParams == null) {
layoutParams = new RelativeLayout.LayoutParams(-2, -2);
}
layoutParams.width = applyDimension;
layoutParams.height = applyDimension2;
if (layoutParams instanceof RelativeLayout.LayoutParams) {
((RelativeLayout.LayoutParams) layoutParams).addRule(13);
}
view.setLayoutParams(layoutParams);
}
private void c() {
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
a.this.s();
}
});
}
private void d() {
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda10
@Override // java.lang.Runnable
public final void run() {
a.this.t();
}
});
}
public static vb f() {
AtomicReference atomicReference = H;
Object obj = atomicReference.get();
if (obj == null) {
synchronized (atomicReference) {
try {
obj = atomicReference.get();
if (obj == null) {
obj = new vb.d();
atomicReference.set(obj);
}
} finally {
}
}
}
if (obj == atomicReference) {
obj = null;
}
return (vb) obj;
}
/* JADX INFO: Access modifiers changed from: private */
public void w() {
com.applovin.impl.sdk.ad.b bVar = this.t;
qc qcVar = new qc();
qcVar.a().a(bVar).a(k());
if (!yp.a(bVar.getSize())) {
qcVar.a().a("Fullscreen Ad Properties").b(bVar);
}
qcVar.a(this.c);
qcVar.a();
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", qcVar.toString());
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void r() {
if (this.o != null && this.v != null) {
a();
}
G();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void s() {
if (this.v != null) {
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "Detaching expanded ad: " + this.v.b());
}
this.w = this.v;
this.v = null;
a(this.j);
}
}
public void C() {
if (this.z) {
gc.b(this.D, this.t);
if (this.t != null && this.t.isOpenMeasurementEnabled() && yp.a(this.t.getSize())) {
this.t.getAdEventTracker().f();
}
if (this.o != null && this.v != null) {
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "onDetachedFromWindowCalled with expanded ad present");
}
c();
} else if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "onDetachedFromWindowCalled without an expanded ad present");
}
}
}
public void H() {
if (this.z) {
AppLovinAd appLovinAd = (AppLovinAd) this.x.getAndSet(null);
if (appLovinAd != null) {
c(appLovinAd);
}
this.A = false;
}
}
public void c(AppLovinAd appLovinAd) {
a(appLovinAd, (String) null);
}
public void v() {
if (this.c != null && this.n != null && this.a != null && this.z) {
this.d.loadNextAd(this.k, this.j, this.n);
} else {
com.applovin.impl.sdk.n.i("AppLovinAdView", "Unable to load next ad: AppLovinAdView is not initialized.");
}
}
public void c(WebView webView) {
a(webView, (String) null);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void t() {
com.applovin.impl.sdk.ad.a b2;
f fVar = this.w;
if (fVar == null && this.v == null) {
return;
}
if (fVar != null) {
b2 = fVar.b();
this.w.dismiss();
this.w = null;
} else {
b2 = this.v.b();
this.v.dismiss();
this.v = null;
}
gc.a(this.E, b2, (AppLovinAdView) this.b);
}
public void z() {
if (this.v == null && this.w == null) {
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "Ad: " + this.t + " closed.");
}
a(this.s);
gc.b(this.D, this.t);
this.t = null;
return;
}
a();
}
public void b() {
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda7
@Override // java.lang.Runnable
public final void run() {
a.this.r();
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(WebView webView) {
this.t.getAdEventTracker().c(webView);
k kVar = this.q;
if (kVar != null && kVar.a()) {
mg adEventTracker = this.t.getAdEventTracker();
k kVar2 = this.q;
adEventTracker.b(webView, Collections.singletonList(new og(kVar2, FriendlyObstructionPurpose.NOT_VISIBLE, kVar2.getIdentifier())));
} else {
this.t.getAdEventTracker().a((View) webView);
}
this.t.getAdEventTracker().h();
this.t.getAdEventTracker().g();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(MotionEvent motionEvent) {
if (this.v == null && (this.t instanceof com.applovin.impl.sdk.ad.a) && this.o != null) {
com.applovin.impl.sdk.ad.a aVar = (com.applovin.impl.sdk.ad.a) this.t;
Context context = this.a;
Activity a = context instanceof Activity ? (Activity) context : zq.a(this.o, this.c);
if (a != null && !a.isFinishing()) {
ViewGroup viewGroup = this.b;
if (viewGroup != null) {
viewGroup.removeView(this.o);
}
f fVar = new f(aVar, this.o, a, this.c);
this.v = fVar;
fVar.setOnDismissListener(new DialogInterface.OnDismissListener() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda4
@Override // android.content.DialogInterface.OnDismissListener
public final void onDismiss(DialogInterface dialogInterface) {
a.this.a(dialogInterface);
}
});
this.v.show();
gc.c(this.E, this.t, (AppLovinAdView) this.b);
if (this.t.isOpenMeasurementEnabled()) {
this.t.getAdEventTracker().a((View) this.v.c());
return;
}
return;
}
com.applovin.impl.sdk.n.h("AppLovinAdView", "Unable to expand ad. No Activity found.");
Uri i = aVar.i();
if (i != null) {
this.d.trackAndLaunchClick(aVar, k(), this, i, motionEvent, this.B, null);
}
this.o.a("javascript:al_onFailedExpand();");
}
}
public void b(final AppLovinAd appLovinAd) {
if (appLovinAd != null) {
if (!this.A) {
c(appLovinAd);
} else {
this.x.set(appLovinAd);
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "Ad view has paused when an ad was received, ad saved for later");
}
}
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda3
@Override // java.lang.Runnable
public final void run() {
a.this.a(appLovinAd);
}
});
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.f.b("AppLovinAdView", "No provided when to the view controller");
}
b(-1);
}
/* JADX INFO: Access modifiers changed from: private */
public void b(final int i) {
if (!this.A) {
a(this.s);
}
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda9
@Override // java.lang.Runnable
public final void run() {
a.this.a(i);
}
});
}
public void b(Uri uri) {
if (this.t != null && this.t.D0() && this.p == null) {
String queryParameter = uri.getQueryParameter("tracking_id");
if (TextUtils.isEmpty(queryParameter)) {
this.c.J();
if (com.applovin.impl.sdk.n.a()) {
this.c.J().b("AppLovinAdView", "Invalid tracking id. Cannot initialize GA");
return;
}
return;
}
WebView webView = new WebView(this.a);
this.p = webView;
webView.setWebViewClient(new pi());
this.p.getSettings().setJavaScriptEnabled(true);
this.p.loadDataWithBaseURL((String) this.c.a(sj.M6), "<html><head><link rel=\"icon\" href=\"data:,\"><G-SCRIPT_TAG></head><body></body></html>".replace("<G-SCRIPT_TAG>", "<script src='https://www.googletagmanager.com/gtag/js?id=<G-TRACKING_ID>'></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '<G-TRACKING_ID>')</script>".replace("<G-TRACKING_ID>", queryParameter)), "text/html", "UTF-8", null);
}
}
private void a(AppLovinAdView appLovinAdView, com.applovin.impl.sdk.j jVar, AppLovinAdSize appLovinAdSize, String str, Context context) {
if (appLovinAdView == null) {
throw new IllegalArgumentException("No parent view specified");
}
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified");
}
if (appLovinAdSize != null) {
this.c = jVar;
this.d = jVar.i();
this.f = jVar.J();
this.g = AppLovinCommunicator.getInstance(context);
this.j = appLovinAdSize;
this.k = str;
if (!(context instanceof AppLovinFullscreenActivity)) {
context = context.getApplicationContext();
}
this.a = context;
this.b = appLovinAdView;
this.m = new com.applovin.impl.adview.c(this, jVar);
this.s = new c();
this.r = new d();
this.n = new e(this, jVar);
a(appLovinAdSize);
return;
}
throw new IllegalArgumentException("No ad size specified");
}
public void a(AppLovinAdSize appLovinAdSize) {
try {
if (((Boolean) this.c.a(sj.I1)).booleanValue()) {
this.o = (com.applovin.impl.adview.b) f().a(new vb.a() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda12
@Override // com.applovin.impl.vb.a
public final Object a() {
b o;
o = a.this.o();
return o;
}
});
} else {
this.o = new com.applovin.impl.adview.b(this.c, this.a);
}
this.o.a(this.m);
this.o.setBackgroundColor(0);
this.o.setWillNotCacheDrawing(false);
this.b.setBackgroundColor(0);
this.b.addView(this.o);
b(this.o, appLovinAdSize);
if (!this.z) {
a(this.s);
}
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda13
@Override // java.lang.Runnable
public final void run() {
a.this.p();
}
});
this.z = true;
} catch (Throwable th) {
com.applovin.impl.sdk.n.c("AppLovinAdView", "Failed to initialize AdWebView", th);
this.c.E().a("AppLovinAdView", "initAdWebView", th);
this.y.set(true);
}
}
public void a(AppLovinAdView appLovinAdView, Context context, AppLovinAdSize appLovinAdSize, String str, AppLovinSdk appLovinSdk, AttributeSet attributeSet) {
if (appLovinAdView == null) {
throw new IllegalArgumentException("No parent view specified");
}
if (context == null) {
com.applovin.impl.sdk.n.h("AppLovinAdView", "Unable to build AppLovinAdView: no context provided. Please use a different constructor for this view.");
return;
}
if (appLovinAdSize == null && (appLovinAdSize = e0.a(attributeSet)) == null) {
appLovinAdSize = AppLovinAdSize.BANNER;
}
AppLovinAdSize appLovinAdSize2 = appLovinAdSize;
if (appLovinSdk == null) {
appLovinSdk = AppLovinSdk.getInstance(context);
}
if (appLovinSdk != null) {
a(appLovinAdView, appLovinSdk.a(), appLovinAdSize2, str, context);
if (e0.b(attributeSet)) {
v();
}
}
}
public void a(String str, Object obj) {
this.i.put(str, obj);
}
public void a(AppLovinAd appLovinAd, String str) {
if (appLovinAd != null) {
yp.b(appLovinAd, this.c);
if (this.z) {
com.applovin.impl.sdk.ad.b bVar = (com.applovin.impl.sdk.ad.b) yp.a(appLovinAd, this.c);
if (bVar == null) {
com.applovin.impl.sdk.n.h("AppLovinAdView", "Unable to retrieve the loaded ad: " + appLovinAd);
gc.a(this.D, "Unable to retrieve the loaded ad");
return;
}
if (bVar == this.t) {
com.applovin.impl.sdk.n.h("AppLovinAdView", "Attempting to show ad again: " + bVar);
if (((Boolean) this.c.a(sj.a2)).booleanValue()) {
if (this.D instanceof qb) {
gc.a(this.D, "Attempting to show ad again");
return;
}
throw new IllegalStateException("Attempting to show ad again");
}
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.f.a("AppLovinAdView", "Rendering ad #" + bVar.getAdIdNumber() + " (" + bVar.getSize() + ")");
}
gc.b(this.D, this.t);
if (this.t != null && this.t.isOpenMeasurementEnabled()) {
this.t.getAdEventTracker().f();
}
this.x.set(null);
this.u = null;
this.t = bVar;
if (this.t.B0()) {
this.l = this.c.x().a(this);
this.c.x().b(this.t.z(), this.l);
}
if (!this.A && yp.a(this.j)) {
this.c.i().trackImpression(bVar);
}
if (this.v != null) {
c();
}
a(this.r);
return;
}
com.applovin.impl.sdk.n.i("AppLovinAdView", "Unable to render ad: AppLovinAdView is not initialized.");
return;
}
throw new IllegalArgumentException("No ad specified");
}
public void a(final WebView webView, String str) {
if (this.t == null) {
return;
}
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda5
@Override // java.lang.Runnable
public final void run() {
webView.setVisibility(0);
}
});
if (!((Boolean) this.c.a(sj.q6)).booleanValue() || (str != null && str.startsWith(this.t.g()))) {
try {
if (this.t != this.u) {
this.u = this.t;
y();
this.o.setAdHtmlLoaded(true);
if (this.D != null) {
this.c.w().d(this.t);
this.c.E().a(la.k, this.t);
gc.a(this.D, this.t);
this.o.a("javascript:al_onAdViewRendered();");
}
if ((this.t instanceof com.applovin.impl.sdk.ad.a) && this.t.isOpenMeasurementEnabled()) {
this.c.j0().a(new jn(this.c, "StartOMSDK", new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda6
@Override // java.lang.Runnable
public final void run() {
a.this.b(webView);
}
}), tm.b.OTHER, 500L);
}
}
} catch (Throwable th) {
com.applovin.impl.sdk.n.c("AppLovinAdView", "Exception while notifying ad display listener", th);
com.applovin.impl.sdk.j jVar = this.c;
if (jVar != null) {
jVar.E().a("AppLovinAdView", "onAdHtmlLoaded", th);
}
}
}
}
public void a(final MotionEvent motionEvent) {
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda11
@Override // java.lang.Runnable
public final void run() {
a.this.b(motionEvent);
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(DialogInterface dialogInterface) {
a();
}
public void a() {
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda2
@Override // java.lang.Runnable
public final void run() {
a.this.q();
}
});
}
public void a(com.applovin.impl.sdk.ad.b bVar, AppLovinAdView appLovinAdView, Uri uri, MotionEvent motionEvent, Bundle bundle) {
if (appLovinAdView != null) {
this.d.trackAndLaunchClick(bVar, appLovinAdView, this, uri, motionEvent, this.B, bundle);
} else if (com.applovin.impl.sdk.n.a()) {
this.f.b("AppLovinAdView", "Unable to process ad click - AppLovinAdView destroyed prematurely");
}
gc.a(this.F, bVar);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(AppLovinAd appLovinAd) {
if (this.y.compareAndSet(true, false)) {
a(this.j);
}
try {
if (this.C != null) {
this.C.adReceived(appLovinAd);
}
} catch (Throwable th) {
com.applovin.impl.sdk.n.h("AppLovinAdView", "Exception while running ad load callback: " + th.getMessage());
com.applovin.impl.sdk.j jVar = this.c;
if (jVar != null) {
jVar.E().a("AppLovinAdView", "notifyAdLoaded", th);
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(int i) {
try {
if (this.C != null) {
this.C.failedToReceiveAd(i);
}
} catch (Throwable th) {
com.applovin.impl.sdk.n.c("AppLovinAdView", "Exception while running app load callback", th);
com.applovin.impl.sdk.j jVar = this.c;
if (jVar != null) {
jVar.E().a("AppLovinAdView", "notifyAdLoadFailed", th);
}
}
}
private void a(Runnable runnable) {
AppLovinSdkUtils.runOnUiThread(runnable);
}
public void a(Uri uri) {
if (this.t == null || !this.t.D0()) {
return;
}
if (this.p == null) {
this.c.J();
if (com.applovin.impl.sdk.n.a()) {
this.c.J().a("AppLovinAdView", "GA is not initialized. Cannot fire GA event");
return;
}
return;
}
final String queryParameter = uri.getQueryParameter(TJAdUnitConstants.PARAM_PLACEMENT_NAME);
final String queryParameter2 = uri.getQueryParameter("event_params_json");
if (TextUtils.isEmpty(queryParameter)) {
this.c.J();
if (com.applovin.impl.sdk.n.a()) {
this.c.J().a("AppLovinAdView", "Invalid GA event name. Cannot fire GA event");
return;
}
return;
}
a(new Runnable() { // from class: com.applovin.impl.adview.a$$ExternalSyntheticLambda14
@Override // java.lang.Runnable
public final void run() {
a.this.a(queryParameter2, queryParameter);
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(String str, String str2) {
String str3;
if (StringUtils.isValidString(str)) {
str3 = "gtag('event', '" + str2 + "', " + str + ");";
} else {
str3 = "gtag('event', '" + str2 + "')";
}
tr.a(this.p, str3);
}
}

View File

@@ -0,0 +1,103 @@
package com.applovin.impl.adview.activity;
import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import com.applovin.adview.AppLovinFullscreenActivity;
import com.applovin.impl.gc;
import com.applovin.impl.sdk.n;
import com.applovin.impl.tb;
import com.applovin.impl.yp;
/* loaded from: classes.dex */
public class FullscreenAdService extends Service {
public static final String DATA_KEY_RAW_FULL_AD_RESPONSE = "raw_full_ad_response";
private static final String TAG = "FullscreenAdService";
public static class b extends Handler {
private b() {
}
@Override // android.os.Handler
public void handleMessage(Message message) {
try {
tb tbVar = AppLovinFullscreenActivity.parentInterstitialWrapper;
if (tbVar == null) {
if (!yp.a(1.0d)) {
super.handleMessage(message);
return;
}
throw new RuntimeException("parentWrapper is null for " + message.what);
}
com.applovin.impl.sdk.ad.b f = tbVar.f();
int i = message.what;
c cVar = c.AD;
if (i == cVar.b()) {
Bundle bundle = new Bundle();
bundle.putString(FullscreenAdService.DATA_KEY_RAW_FULL_AD_RESPONSE, f.getRawFullResponse());
Message obtain = Message.obtain((Handler) null, cVar.b());
obtain.setData(bundle);
try {
message.replyTo.send(obtain);
return;
} catch (RemoteException e) {
n.c(FullscreenAdService.TAG, "Failed to respond to Fullscreen Activity in another process with ad", e);
return;
}
}
if (message.what == c.AD_DISPLAYED.b()) {
gc.a(tbVar.c(), f);
return;
}
if (message.what == c.AD_CLICKED.b()) {
gc.a(tbVar.b(), f);
return;
}
if (message.what == c.AD_VIDEO_STARTED.b()) {
gc.a(tbVar.d(), f);
return;
}
if (message.what == c.AD_VIDEO_ENDED.b()) {
Bundle data = message.getData();
gc.a(tbVar.d(), f, data.getDouble("percent_viewed"), data.getBoolean("fully_watched"));
return;
}
if (message.what == c.AD_HIDDEN.b()) {
gc.b(tbVar.c(), f);
} else {
super.handleMessage(message);
}
} catch (Throwable unused) {
}
}
}
public enum c {
AD(0),
AD_DISPLAYED(1),
AD_CLICKED(2),
AD_VIDEO_STARTED(3),
AD_VIDEO_ENDED(4),
AD_HIDDEN(5);
private final int a;
c(int i2) {
this.a = i2;
}
public int b() {
return this.a;
}
}
@Override // android.app.Service
public IBinder onBind(Intent intent) {
return new Messenger(new b()).getBinder();
}
}

View File

@@ -0,0 +1,236 @@
package com.applovin.impl.adview.activity;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import android.text.TextUtils;
import com.applovin.adview.AppLovinFullscreenActivity;
import com.applovin.impl.adview.activity.FullscreenAdService;
import com.applovin.impl.h0;
import com.applovin.impl.p9;
import com.applovin.impl.sdk.j;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.tb;
import com.applovin.impl.um;
import com.applovin.sdk.AppLovinAd;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdLoadListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import java.lang.ref.WeakReference;
import java.util.concurrent.atomic.AtomicBoolean;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class a implements ServiceConnection {
private final j a;
private final n b;
private final WeakReference c;
private final AtomicBoolean d = new AtomicBoolean();
private Messenger e;
public class b implements AppLovinAdDisplayListener, AppLovinAdClickListener, AppLovinAdVideoPlaybackListener {
private b() {
}
private void a(FullscreenAdService.c cVar) {
a(null, cVar);
}
@Override // com.applovin.sdk.AppLovinAdClickListener
public void adClicked(AppLovinAd appLovinAd) {
a(FullscreenAdService.c.AD_CLICKED);
}
@Override // com.applovin.sdk.AppLovinAdDisplayListener
public void adDisplayed(AppLovinAd appLovinAd) {
a(FullscreenAdService.c.AD_DISPLAYED);
}
@Override // com.applovin.sdk.AppLovinAdDisplayListener
public void adHidden(AppLovinAd appLovinAd) {
a(FullscreenAdService.c.AD_HIDDEN);
}
@Override // com.applovin.sdk.AppLovinAdVideoPlaybackListener
public void videoPlaybackBegan(AppLovinAd appLovinAd) {
a(FullscreenAdService.c.AD_VIDEO_STARTED);
}
@Override // com.applovin.sdk.AppLovinAdVideoPlaybackListener
public void videoPlaybackEnded(AppLovinAd appLovinAd, double d, boolean z) {
Bundle bundle = new Bundle();
bundle.putDouble("percent_viewed", d);
bundle.putBoolean("fully_watched", z);
a(bundle, FullscreenAdService.c.AD_VIDEO_ENDED);
}
public /* synthetic */ b(a aVar, C0016a c0016a) {
this();
}
private void a(Bundle bundle, FullscreenAdService.c cVar) {
Message obtain = Message.obtain((Handler) null, cVar.b());
if (bundle != null) {
obtain.setData(bundle);
}
try {
a.this.e.send(obtain);
} catch (RemoteException e) {
n unused = a.this.b;
if (n.a()) {
a.this.b.a("AppLovinFullscreenActivity", "Failed to forward callback (" + cVar.b() + ")", e);
}
}
}
}
public static class c extends Handler {
private final WeakReference a;
public /* synthetic */ c(a aVar, C0016a c0016a) {
this(aVar);
}
@Override // android.os.Handler
public void handleMessage(Message message) {
a aVar;
if (message.what != FullscreenAdService.c.AD.b() || (aVar = (a) this.a.get()) == null) {
super.handleMessage(message);
} else {
aVar.a(message.getData().getString(FullscreenAdService.DATA_KEY_RAW_FULL_AD_RESPONSE));
}
}
private c(a aVar) {
this.a = new WeakReference(aVar);
}
}
public a(AppLovinFullscreenActivity appLovinFullscreenActivity, j jVar) {
this.a = jVar;
this.b = jVar.J();
this.c = new WeakReference(appLovinFullscreenActivity);
}
@Override // android.content.ServiceConnection
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
if (this.d.compareAndSet(false, true)) {
if (n.a()) {
this.b.a("AppLovinFullscreenActivity", "Fullscreen ad service connected to " + componentName);
}
this.e = new Messenger(iBinder);
Message obtain = Message.obtain((Handler) null, FullscreenAdService.c.AD.b());
obtain.replyTo = new Messenger(new c(this, null));
try {
if (n.a()) {
this.b.a("AppLovinFullscreenActivity", "Requesting ad from FullscreenAdService...");
}
this.e.send(obtain);
} catch (RemoteException e) {
if (n.a()) {
this.b.a("AppLovinFullscreenActivity", "Failed to send ad request message to FullscreenAdService", e);
}
a();
}
}
}
@Override // android.content.ServiceConnection
public void onServiceDisconnected(ComponentName componentName) {
if (this.d.compareAndSet(true, false) && n.a()) {
this.b.a("AppLovinFullscreenActivity", "FullscreenAdService disconnected from " + componentName);
}
}
/* JADX INFO: Access modifiers changed from: private */
public void a() {
AppLovinFullscreenActivity appLovinFullscreenActivity = (AppLovinFullscreenActivity) this.c.get();
if (appLovinFullscreenActivity != null) {
if (n.a()) {
this.b.a("AppLovinFullscreenActivity", "Dismissing...");
}
appLovinFullscreenActivity.dismiss();
} else if (n.a()) {
this.b.b("AppLovinFullscreenActivity", "Unable to dismiss parent Activity");
}
}
/* JADX INFO: Access modifiers changed from: private */
public void a(String str) {
try {
JSONObject jSONObject = new JSONObject(str);
String string = JsonUtils.getString(jSONObject, "zone_id", "");
if (!TextUtils.isEmpty(string)) {
this.a.j0().a(new um(jSONObject, h0.a(string), true, new C0016a(), this.a));
return;
}
throw new IllegalStateException("No zone identifier found in ad response: " + jSONObject);
} catch (JSONException e) {
if (n.a()) {
this.b.a("AppLovinFullscreenActivity", "Unable to process ad: " + str, e);
}
a();
}
}
/* renamed from: com.applovin.impl.adview.activity.a$a, reason: collision with other inner class name */
public class C0016a implements AppLovinAdLoadListener {
public C0016a() {
}
@Override // com.applovin.sdk.AppLovinAdLoadListener
public void adReceived(AppLovinAd appLovinAd) {
AppLovinFullscreenActivity appLovinFullscreenActivity = (AppLovinFullscreenActivity) a.this.c.get();
if (appLovinFullscreenActivity != null) {
n unused = a.this.b;
if (n.a()) {
a.this.b.a("AppLovinFullscreenActivity", "Presenting ad...");
}
b bVar = new b(a.this, null);
p9.a((com.applovin.impl.sdk.ad.b) appLovinAd, bVar, bVar, bVar, null, a.this.a, appLovinFullscreenActivity, new C0017a(appLovinFullscreenActivity, appLovinAd, bVar));
return;
}
n unused2 = a.this.b;
if (n.a()) {
a.this.b.b("AppLovinFullscreenActivity", "Unable to present ad, parent activity has been GC'd - " + appLovinAd);
}
}
@Override // com.applovin.sdk.AppLovinAdLoadListener
public void failedToReceiveAd(int i) {
a.this.a();
}
/* renamed from: com.applovin.impl.adview.activity.a$a$a, reason: collision with other inner class name */
public class C0017a implements p9.d {
final /* synthetic */ AppLovinFullscreenActivity a;
final /* synthetic */ AppLovinAd b;
final /* synthetic */ b c;
public C0017a(AppLovinFullscreenActivity appLovinFullscreenActivity, AppLovinAd appLovinAd, b bVar) {
this.a = appLovinFullscreenActivity;
this.b = appLovinAd;
this.c = bVar;
}
@Override // com.applovin.impl.p9.d
public void a(p9 p9Var) {
this.a.setPresenter(p9Var);
p9Var.y();
}
@Override // com.applovin.impl.p9.d
public void a(String str, Throwable th) {
tb.a((com.applovin.impl.sdk.ad.b) this.b, this.c, str, th, this.a);
}
}
}
}

View File

@@ -0,0 +1,295 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.net.Uri;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.WebSettings;
import com.applovin.impl.aq;
import com.applovin.impl.dq;
import com.applovin.impl.f0;
import com.applovin.impl.iq;
import com.applovin.impl.j3;
import com.applovin.impl.pi;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sj;
import com.applovin.impl.tr;
import com.applovin.impl.yp;
import com.applovin.impl.z3;
import com.unity3d.ads.adplayer.AndroidWebViewClient;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes.dex */
public class b extends j3 {
private final com.applovin.impl.sdk.n c;
private final com.applovin.impl.sdk.j d;
private com.applovin.impl.sdk.ad.b f;
private boolean g;
private boolean h;
private final List i;
private final Object j;
public b(com.applovin.impl.sdk.j jVar, Context context) {
super(context);
this.i = new ArrayList();
this.j = new Object();
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified.");
}
this.d = jVar;
this.c = jVar.J();
setBackgroundColor(0);
WebSettings settings = getSettings();
settings.setSupportMultipleWindows(false);
settings.setJavaScriptEnabled(true);
setVerticalScrollBarEnabled(false);
setHorizontalScrollBarEnabled(false);
setScrollBarStyle(33554432);
if (z3.k() && ((Boolean) jVar.a(sj.W5)).booleanValue()) {
setWebViewRenderProcessClient(new d(jVar).a());
}
setOnTouchListener(new View.OnTouchListener() { // from class: com.applovin.impl.adview.b$$ExternalSyntheticLambda0
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view, MotionEvent motionEvent) {
boolean a;
a = b.a(view, motionEvent);
return a;
}
});
setOnLongClickListener(new View.OnLongClickListener() { // from class: com.applovin.impl.adview.b$$ExternalSyntheticLambda1
@Override // android.view.View.OnLongClickListener
public final boolean onLongClick(View view) {
boolean a;
a = b.this.a(view);
return a;
}
});
}
private void b() {
synchronized (this.j) {
try {
Iterator it = this.i.iterator();
while (it.hasNext()) {
tr.a(this, (String) it.next(), "AdWebView", this.d);
}
this.i.clear();
} catch (Throwable th) {
throw th;
}
}
}
@Override // android.webkit.WebView, android.view.View
public void computeScroll() {
}
public com.applovin.impl.sdk.ad.b getCurrentAd() {
return this.f;
}
@Override // android.webkit.WebView, android.view.View
public void onScrollChanged(int i, int i2, int i3, int i4) {
}
@Override // android.view.View
public void scrollTo(int i, int i2) {
}
@Override // android.webkit.WebView
public void destroy() {
this.g = true;
this.h = false;
super.destroy();
}
public void setAdHtmlLoaded(boolean z) {
this.h = z;
if (z && ((Boolean) this.d.a(sj.q6)).booleanValue()) {
b();
}
}
private void a(String str, String str2, String str3, com.applovin.impl.sdk.j jVar, aq aqVar) {
String a = a(str3, str);
if (StringUtils.isValidString(a)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering webview for VAST ad with resourceContents : " + a);
}
loadDataWithBaseURL(str2, a, "text/html", null, "");
return;
}
String a2 = a((String) jVar.a(sj.S4), str);
if (StringUtils.isValidString(a2)) {
if (aqVar.B1() && aqVar.isOpenMeasurementEnabled()) {
a2 = jVar.W().a(a2);
}
String str4 = a2;
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering webview for VAST ad with resourceContents : " + str4);
}
loadDataWithBaseURL(str2, str4, "text/html", null, "");
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering webview for VAST ad with resourceURL : " + str);
}
loadUrl(str);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ boolean a(View view, MotionEvent motionEvent) {
if (view.hasFocus()) {
return false;
}
view.requestFocus();
return false;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean a(View view) {
if (!com.applovin.impl.sdk.n.a()) {
return true;
}
this.c.a("AdWebView", "Received a LongClick event.");
return true;
}
public void a(c cVar) {
if (((Boolean) this.d.a(sj.H1)).booleanValue()) {
loadUrl(AndroidWebViewClient.BLANK_PAGE);
clearView();
}
setWebViewClient(cVar != null ? cVar : new pi());
setWebChromeClient(new f0(cVar != null ? cVar.c() : null, this.d));
synchronized (this.i) {
this.i.clear();
}
onResume();
}
public void a(com.applovin.impl.sdk.ad.b bVar) {
if (!this.g) {
this.f = bVar;
try {
applySettings(bVar);
if (yp.a(bVar.getSize())) {
setVisibility(0);
}
if (bVar instanceof com.applovin.impl.sdk.ad.a) {
loadDataWithBaseURL(bVar.g(), ((com.applovin.impl.sdk.ad.a) bVar).j1(), "text/html", null, "");
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "AppLovinAd rendered");
return;
}
return;
}
if (bVar instanceof aq) {
aq aqVar = (aq) bVar;
dq j1 = aqVar.j1();
if (j1 != null) {
iq d = j1.d();
Uri b = d.b();
String uri = b != null ? b.toString() : "";
String a = d.a();
String l1 = aqVar.l1();
if (!StringUtils.isValidString(uri) && !StringUtils.isValidString(a)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.b("AdWebView", "Unable to load companion ad. No resources provided.");
return;
}
return;
}
if (d.c() == iq.a.STATIC) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering WebView for static VAST ad");
}
String a2 = a((String) this.d.a(sj.R4), uri);
if (aqVar.B1() && aqVar.isOpenMeasurementEnabled() && aqVar.C1()) {
a2 = this.d.W().a(a2);
}
loadDataWithBaseURL(bVar.g(), a2, "text/html", null, "");
return;
}
if (d.c() == iq.a.HTML) {
if (StringUtils.isValidString(a)) {
String a3 = a(l1, a);
String str = StringUtils.isValidString(a3) ? a3 : a;
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering WebView for HTML VAST ad with resourceContents: " + str);
}
loadDataWithBaseURL(bVar.g(), str, "text/html", null, "");
return;
}
if (StringUtils.isValidString(uri)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Preparing to load HTML VAST ad resourceUri");
}
a(uri, bVar.g(), l1, this.d, aqVar);
return;
}
return;
}
if (d.c() == iq.a.IFRAME) {
if (StringUtils.isValidString(uri)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Preparing to load iFrame VAST ad resourceUri");
}
a(uri, bVar.g(), l1, this.d, aqVar);
return;
} else {
if (StringUtils.isValidString(a)) {
String a4 = a(l1, a);
String str2 = StringUtils.isValidString(a4) ? a4 : a;
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "Rendering WebView for iFrame VAST ad with resourceContents: " + str2);
}
loadDataWithBaseURL(bVar.g(), str2, "text/html", null, "");
return;
}
return;
}
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b("AdWebView", "Failed to render VAST companion ad of invalid type");
return;
}
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a("AdWebView", "No companion ad provided.");
return;
}
return;
}
return;
} catch (Throwable th) {
throw new RuntimeException("Unable to render AppLovin ad (" + (bVar != null ? String.valueOf(bVar.getAdIdNumber()) : "null") + ") - " + th);
}
}
com.applovin.impl.sdk.n.h("AdWebView", "Ad can not be loaded in a destroyed webview");
}
public void a(String str) {
if (!((Boolean) this.d.a(sj.q6)).booleanValue()) {
tr.a(this, str, "AdWebView", this.d);
} else {
if (this.h) {
tr.a(this, str, "AdWebView", this.d);
return;
}
synchronized (this.i) {
this.i.add(str);
}
}
}
private String a(String str, String str2) {
if (StringUtils.isValidString(str)) {
return str.replace("{SOURCE}", str2);
}
return null;
}
}

View File

@@ -0,0 +1,402 @@
package com.applovin.impl.adview;
import android.content.Intent;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Bundle;
import android.view.MotionEvent;
import android.webkit.RenderProcessGoneDetail;
import android.webkit.SslErrorHandler;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import com.applovin.adview.AppLovinAdView;
import com.applovin.impl.aq;
import com.applovin.impl.dq;
import com.applovin.impl.la;
import com.applovin.impl.ma;
import com.applovin.impl.mq;
import com.applovin.impl.pi;
import com.applovin.impl.sdk.AppLovinBroadcastManager;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sj;
import com.applovin.impl.tp;
import com.applovin.impl.yp;
import com.applovin.impl.z3;
import com.applovin.sdk.AppLovinAdSize;
import com.facebook.share.internal.ShareConstants;
import com.google.android.gms.measurement.AppMeasurement;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/* loaded from: classes.dex */
public class c extends pi {
private final com.applovin.impl.sdk.j a;
private final com.applovin.impl.sdk.n b;
private final a c;
public c(a aVar, com.applovin.impl.sdk.j jVar) {
this.a = jVar;
this.b = jVar.J();
this.c = aVar;
}
private void b() {
this.c.a();
}
public a c() {
return this.c;
}
@Override // android.webkit.WebViewClient
public void onLoadResource(WebView webView, String str) {
super.onLoadResource(webView, str);
if (com.applovin.impl.sdk.n.a()) {
this.b.d("AdWebView", "Loaded resource: " + str);
}
}
@Override // android.webkit.WebViewClient
public void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
if (com.applovin.impl.sdk.n.a()) {
this.b.d("AdWebView", "Loaded URL: " + str);
}
a aVar = this.c;
if (aVar != null) {
aVar.a(webView, str);
}
}
@Override // android.webkit.WebViewClient
public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
super.onReceivedError(webView, webResourceRequest, webResourceError);
onReceivedError(webView, webResourceError.getErrorCode(), webResourceError.getDescription().toString(), webResourceRequest.getUrl().toString());
}
@Override // android.webkit.WebViewClient
public void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
super.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
a aVar = this.c;
if (aVar != null) {
com.applovin.impl.sdk.ad.b i = aVar.i();
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Received HTTP error: " + webResourceResponse + "for url: " + webResourceRequest.getUrl() + " and ad: " + i);
}
}
if (yp.a(webResourceRequest.getUrl().toString(), this.a)) {
this.a.E().a("adWebViewReceivedHttpError", webResourceRequest.getUrl().toString(), webResourceResponse.getStatusCode());
}
}
@Override // android.webkit.WebViewClient
public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
super.onReceivedSslError(webView, sslErrorHandler, sslError);
a aVar = this.c;
if (aVar != null) {
com.applovin.impl.sdk.ad.b i = aVar.i();
String str = "Received SSL error: " + sslError;
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", str + " for ad: " + i);
}
}
}
@Override // com.applovin.impl.pi, android.webkit.WebViewClient
public boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
AppLovinBroadcastManager.sendBroadcast(new Intent("com.applovin.render_process_gone"), null);
if (this.c == null) {
return true;
}
com.applovin.impl.sdk.n.h("AdWebView", "Render process gone for ad: " + this.c.i() + ". Process did crash: " + renderProcessGoneDetail.didCrash());
com.applovin.impl.sdk.ad.b i = this.c.i();
if (i != null) {
Map a = ma.a(i);
CollectionUtils.putStringIfValid("top_main_method", "onRenderProcessGone", a);
if (z3.i()) {
a.put(ShareConstants.FEED_SOURCE_PARAM, renderProcessGoneDetail.didCrash() ? AppMeasurement.CRASH_ORIGIN : "non_crash");
}
this.a.E().a(la.U, a);
}
if (((Boolean) this.a.a(sj.S5)).booleanValue()) {
if (renderProcessGoneDetail.didCrash() && ((Boolean) this.a.a(sj.V5)).booleanValue()) {
throw new RuntimeException("Render process crashed. This is likely caused by a crash in an AppLovin ad with ID: " + (i != null ? String.valueOf(i.getAdIdNumber()) : "null"));
}
if (webView != null && webView.equals(this.c.g())) {
this.c.b();
AppLovinAdSize m = this.c.m();
if (yp.a(m)) {
this.c.a(m);
this.c.H();
}
}
}
return super.onRenderProcessGone(webView, renderProcessGoneDetail);
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
Uri url = webResourceRequest.getUrl();
if (url != null) {
return a(webView, url.toString());
}
if (!com.applovin.impl.sdk.n.a()) {
return false;
}
this.b.b("AdWebView", "No url found for request");
return false;
}
@Override // android.webkit.WebViewClient
public void onReceivedError(WebView webView, int i, String str, String str2) {
super.onReceivedError(webView, i, str, str2);
a aVar = this.c;
if (aVar != null) {
com.applovin.impl.sdk.ad.b i2 = aVar.i();
String str3 = "Received error with error code: " + i + " with description \\'" + str + "\\' for URL: " + str2;
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", str3 + " for ad: " + i2);
}
}
if (yp.a(str2, this.a)) {
this.a.E().a("adWebViewReceivedError", str2, i);
}
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
return a(webView, str);
}
private void a(aq aqVar, b bVar) {
a(aqVar, bVar, (Bundle) null);
}
private void a(aq aqVar, b bVar, Bundle bundle) {
dq j1 = aqVar.j1();
if (j1 != null) {
mq.a(j1.a(), this.c.l());
a(bVar, j1.b(), bundle);
}
}
public boolean a(WebView webView, String str) {
boolean z;
if (this.c == null) {
return true;
}
if (com.applovin.impl.sdk.n.a()) {
this.b.d("AdWebView", "Processing click on ad URL \"" + str + "\"");
}
if (str != null && (webView instanceof b)) {
Uri parse = Uri.parse(str);
b bVar = (b) webView;
String scheme = parse.getScheme();
String host = parse.getHost();
String path = parse.getPath();
com.applovin.impl.sdk.ad.b i = this.c.i();
if (i == null) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Unable to process click, ad not found!");
}
return true;
}
Iterator it = i.d0().iterator();
while (true) {
if (!it.hasNext()) {
z = true;
break;
}
String str2 = (String) it.next();
if (StringUtils.isValidString(path) && path.contains(str2)) {
z = false;
break;
}
}
boolean a = bVar.a();
boolean z2 = (!i.Y0() || a) ? z : false;
if ("applovin".equals(scheme) && "com.applovin.sdk".equals(host)) {
if ("/adservice/close_ad".equals(path)) {
String str3 = this.a.g0().getExtraParameters().get("enable_close_URL_ad_value");
if (StringUtils.isValidString(str3) && Boolean.parseBoolean(str3)) {
i.setMaxAdValue("close_url", str);
}
a();
} else if ("/adservice/expand_ad".equals(path)) {
if (i.Z0() && !a) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Skipping expand command without user interaction");
}
return true;
}
a(bVar.getLastClickEvent());
} else if ("/adservice/contract_ad".equals(path)) {
b();
} else {
if ("/adservice/no_op".equals(path)) {
return true;
}
if ("/adservice/load_url".equals(path)) {
if (a(a, i, parse)) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Skipping URL load command without user interaction");
}
return true;
}
tp.a(parse, this.c, this.a);
} else if ("/adservice/track_click_now".equals(path)) {
if (a(a, i, parse)) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Skipping click tracking command without user interaction");
}
return true;
}
if (i instanceof aq) {
a((aq) i, bVar);
} else {
a(bVar, Uri.parse("/adservice/track_click_now"));
}
} else if ("/adservice/deeplink".equals(path)) {
if (a(a, i, parse)) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Skipping deep link plus command without user interaction");
}
return true;
}
if (i instanceof aq) {
aq aqVar = (aq) i;
if (aqVar.A1()) {
a(aqVar, bVar);
}
}
a(bVar, parse);
} else if ("/adservice/postback".equals(path)) {
tp.a(parse, i, this.a);
} else if ("/ga_init".equals(path)) {
this.c.b(parse);
} else if ("/ga_event".equals(path)) {
this.c.a(parse);
} else if ("/playable_event".equals(path)) {
a(parse);
} else if ("/adservice/direct_download".equals(path)) {
Bundle a2 = tp.a(parse);
if (i instanceof aq) {
aq aqVar2 = (aq) i;
if (aqVar2.A1()) {
a(aqVar2, bVar, a2);
}
}
a(bVar, i.i(), a2);
} else if ("/template_error".equals(path)) {
tp.b(parse, i, this.a);
} else if (this.c.h() != null) {
if ("/video_began".equals(path)) {
this.c.h().b(yp.a(parse.getQueryParameter(IronSourceConstants.EVENTS_DURATION), 0.0d));
} else if ("/video_completed".equals(path)) {
this.c.h().e();
} else if ("/video_progress".equals(path)) {
this.c.h().a(yp.a(parse.getQueryParameter("percent_viewed"), 0.0d));
} else if ("/video_waiting".equals(path)) {
this.c.h().a();
} else if ("/video_resumed".equals(path)) {
this.c.h().d();
}
} else if ("/adservice/fully_watched".equals(path)) {
this.c.A();
} else {
if (com.applovin.impl.sdk.n.a()) {
this.b.k("AdWebView", "Unknown URL: " + str);
}
if (com.applovin.impl.sdk.n.a()) {
this.b.k("AdWebView", "Path: " + path);
}
}
}
} else if (z2) {
List x0 = i.x0();
List w0 = i.w0();
if ((!x0.isEmpty() && !x0.contains(scheme)) || (!w0.isEmpty() && !w0.contains(host))) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "URL is not whitelisted - bypassing click");
}
} else {
if (i instanceof aq) {
aq aqVar3 = (aq) i;
if (aqVar3.A1()) {
a(aqVar3, bVar);
if (!a && i.f1()) {
this.a.E().a(la.E, a(i, parse));
}
}
}
a(bVar, parse);
if (!a) {
this.a.E().a(la.E, a(i, parse));
}
}
}
}
return true;
}
private boolean a(boolean z, com.applovin.impl.sdk.ad.b bVar, Uri uri) {
if (z) {
return false;
}
if (bVar.Z0()) {
return true;
}
if (bVar.f1()) {
this.a.E().a(la.E, a(bVar, uri));
}
return false;
}
private static Map a(com.applovin.impl.sdk.ad.b bVar, Uri uri) {
Map a = ma.a(bVar);
CollectionUtils.putStringIfValid("url", uri.toString(), a);
return a;
}
private void a() {
this.c.z();
}
private void a(MotionEvent motionEvent) {
this.c.a(motionEvent);
}
private void a(b bVar, Uri uri) {
a(bVar, uri, (Bundle) null);
}
private void a(b bVar, Uri uri, Bundle bundle) {
com.applovin.impl.sdk.ad.b currentAd = bVar.getCurrentAd();
AppLovinAdView k = this.c.k();
if (k != null && currentAd != null) {
if (currentAd instanceof aq) {
((aq) currentAd).getAdEventTracker().v();
}
this.c.a(currentAd, k, uri, bVar.getAndClearLastClickEvent(), bundle);
} else if (com.applovin.impl.sdk.n.a()) {
this.b.b("AdWebView", "Attempting to track click that is null or not an ApplovinAdView instance for clickedUri = " + uri);
}
}
private void a(Uri uri) {
String str;
boolean booleanQueryParameter = uri.getBooleanQueryParameter("success", false);
String queryParameter = uri.getQueryParameter("type");
if (booleanQueryParameter) {
str = "Tracked event: " + queryParameter;
} else {
str = "Failed to track event: " + queryParameter;
}
yp.a(str, com.applovin.impl.sdk.j.l());
}
}

View File

@@ -0,0 +1,37 @@
package com.applovin.impl.adview;
import android.webkit.WebView;
import android.webkit.WebViewRenderProcess;
import android.webkit.WebViewRenderProcessClient;
/* loaded from: classes.dex */
class d {
private final com.applovin.impl.sdk.j a;
private final WebViewRenderProcessClient b = new a();
public class a extends WebViewRenderProcessClient {
public a() {
}
public void onRenderProcessResponsive(WebView webView, WebViewRenderProcess webViewRenderProcess) {
}
public void onRenderProcessUnresponsive(WebView webView, WebViewRenderProcess webViewRenderProcess) {
if (webView instanceof b) {
com.applovin.impl.sdk.ad.b currentAd = ((b) webView).getCurrentAd();
d.this.a.J();
if (com.applovin.impl.sdk.n.a()) {
d.this.a.J().b("AdWebViewRenderProcessClient", "WebView render process unresponsive for ad: " + currentAd);
}
}
}
}
public d(com.applovin.impl.sdk.j jVar) {
this.a = jVar;
}
public WebViewRenderProcessClient a() {
return this.b;
}
}

View File

@@ -0,0 +1,66 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
/* loaded from: classes.dex */
public abstract class e extends View {
protected float a;
protected final Context b;
public enum a {
WHITE_ON_BLACK(0),
WHITE_ON_TRANSPARENT(1),
INVISIBLE(2),
TRANSPARENT_SKIP(3);
private final int a;
a(int i) {
this.a = i;
}
public int b() {
return this.a;
}
}
public e(Context context) {
super(context);
this.a = 1.0f;
this.b = context;
}
public void a(int i) {
setViewScale(i / 30.0f);
ViewGroup.LayoutParams layoutParams = getLayoutParams();
if (layoutParams != null) {
layoutParams.width = (int) getSize();
layoutParams.height = (int) getSize();
}
}
public float getSize() {
return this.a * 30.0f;
}
public abstract a getStyle();
public void setViewScale(float f) {
this.a = f;
}
public static e a(a aVar, Context context) {
if (aVar.equals(a.INVISIBLE)) {
return new h(context);
}
if (aVar.equals(a.WHITE_ON_TRANSPARENT)) {
return new i(context);
}
if (aVar.equals(a.TRANSPARENT_SKIP)) {
return new j(context);
}
return new n(context);
}
}

View File

@@ -0,0 +1,235 @@
package com.applovin.impl.adview;
import android.R;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.RelativeLayout;
import com.applovin.impl.adview.e;
import com.applovin.impl.sj;
import com.applovin.impl.t6;
import com.applovin.sdk.AppLovinSdkUtils;
/* loaded from: classes.dex */
class f extends Dialog implements t6 {
private final Activity a;
private final com.applovin.impl.sdk.j b;
private final com.applovin.impl.sdk.n c;
private final b d;
private final com.applovin.impl.sdk.ad.a f;
private RelativeLayout g;
private e h;
public class a implements Animation.AnimationListener {
public a() {
}
@Override // android.view.animation.Animation.AnimationListener
public void onAnimationEnd(Animation animation) {
f.this.h.setClickable(true);
}
@Override // android.view.animation.Animation.AnimationListener
public void onAnimationRepeat(Animation animation) {
}
@Override // android.view.animation.Animation.AnimationListener
public void onAnimationStart(Animation animation) {
}
}
public f(com.applovin.impl.sdk.ad.a aVar, b bVar, Activity activity, com.applovin.impl.sdk.j jVar) {
super(activity, R.style.Theme.Translucent.NoTitleBar);
if (aVar == null) {
throw new IllegalArgumentException("No ad specified");
}
if (bVar == null) {
throw new IllegalArgumentException("No main view specified");
}
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified");
}
if (activity == null) {
throw new IllegalArgumentException("No activity specified");
}
this.b = jVar;
this.c = jVar.J();
this.a = activity;
this.d = bVar;
this.f = aVar;
requestWindowFeature(1);
setCancelable(false);
}
private void d() {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
layoutParams.addRule(13);
this.d.setLayoutParams(layoutParams);
RelativeLayout relativeLayout = new RelativeLayout(this.a);
this.g = relativeLayout;
relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
this.g.setBackgroundColor(-1157627904);
this.g.addView(this.d);
if (!this.f.p1()) {
a(this.f.i1());
g();
}
setContentView(this.g);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e() {
this.g.removeView(this.d);
super.dismiss();
}
private void g() {
this.a.runOnUiThread(new Runnable() { // from class: com.applovin.impl.adview.f$$ExternalSyntheticLambda2
@Override // java.lang.Runnable
public final void run() {
f.this.f();
}
});
}
public com.applovin.impl.sdk.ad.a b() {
return this.f;
}
public b c() {
return this.d;
}
@Override // android.app.Dialog, android.content.DialogInterface, com.applovin.impl.t6
public void dismiss() {
this.a.runOnUiThread(new Runnable() { // from class: com.applovin.impl.adview.f$$ExternalSyntheticLambda3
@Override // java.lang.Runnable
public final void run() {
f.this.e();
}
});
}
@Override // android.app.Dialog
public void onBackPressed() {
this.d.a("javascript:al_onBackPressed();");
dismiss();
}
@Override // android.app.Dialog
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
d();
}
@Override // android.app.Dialog
public void onStart() {
super.onStart();
try {
Window window = getWindow();
if (window != null) {
window.setFlags(this.a.getWindow().getAttributes().flags, this.a.getWindow().getAttributes().flags);
window.addFlags(16777216);
} else if (com.applovin.impl.sdk.n.a()) {
this.c.b("ExpandedAdDialog", "Unable to turn on hardware acceleration - window is null");
}
} catch (Throwable th) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("ExpandedAdDialog", "Setting window flags failed.", th);
}
}
}
private void a() {
this.d.a("javascript:al_onCloseTapped();");
dismiss();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(View view) {
if (this.h.isClickable()) {
this.h.performClick();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void f() {
try {
if (this.h == null) {
a();
}
this.h.setVisibility(0);
this.h.bringToFront();
AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
alphaAnimation.setDuration(300L);
alphaAnimation.setAnimationListener(new a());
this.h.startAnimation(alphaAnimation);
} catch (Throwable th) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a("ExpandedAdDialog", "Unable to fade in close button", th);
}
a();
}
}
private void a(e.a aVar) {
if (this.h != null) {
if (com.applovin.impl.sdk.n.a()) {
this.c.k("ExpandedAdDialog", "Attempting to create duplicate close button");
return;
}
return;
}
e a2 = e.a(aVar, this.a);
this.h = a2;
a2.setVisibility(8);
this.h.setOnClickListener(new View.OnClickListener() { // from class: com.applovin.impl.adview.f$$ExternalSyntheticLambda0
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
f.this.a(view);
}
});
this.h.setClickable(false);
int a3 = a(((Integer) this.b.a(sj.V1)).intValue());
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(a3, a3);
layoutParams.addRule(10);
com.applovin.impl.sdk.j jVar = this.b;
sj sjVar = sj.Y1;
layoutParams.addRule(((Boolean) jVar.a(sjVar)).booleanValue() ? 9 : 11);
this.h.a(a3);
int a4 = a(((Integer) this.b.a(sj.X1)).intValue());
int a5 = a(((Integer) this.b.a(sj.W1)).intValue());
layoutParams.setMargins(a5, a4, a5, 0);
this.g.addView(this.h, layoutParams);
this.h.bringToFront();
int a6 = a(((Integer) this.b.a(sj.Z1)).intValue());
View view = new View(this.a);
view.setBackgroundColor(0);
int i = a3 + a6;
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(i, i);
layoutParams2.addRule(10);
layoutParams2.addRule(((Boolean) this.b.a(sjVar)).booleanValue() ? 9 : 11);
layoutParams2.setMargins(a5 - a(5), a4 - a(5), a5 - a(5), 0);
view.setOnClickListener(new View.OnClickListener() { // from class: com.applovin.impl.adview.f$$ExternalSyntheticLambda1
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
f.this.b(view2);
}
});
this.g.addView(view, layoutParams2);
view.bringToFront();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(View view) {
a();
}
private int a(int i) {
return AppLovinSdkUtils.dpToPx(this.a, i);
}
}

View File

@@ -0,0 +1,49 @@
package com.applovin.impl.adview;
import android.app.Activity;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.applovin.impl.adview.e;
/* loaded from: classes.dex */
public class g extends FrameLayout {
private e a;
private int b;
public g(e.a aVar, Activity activity) {
super(activity);
setBackgroundColor(0);
e a = e.a(aVar, activity);
this.a = a;
addView(a);
}
public void a(e.a aVar) {
if (aVar == null || aVar == this.a.getStyle()) {
return;
}
ViewGroup.LayoutParams layoutParams = this.a.getLayoutParams();
removeView(this.a);
e a = e.a(aVar, getContext());
this.a = a;
addView(a);
this.a.setLayoutParams(layoutParams);
this.a.a(this.b);
}
public void a(int i, int i2, int i3, int i4) {
this.b = i;
int i5 = i2 + i + i3;
ViewGroup.LayoutParams layoutParams = getLayoutParams();
if (layoutParams != null) {
layoutParams.height = i5;
layoutParams.width = i5;
} else {
setLayoutParams(new FrameLayout.LayoutParams(i5, i5));
}
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(i, i, i4);
layoutParams2.setMargins(i3, i3, i3, 0);
this.a.setLayoutParams(layoutParams2);
this.a.a(i);
}
}

View File

@@ -0,0 +1,21 @@
package com.applovin.impl.adview;
import android.content.Context;
import com.applovin.impl.adview.e;
/* loaded from: classes.dex */
public final class h extends e {
public h(Context context) {
super(context);
}
@Override // com.applovin.impl.adview.e
public void a(int i) {
setViewScale(i / 30.0f);
}
@Override // com.applovin.impl.adview.e
public e.a getStyle() {
return e.a.INVISIBLE;
}
}

View File

@@ -0,0 +1,55 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.applovin.impl.adview.e;
/* loaded from: classes.dex */
public final class i extends e {
private static final Paint c = new Paint(1);
private static final Paint d = new Paint(1);
public i(Context context) {
super(context);
c.setARGB(80, 0, 0, 0);
Paint paint = d;
paint.setColor(-1);
paint.setStyle(Paint.Style.STROKE);
}
@Override // com.applovin.impl.adview.e
public void a(int i) {
setViewScale(i / 30.0f);
}
public float getCenter() {
return getSize() / 2.0f;
}
public float getCrossOffset() {
return this.a * 8.0f;
}
public float getStrokeWidth() {
return this.a * 2.0f;
}
@Override // com.applovin.impl.adview.e
public e.a getStyle() {
return e.a.WHITE_ON_TRANSPARENT;
}
@Override // android.view.View
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
float center = getCenter();
canvas.drawCircle(center, center, center, c);
float crossOffset = getCrossOffset();
float size = getSize() - crossOffset;
Paint paint = d;
paint.setStrokeWidth(getStrokeWidth());
canvas.drawLine(crossOffset, crossOffset, size, size, paint);
canvas.drawLine(crossOffset, size, size, crossOffset, paint);
}
}

View File

@@ -0,0 +1,85 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import com.applovin.impl.adview.e;
/* loaded from: classes.dex */
public final class j extends e {
private static final Paint f = new Paint(1);
private static final Paint g = new Paint(1);
private final float[] c;
private Path d;
public j(Context context) {
super(context);
this.c = new float[]{30.0f, 30.0f, 50.0f, 50.0f, 30.0f, 70.0f, 55.0f, 30.0f, 75.0f, 50.0f, 55.0f, 70.0f};
f.setARGB(80, 0, 0, 0);
Paint paint = g;
paint.setColor(-1);
paint.setStyle(Paint.Style.STROKE);
}
@Override // com.applovin.impl.adview.e
public void a(int i) {
setViewScale(i / 30.0f);
a();
}
public float getCenter() {
return getSize() / 2.0f;
}
public float getStrokeWidth() {
return this.a * 2.0f;
}
@Override // com.applovin.impl.adview.e
public e.a getStyle() {
return e.a.TRANSPARENT_SKIP;
}
@Override // android.view.View
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
float center = getCenter();
canvas.drawCircle(center, center, center, f);
Paint paint = g;
paint.setStrokeWidth(getStrokeWidth());
canvas.drawPath(this.d, paint);
}
private void a() {
int i = 0;
while (true) {
float[] fArr = this.c;
if (i < fArr.length) {
fArr[i] = fArr[i] * 0.3f * this.a;
i++;
} else {
Path path = new Path();
this.d = path;
float[] fArr2 = this.c;
path.moveTo(fArr2[0], fArr2[1]);
Path path2 = this.d;
float[] fArr3 = this.c;
path2.lineTo(fArr3[2], fArr3[3]);
Path path3 = this.d;
float[] fArr4 = this.c;
path3.lineTo(fArr4[4], fArr4[5]);
Path path4 = this.d;
float[] fArr5 = this.c;
path4.moveTo(fArr5[6], fArr5[7]);
Path path5 = this.d;
float[] fArr6 = this.c;
path5.lineTo(fArr6[8], fArr6[9]);
Path path6 = this.d;
float[] fArr7 = this.c;
path6.lineTo(fArr7[10], fArr7[11]);
return;
}
}
}
}

View File

@@ -0,0 +1,59 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import com.applovin.impl.ea;
/* loaded from: classes.dex */
public class k extends View {
private final ea a;
private boolean b;
public interface a {
void a();
void onFailure();
}
public boolean a() {
return this.b;
}
public void b() {
a(null);
}
public String getIdentifier() {
return this.a.b();
}
public void a(a aVar) {
if (this.b) {
if (aVar != null) {
aVar.a();
return;
}
return;
}
Drawable a2 = this.a.a();
if (a2 == null) {
if (aVar != null) {
aVar.onFailure();
}
} else {
setBackground(a2);
this.b = true;
if (aVar != null) {
aVar.a();
}
}
}
public k(ea eaVar, Context context) {
super(context);
this.a = eaVar;
setClickable(false);
setFocusable(false);
}
}

View File

@@ -0,0 +1,40 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.applovin.impl.j3;
import com.applovin.impl.rr;
import com.applovin.impl.z3;
/* loaded from: classes.dex */
public class l extends j3 {
private final String c;
public void a(String str) {
loadDataWithBaseURL(this.c, str, "text/html", null, "");
}
public l(String str, com.applovin.impl.sdk.ad.b bVar, rr rrVar, Context context) {
super(context);
this.c = str;
setBackgroundColor(0);
WebSettings settings = getSettings();
settings.setSupportMultipleWindows(false);
settings.setJavaScriptEnabled(true);
if (bVar.N0()) {
applySettings(bVar);
} else {
settings.setAllowFileAccess(true);
if (z3.e() && bVar.J0()) {
WebView.setWebContentsDebuggingEnabled(true);
}
}
setWebViewClient(rrVar);
setWebChromeClient(new WebChromeClient());
setVerticalScrollBarEnabled(false);
setHorizontalScrollBarEnabled(false);
setScrollBarStyle(33554432);
}
}

View File

@@ -0,0 +1,108 @@
package com.applovin.impl.adview;
import android.webkit.WebSettings;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.tapjoy.TJAdUnitConstants;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class m {
private final JSONObject a;
public m(JSONObject jSONObject) {
this.a = jSONObject;
}
public Integer a() {
String string = JsonUtils.getString(this.a, "mixed_content_mode", null);
if (StringUtils.isValidString(string)) {
if ("always_allow".equalsIgnoreCase(string)) {
return 0;
}
if ("never_allow".equalsIgnoreCase(string)) {
return 1;
}
if ("compatibility_mode".equalsIgnoreCase(string)) {
return 2;
}
}
return null;
}
public WebSettings.PluginState b() {
String string = JsonUtils.getString(this.a, "plugin_state", null);
if (StringUtils.isValidString(string)) {
if (TJAdUnitConstants.String.SPLIT_VIEW_TRIGGER_ON.equalsIgnoreCase(string)) {
return WebSettings.PluginState.ON;
}
if ("on_demand".equalsIgnoreCase(string)) {
return WebSettings.PluginState.ON_DEMAND;
}
if ("off".equalsIgnoreCase(string)) {
return WebSettings.PluginState.OFF;
}
}
return null;
}
public Boolean c() {
return JsonUtils.getBoolean(this.a, "geolocation_enabled", null);
}
public Boolean d() {
return JsonUtils.getBoolean(this.a, "allow_content_access", null);
}
public Boolean e() {
return JsonUtils.getBoolean(this.a, "allow_file_access", null);
}
public Boolean f() {
return JsonUtils.getBoolean(this.a, "allow_file_access_from_file_urls", null);
}
public Boolean g() {
return JsonUtils.getBoolean(this.a, "allow_universal_access_from_file_urls", null);
}
public Boolean h() {
return JsonUtils.getBoolean(this.a, "display_zoom_controls", null);
}
public Boolean i() {
return JsonUtils.getBoolean(this.a, "load_with_overview_mode", null);
}
public Boolean j() {
return JsonUtils.getBoolean(this.a, "need_initial_focus", null);
}
public Boolean k() {
return JsonUtils.getBoolean(this.a, "offscreen_pre_raster", null);
}
public Boolean l() {
return JsonUtils.getBoolean(this.a, "save_form_data", null);
}
public Boolean m() {
return JsonUtils.getBoolean(this.a, "algorithmic_darkening_allowed", null);
}
public Boolean n() {
return JsonUtils.getBoolean(this.a, "block_network_image", null);
}
public Boolean o() {
return JsonUtils.getBoolean(this.a, "loads_images_automatically", null);
}
public Boolean p() {
return JsonUtils.getBoolean(this.a, "use_built_in_zoom_controls", null);
}
public Boolean q() {
return JsonUtils.getBoolean(this.a, "use_wide_view_port", null);
}
}

View File

@@ -0,0 +1,62 @@
package com.applovin.impl.adview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import androidx.core.view.ViewCompat;
import com.applovin.impl.adview.e;
/* loaded from: classes.dex */
public final class n extends e {
private static final Paint c = new Paint(1);
private static final Paint d = new Paint(1);
private static final Paint f = new Paint(1);
public n(Context context) {
super(context);
c.setColor(-1);
d.setColor(ViewCompat.MEASURED_STATE_MASK);
Paint paint = f;
paint.setColor(-1);
paint.setStyle(Paint.Style.STROKE);
}
public float getCenter() {
return getSize() / 2.0f;
}
public float getCrossOffset() {
return this.a * 10.0f;
}
public float getInnerCircleOffset() {
return this.a * 2.0f;
}
public float getInnerCircleRadius() {
return getCenter() - getInnerCircleOffset();
}
public float getStrokeWidth() {
return this.a * 3.0f;
}
@Override // com.applovin.impl.adview.e
public e.a getStyle() {
return e.a.WHITE_ON_BLACK;
}
@Override // android.view.View
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
float center = getCenter();
canvas.drawCircle(center, center, center, c);
canvas.drawCircle(center, center, getInnerCircleRadius(), d);
float crossOffset = getCrossOffset();
float size = getSize() - crossOffset;
Paint paint = f;
paint.setStrokeWidth(getStrokeWidth());
canvas.drawLine(crossOffset, crossOffset, size, size, paint);
canvas.drawLine(crossOffset, size, size, crossOffset, paint);
}
}

View File

@@ -0,0 +1,555 @@
package com.applovin.impl;
import android.os.Handler;
import android.util.Pair;
import com.applovin.impl.be;
import com.applovin.impl.eb;
import com.applovin.impl.fo;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
final class ae {
private final fo.b a = new fo.b();
private final fo.d b = new fo.d();
private final r0 c;
private final Handler d;
private long e;
private int f;
private boolean g;
private xd h;
private xd i;
private xd j;
private int k;
private Object l;
private long m;
private boolean a(long j, long j2) {
return j == C.TIME_UNSET || j == j2;
}
public xd d() {
return this.j;
}
public xd e() {
return this.h;
}
public xd f() {
return this.i;
}
public ae(r0 r0Var, Handler handler) {
this.c = r0Var;
this.d = handler;
}
public boolean h() {
xd xdVar = this.j;
return xdVar == null || (!xdVar.f.i && xdVar.j() && this.j.f.e != C.TIME_UNSET && this.k < 100);
}
public xd b() {
xd xdVar = this.i;
b1.b((xdVar == null || xdVar.d() == null) ? false : true);
this.i = this.i.d();
g();
return this.i;
}
public xd a() {
xd xdVar = this.h;
if (xdVar == null) {
return null;
}
if (xdVar == this.i) {
this.i = xdVar.d();
}
this.h.l();
int i = this.k - 1;
this.k = i;
if (i == 0) {
this.j = null;
xd xdVar2 = this.h;
this.l = xdVar2.b;
this.m = xdVar2.f.a.d;
}
this.h = this.h.d();
g();
return this.h;
}
public void c() {
if (this.k == 0) {
return;
}
xd xdVar = (xd) b1.b(this.h);
this.l = xdVar.b;
this.m = xdVar.f.a.d;
while (xdVar != null) {
xdVar.l();
xdVar = xdVar.d();
}
this.h = null;
this.j = null;
this.i = null;
this.k = 0;
g();
}
private void g() {
if (this.c != null) {
final eb.a f = eb.f();
for (xd xdVar = this.h; xdVar != null; xdVar = xdVar.d()) {
f.b(xdVar.f.a);
}
xd xdVar2 = this.i;
final be.a aVar = xdVar2 == null ? null : xdVar2.f.a;
this.d.post(new Runnable() { // from class: com.applovin.impl.ae$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
ae.this.a(f, aVar);
}
});
}
}
private boolean a(zd zdVar, zd zdVar2) {
return zdVar.b == zdVar2.b && zdVar.a.equals(zdVar2.a);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x0018, code lost:
if (r1 != com.mbridge.msdk.playercommon.exoplayer2.C.TIME_UNSET) goto L8;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public com.applovin.impl.xd a(com.applovin.impl.ri[] r12, com.applovin.impl.vo r13, com.applovin.impl.n0 r14, com.applovin.impl.fe r15, com.applovin.impl.zd r16, com.applovin.impl.wo r17) {
/*
r11 = this;
r0 = r11
r8 = r16
com.applovin.impl.xd r1 = r0.j
if (r1 != 0) goto L1f
com.applovin.impl.be$a r1 = r8.a
boolean r1 = r1.a()
if (r1 == 0) goto L1c
long r1 = r8.c
r3 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
int r3 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))
if (r3 == 0) goto L1c
L1a:
r3 = r1
goto L2e
L1c:
r1 = 0
goto L1a
L1f:
long r1 = r1.f()
com.applovin.impl.xd r3 = r0.j
com.applovin.impl.zd r3 = r3.f
long r3 = r3.e
long r1 = r1 + r3
long r3 = r8.b
long r1 = r1 - r3
goto L1a
L2e:
com.applovin.impl.xd r10 = new com.applovin.impl.xd
r1 = r10
r2 = r12
r5 = r13
r6 = r14
r7 = r15
r8 = r16
r9 = r17
r1.<init>(r2, r3, r5, r6, r7, r8, r9)
com.applovin.impl.xd r1 = r0.j
if (r1 == 0) goto L44
r1.a(r10)
goto L48
L44:
r0.h = r10
r0.i = r10
L48:
r1 = 0
r0.l = r1
r0.j = r10
int r1 = r0.k
int r1 = r1 + 1
r0.k = r1
r11.g()
return r10
*/
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.ae.a(com.applovin.impl.ri[], com.applovin.impl.vo, com.applovin.impl.n0, com.applovin.impl.fe, com.applovin.impl.zd, com.applovin.impl.wo):com.applovin.impl.xd");
}
private zd a(oh ohVar) {
return a(ohVar.a, ohVar.b, ohVar.c, ohVar.s);
}
private zd a(fo foVar, xd xdVar, long j) {
long j2;
zd zdVar = xdVar.f;
long f = (xdVar.f() + zdVar.e) - j;
if (zdVar.g) {
long j3 = 0;
int a = foVar.a(foVar.a(zdVar.a.a), this.a, this.b, this.f, this.g);
if (a == -1) {
return null;
}
int i = foVar.a(a, this.a, true).c;
Object obj = this.a.b;
long j4 = zdVar.a.d;
if (foVar.a(i, this.b).p == a) {
Pair a2 = foVar.a(this.b, this.a, i, C.TIME_UNSET, Math.max(0L, f));
if (a2 == null) {
return null;
}
obj = a2.first;
long longValue = ((Long) a2.second).longValue();
xd d = xdVar.d();
if (d == null || !d.b.equals(obj)) {
j4 = this.e;
this.e = 1 + j4;
} else {
j4 = d.f.a.d;
}
j2 = longValue;
j3 = C.TIME_UNSET;
} else {
j2 = 0;
}
return a(foVar, a(foVar, obj, j2, j4, this.a), j3, j2);
}
be.a aVar = zdVar.a;
foVar.a(aVar.a, this.a);
if (aVar.a()) {
int i2 = aVar.b;
int a3 = this.a.a(i2);
if (a3 == -1) {
return null;
}
int b = this.a.b(i2, aVar.c);
if (b < a3) {
return a(foVar, aVar.a, i2, b, zdVar.c, aVar.d);
}
long j5 = zdVar.c;
if (j5 == C.TIME_UNSET) {
fo.d dVar = this.b;
fo.b bVar = this.a;
Pair a4 = foVar.a(dVar, bVar, bVar.c, C.TIME_UNSET, Math.max(0L, f));
if (a4 == null) {
return null;
}
j5 = ((Long) a4.second).longValue();
}
return a(foVar, aVar.a, Math.max(a(foVar, aVar.a, aVar.b), j5), zdVar.c, aVar.d);
}
int d2 = this.a.d(aVar.e);
if (d2 == this.a.a(aVar.e)) {
return a(foVar, aVar.a, a(foVar, aVar.a, aVar.e), zdVar.e, aVar.d);
}
return a(foVar, aVar.a, aVar.e, d2, zdVar.e, aVar.d);
}
private zd a(fo foVar, be.a aVar, long j, long j2) {
foVar.a(aVar.a, this.a);
if (aVar.a()) {
return a(foVar, aVar.a, aVar.b, aVar.c, j, aVar.d);
}
return a(foVar, aVar.a, j2, j, aVar.d);
}
private zd a(fo foVar, Object obj, int i, int i2, long j, long j2) {
be.a aVar = new be.a(obj, i, i2, j2);
long a = foVar.a(aVar.a, this.a).a(aVar.b, aVar.c);
long b = i2 == this.a.d(i) ? this.a.b() : 0L;
return new zd(aVar, (a == C.TIME_UNSET || b < a) ? b : Math.max(0L, a - 1), j, C.TIME_UNSET, a, this.a.f(aVar.b), false, false, false);
}
private zd a(fo foVar, Object obj, long j, long j2, long j3) {
long j4 = j;
foVar.a(obj, this.a);
int a = this.a.a(j4);
be.a aVar = new be.a(obj, j3, a);
boolean a2 = a(aVar);
boolean a3 = a(foVar, aVar);
boolean a4 = a(foVar, aVar, a2);
boolean z = a != -1 && this.a.f(a);
long b = a != -1 ? this.a.b(a) : -9223372036854775807L;
long j5 = (b == C.TIME_UNSET || b == Long.MIN_VALUE) ? this.a.d : b;
if (j5 != C.TIME_UNSET && j4 >= j5) {
j4 = Math.max(0L, j5 - 1);
}
return new zd(aVar, j4, j2, b, j5, z, a2, a3, a4);
}
private long a(fo foVar, Object obj, int i) {
foVar.a(obj, this.a);
long b = this.a.b(i);
if (b == Long.MIN_VALUE) {
return this.a.d;
}
return b + this.a.c(i);
}
public zd a(long j, oh ohVar) {
xd xdVar = this.j;
if (xdVar == null) {
return a(ohVar);
}
return a(ohVar.a, xdVar, j);
}
/* JADX WARN: Removed duplicated region for block: B:12:0x0062 */
/* JADX WARN: Removed duplicated region for block: B:17:0x006c */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public com.applovin.impl.zd a(com.applovin.impl.fo r19, com.applovin.impl.zd r20) {
/*
r18 = this;
r0 = r18
r1 = r19
r2 = r20
com.applovin.impl.be$a r3 = r2.a
boolean r12 = r0.a(r3)
boolean r13 = r0.a(r1, r3)
boolean r14 = r0.a(r1, r3, r12)
com.applovin.impl.be$a r4 = r2.a
java.lang.Object r4 = r4.a
com.applovin.impl.fo$b r5 = r0.a
r1.a(r4, r5)
boolean r1 = r3.a()
r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
r6 = -1
if (r1 != 0) goto L35
int r1 = r3.e
if (r1 != r6) goto L2e
goto L35
L2e:
com.applovin.impl.fo$b r7 = r0.a
long r7 = r7.b(r1)
goto L36
L35:
r7 = r4
L36:
boolean r1 = r3.a()
if (r1 == 0) goto L48
com.applovin.impl.fo$b r1 = r0.a
int r4 = r3.b
int r5 = r3.c
long r4 = r1.a(r4, r5)
L46:
r9 = r4
goto L5c
L48:
int r1 = (r7 > r4 ? 1 : (r7 == r4 ? 0 : -1))
if (r1 == 0) goto L55
r4 = -9223372036854775808
int r1 = (r7 > r4 ? 1 : (r7 == r4 ? 0 : -1))
if (r1 != 0) goto L53
goto L55
L53:
r9 = r7
goto L5c
L55:
com.applovin.impl.fo$b r1 = r0.a
long r4 = r1.c()
goto L46
L5c:
boolean r1 = r3.a()
if (r1 == 0) goto L6c
com.applovin.impl.fo$b r1 = r0.a
int r4 = r3.b
boolean r1 = r1.f(r4)
L6a:
r11 = r1
goto L7c
L6c:
int r1 = r3.e
if (r1 == r6) goto L7a
com.applovin.impl.fo$b r4 = r0.a
boolean r1 = r4.f(r1)
if (r1 == 0) goto L7a
r1 = 1
goto L6a
L7a:
r1 = 0
goto L6a
L7c:
com.applovin.impl.zd r15 = new com.applovin.impl.zd
long r4 = r2.b
long r1 = r2.c
r16 = r1
r1 = r15
r2 = r3
r3 = r4
r5 = r16
r1.<init>(r2, r3, r5, r7, r9, r11, r12, r13, r14)
return r15
*/
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.ae.a(com.applovin.impl.fo, com.applovin.impl.zd):com.applovin.impl.zd");
}
private boolean a(be.a aVar) {
return !aVar.a() && aVar.e == -1;
}
private boolean a(fo foVar, be.a aVar, boolean z) {
int a = foVar.a(aVar.a);
return !foVar.a(foVar.a(a, this.a).c, this.b).j && foVar.b(a, this.a, this.b, this.f, this.g) && z;
}
private boolean a(fo foVar, be.a aVar) {
if (a(aVar)) {
return foVar.a(foVar.a(aVar.a, this.a).c, this.b).q == foVar.a(aVar.a);
}
return false;
}
public boolean a(wd wdVar) {
xd xdVar = this.j;
return xdVar != null && xdVar.a == wdVar;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(eb.a aVar, be.a aVar2) {
this.c.a(aVar.a(), aVar2);
}
public void a(long j) {
xd xdVar = this.j;
if (xdVar != null) {
xdVar.b(j);
}
}
public boolean a(xd xdVar) {
boolean z = false;
b1.b(xdVar != null);
if (xdVar.equals(this.j)) {
return false;
}
this.j = xdVar;
while (xdVar.d() != null) {
xdVar = xdVar.d();
if (xdVar == this.i) {
this.i = this.h;
z = true;
}
xdVar.l();
this.k--;
}
this.j.a((xd) null);
g();
return z;
}
public be.a a(fo foVar, Object obj, long j) {
return a(foVar, obj, j, a(foVar, obj), this.a);
}
private static be.a a(fo foVar, Object obj, long j, long j2, fo.b bVar) {
foVar.a(obj, bVar);
int b = bVar.b(j);
if (b == -1) {
return new be.a(obj, j2, bVar.a(j));
}
return new be.a(obj, b, bVar.d(b), j2);
}
private long a(fo foVar, Object obj) {
int a;
int i = foVar.a(obj, this.a).c;
Object obj2 = this.l;
if (obj2 != null && (a = foVar.a(obj2)) != -1 && foVar.a(a, this.a).c == i) {
return this.m;
}
for (xd xdVar = this.h; xdVar != null; xdVar = xdVar.d()) {
if (xdVar.b.equals(obj)) {
return xdVar.f.a.d;
}
}
for (xd xdVar2 = this.h; xdVar2 != null; xdVar2 = xdVar2.d()) {
int a2 = foVar.a(xdVar2.b);
if (a2 != -1 && foVar.a(a2, this.a).c == i) {
return xdVar2.f.a.d;
}
}
long j = this.e;
this.e = 1 + j;
if (this.h == null) {
this.l = obj;
this.m = j;
}
return j;
}
private boolean a(fo foVar) {
xd xdVar = this.h;
if (xdVar == null) {
return true;
}
int a = foVar.a(xdVar.b);
while (true) {
a = foVar.a(a, this.a, this.b, this.f, this.g);
while (xdVar.d() != null && !xdVar.f.g) {
xdVar = xdVar.d();
}
xd d = xdVar.d();
if (a == -1 || d == null || foVar.a(d.b) != a) {
break;
}
xdVar = d;
}
boolean a2 = a(xdVar);
xdVar.f = a(foVar, xdVar.f);
return !a2;
}
public boolean a(fo foVar, long j, long j2) {
boolean a;
zd zdVar;
xd xdVar = this.h;
xd xdVar2 = null;
while (xdVar != null) {
zd zdVar2 = xdVar.f;
if (xdVar2 == null) {
zdVar = a(foVar, zdVar2);
} else {
zd a2 = a(foVar, xdVar2, j);
if (a2 == null) {
a = a(xdVar2);
} else if (a(zdVar2, a2)) {
zdVar = a2;
} else {
a = a(xdVar2);
}
return !a;
}
xdVar.f = zdVar.a(zdVar2.c);
if (!a(zdVar2.e, zdVar.e)) {
xdVar.m();
long j3 = zdVar.e;
return (a(xdVar) || (xdVar == this.i && !xdVar.f.f && ((j2 > Long.MIN_VALUE ? 1 : (j2 == Long.MIN_VALUE ? 0 : -1)) == 0 || (j2 > ((j3 > C.TIME_UNSET ? 1 : (j3 == C.TIME_UNSET ? 0 : -1)) == 0 ? Long.MAX_VALUE : xdVar.e(j3)) ? 1 : (j2 == ((j3 > C.TIME_UNSET ? 1 : (j3 == C.TIME_UNSET ? 0 : -1)) == 0 ? Long.MAX_VALUE : xdVar.e(j3)) ? 0 : -1)) >= 0))) ? false : true;
}
xdVar2 = xdVar;
xdVar = xdVar.d();
}
return true;
}
public boolean a(fo foVar, int i) {
this.f = i;
return a(foVar);
}
public boolean a(fo foVar, boolean z) {
this.g = z;
return a(foVar);
}
}

View File

@@ -0,0 +1,255 @@
package com.applovin.impl;
import android.content.Context;
import android.text.TextUtils;
import com.applovin.impl.mediation.MaxMediatedNetworkInfoImpl;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.mediation.MaxAdFormat;
import com.applovin.mediation.MaxMediatedNetworkInfo;
import com.applovin.mediation.adapter.MaxAdapter;
import com.applovin.sdk.AppLovinSdk;
import com.applovin.sdk.AppLovinSdkUtils;
import com.google.android.gms.ads.AdSize;
import com.ironsource.mediationsdk.logger.IronSourceError;
import com.vungle.ads.BuildConfig;
import csdk.gluads.Consts;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes.dex */
public abstract class af {
private static final TreeMap a;
private static final Map b;
private static final List c;
private static JSONArray d;
private static final Map e = new HashMap();
private static final Object f = new Object();
private static final Map g = Collections.synchronizedMap(new HashMap(1));
static {
TreeMap treeMap = new TreeMap();
a = treeMap;
treeMap.put("com.applovin.mediation.adapters.AmazonAdMarketplaceMediationAdapter", "Amazon Publisher Services");
treeMap.put("com.applovin.mediation.adapters.AppLovinMediationAdapter", "AppLovin");
treeMap.put("com.applovin.mediation.adapters.BidMachineMediationAdapter", "BidMachine");
treeMap.put("com.applovin.mediation.adapters.BigoAdsMediationAdapter", "Bigo Ads");
treeMap.put("com.applovin.mediation.adapters.ByteDanceMediationAdapter", "Pangle");
treeMap.put("com.applovin.mediation.adapters.ChartboostMediationAdapter", "Chartboost");
treeMap.put("com.applovin.mediation.adapters.CSJMediationAdapter", "CSJ");
treeMap.put("com.applovin.mediation.adapters.DataseatMediationAdapter", "Dataseat");
treeMap.put("com.applovin.mediation.adapters.FacebookMediationAdapter", "Facebook");
treeMap.put("com.applovin.mediation.adapters.GoogleMediationAdapter", "AdMob");
treeMap.put("com.applovin.mediation.adapters.GoogleAdManagerMediationAdapter", "Google Ad Manager");
treeMap.put("com.applovin.mediation.adapters.HyprMXMediationAdapter", "HyprMX");
treeMap.put("com.applovin.mediation.adapters.InMobiMediationAdapter", "InMobi");
treeMap.put("com.applovin.mediation.adapters.InneractiveMediationAdapter", "Fyber");
treeMap.put("com.applovin.mediation.adapters.IronSourceMediationAdapter", Consts.SDK_IRONSOURCE);
treeMap.put("com.applovin.mediation.adapters.LineMediationAdapter", "LINE");
treeMap.put("com.applovin.mediation.adapters.MaioMediationAdapter", "Maio");
treeMap.put("com.applovin.mediation.adapters.MintegralMediationAdapter", "Mintegral");
treeMap.put("com.applovin.mediation.adapters.MobileFuseMediationAdapter", "MobileFuse");
treeMap.put("com.applovin.mediation.adapters.MolocoMediationAdapter", "Moloco");
treeMap.put("com.applovin.mediation.adapters.MyTargetMediationAdapter", "myTarget");
treeMap.put("com.applovin.mediation.adapters.OguryMediationAdapter", "Ogury");
treeMap.put("com.applovin.mediation.adapters.OguryPresageMediationAdapter", "Ogury Presage");
treeMap.put("com.applovin.mediation.adapters.PangleMediationAdapter", "Pangle");
treeMap.put("com.applovin.mediation.adapters.PubMaticMediationAdapter", "PubMatic");
treeMap.put("com.applovin.mediation.adapters.SayGamesMediationAdapter", "SayGames");
treeMap.put("com.applovin.mediation.adapters.SmaatoMediationAdapter", "Smaato");
treeMap.put("com.applovin.mediation.adapters.TencentMediationAdapter", "Tencent");
treeMap.put("com.applovin.mediation.adapters.UnityAdsMediationAdapter", "Unity Ads");
treeMap.put("com.applovin.mediation.adapters.VerveMediationAdapter", "Verve");
treeMap.put("com.applovin.mediation.adapters.VungleMediationAdapter", BuildConfig.OMSDK_PARTNER_NAME);
treeMap.put("com.applovin.mediation.adapters.YandexMediationAdapter", "Yandex");
treeMap.put("com.applovin.mediation.adapters.LinkedInDSPAdapter", "LinkedIn");
treeMap.put("com.applovin.mediation.adapters.AdColonyMediationAdapter", "AdColony");
treeMap.put("com.applovin.mediation.adapters.AmazonMediationAdapter", "Amazon");
treeMap.put("com.applovin.mediation.adapters.AmazonPublisherServicesMediationAdapter", "Amazon Publisher Services");
treeMap.put("com.applovin.mediation.adapters.CriteoMediationAdapter", "Criteo");
treeMap.put("com.applovin.mediation.adapters.NendMediationAdapter", "Nend");
treeMap.put("com.applovin.mediation.adapters.SnapMediationAdapter", "Snap");
treeMap.put("com.applovin.mediation.adapters.TapjoyMediationAdapter", "Tapjoy");
treeMap.put("com.applovin.mediation.adapters.VerizonAdsMediationAdapter", "Verizon");
treeMap.put("com.applovin.mediation.adapters.YahooMediationAdapter", "Yahoo");
treeMap.put("com.applovin.mediation.ALYsoNetworkMediationAdapter", "YSO Network");
treeMap.put("com.applovin.mediation.adapters.YsoNetworkMediationAdapter", "YSO Network");
c = new ArrayList(treeMap.keySet());
HashMap hashMap = new HashMap();
b = hashMap;
hashMap.put("com.applovin.mediation.adapters.BidMachineMediationAdapter", "3.0.1.1");
hashMap.put("com.applovin.mediation.adapters.ByteDanceMediationAdapter", "6.2.0.5.2");
hashMap.put("com.applovin.mediation.adapters.ChartboostMediationAdapter", "9.7.0.3");
hashMap.put("com.applovin.mediation.adapters.FacebookMediationAdapter", "6.17.0.1");
hashMap.put("com.applovin.mediation.adapters.GoogleMediationAdapter", "23.3.0.1");
hashMap.put("com.applovin.mediation.adapters.GoogleAdManagerMediationAdapter", "23.3.0.1");
hashMap.put("com.applovin.mediation.adapters.HyprMXMediationAdapter", "6.4.2.1");
hashMap.put("com.applovin.mediation.adapters.InMobiMediationAdapter", "10.7.7.1");
hashMap.put("com.applovin.mediation.adapters.InneractiveMediationAdapter", "8.3.1.1");
hashMap.put("com.applovin.mediation.adapters.IronSourceMediationAdapter", "8.3.0.0.2");
hashMap.put("com.applovin.mediation.adapters.LineMediationAdapter", "2024.8.27.1");
hashMap.put("com.applovin.mediation.adapters.MintegralMediationAdapter", "16.8.51.1");
hashMap.put("com.applovin.mediation.adapters.MobileFuseMediationAdapter", "1.7.6.1");
hashMap.put("com.applovin.mediation.adapters.MolocoMediationAdapter", "3.1.0.1");
hashMap.put("com.applovin.mediation.adapters.MyTargetMediationAdapter", "5.22.1.1");
hashMap.put("com.applovin.mediation.adapters.PubMaticMediationAdapter", "3.9.0.2");
hashMap.put("com.applovin.mediation.adapters.SmaatoMediationAdapter", "22.7.0.1");
hashMap.put("com.applovin.mediation.adapters.UnityAdsMediationAdapter", "4.12.2.1");
hashMap.put("com.applovin.mediation.adapters.VerveMediationAdapter", "3.0.4.1");
hashMap.put("com.applovin.mediation.adapters.VungleMediationAdapter", "7.4.1.1");
hashMap.put("com.applovin.mediation.adapters.YandexMediationAdapter", "7.4.0.1");
}
public static MaxAdapter a(String str, com.applovin.impl.sdk.j jVar) {
Class<?> cls;
if (TextUtils.isEmpty(str)) {
jVar.J();
if (com.applovin.impl.sdk.n.a()) {
jVar.J().b("AppLovinSdk", "Failed to create adapter instance. No class name provided");
}
return null;
}
try {
cls = Class.forName(str);
} catch (ClassNotFoundException unused) {
} catch (Throwable th) {
jVar.J();
if (com.applovin.impl.sdk.n.a()) {
jVar.J().a("AppLovinSdk", "Failed to load: " + str, th);
}
}
if (MaxAdapter.class.isAssignableFrom(cls)) {
return (MaxAdapter) cls.getConstructor(AppLovinSdk.class).newInstance(jVar.s0());
}
jVar.J();
if (com.applovin.impl.sdk.n.a()) {
jVar.J().b("AppLovinSdk", str + " error: not an instance of '" + MaxAdapter.class.getName() + "'.");
}
return null;
}
public static boolean b(Object obj) {
return (obj instanceof ge) && "APPLOVIN".equals(((ge) obj).k());
}
private static void b(com.applovin.impl.sdk.j jVar) {
MaxAdapter a2;
synchronized (f) {
for (int i = 0; i < d.length(); i++) {
try {
JSONObject jSONObject = JsonUtils.getJSONObject(d, i, (JSONObject) null);
String string = JsonUtils.getString(jSONObject, "class", "");
if (!StringUtils.isValidString(JsonUtils.getString(jSONObject, "sdk_version", "")) && (a2 = a(string, jVar)) != null) {
String a3 = a(a2);
if (StringUtils.isValidString(a3)) {
JsonUtils.putString(jSONObject, "sdk_version", a3);
e.put(string, new MaxMediatedNetworkInfoImpl(jSONObject));
}
}
} catch (Throwable th) {
throw th;
}
}
}
}
public static String a(MaxAdapter maxAdapter) {
try {
return StringUtils.emptyIfNull(maxAdapter.getSdkVersion());
} catch (Throwable th) {
com.applovin.impl.sdk.n.c("MediationUtils", "Failed to retrieve SDK version for adapter: " + maxAdapter, th);
return "";
}
}
public static AppLovinSdkUtils.Size a(int i, MaxAdFormat maxAdFormat, Context context) {
if (i < 0) {
try {
i = AppLovinSdkUtils.pxToDp(context, z3.a(context).x);
} catch (Throwable unused) {
return maxAdFormat.getSize();
}
}
Map map = g;
AppLovinSdkUtils.Size size = (AppLovinSdkUtils.Size) map.get(Integer.valueOf(i));
if (size != null) {
return size;
}
int i2 = AdSize.FULL_WIDTH;
Method method = AdSize.class.getMethod("getCurrentOrientationAnchoredAdaptiveBannerAdSize", Context.class, Integer.TYPE);
Method method2 = AdSize.class.getMethod("getWidth", new Class[0]);
Method method3 = AdSize.class.getMethod("getHeight", new Class[0]);
Object invoke = method.invoke(null, context, Integer.valueOf(i));
AppLovinSdkUtils.Size size2 = new AppLovinSdkUtils.Size(((Integer) method2.invoke(invoke, new Object[0])).intValue(), ((Integer) method3.invoke(invoke, new Object[0])).intValue());
map.put(Integer.valueOf(i), size2);
return size2;
}
public static boolean a(Object obj) {
return (obj instanceof com.applovin.impl.sdk.ad.b) && StringUtils.isValidString(((com.applovin.impl.sdk.ad.b) obj).H());
}
private static boolean a(MaxAdapter maxAdapter, String str) {
return TextUtils.isEmpty(str) || yp.a(maxAdapter.getAdapterVersion(), str) >= 0;
}
public static boolean a(JSONObject jSONObject, String str, com.applovin.impl.sdk.j jVar) {
if (!JsonUtils.containsJSONObjectContainingInt(jSONObject.optJSONArray("no_fill_reason"), IronSourceError.ERROR_IS_LOAD_FAILED_NO_CANDIDATES, "code")) {
return false;
}
jVar.E().a(la.L, "invalid_or_disabled_ad_unit_id", CollectionUtils.hashMap("ad_unit_id", str), "invalid_or_disabled_ad_unit_id" + str);
return true;
}
public static JSONArray a(com.applovin.impl.sdk.j jVar) {
synchronized (f) {
try {
if (d != null) {
b(jVar);
return d;
}
d = new JSONArray();
for (String str : c) {
MaxAdapter a2 = a(str, jVar);
if (a2 != null) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("name", a.get(str));
jSONObject.put("class", str);
jSONObject.put("sdk_version", a(a2));
jSONObject.put("version", a2.getAdapterVersion());
jSONObject.put("is_supported", a(a2, (String) b.get(str)));
} catch (Throwable unused) {
}
d.put(jSONObject);
e.put(str, new MaxMediatedNetworkInfoImpl(jSONObject));
}
}
return d;
} catch (Throwable th) {
throw th;
}
}
}
public static MaxMediatedNetworkInfo a(String str) {
MaxMediatedNetworkInfo maxMediatedNetworkInfo;
synchronized (f) {
maxMediatedNetworkInfo = (MaxMediatedNetworkInfo) e.get(str);
}
if (maxMediatedNetworkInfo != null) {
return maxMediatedNetworkInfo;
}
JSONObject jSONObject = new JSONObject();
JsonUtils.putString(jSONObject, "class", str);
return new MaxMediatedNetworkInfoImpl(jSONObject);
}
}

View File

@@ -0,0 +1,29 @@
package com.applovin.impl;
import com.applovin.exoplayer2.common.base.Preconditions;
import java.io.Serializable;
/* loaded from: classes.dex */
final class ag extends wg implements Serializable {
static final ag a = new ag();
@Override // com.applovin.impl.wg
public wg c() {
return xi.a;
}
public String toString() {
return "Ordering.natural()";
}
@Override // com.applovin.impl.wg, java.util.Comparator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public int compare(Comparable comparable, Comparable comparable2) {
Preconditions.checkNotNull(comparable);
Preconditions.checkNotNull(comparable2);
return comparable.compareTo(comparable2);
}
private ag() {
}
}

View File

@@ -0,0 +1,230 @@
package com.applovin.impl;
import androidx.core.view.MotionEventCompat;
import java.nio.charset.Charset;
/* loaded from: classes.dex */
public final class ah {
public byte[] a;
private int b;
private int c;
private int d;
public void a(byte[] bArr, int i) {
this.a = bArr;
this.b = 0;
this.c = 0;
this.d = i;
}
public int b() {
return ((this.d - this.b) * 8) - this.c;
}
public int e() {
return (this.b * 8) + this.c;
}
public ah() {
this.a = xp.f;
}
public ah(byte[] bArr) {
this(bArr, bArr.length);
}
public int d() {
b1.b(this.c == 0);
return this.b;
}
public void g() {
int i = this.c + 1;
this.c = i;
if (i == 8) {
this.c = 0;
this.b++;
}
a();
}
public ah(byte[] bArr, int i) {
this.a = bArr;
this.d = i;
}
public boolean f() {
boolean z = (this.a[this.b] & (128 >> this.c)) != 0;
g();
return z;
}
public void c() {
if (this.c == 0) {
return;
}
this.c = 0;
this.b++;
a();
}
public void d(int i) {
int i2 = i / 8;
int i3 = this.b + i2;
this.b = i3;
int i4 = this.c + (i - (i2 * 8));
this.c = i4;
if (i4 > 7) {
this.b = i3 + 1;
this.c = i4 - 8;
}
a();
}
public long b(int i) {
if (i <= 32) {
return xp.i(a(i));
}
return xp.c(a(i - 32), a(32));
}
private void a() {
int i;
int i2 = this.b;
b1.b(i2 >= 0 && (i2 < (i = this.d) || (i2 == i && this.c == 0)));
}
public void c(int i) {
int i2 = i / 8;
this.b = i2;
this.c = i - (i2 * 8);
a();
}
public void e(int i) {
b1.b(this.c == 0);
this.b += i;
a();
}
public void b(byte[] bArr, int i, int i2) {
b1.b(this.c == 0);
System.arraycopy(this.a, this.b, bArr, i, i2);
this.b += i2;
a();
}
public void a(int i, int i2) {
if (i2 < 32) {
i &= (1 << i2) - 1;
}
int min = Math.min(8 - this.c, i2);
int i3 = this.c;
int i4 = (8 - i3) - min;
int i5 = (MotionEventCompat.ACTION_POINTER_INDEX_MASK >> i3) | ((1 << i4) - 1);
byte[] bArr = this.a;
int i6 = this.b;
byte b = (byte) (i5 & bArr[i6]);
bArr[i6] = b;
int i7 = i2 - min;
bArr[i6] = (byte) (b | ((i >>> i7) << i4));
int i8 = i6 + 1;
while (i7 > 8) {
this.a[i8] = (byte) (i >>> (i7 - 8));
i7 -= 8;
i8++;
}
int i9 = 8 - i7;
byte[] bArr2 = this.a;
byte b2 = (byte) (bArr2[i8] & ((1 << i9) - 1));
bArr2[i8] = b2;
bArr2[i8] = (byte) (((i & ((1 << i7) - 1)) << i9) | b2);
d(i2);
a();
}
public int a(int i) {
int i2;
if (i == 0) {
return 0;
}
this.c += i;
int i3 = 0;
while (true) {
i2 = this.c;
if (i2 <= 8) {
break;
}
int i4 = i2 - 8;
this.c = i4;
byte[] bArr = this.a;
int i5 = this.b;
this.b = i5 + 1;
i3 |= (bArr[i5] & 255) << i4;
}
byte[] bArr2 = this.a;
int i6 = this.b;
int i7 = ((-1) >>> (32 - i)) & (i3 | ((bArr2[i6] & 255) >> (8 - i2)));
if (i2 == 8) {
this.c = 0;
this.b = i6 + 1;
}
a();
return i7;
}
public void a(byte[] bArr, int i, int i2) {
int i3 = (i2 >> 3) + i;
while (i < i3) {
byte[] bArr2 = this.a;
int i4 = this.b;
int i5 = i4 + 1;
this.b = i5;
byte b = bArr2[i4];
int i6 = this.c;
byte b2 = (byte) (b << i6);
bArr[i] = b2;
bArr[i] = (byte) (((255 & bArr2[i5]) >> (8 - i6)) | b2);
i++;
}
int i7 = i2 & 7;
if (i7 == 0) {
return;
}
byte b3 = (byte) (bArr[i3] & (255 >> i7));
bArr[i3] = b3;
int i8 = this.c;
if (i8 + i7 > 8) {
byte[] bArr3 = this.a;
int i9 = this.b;
this.b = i9 + 1;
bArr[i3] = (byte) (b3 | ((bArr3[i9] & 255) << i8));
this.c = i8 - 8;
}
int i10 = this.c + i7;
this.c = i10;
byte[] bArr4 = this.a;
int i11 = this.b;
bArr[i3] = (byte) (((byte) (((255 & bArr4[i11]) >> (8 - i10)) << (8 - i7))) | bArr[i3]);
if (i10 == 8) {
this.c = 0;
this.b = i11 + 1;
}
a();
}
public String a(int i, Charset charset) {
byte[] bArr = new byte[i];
b(bArr, 0, i);
return new String(bArr, charset);
}
public void a(bh bhVar) {
a(bhVar.c(), bhVar.e());
c(bhVar.d() * 8);
}
public void a(byte[] bArr) {
a(bArr, bArr.length);
}
}

View File

@@ -0,0 +1,872 @@
package com.applovin.impl;
import android.net.Uri;
import android.os.Handler;
import androidx.work.WorkRequest;
import com.applovin.impl.a7;
import com.applovin.impl.bj;
import com.applovin.impl.ce;
import com.applovin.impl.f9;
import com.applovin.impl.ij;
import com.applovin.impl.l5;
import com.applovin.impl.mc;
import com.applovin.impl.oc;
import com.applovin.impl.ta;
import com.applovin.impl.wd;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes.dex */
final class ai implements wd, m8, oc.b, oc.f, bj.d {
private static final Map N = l();
private static final f9 O = new f9.b().c("icy").f("application/x-icy").a();
private boolean B;
private boolean D;
private boolean E;
private int F;
private long H;
private boolean J;
private int K;
private boolean L;
private boolean M;
private final Uri a;
private final i5 b;
private final b7 c;
private final mc d;
private final ce.a f;
private final a7.a g;
private final b h;
private final n0 i;
private final String j;
private final long k;
private final zh m;
private wd.a r;
private va s;
private boolean v;
private boolean w;
private boolean x;
private e y;
private ij z;
private final oc l = new oc("ProgressiveMediaPeriod");
private final c4 n = new c4();
private final Runnable o = new Runnable() { // from class: com.applovin.impl.ai$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
ai.this.r();
}
};
private final Runnable p = new Runnable() { // from class: com.applovin.impl.ai$$ExternalSyntheticLambda1
@Override // java.lang.Runnable
public final void run() {
ai.this.q();
}
};
private final Handler q = xp.a();
private d[] u = new d[0];
private bj[] t = new bj[0];
private long I = C.TIME_UNSET;
private long G = -1;
private long A = C.TIME_UNSET;
private int C = 1;
public interface b {
void a(long j, boolean z, boolean z2);
}
private static Map l() {
HashMap hashMap = new HashMap();
hashMap.put("Icy-MetaData", "1");
return Collections.unmodifiableMap(hashMap);
}
private boolean p() {
return this.I != C.TIME_UNSET;
}
private void u() {
a aVar = new a(this.a, this.b, this.m, this, this.n);
if (this.w) {
b1.b(p());
long j = this.A;
if (j != C.TIME_UNSET && this.I > j) {
this.L = true;
this.I = C.TIME_UNSET;
return;
}
aVar.a(((ij) b1.a(this.z)).b(this.I).a.b, this.I);
for (bj bjVar : this.t) {
bjVar.c(this.I);
}
this.I = C.TIME_UNSET;
}
this.K = m();
this.f.c(new nc(aVar.a, aVar.k, this.l.a(aVar, this, this.d.a(this.C))), 1, -1, null, 0, null, aVar.j, this.A);
}
@Override // com.applovin.impl.wd
public void c(long j) {
}
public ai(Uri uri, i5 i5Var, zh zhVar, b7 b7Var, a7.a aVar, mc mcVar, ce.a aVar2, b bVar, n0 n0Var, String str, int i) {
this.a = uri;
this.b = i5Var;
this.c = b7Var;
this.g = aVar;
this.d = mcVar;
this.f = aVar2;
this.h = bVar;
this.i = n0Var;
this.j = str;
this.k = i;
this.m = zhVar;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void q() {
if (this.M) {
return;
}
((wd.a) b1.a(this.r)).a((pj) this);
}
public void t() {
if (this.w) {
for (bj bjVar : this.t) {
bjVar.k();
}
}
this.l.a(this);
this.q.removeCallbacksAndMessages(null);
this.r = null;
this.M = true;
}
@Override // com.applovin.impl.wd
public void f() {
s();
if (this.L && !this.w) {
throw dh.a("Loading finished before preparation is complete.", null);
}
}
@Override // com.applovin.impl.wd
public long g() {
if (this.F == 0) {
return Long.MIN_VALUE;
}
return e();
}
@Override // com.applovin.impl.wd
public long h() {
if (!this.E) {
return C.TIME_UNSET;
}
if (!this.L && m() <= this.K) {
return C.TIME_UNSET;
}
this.E = false;
return this.H;
}
@Override // com.applovin.impl.wd
public boolean b(long j) {
if (this.L || this.l.c() || this.J) {
return false;
}
if (this.w && this.F == 0) {
return false;
}
boolean e2 = this.n.e();
if (this.l.d()) {
return e2;
}
u();
return true;
}
@Override // com.applovin.impl.wd
public long e() {
long j;
k();
boolean[] zArr = this.y.b;
if (this.L) {
return Long.MIN_VALUE;
}
if (p()) {
return this.I;
}
if (this.x) {
int length = this.t.length;
j = Long.MAX_VALUE;
for (int i = 0; i < length; i++) {
if (zArr[i] && !this.t[i].i()) {
j = Math.min(j, this.t[i].c());
}
}
} else {
j = Long.MAX_VALUE;
}
if (j == Long.MAX_VALUE) {
j = n();
}
return j == Long.MIN_VALUE ? this.H : j;
}
public void s() {
this.l.a(this.d.a(this.C));
}
public void d(int i) {
this.t[i].j();
s();
}
private boolean v() {
return this.E || p();
}
@Override // com.applovin.impl.wd
public po b() {
k();
return this.y.a;
}
public qo o() {
return a(new d(0, true));
}
/* JADX INFO: Access modifiers changed from: private */
public void r() {
bf a2;
if (this.M || this.w || !this.v || this.z == null) {
return;
}
for (bj bjVar : this.t) {
if (bjVar.f() == null) {
return;
}
}
this.n.c();
int length = this.t.length;
oo[] ooVarArr = new oo[length];
boolean[] zArr = new boolean[length];
for (int i = 0; i < length; i++) {
f9 f9Var = (f9) b1.a(this.t[i].f());
String str = f9Var.m;
boolean g = Cif.g(str);
boolean z = g || Cif.i(str);
zArr[i] = z;
this.x = z | this.x;
va vaVar = this.s;
if (vaVar != null) {
if (g || this.u[i].b) {
bf bfVar = f9Var.k;
if (bfVar == null) {
a2 = new bf(vaVar);
} else {
a2 = bfVar.a(vaVar);
}
f9Var = f9Var.a().a(a2).a();
}
if (g && f9Var.g == -1 && f9Var.h == -1 && vaVar.a != -1) {
f9Var = f9Var.a().b(vaVar.a).a();
}
}
ooVarArr[i] = new oo(f9Var.a(this.c.a(f9Var)));
}
this.y = new e(new po(ooVarArr), zArr);
this.w = true;
((wd.a) b1.a(this.r)).a((wd) this);
}
@Override // com.applovin.impl.m8
public void c() {
this.v = true;
this.q.post(this.o);
}
@Override // com.applovin.impl.oc.f
public void d() {
for (bj bjVar : this.t) {
bjVar.l();
}
this.m.a();
}
private int m() {
int i = 0;
for (bj bjVar : this.t) {
i += bjVar.g();
}
return i;
}
/* JADX INFO: Access modifiers changed from: private */
public long n() {
long j = Long.MIN_VALUE;
for (bj bjVar : this.t) {
j = Math.max(j, bjVar.c());
}
return j;
}
private void k() {
b1.b(this.w);
b1.a(this.y);
b1.a(this.z);
}
public final class c implements cj {
private final int a;
public c(int i) {
this.a = i;
}
@Override // com.applovin.impl.cj
public boolean d() {
return ai.this.a(this.a);
}
@Override // com.applovin.impl.cj
public void a() {
ai.this.d(this.a);
}
@Override // com.applovin.impl.cj
public int a(g9 g9Var, p5 p5Var, int i) {
return ai.this.a(this.a, g9Var, p5Var, i);
}
@Override // com.applovin.impl.cj
public int a(long j) {
return ai.this.a(this.a, j);
}
}
public final class a implements oc.e, ta.a {
private final Uri b;
private final fl c;
private final zh d;
private final m8 e;
private final c4 f;
private volatile boolean h;
private long j;
private qo m;
private boolean n;
private final th g = new th();
private boolean i = true;
private long l = -1;
private final long a = nc.a();
private l5 k = a(0);
@Override // com.applovin.impl.oc.e
public void b() {
this.h = true;
}
public a(Uri uri, i5 i5Var, zh zhVar, m8 m8Var, c4 c4Var) {
this.b = uri;
this.c = new fl(i5Var);
this.d = zhVar;
this.e = m8Var;
this.f = c4Var;
}
@Override // com.applovin.impl.oc.e
public void a() {
int i = 0;
while (i == 0 && !this.h) {
try {
long j = this.g.a;
l5 a = a(j);
this.k = a;
long a2 = this.c.a(a);
this.l = a2;
if (a2 != -1) {
this.l = a2 + j;
}
ai.this.s = va.a(this.c.e());
g5 g5Var = this.c;
if (ai.this.s != null && ai.this.s.g != -1) {
g5Var = new ta(this.c, ai.this.s.g, this);
qo o = ai.this.o();
this.m = o;
o.a(ai.O);
}
long j2 = j;
this.d.a(g5Var, this.b, this.c.e(), j, this.l, this.e);
if (ai.this.s != null) {
this.d.c();
}
if (this.i) {
this.d.a(j2, this.j);
this.i = false;
}
while (true) {
long j3 = j2;
while (i == 0 && !this.h) {
try {
this.f.a();
i = this.d.a(this.g);
j2 = this.d.b();
if (j2 > ai.this.k + j3) {
break;
}
} catch (InterruptedException unused) {
throw new InterruptedIOException();
}
}
this.f.c();
ai.this.q.post(ai.this.p);
}
if (i == 1) {
i = 0;
} else if (this.d.b() != -1) {
this.g.a = this.d.b();
}
xp.a((i5) this.c);
} catch (Throwable th) {
if (i != 1 && this.d.b() != -1) {
this.g.a = this.d.b();
}
xp.a((i5) this.c);
throw th;
}
}
}
@Override // com.applovin.impl.ta.a
public void a(bh bhVar) {
long max = !this.n ? this.j : Math.max(ai.this.n(), this.j);
int a = bhVar.a();
qo qoVar = (qo) b1.a(this.m);
qoVar.a(bhVar, a);
qoVar.a(max, 1, a, 0, null);
this.n = true;
}
/* JADX INFO: Access modifiers changed from: private */
public void a(long j, long j2) {
this.g.a = j;
this.j = j2;
this.i = true;
this.n = false;
}
private l5 a(long j) {
return new l5.b().a(this.b).a(j).a(ai.this.j).a(6).a(ai.N).a();
}
}
private boolean a(a aVar, int i) {
ij ijVar;
if (this.G != -1 || ((ijVar = this.z) != null && ijVar.d() != C.TIME_UNSET)) {
this.K = i;
return true;
}
if (this.w && !v()) {
this.J = true;
return false;
}
this.E = this.w;
this.H = 0L;
this.K = 0;
for (bj bjVar : this.t) {
bjVar.n();
}
aVar.a(0L, 0L);
return true;
}
public static final class e {
public final po a;
public final boolean[] b;
public final boolean[] c;
public final boolean[] d;
public e(po poVar, boolean[] zArr) {
this.a = poVar;
this.b = zArr;
int i = poVar.a;
this.c = new boolean[i];
this.d = new boolean[i];
}
}
public static final class d {
public final int a;
public final boolean b;
public int hashCode() {
return (this.a * 31) + (this.b ? 1 : 0);
}
public d(int i, boolean z) {
this.a = i;
this.b = z;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || d.class != obj.getClass()) {
return false;
}
d dVar = (d) obj;
return this.a == dVar.a && this.b == dVar.b;
}
}
private void c(int i) {
k();
boolean[] zArr = this.y.b;
if (this.J && zArr[i]) {
if (this.t[i].a(false)) {
return;
}
this.I = 0L;
this.J = false;
this.E = true;
this.H = 0L;
this.K = 0;
for (bj bjVar : this.t) {
bjVar.n();
}
((wd.a) b1.a(this.r)).a((pj) this);
}
}
private void a(a aVar) {
if (this.G == -1) {
this.G = aVar.l;
}
}
private void b(int i) {
k();
e eVar = this.y;
boolean[] zArr = eVar.d;
if (zArr[i]) {
return;
}
f9 a2 = eVar.a.a(i).a(0);
this.f.a(Cif.e(a2.m), a2, 0, (Object) null, this.H);
zArr[i] = true;
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: c, reason: merged with bridge method [inline-methods] */
public void b(ij ijVar) {
this.z = this.s == null ? ijVar : new ij.b(C.TIME_UNSET);
this.A = ijVar.d();
boolean z = this.G == -1 && ijVar.d() == C.TIME_UNSET;
this.B = z;
this.C = z ? 7 : 1;
this.h.a(this.A, ijVar.b(), this.B);
if (this.w) {
return;
}
r();
}
@Override // com.applovin.impl.wd
public void a(long j, boolean z) {
k();
if (p()) {
return;
}
boolean[] zArr = this.y.c;
int length = this.t.length;
for (int i = 0; i < length; i++) {
this.t[i].b(j, z, zArr[i]);
}
}
@Override // com.applovin.impl.wd
public long a(long j, jj jjVar) {
k();
if (!this.z.b()) {
return 0L;
}
ij.a b2 = this.z.b(j);
return jjVar.a(j, b2.a.a, b2.b.a);
}
@Override // com.applovin.impl.wd
public boolean a() {
return this.l.d() && this.n.d();
}
public boolean a(int i) {
return !v() && this.t[i].a(this.L);
}
@Override // com.applovin.impl.oc.b
public void a(a aVar, long j, long j2, boolean z) {
fl flVar = aVar.c;
nc ncVar = new nc(aVar.a, aVar.k, flVar.h(), flVar.i(), j, j2, flVar.g());
this.d.a(aVar.a);
this.f.a(ncVar, 1, -1, null, 0, null, aVar.j, this.A);
if (z) {
return;
}
a(aVar);
for (bj bjVar : this.t) {
bjVar.n();
}
if (this.F > 0) {
((wd.a) b1.a(this.r)).a((pj) this);
}
}
@Override // com.applovin.impl.oc.b
public void a(a aVar, long j, long j2) {
ij ijVar;
if (this.A == C.TIME_UNSET && (ijVar = this.z) != null) {
boolean b2 = ijVar.b();
long n = n();
long j3 = n == Long.MIN_VALUE ? 0L : n + WorkRequest.MIN_BACKOFF_MILLIS;
this.A = j3;
this.h.a(j3, b2, this.B);
}
fl flVar = aVar.c;
nc ncVar = new nc(aVar.a, aVar.k, flVar.h(), flVar.i(), j, j2, flVar.g());
this.d.a(aVar.a);
this.f.b(ncVar, 1, -1, null, 0, null, aVar.j, this.A);
a(aVar);
this.L = true;
((wd.a) b1.a(this.r)).a((pj) this);
}
@Override // com.applovin.impl.oc.b
public oc.c a(a aVar, long j, long j2, IOException iOException, int i) {
boolean z;
a aVar2;
oc.c cVar;
a(aVar);
fl flVar = aVar.c;
nc ncVar = new nc(aVar.a, aVar.k, flVar.h(), flVar.i(), j, j2, flVar.g());
long a2 = this.d.a(new mc.a(ncVar, new ud(1, -1, null, 0, null, t2.b(aVar.j), t2.b(this.A)), iOException, i));
if (a2 == C.TIME_UNSET) {
cVar = oc.g;
} else {
int m = m();
if (m > this.K) {
aVar2 = aVar;
z = true;
} else {
z = false;
aVar2 = aVar;
}
if (a(aVar2, m)) {
cVar = oc.a(z, a2);
} else {
cVar = oc.f;
}
}
boolean z2 = !cVar.a();
this.f.a(ncVar, 1, -1, null, 0, null, aVar.j, this.A, iOException, z2);
if (z2) {
this.d.a(aVar.a);
}
return cVar;
}
@Override // com.applovin.impl.bj.d
public void a(f9 f9Var) {
this.q.post(this.o);
}
@Override // com.applovin.impl.wd
public void a(wd.a aVar, long j) {
this.r = aVar;
this.n.e();
u();
}
private qo a(d dVar) {
int length = this.t.length;
for (int i = 0; i < length; i++) {
if (dVar.equals(this.u[i])) {
return this.t[i];
}
}
bj a2 = bj.a(this.i, this.q.getLooper(), this.c, this.g);
a2.a(this);
int i2 = length + 1;
d[] dVarArr = (d[]) Arrays.copyOf(this.u, i2);
dVarArr[length] = dVar;
this.u = (d[]) xp.a((Object[]) dVarArr);
bj[] bjVarArr = (bj[]) Arrays.copyOf(this.t, i2);
bjVarArr[length] = a2;
this.t = (bj[]) xp.a((Object[]) bjVarArr);
return a2;
}
public int a(int i, g9 g9Var, p5 p5Var, int i2) {
if (v()) {
return -3;
}
b(i);
int a2 = this.t[i].a(g9Var, p5Var, i2, this.L);
if (a2 == -3) {
c(i);
}
return a2;
}
private boolean a(boolean[] zArr, long j) {
int length = this.t.length;
for (int i = 0; i < length; i++) {
if (!this.t[i].b(j, false) && (zArr[i] || !this.x)) {
return false;
}
}
return true;
}
@Override // com.applovin.impl.m8
public void a(final ij ijVar) {
this.q.post(new Runnable() { // from class: com.applovin.impl.ai$$ExternalSyntheticLambda2
@Override // java.lang.Runnable
public final void run() {
ai.this.b(ijVar);
}
});
}
@Override // com.applovin.impl.wd
public long a(long j) {
k();
boolean[] zArr = this.y.b;
if (!this.z.b()) {
j = 0;
}
int i = 0;
this.E = false;
this.H = j;
if (p()) {
this.I = j;
return j;
}
if (this.C != 7 && a(zArr, j)) {
return j;
}
this.J = false;
this.I = j;
this.L = false;
if (this.l.d()) {
bj[] bjVarArr = this.t;
int length = bjVarArr.length;
while (i < length) {
bjVarArr[i].b();
i++;
}
this.l.a();
} else {
this.l.b();
bj[] bjVarArr2 = this.t;
int length2 = bjVarArr2.length;
while (i < length2) {
bjVarArr2[i].n();
i++;
}
}
return j;
}
@Override // com.applovin.impl.wd
public long a(h8[] h8VarArr, boolean[] zArr, cj[] cjVarArr, boolean[] zArr2, long j) {
h8 h8Var;
k();
e eVar = this.y;
po poVar = eVar.a;
boolean[] zArr3 = eVar.c;
int i = this.F;
int i2 = 0;
for (int i3 = 0; i3 < h8VarArr.length; i3++) {
cj cjVar = cjVarArr[i3];
if (cjVar != null && (h8VarArr[i3] == null || !zArr[i3])) {
int i4 = ((c) cjVar).a;
b1.b(zArr3[i4]);
this.F--;
zArr3[i4] = false;
cjVarArr[i3] = null;
}
}
boolean z = !this.D ? j == 0 : i != 0;
for (int i5 = 0; i5 < h8VarArr.length; i5++) {
if (cjVarArr[i5] == null && (h8Var = h8VarArr[i5]) != null) {
b1.b(h8Var.b() == 1);
b1.b(h8Var.b(0) == 0);
int a2 = poVar.a(h8Var.a());
b1.b(!zArr3[a2]);
this.F++;
zArr3[a2] = true;
cjVarArr[i5] = new c(a2);
zArr2[i5] = true;
if (!z) {
bj bjVar = this.t[a2];
z = (bjVar.b(j, true) || bjVar.e() == 0) ? false : true;
}
}
}
if (this.F == 0) {
this.J = false;
this.E = false;
if (this.l.d()) {
bj[] bjVarArr = this.t;
int length = bjVarArr.length;
while (i2 < length) {
bjVarArr[i2].b();
i2++;
}
this.l.a();
} else {
bj[] bjVarArr2 = this.t;
int length2 = bjVarArr2.length;
while (i2 < length2) {
bjVarArr2[i2].n();
i2++;
}
}
} else if (z) {
j = a(j);
while (i2 < cjVarArr.length) {
if (cjVarArr[i2] != null) {
zArr2[i2] = true;
}
i2++;
}
}
this.D = true;
return j;
}
public int a(int i, long j) {
if (v()) {
return 0;
}
b(i);
bj bjVar = this.t[i];
int a2 = bjVar.a(j, this.L);
bjVar.f(a2);
if (a2 == 0) {
c(i);
}
return a2;
}
@Override // com.applovin.impl.m8
public qo a(int i, int i2) {
return a(new d(i, false));
}
}

View File

@@ -0,0 +1,275 @@
package com.applovin.impl;
import com.applovin.impl.bj;
import com.applovin.impl.qo;
import java.io.EOFException;
import java.nio.ByteBuffer;
import java.util.Arrays;
import kotlin.jvm.internal.ByteCompanionObject;
/* loaded from: classes.dex */
class aj {
private final n0 a;
private final int b;
private final bh c;
private a d;
private a e;
private a f;
private long g;
public long a() {
return this.g;
}
public void c() {
this.e = this.d;
}
public aj(n0 n0Var) {
this.a = n0Var;
int c = n0Var.c();
this.b = c;
this.c = new bh(32);
a aVar = new a(0L, c);
this.d = aVar;
this.e = aVar;
this.f = aVar;
}
private void a(a aVar) {
if (aVar.c) {
a aVar2 = this.f;
boolean z = aVar2.c;
int i = (z ? 1 : 0) + (((int) (aVar2.a - aVar.a)) / this.b);
m0[] m0VarArr = new m0[i];
for (int i2 = 0; i2 < i; i2++) {
m0VarArr[i2] = aVar.d;
aVar = aVar.a();
}
this.a.a(m0VarArr);
}
}
private int b(int i) {
a aVar = this.f;
if (!aVar.c) {
aVar.a(this.a.b(), new a(this.f.b, this.b));
}
return Math.min(i, (int) (this.f.b - this.g));
}
public void a(long j) {
a aVar;
if (j == -1) {
return;
}
while (true) {
aVar = this.d;
if (j < aVar.b) {
break;
}
this.a.a(aVar.d);
this.d = this.d.a();
}
if (this.e.a < aVar.a) {
this.e = aVar;
}
}
public static final class a {
public final long a;
public final long b;
public boolean c;
public m0 d;
public a e;
public a a() {
this.d = null;
a aVar = this.e;
this.e = null;
return aVar;
}
public void a(m0 m0Var, a aVar) {
this.d = m0Var;
this.e = aVar;
this.c = true;
}
public a(long j, int i) {
this.a = j;
this.b = j + i;
}
public int a(long j) {
return ((int) (j - this.a)) + this.d.b;
}
}
private static a b(a aVar, p5 p5Var, bj.b bVar, bh bhVar) {
if (p5Var.h()) {
aVar = a(aVar, p5Var, bVar, bhVar);
}
if (p5Var.c()) {
bhVar.d(4);
a a2 = a(aVar, bVar.b, bhVar.c(), 4);
int A = bhVar.A();
bVar.b += 4;
bVar.a -= 4;
p5Var.g(A);
a a3 = a(a2, bVar.b, p5Var.c, A);
bVar.b += A;
int i = bVar.a - A;
bVar.a = i;
p5Var.h(i);
return a(a3, bVar.b, p5Var.g, bVar.a);
}
p5Var.g(bVar.a);
return a(aVar, bVar.b, p5Var.c, bVar.a);
}
public void b(p5 p5Var, bj.b bVar) {
this.e = b(this.e, p5Var, bVar, this.c);
}
public void b() {
a(this.d);
a aVar = new a(0L, this.b);
this.d = aVar;
this.e = aVar;
this.f = aVar;
this.g = 0L;
this.a.a();
}
private static a a(a aVar, long j) {
while (j >= aVar.b) {
aVar = aVar.e;
}
return aVar;
}
public void a(p5 p5Var, bj.b bVar) {
b(this.e, p5Var, bVar, this.c);
}
private void a(int i) {
long j = this.g + i;
this.g = j;
a aVar = this.f;
if (j == aVar.b) {
this.f = aVar.e;
}
}
private static a a(a aVar, long j, ByteBuffer byteBuffer, int i) {
a a2 = a(aVar, j);
while (i > 0) {
int min = Math.min(i, (int) (a2.b - j));
byteBuffer.put(a2.d.a, a2.a(j), min);
i -= min;
j += min;
if (j == a2.b) {
a2 = a2.e;
}
}
return a2;
}
private static a a(a aVar, long j, byte[] bArr, int i) {
a a2 = a(aVar, j);
int i2 = i;
while (i2 > 0) {
int min = Math.min(i2, (int) (a2.b - j));
System.arraycopy(a2.d.a, a2.a(j), bArr, i - i2, min);
i2 -= min;
j += min;
if (j == a2.b) {
a2 = a2.e;
}
}
return a2;
}
private static a a(a aVar, p5 p5Var, bj.b bVar, bh bhVar) {
long j = bVar.b;
int i = 1;
bhVar.d(1);
a a2 = a(aVar, j, bhVar.c(), 1);
long j2 = j + 1;
byte b = bhVar.c()[0];
boolean z = (b & ByteCompanionObject.MIN_VALUE) != 0;
int i2 = b & Byte.MAX_VALUE;
a5 a5Var = p5Var.b;
byte[] bArr = a5Var.a;
if (bArr == null) {
a5Var.a = new byte[16];
} else {
Arrays.fill(bArr, (byte) 0);
}
a a3 = a(a2, j2, a5Var.a, i2);
long j3 = j2 + i2;
if (z) {
bhVar.d(2);
a3 = a(a3, j3, bhVar.c(), 2);
j3 += 2;
i = bhVar.C();
}
int i3 = i;
int[] iArr = a5Var.d;
if (iArr == null || iArr.length < i3) {
iArr = new int[i3];
}
int[] iArr2 = iArr;
int[] iArr3 = a5Var.e;
if (iArr3 == null || iArr3.length < i3) {
iArr3 = new int[i3];
}
int[] iArr4 = iArr3;
if (z) {
int i4 = i3 * 6;
bhVar.d(i4);
a3 = a(a3, j3, bhVar.c(), i4);
j3 += i4;
bhVar.f(0);
for (int i5 = 0; i5 < i3; i5++) {
iArr2[i5] = bhVar.C();
iArr4[i5] = bhVar.A();
}
} else {
iArr2[0] = 0;
iArr4[0] = bVar.a - ((int) (j3 - bVar.b));
}
qo.a aVar2 = (qo.a) xp.a(bVar.c);
a5Var.a(i3, iArr2, iArr4, aVar2.b, a5Var.a, aVar2.a, aVar2.c, aVar2.d);
long j4 = bVar.b;
int i6 = (int) (j3 - j4);
bVar.b = j4 + i6;
bVar.a -= i6;
return a3;
}
public int a(g5 g5Var, int i, boolean z) {
int b = b(i);
a aVar = this.f;
int a2 = g5Var.a(aVar.d.a, aVar.a(this.g), b);
if (a2 != -1) {
a(a2);
return a2;
}
if (z) {
return -1;
}
throw new EOFException();
}
public void a(bh bhVar, int i) {
while (i > 0) {
int b = b(i);
a aVar = this.f;
bhVar.a(aVar.d.a, aVar.a(this.g), b);
i -= b;
a(b);
}
}
}

View File

@@ -0,0 +1,221 @@
package com.applovin.impl;
import com.applovin.impl.p1;
import java.nio.ByteBuffer;
/* loaded from: classes.dex */
public final class ak extends z1 {
private final long i;
private final long j;
private final short k;
private int l;
private boolean m;
private byte[] n;
private byte[] o;
private int p;
private int q;
private int r;
private boolean s;
private long t;
public void a(boolean z) {
this.m = z;
}
@Override // com.applovin.impl.z1, com.applovin.impl.p1
public boolean f() {
return this.m;
}
public long j() {
return this.t;
}
public ak() {
this(150000L, 20000L, (short) 1024);
}
@Override // com.applovin.impl.z1
public void h() {
int i = this.q;
if (i > 0) {
a(this.n, i);
}
if (this.s) {
return;
}
this.t += this.r / this.l;
}
@Override // com.applovin.impl.z1
public void g() {
if (this.m) {
this.l = this.b.d;
int a = a(this.i) * this.l;
if (this.n.length != a) {
this.n = new byte[a];
}
int a2 = a(this.j) * this.l;
this.r = a2;
if (this.o.length != a2) {
this.o = new byte[a2];
}
}
this.p = 0;
this.t = 0L;
this.q = 0;
this.s = false;
}
public ak(long j, long j2, short s) {
b1.a(j2 <= j);
this.i = j;
this.j = j2;
this.k = s;
byte[] bArr = xp.f;
this.n = bArr;
this.o = bArr;
}
@Override // com.applovin.impl.z1
public void i() {
this.m = false;
this.r = 0;
byte[] bArr = xp.f;
this.n = bArr;
this.o = bArr;
}
private void e(ByteBuffer byteBuffer) {
int limit = byteBuffer.limit();
int c = c(byteBuffer);
int position = c - byteBuffer.position();
byte[] bArr = this.n;
int length = bArr.length;
int i = this.q;
int i2 = length - i;
if (c < limit && position < i2) {
a(bArr, i);
this.q = 0;
this.p = 0;
return;
}
int min = Math.min(position, i2);
byteBuffer.limit(byteBuffer.position() + min);
byteBuffer.get(this.n, this.q, min);
int i3 = this.q + min;
this.q = i3;
byte[] bArr2 = this.n;
if (i3 == bArr2.length) {
if (this.s) {
a(bArr2, this.r);
this.t += (this.q - (this.r * 2)) / this.l;
} else {
this.t += (i3 - this.r) / this.l;
}
a(byteBuffer, this.n, this.q);
this.q = 0;
this.p = 2;
}
byteBuffer.limit(limit);
}
private void d(ByteBuffer byteBuffer) {
int remaining = byteBuffer.remaining();
a(remaining).put(byteBuffer).flip();
if (remaining > 0) {
this.s = true;
}
}
private int a(long j) {
return (int) ((j * this.b.a) / 1000000);
}
private int c(ByteBuffer byteBuffer) {
for (int position = byteBuffer.position(); position < byteBuffer.limit(); position += 2) {
if (Math.abs((int) byteBuffer.getShort(position)) > this.k) {
int i = this.l;
return i * (position / i);
}
}
return byteBuffer.limit();
}
private int b(ByteBuffer byteBuffer) {
int limit = byteBuffer.limit();
do {
limit -= 2;
if (limit < byteBuffer.position()) {
return byteBuffer.position();
}
} while (Math.abs((int) byteBuffer.getShort(limit)) <= this.k);
int i = this.l;
return ((limit / i) * i) + i;
}
private void f(ByteBuffer byteBuffer) {
int limit = byteBuffer.limit();
byteBuffer.limit(Math.min(limit, byteBuffer.position() + this.n.length));
int b = b(byteBuffer);
if (b == byteBuffer.position()) {
this.p = 1;
} else {
byteBuffer.limit(b);
d(byteBuffer);
}
byteBuffer.limit(limit);
}
private void g(ByteBuffer byteBuffer) {
int limit = byteBuffer.limit();
int c = c(byteBuffer);
byteBuffer.limit(c);
this.t += byteBuffer.remaining() / this.l;
a(byteBuffer, this.o, this.r);
if (c < limit) {
a(this.o, this.r);
this.p = 0;
byteBuffer.limit(limit);
}
}
@Override // com.applovin.impl.z1
public p1.a b(p1.a aVar) {
if (aVar.c == 2) {
return this.m ? aVar : p1.a.e;
}
throw new p1.b(aVar);
}
private void a(byte[] bArr, int i) {
a(i).put(bArr, 0, i).flip();
if (i > 0) {
this.s = true;
}
}
@Override // com.applovin.impl.p1
public void a(ByteBuffer byteBuffer) {
while (byteBuffer.hasRemaining() && !a()) {
int i = this.p;
if (i == 0) {
f(byteBuffer);
} else if (i == 1) {
e(byteBuffer);
} else if (i == 2) {
g(byteBuffer);
} else {
throw new IllegalStateException();
}
}
}
private void a(ByteBuffer byteBuffer, byte[] bArr, int i) {
int min = Math.min(byteBuffer.remaining(), this.r);
int i2 = this.r - min;
System.arraycopy(bArr, i - i2, this.o, 0, i2);
byteBuffer.position(byteBuffer.limit() - min);
byteBuffer.get(this.o, i2, min);
}
}

View File

@@ -0,0 +1,45 @@
package com.applovin.impl;
import java.util.Collections;
import java.util.List;
/* loaded from: classes.dex */
final class al implements nl {
private final List a;
private final List b;
public al(List list, List list2) {
this.a = list;
this.b = list2;
}
@Override // com.applovin.impl.nl
public long a(int i) {
b1.a(i >= 0);
b1.a(i < this.b.size());
return ((Long) this.b.get(i)).longValue();
}
@Override // com.applovin.impl.nl
public List b(long j) {
int b = xp.b(this.b, (Comparable) Long.valueOf(j), true, false);
if (b == -1) {
return Collections.emptyList();
}
return (List) this.a.get(b);
}
@Override // com.applovin.impl.nl
public int a() {
return this.b.size();
}
@Override // com.applovin.impl.nl
public int a(long j) {
int a = xp.a(this.b, (Comparable) Long.valueOf(j), false, false);
if (a < this.b.size()) {
return a;
}
return -1;
}
}

View File

@@ -0,0 +1,66 @@
package com.applovin.impl;
import android.app.Activity;
import android.text.TextUtils;
import com.applovin.impl.tm;
import java.util.List;
/* loaded from: classes.dex */
public class am extends yl {
private final List h;
private final Activity i;
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(pe peVar) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Auto-initing adapter: " + peVar);
}
this.a.L().b(peVar, this.i);
}
public am(List list, Activity activity, com.applovin.impl.sdk.j jVar) {
super("TaskAutoInitAdapters", jVar, true);
this.h = list;
this.i = activity;
}
@Override // java.lang.Runnable
public void run() {
if (this.h.size() > 0) {
if (com.applovin.impl.sdk.n.a()) {
com.applovin.impl.sdk.n nVar = this.c;
String str = this.b;
StringBuilder sb = new StringBuilder();
sb.append("Auto-initing ");
sb.append(this.h.size());
sb.append(" adapters");
sb.append(this.a.l0().c() ? " in test mode" : "");
sb.append("...");
nVar.a(str, sb.toString());
}
if (TextUtils.isEmpty(this.a.O())) {
this.a.e("max");
} else if (!this.a.A0()) {
com.applovin.impl.sdk.n.h("AppLovinSdk", "Auto-initing adapters for non-MAX mediation provider: " + this.a.O());
}
if (this.i == null) {
com.applovin.impl.sdk.n.h("AppLovinSdk", "\n**********\nAttempting to init 3rd-party SDKs without an Activity instance.\n**********\n");
}
for (final pe peVar : this.h) {
if (peVar.s()) {
this.a.j0().a(new Runnable() { // from class: com.applovin.impl.am$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
am.this.a(peVar);
}
}, tm.b.MEDIATION);
} else {
this.a.J();
if (com.applovin.impl.sdk.n.a()) {
this.a.J().a(this.b, "Skipping eager auto-init for adapter " + peVar);
}
}
}
}
}
}

View File

@@ -0,0 +1,36 @@
package com.applovin.impl;
import com.applovin.impl.tm;
import java.lang.ref.WeakReference;
/* loaded from: classes.dex */
public class an extends yl {
private final WeakReference h;
private final Object i;
public static void a(long j, fi fiVar, Object obj, String str, com.applovin.impl.sdk.j jVar) {
if (j <= 0) {
return;
}
jVar.j0().a(new an(fiVar, obj, str, jVar), tm.b.TIMEOUT, j);
}
public an(fi fiVar, Object obj, String str, com.applovin.impl.sdk.j jVar) {
super(str, jVar);
this.h = new WeakReference(fiVar);
this.i = obj;
}
@Override // java.lang.Runnable
public void run() {
fi fiVar = (fi) this.h.get();
if (fiVar == null || fiVar.c()) {
return;
}
this.a.J();
if (com.applovin.impl.sdk.n.a()) {
this.a.J().d(this.b, "Attempting to timeout pending task " + fiVar.b() + " with " + this.i);
}
fiVar.a(this.i);
}
}

View File

@@ -0,0 +1,8 @@
package com.applovin.impl;
import java.util.List;
/* loaded from: classes.dex */
public interface ao {
void a(List list);
}

View File

@@ -0,0 +1,70 @@
package com.applovin.impl;
import com.applovin.impl.i2;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
final class ap extends i2 {
public ap(ho hoVar, long j, long j2, int i, int i2) {
super(new i2.b(), new a(i, hoVar, i2), j, 0L, j + 1, 0L, j2, 188L, 940);
}
public static final class a implements i2.f {
private final ho a;
private final bh b = new bh();
private final int c;
private final int d;
public a(int i, ho hoVar, int i2) {
this.c = i;
this.a = hoVar;
this.d = i2;
}
@Override // com.applovin.impl.i2.f
public void a() {
this.b.a(xp.f);
}
private i2.e a(bh bhVar, long j, long j2) {
int a;
int a2;
int e = bhVar.e();
long j3 = -1;
long j4 = -1;
long j5 = -9223372036854775807L;
while (bhVar.a() >= 188 && (a2 = (a = ep.a(bhVar.c(), bhVar.d(), e)) + 188) <= e) {
long a3 = ep.a(bhVar, a, this.c);
if (a3 != C.TIME_UNSET) {
long b = this.a.b(a3);
if (b > j) {
if (j5 == C.TIME_UNSET) {
return i2.e.a(b, j2);
}
return i2.e.a(j2 + j4);
}
if (100000 + b > j) {
return i2.e.a(j2 + a);
}
j4 = a;
j5 = b;
}
bhVar.f(a2);
j3 = a2;
}
if (j5 != C.TIME_UNSET) {
return i2.e.b(j5, j2 + j3);
}
return i2.e.d;
}
@Override // com.applovin.impl.i2.f
public i2.e a(l8 l8Var, long j) {
long f = l8Var.f();
int min = (int) Math.min(this.d, l8Var.a() - f);
this.b.d(min);
l8Var.c(this.b.c(), 0, min);
return a(this.b, j, f);
}
}
}

View File

@@ -0,0 +1,504 @@
package com.applovin.impl;
import android.net.Uri;
import androidx.arch.core.util.Function;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class aq extends com.applovin.impl.sdk.ad.b {
private final String l;
private final String m;
private final jq n;
private final long o;
private final nq p;
private final dq q;
private final String r;
private final cq s;
private final sg t;
private final Set u;
private final Set v;
public enum c {
COMPANION_AD,
VIDEO
}
public enum d {
IMPRESSION,
VIDEO_CLICK,
COMPANION_CLICK,
VIDEO,
COMPANION,
INDUSTRY_ICON_IMPRESSION,
INDUSTRY_ICON_CLICK,
ERROR
}
@Override // com.applovin.impl.sdk.ad.b
public void L0() {
}
@Override // com.applovin.impl.sdk.ad.b
public String P() {
return this.r;
}
@Override // com.applovin.impl.sdk.ad.b, com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
public sg getAdEventTracker() {
return this.t;
}
@Override // com.applovin.impl.sdk.AppLovinAdBase
public long getCreatedAtMillis() {
return this.o;
}
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
public JSONObject getOriginalFullResponse() {
return this.fullResponse;
}
public cq i1() {
return this.s;
}
public dq j1() {
return this.q;
}
public jq r1() {
return this.n;
}
public nq t1() {
return this.p;
}
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
public String toString() {
return "VastAd{title='" + this.l + "', adDescription='" + this.m + "', systemInfo=" + this.n + ", videoCreative=" + this.p + ", companionAd=" + this.q + ", adVerifications=" + this.s + ", impressionTrackers=" + this.u + ", errorTrackers=" + this.v + '}';
}
private aq(b bVar) {
super(bVar.a, bVar.b, bVar.c);
this.l = bVar.e;
this.n = bVar.g;
this.m = bVar.f;
this.p = bVar.h;
this.q = bVar.i;
this.s = bVar.j;
this.u = bVar.k;
this.v = bVar.l;
this.t = new sg(this);
Uri t0 = t0();
if (t0 != null) {
this.r = t0.toString();
} else {
this.r = "";
}
this.o = bVar.d;
}
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
public boolean hasVideoUrl() {
List f;
nq nqVar = this.p;
return (nqVar == null || (f = nqVar.f()) == null || f.size() <= 0) ? false : true;
}
@Override // com.applovin.impl.sdk.ad.b
public boolean I0() {
return getBooleanFromAdObject("vast_is_streaming", Boolean.FALSE);
}
public void x1() {
tl tlVar = this.synchronizedAdObject;
if (tlVar != null) {
tlVar.c("vast_is_streaming");
return;
}
synchronized (this.adObjectLock) {
this.adObject.remove("vast_is_streaming");
}
}
@Override // com.applovin.impl.sdk.ad.b, com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
public boolean isOpenMeasurementEnabled() {
return getBooleanFromAdObject("omsdk_enabled", Boolean.TRUE) && this.s != null;
}
public boolean B1() {
return getBooleanFromAdObject("iopms", Boolean.FALSE);
}
public boolean C1() {
return getBooleanFromAdObject("iopmsfsr", Boolean.TRUE);
}
public long q1() {
return getLongFromAdObject("real_close_delay", 0L);
}
public c n1() {
if ("companion_ad".equalsIgnoreCase(getStringFromAdObject("vast_first_caching_operation", "companion_ad"))) {
return c.COMPANION_AD;
}
return c.VIDEO;
}
public boolean w1() {
return getBooleanFromAdObject("vast_immediate_ad_load", Boolean.TRUE);
}
@Override // com.applovin.impl.sdk.ad.b
public Uri t0() {
oq u1 = u1();
if (u1 != null) {
return u1.d();
}
return null;
}
@Override // com.applovin.impl.sdk.ad.b
public Uri i() {
nq nqVar = this.p;
if (nqVar != null) {
return nqVar.b();
}
return null;
}
@Override // com.applovin.impl.sdk.ad.b
public Uri k0() {
return i();
}
@Override // com.applovin.impl.sdk.ad.b
public boolean H0() {
return getBooleanFromAdObject("video_clickable", Boolean.FALSE) && i() != null;
}
@Override // com.applovin.impl.sdk.ad.b
public List E() {
List a2;
tl tlVar = this.synchronizedAdObject;
if (tlVar != null) {
return (List) tlVar.a(new Function() { // from class: com.applovin.impl.aq$$ExternalSyntheticLambda0
@Override // androidx.arch.core.util.Function
public final Object apply(Object obj) {
List w;
w = aq.this.w((tl) obj);
return w;
}
});
}
synchronized (this.adObjectLock) {
a2 = yp.a(getJsonObjectFromAdObject("vimp_urls", new JSONObject()), getClCode(), null, o1(), Q(), T0(), this.sdk);
}
return a2;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ List w(tl tlVar) {
return yp.a(tlVar.a("vimp_urls", new JSONObject()), getClCode(), null, o1(), Q(), T0(), this.sdk);
}
private String o1() {
String stringFromAdObject = getStringFromAdObject("vimp_url", null);
if (stringFromAdObject != null) {
return stringFromAdObject.replace("{CLCODE}", getClCode());
}
return null;
}
public oq u1() {
Long f = e4.f(this.sdk);
return this.p.a(f != null ? f.longValue() : 0L);
}
public gq p1() {
nq nqVar = this.p;
if (nqVar != null) {
return nqVar.e();
}
return null;
}
public boolean v1() {
return p1() != null;
}
public boolean A1() {
return getBooleanFromAdObject("vast_fire_click_trackers_on_html_clicks", Boolean.FALSE);
}
public void b(String str) {
tl tlVar = this.synchronizedAdObject;
if (tlVar != null) {
tlVar.b("html_template", str);
return;
}
synchronized (this.adObjectLock) {
JsonUtils.putString(this.adObject, "html_template", str);
}
}
public String l1() {
return getStringFromAdObject("html_template", "");
}
public Uri m1() {
String stringFromAdObject = getStringFromAdObject("html_template_url", null);
if (StringUtils.isValidString(stringFromAdObject)) {
return Uri.parse(stringFromAdObject);
}
return null;
}
public boolean y1() {
return getBooleanFromAdObject("cache_companion_ad", Boolean.TRUE);
}
public boolean z1() {
return getBooleanFromAdObject("cache_video", Boolean.TRUE);
}
private Set s1() {
nq nqVar = this.p;
if (nqVar != null) {
return nqVar.a();
}
return Collections.emptySet();
}
private Set k1() {
dq dqVar = this.q;
if (dqVar != null) {
return dqVar.a();
}
return Collections.emptySet();
}
private Set a(c cVar, String[] strArr) {
Map c2;
dq dqVar;
nq nqVar;
if (strArr != null && strArr.length > 0) {
if (cVar == c.VIDEO && (nqVar = this.p) != null) {
c2 = nqVar.d();
} else {
c2 = (cVar != c.COMPANION_AD || (dqVar = this.q) == null) ? null : dqVar.c();
}
HashSet hashSet = new HashSet();
if (c2 != null && !c2.isEmpty()) {
for (String str : strArr) {
if (c2.containsKey(str)) {
hashSet.addAll((Collection) c2.get(str));
}
}
}
return Collections.unmodifiableSet(hashSet);
}
return Collections.emptySet();
}
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof aq) || !super.equals(obj)) {
return false;
}
aq aqVar = (aq) obj;
String str = this.l;
if (str == null ? aqVar.l != null : !str.equals(aqVar.l)) {
return false;
}
String str2 = this.m;
if (str2 == null ? aqVar.m != null : !str2.equals(aqVar.m)) {
return false;
}
jq jqVar = this.n;
if (jqVar == null ? aqVar.n != null : !jqVar.equals(aqVar.n)) {
return false;
}
nq nqVar = this.p;
if (nqVar == null ? aqVar.p != null : !nqVar.equals(aqVar.p)) {
return false;
}
dq dqVar = this.q;
if (dqVar == null ? aqVar.q != null : !dqVar.equals(aqVar.q)) {
return false;
}
cq cqVar = this.s;
if (cqVar == null ? aqVar.s != null : !cqVar.equals(aqVar.s)) {
return false;
}
Set set = this.u;
if (set == null ? aqVar.u != null : !set.equals(aqVar.u)) {
return false;
}
Set set2 = this.v;
Set set3 = aqVar.v;
return set2 != null ? set2.equals(set3) : set3 == null;
}
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
public int hashCode() {
int hashCode = super.hashCode() * 31;
String str = this.l;
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.m;
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
jq jqVar = this.n;
int hashCode4 = (hashCode3 + (jqVar != null ? jqVar.hashCode() : 0)) * 31;
nq nqVar = this.p;
int hashCode5 = (hashCode4 + (nqVar != null ? nqVar.hashCode() : 0)) * 31;
dq dqVar = this.q;
int hashCode6 = (hashCode5 + (dqVar != null ? dqVar.hashCode() : 0)) * 31;
cq cqVar = this.s;
int hashCode7 = (hashCode6 + (cqVar != null ? cqVar.hashCode() : 0)) * 31;
Set set = this.u;
int hashCode8 = (hashCode7 + (set != null ? set.hashCode() : 0)) * 31;
Set set2 = this.v;
return hashCode8 + (set2 != null ? set2.hashCode() : 0);
}
public static class b {
private JSONObject a;
private JSONObject b;
private com.applovin.impl.sdk.j c;
private long d;
private String e;
private String f;
private jq g;
private nq h;
private dq i;
private cq j;
private Set k;
private Set l;
public b a(long j) {
this.d = j;
return this;
}
public b a(cq cqVar) {
this.j = cqVar;
return this;
}
public b a(dq dqVar) {
this.i = dqVar;
return this;
}
public b a(jq jqVar) {
this.g = jqVar;
return this;
}
public b a(nq nqVar) {
this.h = nqVar;
return this;
}
public b a(String str) {
this.f = str;
return this;
}
public b a(Set set) {
this.l = set;
return this;
}
public b b(String str) {
this.e = str;
return this;
}
public b b(Set set) {
this.k = set;
return this;
}
public b b(JSONObject jSONObject) {
if (jSONObject == null) {
throw new IllegalArgumentException("No full ad response specified.");
}
this.b = jSONObject;
return this;
}
public b a(JSONObject jSONObject) {
if (jSONObject == null) {
throw new IllegalArgumentException("No ad object specified.");
}
this.a = jSONObject;
return this;
}
public b a(com.applovin.impl.sdk.j jVar) {
if (jVar == null) {
throw new IllegalArgumentException("No sdk specified.");
}
this.c = jVar;
return this;
}
public aq a() {
return new aq(this);
}
}
public Set a(d dVar, String str) {
return a(dVar, new String[]{str});
}
public Set a(d dVar, String[] strArr) {
this.sdk.J();
if (com.applovin.impl.sdk.n.a()) {
this.sdk.J().a("VastAd", "Retrieving trackers of type '" + dVar + "' and events '" + Arrays.toString(strArr) + "'...");
}
if (dVar == d.IMPRESSION) {
return this.u;
}
if (dVar == d.VIDEO_CLICK) {
return s1();
}
if (dVar == d.COMPANION_CLICK) {
return k1();
}
if (dVar == d.VIDEO) {
return a(c.VIDEO, strArr);
}
if (dVar == d.COMPANION) {
return a(c.COMPANION_AD, strArr);
}
if (dVar == d.INDUSTRY_ICON_CLICK) {
return p1().a();
}
if (dVar == d.INDUSTRY_ICON_IMPRESSION) {
return p1().e();
}
if (dVar == d.ERROR) {
return this.v;
}
this.sdk.J();
if (com.applovin.impl.sdk.n.a()) {
this.sdk.J().b("VastAd", "Failed to retrieve trackers of invalid type '" + dVar + "' and events '" + Arrays.toString(strArr) + "'");
}
return Collections.emptySet();
}
}

View File

@@ -0,0 +1,92 @@
package com.applovin.impl;
import android.app.Activity;
import android.graphics.Point;
import android.graphics.Rect;
import android.view.View;
import android.view.animation.Animation;
import com.applovin.sdk.AppLovinSdkUtils;
/* loaded from: classes.dex */
public class ar {
private final com.applovin.impl.sdk.j a;
private final com.applovin.impl.sdk.n b;
private final View c;
public long a(ne neVar) {
long j;
if (com.applovin.impl.sdk.n.a()) {
this.b.a("ViewabilityTracker", "Checking visibility...");
}
Point b = z3.b(this.c.getContext());
if (this.c.isShown()) {
j = 0;
} else {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "View is hidden");
}
j = 2;
}
if (this.c.getAlpha() < neVar.h0()) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "View is transparent");
}
j |= 4;
}
Animation animation = this.c.getAnimation();
if (animation != null && animation.hasStarted() && !animation.hasEnded()) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "View is animating");
}
j |= 8;
}
if (this.c.getParent() == null) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "No parent view found");
}
j |= 16;
}
int pxToDp = AppLovinSdkUtils.pxToDp(this.c.getContext(), this.c.getWidth());
if (pxToDp < Math.min(neVar.n0(), b.x)) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "View has width (" + pxToDp + ") below threshold");
}
j |= 32;
}
int pxToDp2 = AppLovinSdkUtils.pxToDp(this.c.getContext(), this.c.getHeight());
if (pxToDp2 < neVar.j0()) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "View has height (" + pxToDp2 + ") below threshold");
}
j |= 64;
}
Rect rect = new Rect(0, 0, b.x, b.y);
int[] iArr = {-1, -1};
this.c.getLocationOnScreen(iArr);
int i = iArr[0];
Rect rect2 = new Rect(i, iArr[1], this.c.getWidth() + i, iArr[1] + this.c.getHeight());
if (!Rect.intersects(rect, rect2)) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "Rect (" + rect2 + ") outside of screen's bounds (" + rect + ")");
}
j |= 128;
}
Activity b2 = this.a.e().b();
if (b2 != null && !zq.a(this.c, b2)) {
if (com.applovin.impl.sdk.n.a()) {
this.b.b("ViewabilityTracker", "View is not in top activity's view hierarchy");
}
j |= 256;
}
if (com.applovin.impl.sdk.n.a()) {
this.b.a("ViewabilityTracker", "Returning flags: " + Long.toBinaryString(j));
}
return j;
}
public ar(View view, com.applovin.impl.sdk.j jVar) {
this.a = jVar;
this.b = jVar.J();
this.c = view;
}
}

View File

@@ -0,0 +1,87 @@
package com.applovin.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
/* loaded from: classes.dex */
final class as implements nl {
private final List a;
private final long[] b;
private final long[] c;
@Override // com.applovin.impl.nl
public List b(long j) {
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
for (int i = 0; i < this.a.size(); i++) {
long[] jArr = this.b;
int i2 = i * 2;
if (jArr[i2] <= j && j < jArr[i2 + 1]) {
wr wrVar = (wr) this.a.get(i);
b5 b5Var = wrVar.a;
if (b5Var.f == -3.4028235E38f) {
arrayList2.add(wrVar);
} else {
arrayList.add(b5Var);
}
}
}
Collections.sort(arrayList2, new Comparator() { // from class: com.applovin.impl.as$$ExternalSyntheticLambda0
@Override // java.util.Comparator
public final int compare(Object obj, Object obj2) {
int a;
a = as.a((wr) obj, (wr) obj2);
return a;
}
});
for (int i3 = 0; i3 < arrayList2.size(); i3++) {
arrayList.add(((wr) arrayList2.get(i3)).a.a().a((-1) - i3, 1).a());
}
return arrayList;
}
public as(List list) {
this.a = Collections.unmodifiableList(new ArrayList(list));
this.b = new long[list.size() * 2];
for (int i = 0; i < list.size(); i++) {
wr wrVar = (wr) list.get(i);
int i2 = i * 2;
long[] jArr = this.b;
jArr[i2] = wrVar.b;
jArr[i2 + 1] = wrVar.c;
}
long[] jArr2 = this.b;
long[] copyOf = Arrays.copyOf(jArr2, jArr2.length);
this.c = copyOf;
Arrays.sort(copyOf);
}
@Override // com.applovin.impl.nl
public long a(int i) {
b1.a(i >= 0);
b1.a(i < this.c.length);
return this.c[i];
}
@Override // com.applovin.impl.nl
public int a() {
return this.c.length;
}
@Override // com.applovin.impl.nl
public int a(long j) {
int a = xp.a(this.c, j, false, false);
if (a < this.c.length) {
return a;
}
return -1;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ int a(wr wrVar, wr wrVar2) {
return Long.compare(wrVar.b, wrVar2.b);
}
}

View File

@@ -0,0 +1,215 @@
package com.applovin.impl;
import android.util.Pair;
import com.applovin.impl.fo;
/* loaded from: classes.dex */
public abstract class b extends fo {
private final int c;
private final wj d;
private final boolean f;
public abstract int b(Object obj);
public abstract int d(int i);
public abstract int e(int i);
public abstract Object f(int i);
public abstract int g(int i);
public abstract int h(int i);
public abstract fo i(int i);
public static Object d(Object obj) {
return ((Pair) obj).first;
}
public static Object c(Object obj) {
return ((Pair) obj).second;
}
public static Object a(Object obj, Object obj2) {
return Pair.create(obj, obj2);
}
public b(boolean z, wj wjVar) {
this.f = z;
this.d = wjVar;
this.c = wjVar.a();
}
@Override // com.applovin.impl.fo
public int b(boolean z) {
int i = this.c;
if (i == 0) {
return -1;
}
if (this.f) {
z = false;
}
int c = z ? this.d.c() : i - 1;
while (i(c).c()) {
c = b(c, z);
if (c == -1) {
return -1;
}
}
return h(c) + i(c).b(z);
}
@Override // com.applovin.impl.fo
public int a(boolean z) {
if (this.c == 0) {
return -1;
}
if (this.f) {
z = false;
}
int b = z ? this.d.b() : 0;
while (i(b).c()) {
b = a(b, z);
if (b == -1) {
return -1;
}
}
return h(b) + i(b).a(z);
}
@Override // com.applovin.impl.fo
public final int a(Object obj) {
int a;
if (!(obj instanceof Pair)) {
return -1;
}
Object d = d(obj);
Object c = c(obj);
int b = b(d);
if (b == -1 || (a = i(b).a(c)) == -1) {
return -1;
}
return g(b) + a;
}
private int b(int i, boolean z) {
if (z) {
return this.d.b(i);
}
if (i > 0) {
return i - 1;
}
return -1;
}
@Override // com.applovin.impl.fo
public int b(int i, int i2, boolean z) {
if (this.f) {
if (i2 == 1) {
i2 = 2;
}
z = false;
}
int e = e(i);
int h = h(e);
int b = i(e).b(i - h, i2 != 2 ? i2 : 0, z);
if (b != -1) {
return h + b;
}
int b2 = b(e, z);
while (b2 != -1 && i(b2).c()) {
b2 = b(b2, z);
}
if (b2 != -1) {
return h(b2) + i(b2).b(z);
}
if (i2 == 2) {
return b(z);
}
return -1;
}
private int a(int i, boolean z) {
if (z) {
return this.d.a(i);
}
if (i < this.c - 1) {
return i + 1;
}
return -1;
}
@Override // com.applovin.impl.fo
public final Object b(int i) {
int d = d(i);
return a(f(d), i(d).b(i - g(d)));
}
@Override // com.applovin.impl.fo
public int a(int i, int i2, boolean z) {
if (this.f) {
if (i2 == 1) {
i2 = 2;
}
z = false;
}
int e = e(i);
int h = h(e);
int a = i(e).a(i - h, i2 != 2 ? i2 : 0, z);
if (a != -1) {
return h + a;
}
int a2 = a(e, z);
while (a2 != -1 && i(a2).c()) {
a2 = a(a2, z);
}
if (a2 != -1) {
return h(a2) + i(a2).a(z);
}
if (i2 == 2) {
return a(z);
}
return -1;
}
@Override // com.applovin.impl.fo
public final fo.b a(int i, fo.b bVar, boolean z) {
int d = d(i);
int h = h(d);
i(d).a(i - g(d), bVar, z);
bVar.c += h;
if (z) {
bVar.b = a(f(d), b1.a(bVar.b));
}
return bVar;
}
@Override // com.applovin.impl.fo
public final fo.b a(Object obj, fo.b bVar) {
Object d = d(obj);
Object c = c(obj);
int b = b(d);
int h = h(b);
i(b).a(c, bVar);
bVar.c += h;
bVar.b = obj;
return bVar;
}
@Override // com.applovin.impl.fo
public final fo.d a(int i, fo.d dVar, long j) {
int e = e(i);
int h = h(e);
int g = g(e);
i(e).a(i - h, dVar, j);
Object f = f(e);
if (!fo.d.s.equals(dVar.a)) {
f = a(f, dVar.a);
}
dVar.a = f;
dVar.p += g;
dVar.q += g;
return dVar;
}
}

View File

@@ -0,0 +1,173 @@
package com.applovin.impl;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.ListAdapter;
import android.widget.ListView;
import androidx.core.view.ViewCompat;
import com.applovin.impl.dc;
import com.applovin.impl.ec;
import com.applovin.impl.r;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.mediation.MaxDebuggerAdUnitDetailActivity;
import com.applovin.mediation.MaxDebuggerWaterfallSegmentsActivity;
import com.applovin.sdk.R;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public abstract class b0 extends se {
private z a;
private com.applovin.impl.sdk.j b;
private ec c;
public enum b {
TARGETED_WATERFALL,
OTHER_WATERFALLS
}
@Override // com.applovin.impl.se
public com.applovin.impl.sdk.j getSdk() {
return this.b;
}
/* JADX INFO: Access modifiers changed from: private */
public dc c(String str) {
return dc.a(dc.c.RIGHT_DETAIL).b(StringUtils.createSpannedString(str, ViewCompat.MEASURED_STATE_MASK, 18, 1)).a(this).a(true).a();
}
public class a extends ec {
final /* synthetic */ z f;
@Override // com.applovin.impl.ec
public List c(int i) {
ArrayList arrayList = new ArrayList();
a0 a0Var = (a0) this.f.g().get(i);
arrayList.add(b0.this.c(a0Var.c()));
if (a0Var.b() != null) {
arrayList.add(b0.this.a("AB Test Experiment Name", a0Var.b()));
}
kr d = a0Var.d();
b0 b0Var = b0.this;
arrayList.add(b0Var.a("Device ID Targeting", b0Var.a(d.a())));
b0 b0Var2 = b0.this;
arrayList.add(b0Var2.a("Device Type Targeting", b0Var2.b(d.b())));
if (d.c() != null) {
arrayList.add(b0.this.a(d.c()));
}
return arrayList;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public a(Context context, z zVar) {
super(context);
this.f = zVar;
}
@Override // com.applovin.impl.ec
public int b() {
return this.f.g().size();
}
@Override // com.applovin.impl.ec
public int d(int i) {
a0 a0Var = (a0) this.f.g().get(i);
return (a0Var.b() != null ? 1 : 0) + 3 + (a0Var.d().c() != null ? 1 : 0);
}
@Override // com.applovin.impl.ec
public dc e(int i) {
if (i == b.TARGETED_WATERFALL.ordinal()) {
return new fj("TARGETED WATERFALL FOR CURRENT DEVICE");
}
if (i == b.OTHER_WATERFALLS.ordinal()) {
return new fj("OTHER WATERFALLS");
}
return new fj("");
}
}
public void initialize(final z zVar, final com.applovin.impl.sdk.j jVar) {
this.a = zVar;
this.b = jVar;
a aVar = new a(this, zVar);
this.c = aVar;
aVar.a(new ec.a() { // from class: com.applovin.impl.b0$$ExternalSyntheticLambda0
@Override // com.applovin.impl.ec.a
public final void a(lb lbVar, dc dcVar) {
b0.this.a(jVar, zVar, lbVar, dcVar);
}
});
this.c.notifyDataSetChanged();
}
@Override // com.applovin.impl.se, android.app.Activity
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.mediation_debugger_list_view);
setTitle(this.a.d());
ListView listView = (ListView) findViewById(R.id.listView);
listView.setAdapter((ListAdapter) this.c);
listView.setDividerHeight(0);
}
@Override // com.applovin.impl.se, android.app.Activity
public void onDestroy() {
super.onDestroy();
ec ecVar = this.c;
if (ecVar != null) {
ecVar.a((ec.a) null);
}
}
/* JADX INFO: Access modifiers changed from: private */
public String b(String str) {
return str.equals("phone") ? "Phones" : str.equals("tablet") ? "Tablets" : "All";
}
/* JADX INFO: Access modifiers changed from: private */
public String a(String str) {
return str.equals("idfa") ? "IDFA Only" : str.equals("dnt") ? "No IDFA Only" : "All";
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void a(z zVar, lb lbVar, com.applovin.impl.sdk.j jVar, MaxDebuggerAdUnitDetailActivity maxDebuggerAdUnitDetailActivity) {
maxDebuggerAdUnitDetailActivity.initialize(zVar, (a0) zVar.g().get(lbVar.b()), null, jVar);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void a(z zVar, lb lbVar, com.applovin.impl.sdk.j jVar, MaxDebuggerWaterfallSegmentsActivity maxDebuggerWaterfallSegmentsActivity) {
a0 a0Var = (a0) zVar.g().get(lbVar.b());
maxDebuggerWaterfallSegmentsActivity.initialize(a0Var.c(), a0Var.d().c(), jVar);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(final com.applovin.impl.sdk.j jVar, final z zVar, final lb lbVar, dc dcVar) {
if (lbVar.a() == 0) {
r.a(this, MaxDebuggerAdUnitDetailActivity.class, jVar.e(), new r.b() { // from class: com.applovin.impl.b0$$ExternalSyntheticLambda1
@Override // com.applovin.impl.r.b
public final void a(Activity activity) {
b0.a(z.this, lbVar, jVar, (MaxDebuggerAdUnitDetailActivity) activity);
}
});
} else {
r.a(this, MaxDebuggerWaterfallSegmentsActivity.class, jVar.e(), new r.b() { // from class: com.applovin.impl.b0$$ExternalSyntheticLambda2
@Override // com.applovin.impl.r.b
public final void a(Activity activity) {
b0.a(z.this, lbVar, jVar, (MaxDebuggerWaterfallSegmentsActivity) activity);
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public dc a(String str, String str2) {
return dc.a(dc.c.RIGHT_DETAIL).d(str).c(str2).a();
}
/* JADX INFO: Access modifiers changed from: private */
public dc a(List list) {
return dc.a(dc.c.DETAIL).d("Segment Targeting").a(StringUtils.createSpannedString(list.size() + " segment group(s)", -7829368, 14)).a(this).a(true).a();
}
}

View File

@@ -0,0 +1,63 @@
package com.applovin.impl;
import android.text.TextUtils;
/* loaded from: classes.dex */
public abstract class b1 {
public static void a(boolean z) {
if (!z) {
throw new IllegalArgumentException();
}
}
public static void b(boolean z) {
if (!z) {
throw new IllegalStateException();
}
}
public static void a(boolean z, Object obj) {
if (!z) {
throw new IllegalArgumentException(String.valueOf(obj));
}
}
public static int a(int i, int i2, int i3) {
if (i < i2 || i >= i3) {
throw new IndexOutOfBoundsException();
}
return i;
}
public static void b(boolean z, Object obj) {
if (!z) {
throw new IllegalStateException(String.valueOf(obj));
}
}
public static Object b(Object obj) {
if (obj != null) {
return obj;
}
throw new IllegalStateException();
}
public static String a(String str) {
if (TextUtils.isEmpty(str)) {
throw new IllegalArgumentException();
}
return str;
}
public static Object a(Object obj) {
obj.getClass();
return obj;
}
public static Object a(Object obj, Object obj2) {
if (obj != null) {
return obj;
}
throw new IllegalStateException(String.valueOf(obj2));
}
}

View File

@@ -0,0 +1,5 @@
package com.applovin.impl;
/* loaded from: classes.dex */
abstract class b2 extends h {
}

View File

@@ -0,0 +1,34 @@
package com.applovin.impl;
import java.util.Collections;
import java.util.List;
/* loaded from: classes.dex */
final class b3 implements nl {
private final List a;
@Override // com.applovin.impl.nl
public int a() {
return 1;
}
@Override // com.applovin.impl.nl
public int a(long j) {
return j < 0 ? 0 : -1;
}
public b3(List list) {
this.a = list;
}
@Override // com.applovin.impl.nl
public long a(int i) {
b1.a(i == 0);
return 0L;
}
@Override // com.applovin.impl.nl
public List b(long j) {
return j >= 0 ? this.a : Collections.emptyList();
}
}

View File

@@ -0,0 +1,207 @@
package com.applovin.impl;
import android.os.Handler;
import com.applovin.impl.a7;
import com.applovin.impl.be;
import com.applovin.impl.ce;
import java.io.IOException;
import java.util.HashMap;
/* loaded from: classes.dex */
public abstract class b4 extends c2 {
private final HashMap g = new HashMap();
private Handler h;
private xo i;
public int a(Object obj, int i) {
return i;
}
public long a(Object obj, long j) {
return j;
}
public abstract be.a a(Object obj, be.a aVar);
/* renamed from: b, reason: merged with bridge method [inline-methods] */
public abstract void a(Object obj, be beVar, fo foVar);
@Override // com.applovin.impl.c2
public void f() {
for (b bVar : this.g.values()) {
bVar.a.b(bVar.b);
}
}
@Override // com.applovin.impl.c2
public void e() {
for (b bVar : this.g.values()) {
bVar.a.a(bVar.b);
}
}
@Override // com.applovin.impl.c2
public void h() {
for (b bVar : this.g.values()) {
bVar.a.c(bVar.b);
bVar.a.a((ce) bVar.c);
bVar.a.a((a7) bVar.c);
}
this.g.clear();
}
public static final class b {
public final be a;
public final be.b b;
public final a c;
public b(be beVar, be.b bVar, a aVar) {
this.a = beVar;
this.b = bVar;
this.c = aVar;
}
}
public final class a implements ce, a7 {
private final Object a;
private ce.a b;
private a7.a c;
public a(Object obj) {
this.b = b4.this.b((be.a) null);
this.c = b4.this.a((be.a) null);
this.a = obj;
}
@Override // com.applovin.impl.a7
public void d(int i, be.a aVar) {
if (f(i, aVar)) {
this.c.a();
}
}
@Override // com.applovin.impl.a7
public void c(int i, be.a aVar) {
if (f(i, aVar)) {
this.c.c();
}
}
@Override // com.applovin.impl.a7
public void b(int i, be.a aVar) {
if (f(i, aVar)) {
this.c.d();
}
}
private boolean f(int i, be.a aVar) {
be.a aVar2;
if (aVar != null) {
aVar2 = b4.this.a(this.a, aVar);
if (aVar2 == null) {
return false;
}
} else {
aVar2 = null;
}
int a = b4.this.a(this.a, i);
ce.a aVar3 = this.b;
if (aVar3.a != a || !xp.a(aVar3.b, aVar2)) {
this.b = b4.this.a(a, aVar2, 0L);
}
a7.a aVar4 = this.c;
if (aVar4.a == a && xp.a(aVar4.b, aVar2)) {
return true;
}
this.c = b4.this.a(a, aVar2);
return true;
}
private ud a(ud udVar) {
long a = b4.this.a(this.a, udVar.f);
long a2 = b4.this.a(this.a, udVar.g);
return (a == udVar.f && a2 == udVar.g) ? udVar : new ud(udVar.a, udVar.b, udVar.c, udVar.d, udVar.e, a, a2);
}
@Override // com.applovin.impl.ce
public void c(int i, be.a aVar, nc ncVar, ud udVar) {
if (f(i, aVar)) {
this.b.b(ncVar, a(udVar));
}
}
@Override // com.applovin.impl.ce
public void b(int i, be.a aVar, nc ncVar, ud udVar) {
if (f(i, aVar)) {
this.b.c(ncVar, a(udVar));
}
}
@Override // com.applovin.impl.ce
public void a(int i, be.a aVar, ud udVar) {
if (f(i, aVar)) {
this.b.a(a(udVar));
}
}
@Override // com.applovin.impl.a7
public void a(int i, be.a aVar) {
if (f(i, aVar)) {
this.c.b();
}
}
@Override // com.applovin.impl.a7
public void a(int i, be.a aVar, int i2) {
if (f(i, aVar)) {
this.c.a(i2);
}
}
@Override // com.applovin.impl.a7
public void a(int i, be.a aVar, Exception exc) {
if (f(i, aVar)) {
this.c.a(exc);
}
}
@Override // com.applovin.impl.ce
public void a(int i, be.a aVar, nc ncVar, ud udVar) {
if (f(i, aVar)) {
this.b.a(ncVar, a(udVar));
}
}
@Override // com.applovin.impl.ce
public void a(int i, be.a aVar, nc ncVar, ud udVar, IOException iOException, boolean z) {
if (f(i, aVar)) {
this.b.a(ncVar, a(udVar), iOException, z);
}
}
}
public final void a(final Object obj, be beVar) {
b1.a(!this.g.containsKey(obj));
be.b bVar = new be.b() { // from class: com.applovin.impl.b4$$ExternalSyntheticLambda0
@Override // com.applovin.impl.be.b
public final void a(be beVar2, fo foVar) {
b4.this.a(obj, beVar2, foVar);
}
};
a aVar = new a(obj);
this.g.put(obj, new b(beVar, bVar, aVar));
beVar.a((Handler) b1.a(this.h), (ce) aVar);
beVar.a((Handler) b1.a(this.h), (a7) aVar);
beVar.a(bVar, this.i);
if (g()) {
return;
}
beVar.a(bVar);
}
@Override // com.applovin.impl.c2
public void a(xo xoVar) {
this.i = xoVar;
this.h = xp.a();
}
}

View File

@@ -0,0 +1,305 @@
package com.applovin.impl;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.Layout;
import android.text.Spanned;
import android.text.SpannedString;
import android.text.TextUtils;
import androidx.core.view.ViewCompat;
import com.applovin.exoplayer2.common.base.Objects;
import com.applovin.impl.o2;
/* loaded from: classes.dex */
public final class b5 implements o2 {
public static final b5 s = new b().a("").a();
public static final o2.a t = new o2.a() { // from class: com.applovin.impl.b5$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o2.a
public final o2 a(Bundle bundle) {
b5 a2;
a2 = b5.a(bundle);
return a2;
}
};
public final CharSequence a;
public final Layout.Alignment b;
public final Layout.Alignment c;
public final Bitmap d;
public final float f;
public final int g;
public final int h;
public final float i;
public final int j;
public final float k;
public final float l;
public final boolean m;
public final int n;
public final int o;
public final float p;
public final int q;
public final float r;
private b5(CharSequence charSequence, Layout.Alignment alignment, Layout.Alignment alignment2, Bitmap bitmap, float f, int i, int i2, float f2, int i3, int i4, float f3, float f4, float f5, boolean z, int i5, int i6, float f6) {
if (charSequence == null) {
b1.a(bitmap);
} else {
b1.a(bitmap == null);
}
if (charSequence instanceof Spanned) {
this.a = SpannedString.valueOf(charSequence);
} else if (charSequence != null) {
this.a = charSequence.toString();
} else {
this.a = null;
}
this.b = alignment;
this.c = alignment2;
this.d = bitmap;
this.f = f;
this.g = i;
this.h = i2;
this.i = f2;
this.j = i3;
this.k = f4;
this.l = f5;
this.m = z;
this.n = i5;
this.o = i4;
this.p = f3;
this.q = i6;
this.r = f6;
}
public boolean equals(Object obj) {
Bitmap bitmap;
Bitmap bitmap2;
if (this == obj) {
return true;
}
if (obj == null || b5.class != obj.getClass()) {
return false;
}
b5 b5Var = (b5) obj;
return TextUtils.equals(this.a, b5Var.a) && this.b == b5Var.b && this.c == b5Var.c && ((bitmap = this.d) != null ? !((bitmap2 = b5Var.d) == null || !bitmap.sameAs(bitmap2)) : b5Var.d == null) && this.f == b5Var.f && this.g == b5Var.g && this.h == b5Var.h && this.i == b5Var.i && this.j == b5Var.j && this.k == b5Var.k && this.l == b5Var.l && this.m == b5Var.m && this.n == b5Var.n && this.o == b5Var.o && this.p == b5Var.p && this.q == b5Var.q && this.r == b5Var.r;
}
public int hashCode() {
return Objects.hashCode(this.a, this.b, this.c, this.d, Float.valueOf(this.f), Integer.valueOf(this.g), Integer.valueOf(this.h), Float.valueOf(this.i), Integer.valueOf(this.j), Float.valueOf(this.k), Float.valueOf(this.l), Boolean.valueOf(this.m), Integer.valueOf(this.n), Integer.valueOf(this.o), Float.valueOf(this.p), Integer.valueOf(this.q), Float.valueOf(this.r));
}
public static final class b {
private CharSequence a;
private Bitmap b;
private Layout.Alignment c;
private Layout.Alignment d;
private float e;
private int f;
private int g;
private float h;
private int i;
private int j;
private float k;
private float l;
private float m;
private boolean n;
private int o;
private int p;
private float q;
public b a(float f) {
this.m = f;
return this;
}
public b a(float f, int i) {
this.e = f;
this.f = i;
return this;
}
public b a(int i) {
this.g = i;
return this;
}
public b a(Bitmap bitmap) {
this.b = bitmap;
return this;
}
public b a(Layout.Alignment alignment) {
this.d = alignment;
return this;
}
public b a(CharSequence charSequence) {
this.a = charSequence;
return this;
}
public b b() {
this.n = false;
return this;
}
public b b(float f) {
this.h = f;
return this;
}
public b b(float f, int i) {
this.k = f;
this.j = i;
return this;
}
public b b(int i) {
this.i = i;
return this;
}
public b b(Layout.Alignment alignment) {
this.c = alignment;
return this;
}
public int c() {
return this.g;
}
public b c(float f) {
this.q = f;
return this;
}
public b c(int i) {
this.p = i;
return this;
}
public int d() {
return this.i;
}
public b d(float f) {
this.l = f;
return this;
}
public b d(int i) {
this.o = i;
this.n = true;
return this;
}
public CharSequence e() {
return this.a;
}
public b() {
this.a = null;
this.b = null;
this.c = null;
this.d = null;
this.e = -3.4028235E38f;
this.f = Integer.MIN_VALUE;
this.g = Integer.MIN_VALUE;
this.h = -3.4028235E38f;
this.i = Integer.MIN_VALUE;
this.j = Integer.MIN_VALUE;
this.k = -3.4028235E38f;
this.l = -3.4028235E38f;
this.m = -3.4028235E38f;
this.n = false;
this.o = ViewCompat.MEASURED_STATE_MASK;
this.p = Integer.MIN_VALUE;
}
private b(b5 b5Var) {
this.a = b5Var.a;
this.b = b5Var.d;
this.c = b5Var.b;
this.d = b5Var.c;
this.e = b5Var.f;
this.f = b5Var.g;
this.g = b5Var.h;
this.h = b5Var.i;
this.i = b5Var.j;
this.j = b5Var.o;
this.k = b5Var.p;
this.l = b5Var.k;
this.m = b5Var.l;
this.n = b5Var.m;
this.o = b5Var.n;
this.p = b5Var.q;
this.q = b5Var.r;
}
public b5 a() {
return new b5(this.a, this.c, this.d, this.b, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.m, this.n, this.o, this.p, this.q);
}
}
private static String a(int i) {
return Integer.toString(i, 36);
}
public b a() {
return new b();
}
/* JADX INFO: Access modifiers changed from: private */
public static final b5 a(Bundle bundle) {
b bVar = new b();
CharSequence charSequence = bundle.getCharSequence(a(0));
if (charSequence != null) {
bVar.a(charSequence);
}
Layout.Alignment alignment = (Layout.Alignment) bundle.getSerializable(a(1));
if (alignment != null) {
bVar.b(alignment);
}
Layout.Alignment alignment2 = (Layout.Alignment) bundle.getSerializable(a(2));
if (alignment2 != null) {
bVar.a(alignment2);
}
Bitmap bitmap = (Bitmap) bundle.getParcelable(a(3));
if (bitmap != null) {
bVar.a(bitmap);
}
if (bundle.containsKey(a(4)) && bundle.containsKey(a(5))) {
bVar.a(bundle.getFloat(a(4)), bundle.getInt(a(5)));
}
if (bundle.containsKey(a(6))) {
bVar.a(bundle.getInt(a(6)));
}
if (bundle.containsKey(a(7))) {
bVar.b(bundle.getFloat(a(7)));
}
if (bundle.containsKey(a(8))) {
bVar.b(bundle.getInt(a(8)));
}
if (bundle.containsKey(a(10)) && bundle.containsKey(a(9))) {
bVar.b(bundle.getFloat(a(10)), bundle.getInt(a(9)));
}
if (bundle.containsKey(a(11))) {
bVar.d(bundle.getFloat(a(11)));
}
if (bundle.containsKey(a(12))) {
bVar.a(bundle.getFloat(a(12)));
}
if (bundle.containsKey(a(13))) {
bVar.d(bundle.getInt(a(13)));
}
if (!bundle.getBoolean(a(14), false)) {
bVar.b();
}
if (bundle.containsKey(a(15))) {
bVar.c(bundle.getInt(a(15)));
}
if (bundle.containsKey(a(16))) {
bVar.c(bundle.getFloat(a(16)));
}
return bVar.a();
}
}

View File

@@ -0,0 +1,202 @@
package com.applovin.impl;
import java.io.EOFException;
import java.io.InterruptedIOException;
import java.util.Arrays;
/* loaded from: classes.dex */
public final class b6 implements l8 {
private final g5 b;
private final long c;
private long d;
private int f;
private int g;
private byte[] e = new byte[65536];
private final byte[] a = new byte[4096];
private void d(int i) {
if (i != -1) {
this.d += i;
}
}
@Override // com.applovin.impl.l8
public long a() {
return this.c;
}
@Override // com.applovin.impl.l8
public void b() {
this.f = 0;
}
@Override // com.applovin.impl.l8
public long d() {
return this.d + this.f;
}
@Override // com.applovin.impl.l8
public long f() {
return this.d;
}
public b6(g5 g5Var, long j, long j2) {
this.b = g5Var;
this.d = j;
this.c = j2;
}
@Override // com.applovin.impl.l8
public int b(byte[] bArr, int i, int i2) {
int min;
e(i2);
int i3 = this.g;
int i4 = this.f;
int i5 = i3 - i4;
if (i5 == 0) {
min = a(this.e, i4, i2, 0, true);
if (min == -1) {
return -1;
}
this.g += min;
} else {
min = Math.min(i2, i5);
}
System.arraycopy(this.e, this.f, bArr, i, min);
this.f += min;
return min;
}
@Override // com.applovin.impl.l8
public boolean a(int i, boolean z) {
e(i);
int i2 = this.g - this.f;
while (i2 < i) {
i2 = a(this.e, this.f, i, i2, z);
if (i2 == -1) {
return false;
}
this.g = this.f + i2;
}
this.f += i;
return true;
}
@Override // com.applovin.impl.l8
public void c(int i) {
a(i, false);
}
private void e(int i) {
int i2 = this.f + i;
byte[] bArr = this.e;
if (i2 > bArr.length) {
this.e = Arrays.copyOf(this.e, xp.a(bArr.length * 2, 65536 + i2, i2 + 524288));
}
}
private void g(int i) {
int i2 = this.g - i;
this.g = i2;
this.f = 0;
byte[] bArr = this.e;
byte[] bArr2 = i2 < bArr.length - 524288 ? new byte[65536 + i2] : bArr;
System.arraycopy(bArr, i, bArr2, 0, i2);
this.e = bArr2;
}
@Override // com.applovin.impl.l8
public boolean b(byte[] bArr, int i, int i2, boolean z) {
if (!a(i2, z)) {
return false;
}
System.arraycopy(this.e, this.f - i2, bArr, i, i2);
return true;
}
@Override // com.applovin.impl.l8
public void c(byte[] bArr, int i, int i2) {
b(bArr, i, i2, false);
}
private int f(int i) {
int min = Math.min(this.g, i);
g(min);
return min;
}
@Override // com.applovin.impl.l8, com.applovin.impl.g5
public int a(byte[] bArr, int i, int i2) {
int e = e(bArr, i, i2);
if (e == 0) {
e = a(bArr, i, i2, 0, true);
}
d(e);
return e;
}
private int e(byte[] bArr, int i, int i2) {
int i3 = this.g;
if (i3 == 0) {
return 0;
}
int min = Math.min(i3, i2);
System.arraycopy(this.e, 0, bArr, i, min);
g(min);
return min;
}
@Override // com.applovin.impl.l8
public boolean a(byte[] bArr, int i, int i2, boolean z) {
int e = e(bArr, i, i2);
while (e < i2 && e != -1) {
e = a(bArr, i, i2, e, z);
}
d(e);
return e != -1;
}
@Override // com.applovin.impl.l8
public int b(int i) {
int f = f(i);
if (f == 0) {
byte[] bArr = this.a;
f = a(bArr, 0, Math.min(i, bArr.length), 0, true);
}
d(f);
return f;
}
@Override // com.applovin.impl.l8
public void d(byte[] bArr, int i, int i2) {
a(bArr, i, i2, false);
}
@Override // com.applovin.impl.l8
public void a(int i) {
b(i, false);
}
private int a(byte[] bArr, int i, int i2, int i3, boolean z) {
if (!Thread.interrupted()) {
int a = this.b.a(bArr, i + i3, i2 - i3);
if (a != -1) {
return i3 + a;
}
if (i3 == 0 && z) {
return -1;
}
throw new EOFException();
}
throw new InterruptedIOException();
}
public boolean b(int i, boolean z) {
int f = f(i);
while (f < i && f != -1) {
f = a(this.a, -f, Math.min(i, this.a.length + f), f, z);
}
d(f);
return f != -1;
}
}

View File

@@ -0,0 +1,63 @@
package com.applovin.impl;
import android.os.Looper;
import com.applovin.impl.a7;
import com.applovin.impl.b7;
import com.applovin.impl.z6;
import com.facebook.ads.AdError;
/* loaded from: classes.dex */
public interface b7 {
public static final b7 a;
public static final b7 b;
public interface b {
public static final b a = new b() { // from class: com.applovin.impl.b7$b$$ExternalSyntheticLambda0
@Override // com.applovin.impl.b7.b
public final void a() {
b7.b.b();
}
};
/* JADX INFO: Access modifiers changed from: private */
static /* synthetic */ void b() {
}
void a();
}
static {
a aVar = new a();
a = aVar;
b = aVar;
}
int a(f9 f9Var);
z6 a(Looper looper, a7.a aVar, f9 f9Var);
default void a() {
}
default void b() {
}
default b b(Looper looper, a7.a aVar, f9 f9Var) {
return b.a;
}
public class a implements b7 {
@Override // com.applovin.impl.b7
public z6 a(Looper looper, a7.a aVar, f9 f9Var) {
if (f9Var.p == null) {
return null;
}
return new u7(new z6.a(new sp(1), AdError.MEDIAVIEW_MISSING_ERROR_CODE));
}
@Override // com.applovin.impl.b7
public int a(f9 f9Var) {
return f9Var.p != null ? 1 : 0;
}
}
}

View File

@@ -0,0 +1,9 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public interface b8 {
default void f(boolean z) {
}
void g(boolean z);
}

View File

@@ -0,0 +1,102 @@
package com.applovin.impl;
import android.util.SparseBooleanArray;
/* loaded from: classes.dex */
public final class b9 {
private final SparseBooleanArray a;
public int hashCode() {
if (xp.a >= 24) {
return this.a.hashCode();
}
int a2 = a();
for (int i = 0; i < a(); i++) {
a2 = (a2 * 31) + b(i);
}
return a2;
}
public static final class b {
private final SparseBooleanArray a = new SparseBooleanArray();
private boolean b;
public b a(int i) {
b1.b(!this.b);
this.a.append(i, true);
return this;
}
public b a(b9 b9Var) {
for (int i = 0; i < b9Var.a(); i++) {
a(b9Var.b(i));
}
return this;
}
public b a(int... iArr) {
for (int i : iArr) {
a(i);
}
return this;
}
public b a(int i, boolean z) {
return z ? a(i) : this;
}
public b9 a() {
b1.b(!this.b);
this.b = true;
return new b9(this.a);
}
}
private b9(SparseBooleanArray sparseBooleanArray) {
this.a = sparseBooleanArray;
}
public boolean a(int i) {
return this.a.get(i);
}
public int b(int i) {
b1.a(i, 0, a());
return this.a.keyAt(i);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof b9)) {
return false;
}
b9 b9Var = (b9) obj;
if (xp.a < 24) {
if (a() != b9Var.a()) {
return false;
}
for (int i = 0; i < a(); i++) {
if (b(i) != b9Var.b(i)) {
return false;
}
}
return true;
}
return this.a.equals(b9Var.a);
}
public boolean a(int... iArr) {
for (int i : iArr) {
if (a(i)) {
return true;
}
}
return false;
}
public int a() {
return this.a.size();
}
}

View File

@@ -0,0 +1,115 @@
package com.applovin.impl;
import android.content.Context;
import android.opengl.EGL14;
import android.opengl.GLES20;
import android.opengl.GLU;
import android.text.TextUtils;
import androidx.work.Data;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
/* loaded from: classes.dex */
public abstract class ba {
public static boolean a = false;
public static boolean c() {
String eglQueryString;
return xp.a >= 17 && (eglQueryString = EGL14.eglQueryString(EGL14.eglGetDisplay(0), 12373)) != null && eglQueryString.contains("EGL_KHR_surfaceless_context");
}
public static final class a extends RuntimeException {
public a(String str) {
super(str);
}
}
public static int b() {
int[] iArr = new int[1];
GLES20.glGenTextures(1, IntBuffer.wrap(iArr));
GLES20.glBindTexture(36197, iArr[0]);
GLES20.glTexParameteri(36197, 10241, 9729);
GLES20.glTexParameteri(36197, Data.MAX_DATA_BYTES, 9729);
GLES20.glTexParameteri(36197, 10242, 33071);
GLES20.glTexParameteri(36197, 10243, 33071);
a();
return iArr[0];
}
private static void a(int i, String str, int i2) {
int glCreateShader = GLES20.glCreateShader(i);
GLES20.glShaderSource(glCreateShader, str);
GLES20.glCompileShader(glCreateShader);
int[] iArr = {0};
GLES20.glGetShaderiv(glCreateShader, 35713, iArr, 0);
if (iArr[0] != 1) {
a(GLES20.glGetShaderInfoLog(glCreateShader) + ", source: " + str);
}
GLES20.glAttachShader(i2, glCreateShader);
GLES20.glDeleteShader(glCreateShader);
a();
}
public static void a() {
int i = 0;
while (true) {
int glGetError = GLES20.glGetError();
if (glGetError == 0) {
break;
}
pc.b("GlUtil", "glError " + GLU.gluErrorString(glGetError));
i = glGetError;
}
if (i != 0) {
a("glError " + GLU.gluErrorString(i));
}
}
public static FloatBuffer a(int i) {
return ByteBuffer.allocateDirect(i * 4).order(ByteOrder.nativeOrder()).asFloatBuffer();
}
public static FloatBuffer a(float[] fArr) {
return (FloatBuffer) a(fArr.length).put(fArr).flip();
}
public static boolean a(Context context) {
String eglQueryString;
int i = xp.a;
if (i < 24) {
return false;
}
if (i >= 26 || !("samsung".equals(xp.c) || "XT1650".equals(xp.d))) {
return (i >= 26 || context.getPackageManager().hasSystemFeature("android.hardware.vr.high_performance")) && (eglQueryString = EGL14.eglQueryString(EGL14.eglGetDisplay(0), 12373)) != null && eglQueryString.contains("EGL_EXT_protected_content");
}
return false;
}
public static int a(String[] strArr, String[] strArr2) {
return a(TextUtils.join("\n", strArr), TextUtils.join("\n", strArr2));
}
public static int a(String str, String str2) {
int glCreateProgram = GLES20.glCreateProgram();
a();
a(35633, str, glCreateProgram);
a(35632, str2, glCreateProgram);
GLES20.glLinkProgram(glCreateProgram);
int[] iArr = {0};
GLES20.glGetProgramiv(glCreateProgram, 35714, iArr, 0);
if (iArr[0] != 1) {
a("Unable to link shader program: \n" + GLES20.glGetProgramInfoLog(glCreateProgram));
}
a();
return glCreateProgram;
}
private static void a(String str) {
pc.b("GlUtil", str);
if (a) {
throw new a(str);
}
}
}

View File

@@ -0,0 +1,14 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public final class bb extends IllegalStateException {
public final fo a;
public final int b;
public final long c;
public bb(fo foVar, int i, long j) {
this.a = foVar;
this.b = i;
this.c = j;
}
}

View File

@@ -0,0 +1,253 @@
package com.applovin.impl;
import com.applovin.impl.a;
import com.applovin.impl.dp;
import com.applovin.impl.f9;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
import java.util.Collections;
/* loaded from: classes.dex */
public final class bc implements q7 {
private final String a;
private final bh b;
private final ah c;
private qo d;
private String e;
private f9 f;
private int g;
private int h;
private int i;
private int j;
private long k;
private boolean l;
private int m;
private int n;
private int o;
private boolean p;
private long q;
private int r;
private long s;
private int t;
private String u;
@Override // com.applovin.impl.q7
public void a() {
this.g = 0;
this.k = C.TIME_UNSET;
this.l = false;
}
@Override // com.applovin.impl.q7
public void a(long j, int i) {
if (j != C.TIME_UNSET) {
this.k = j;
}
}
@Override // com.applovin.impl.q7
public void b() {
}
public bc(String str) {
this.a = str;
bh bhVar = new bh(1024);
this.b = bhVar;
this.c = new ah(bhVar.c());
this.k = C.TIME_UNSET;
}
@Override // com.applovin.impl.q7
public void a(bh bhVar) {
b1.b(this.d);
while (bhVar.a() > 0) {
int i = this.g;
if (i != 0) {
if (i == 1) {
int w = bhVar.w();
if ((w & 224) == 224) {
this.j = w;
this.g = 2;
} else if (w != 86) {
this.g = 0;
}
} else if (i == 2) {
int w2 = ((this.j & (-225)) << 8) | bhVar.w();
this.i = w2;
if (w2 > this.b.c().length) {
a(this.i);
}
this.h = 0;
this.g = 3;
} else {
if (i != 3) {
throw new IllegalStateException();
}
int min = Math.min(bhVar.a(), this.i - this.h);
bhVar.a(this.c.a, this.h, min);
int i2 = this.h + min;
this.h = i2;
if (i2 == this.i) {
this.c.c(0);
b(this.c);
this.g = 0;
}
}
} else if (bhVar.w() == 86) {
this.g = 1;
}
}
}
private void b(ah ahVar) {
if (!ahVar.f()) {
this.l = true;
f(ahVar);
} else if (!this.l) {
return;
}
if (this.m != 0) {
throw dh.a(null, null);
}
if (this.n == 0) {
a(ahVar, e(ahVar));
if (this.p) {
ahVar.d((int) this.q);
return;
}
return;
}
throw dh.a(null, null);
}
private void f(ah ahVar) {
boolean f;
int a = ahVar.a(1);
int a2 = a == 1 ? ahVar.a(1) : 0;
this.m = a2;
if (a2 == 0) {
if (a == 1) {
a(ahVar);
}
if (ahVar.f()) {
this.n = ahVar.a(6);
int a3 = ahVar.a(4);
int a4 = ahVar.a(3);
if (a3 == 0 && a4 == 0) {
if (a == 0) {
int e = ahVar.e();
int c = c(ahVar);
ahVar.c(e);
byte[] bArr = new byte[(c + 7) / 8];
ahVar.a(bArr, 0, c);
f9 a5 = new f9.b().c(this.e).f(MimeTypes.AUDIO_AAC).a(this.u).c(this.t).n(this.r).a(Collections.singletonList(bArr)).e(this.a).a();
if (!a5.equals(this.f)) {
this.f = a5;
this.s = 1024000000 / a5.A;
this.d.a(a5);
}
} else {
ahVar.d(((int) a(ahVar)) - c(ahVar));
}
d(ahVar);
boolean f2 = ahVar.f();
this.p = f2;
this.q = 0L;
if (f2) {
if (a == 1) {
this.q = a(ahVar);
} else {
do {
f = ahVar.f();
this.q = (this.q << 8) + ahVar.a(8);
} while (f);
}
}
if (ahVar.f()) {
ahVar.d(8);
return;
}
return;
}
throw dh.a(null, null);
}
throw dh.a(null, null);
}
throw dh.a(null, null);
}
private void d(ah ahVar) {
int a = ahVar.a(3);
this.o = a;
if (a == 0) {
ahVar.d(8);
return;
}
if (a == 1) {
ahVar.d(9);
return;
}
if (a == 3 || a == 4 || a == 5) {
ahVar.d(6);
} else {
if (a != 6 && a != 7) {
throw new IllegalStateException();
}
ahVar.d(1);
}
}
@Override // com.applovin.impl.q7
public void a(m8 m8Var, dp.d dVar) {
dVar.a();
this.d = m8Var.a(dVar.c(), 1);
this.e = dVar.b();
}
private int c(ah ahVar) {
int b = ahVar.b();
a.b a = a.a(ahVar, true);
this.u = a.c;
this.r = a.a;
this.t = a.b;
return b - ahVar.b();
}
private int e(ah ahVar) {
int a;
if (this.o != 0) {
throw dh.a(null, null);
}
int i = 0;
do {
a = ahVar.a(8);
i += a;
} while (a == 255);
return i;
}
private static long a(ah ahVar) {
return ahVar.a((ahVar.a(2) + 1) * 8);
}
private void a(ah ahVar, int i) {
int e = ahVar.e();
if ((e & 7) == 0) {
this.b.f(e >> 3);
} else {
ahVar.a(this.b.c(), 0, i * 8);
this.b.f(0);
}
this.d.a(this.b, i);
long j = this.k;
if (j != C.TIME_UNSET) {
this.d.a(j, 1, i, 0, null);
this.k += this.s;
}
}
private void a(int i) {
this.b.d(i);
this.c.a(this.b.c());
}
}

View File

@@ -0,0 +1,100 @@
package com.applovin.impl;
import android.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import com.applovin.impl.ad;
import com.applovin.mediation.adapter.MaxAdapterError;
import com.applovin.mediation.adapter.listeners.MaxAdapterListener;
import com.applovin.mediation.adapter.listeners.MaxAppOpenAdapterListener;
import com.applovin.mediation.adapter.listeners.MaxInterstitialAdapterListener;
/* loaded from: classes.dex */
public abstract class bd extends Activity implements ad.a {
protected com.applovin.impl.sdk.j a;
protected ad b;
protected cd c = new cd(null);
private MaxAdapterListener d;
public void a(cd cdVar, com.applovin.impl.sdk.j jVar, MaxAdapterListener maxAdapterListener) {
this.a = jVar;
this.c = cdVar;
this.d = maxAdapterListener;
}
@Override // android.app.Activity
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
requestWindowFeature(1);
getWindow().setFlags(1024, 1024);
getWindow().addFlags(16777216);
getWindow().addFlags(128);
ViewGroup viewGroup = (ViewGroup) findViewById(R.id.content);
viewGroup.setBackgroundColor(this.c.a());
com.applovin.impl.sdk.j jVar = this.a;
r.a(jVar != null ? ((Boolean) jVar.a(sj.N2)).booleanValue() : true, this);
ad adVar = new ad(this.c, this);
this.b = adVar;
adVar.setListener(this);
this.b.setVisibility(4);
viewGroup.addView(this.b);
zq.a(this.b, this.c.b());
}
@Override // android.app.Activity
public void onDestroy() {
MaxAdapterListener maxAdapterListener = this.d;
if (maxAdapterListener != null) {
if (maxAdapterListener instanceof MaxInterstitialAdapterListener) {
((MaxInterstitialAdapterListener) maxAdapterListener).onInterstitialAdHidden();
} else if (maxAdapterListener instanceof MaxAppOpenAdapterListener) {
((MaxAppOpenAdapterListener) maxAdapterListener).onAppOpenAdHidden();
} else {
throw new IllegalStateException("Failed to fire hidden callback (" + this.d + "): neither interstitial nor app open ad");
}
}
super.onDestroy();
}
public void a(View view, String str) {
if (view == null) {
a(str);
return;
}
((ViewGroup) findViewById(R.id.content)).addView(view);
this.b.bringToFront();
MaxAdapterListener maxAdapterListener = this.d;
if (maxAdapterListener instanceof MaxInterstitialAdapterListener) {
((MaxInterstitialAdapterListener) maxAdapterListener).onInterstitialAdDisplayed();
return;
}
if (maxAdapterListener instanceof MaxAppOpenAdapterListener) {
((MaxAppOpenAdapterListener) maxAdapterListener).onAppOpenAdDisplayed();
return;
}
throw new IllegalStateException("Failed to fire display callback (" + this.d + "): neither interstitial nor app open ad");
}
private void a(String str) {
MaxAdapterError maxAdapterError = new MaxAdapterError(MaxAdapterError.ERROR_CODE_AD_DISPLAY_FAILED, "Null hybrid ad view (" + str + ")");
MaxAdapterListener maxAdapterListener = this.d;
if (maxAdapterListener instanceof MaxInterstitialAdapterListener) {
((MaxInterstitialAdapterListener) maxAdapterListener).onInterstitialAdDisplayFailed(maxAdapterError);
} else if (maxAdapterListener instanceof MaxAppOpenAdapterListener) {
((MaxAppOpenAdapterListener) maxAdapterListener).onAppOpenAdDisplayFailed(maxAdapterError);
} else {
throw new IllegalStateException("Failed to fire display failed callback (" + this.d + "): neither interstitial nor app open ad");
}
finish();
}
@Override // com.applovin.impl.ad.a
public void a(ad adVar) {
if (isFinishing()) {
return;
}
finish();
}
}

View File

@@ -0,0 +1,65 @@
package com.applovin.impl;
import android.os.Handler;
/* loaded from: classes.dex */
public interface be {
public interface b {
void a(be beVar, fo foVar);
}
td a();
wd a(a aVar, n0 n0Var, long j);
void a(Handler handler, a7 a7Var);
void a(Handler handler, ce ceVar);
void a(a7 a7Var);
void a(b bVar);
void a(b bVar, xo xoVar);
void a(ce ceVar);
void a(wd wdVar);
void b();
void b(b bVar);
void c(b bVar);
default boolean c() {
return true;
}
default fo d() {
return null;
}
public static final class a extends yd {
public a b(Object obj) {
return new a(super.a(obj));
}
public a(yd ydVar) {
super(ydVar);
}
public a(Object obj) {
super(obj);
}
public a(Object obj, int i, int i2, long j) {
super(obj, i, i2, j);
}
public a(Object obj, long j, int i) {
super(obj, j, i);
}
}
}

View File

@@ -0,0 +1,108 @@
package com.applovin.impl;
import android.os.Parcel;
import android.os.Parcelable;
import com.applovin.impl.vd;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes.dex */
public final class bf implements Parcelable {
public static final Parcelable.Creator<bf> CREATOR = new a();
private final b[] a;
public interface b extends Parcelable {
default void a(vd.b bVar) {
}
default byte[] a() {
return null;
}
default f9 b() {
return null;
}
}
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public String toString() {
return "entries=" + Arrays.toString(this.a);
}
public bf(Parcel parcel) {
this.a = new b[parcel.readInt()];
int i = 0;
while (true) {
b[] bVarArr = this.a;
if (i >= bVarArr.length) {
return;
}
bVarArr[i] = (b) parcel.readParcelable(b.class.getClassLoader());
i++;
}
}
public int c() {
return this.a.length;
}
public bf a(b... bVarArr) {
return bVarArr.length == 0 ? this : new bf((b[]) xp.a((Object[]) this.a, (Object[]) bVarArr));
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || bf.class != obj.getClass()) {
return false;
}
return Arrays.equals(this.a, ((bf) obj).a);
}
public int hashCode() {
return Arrays.hashCode(this.a);
}
public bf(List list) {
this.a = (b[]) list.toArray(new b[0]);
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.a.length);
for (b bVar : this.a) {
parcel.writeParcelable(bVar, 0);
}
}
public class a implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public bf[] newArray(int i) {
return new bf[i];
}
@Override // android.os.Parcelable.Creator
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public bf createFromParcel(Parcel parcel) {
return new bf(parcel);
}
}
public bf(b... bVarArr) {
this.a = bVarArr;
}
public bf a(bf bfVar) {
return bfVar == null ? this : a(bfVar.a);
}
public b a(int i) {
return this.a[i];
}
}

View File

@@ -0,0 +1,66 @@
package com.applovin.impl;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.NetworkInfo;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes.dex */
public class bg extends BroadcastReceiver {
private final List a = Collections.synchronizedList(new ArrayList());
public interface a {
void a();
void b();
}
public bg(Context context) {
context.getApplicationContext().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
}
public void b(a aVar) {
this.a.remove(aVar);
}
@Override // android.content.BroadcastReceiver
public void onReceive(Context context, Intent intent) {
if (intent.getAction() == null || !intent.getAction().equals("android.net.conn.CONNECTIVITY_CHANGE") || isInitialStickyBroadcast()) {
return;
}
ArrayList arrayList = new ArrayList(this.a);
if (a(intent)) {
Iterator it = arrayList.iterator();
while (it.hasNext()) {
((a) it.next()).a();
}
} else {
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
((a) it2.next()).b();
}
}
}
private static boolean a(Intent intent) {
Bundle extras = intent.getExtras();
if (extras == null) {
return false;
}
Object obj = extras.get("networkInfo");
if (obj instanceof NetworkInfo) {
return ((NetworkInfo) obj).isConnected();
}
return false;
}
public void a(a aVar) {
this.a.add(aVar);
}
}

View File

@@ -0,0 +1,379 @@
package com.applovin.impl;
import com.applovin.exoplayer2.common.base.Charsets;
import java.nio.charset.Charset;
import java.util.Arrays;
/* loaded from: classes.dex */
public final class bh {
private byte[] a;
private int b;
private int c;
public int a() {
return this.c - this.b;
}
public void a(byte[] bArr, int i) {
this.a = bArr;
this.c = i;
this.b = 0;
}
public byte[] c() {
return this.a;
}
public int d() {
return this.b;
}
public int e() {
return this.c;
}
public bh() {
this.a = xp.f;
}
public bh(int i) {
this.a = new byte[i];
this.c = i;
}
public bh(byte[] bArr) {
this.a = bArr;
this.c = bArr.length;
}
public int b() {
return this.a.length;
}
public bh(byte[] bArr, int i) {
this.a = bArr;
this.c = i;
}
public void d(int i) {
a(b() < i ? new byte[i] : this.a, i);
}
public int g() {
return this.a[this.b] & 255;
}
public char f() {
byte[] bArr = this.a;
int i = this.b;
return (char) ((bArr[i + 1] & 255) | ((bArr[i] & 255) << 8));
}
public int w() {
byte[] bArr = this.a;
int i = this.b;
this.b = i + 1;
return bArr[i] & 255;
}
public void a(int i) {
if (i > b()) {
this.a = Arrays.copyOf(this.a, i);
}
}
public int C() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 1;
int i3 = (bArr[i] & 255) << 8;
this.b = i + 2;
return (bArr[i2] & 255) | i3;
}
public int r() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 1;
int i3 = bArr[i] & 255;
this.b = i + 2;
return ((bArr[i2] & 255) << 8) | i3;
}
public short u() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 1;
int i3 = (bArr[i] & 255) << 8;
this.b = i + 2;
return (short) ((bArr[i2] & 255) | i3);
}
public short o() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 1;
int i3 = bArr[i] & 255;
this.b = i + 2;
return (short) (((bArr[i2] & 255) << 8) | i3);
}
public int z() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 2;
int i3 = ((bArr[i + 1] & 255) << 8) | ((bArr[i] & 255) << 16);
this.b = i + 3;
return (bArr[i2] & 255) | i3;
}
public void e(int i) {
b1.a(i >= 0 && i <= this.a.length);
this.c = i;
}
public int k() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 2;
int i3 = ((bArr[i + 1] & 255) << 8) | (((bArr[i] & 255) << 24) >> 8);
this.b = i + 3;
return (bArr[i2] & 255) | i3;
}
public long y() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 3;
long j = ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8);
this.b = i + 4;
return (bArr[i2] & 255) | j;
}
public long p() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 3;
long j = (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
this.b = i + 4;
return ((bArr[i2] & 255) << 24) | j;
}
public int j() {
byte[] bArr = this.a;
int i = this.b;
int i2 = ((bArr[i + 1] & 255) << 16) | ((bArr[i] & 255) << 24);
int i3 = i + 3;
int i4 = i2 | ((bArr[i + 2] & 255) << 8);
this.b = i + 4;
return (bArr[i3] & 255) | i4;
}
public int m() {
byte[] bArr = this.a;
int i = this.b;
int i2 = ((bArr[i + 1] & 255) << 8) | (bArr[i] & 255);
int i3 = i + 3;
int i4 = i2 | ((bArr[i + 2] & 255) << 16);
this.b = i + 4;
return ((bArr[i3] & 255) << 24) | i4;
}
public long s() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 7;
long j = ((bArr[i] & 255) << 56) | ((bArr[i + 1] & 255) << 48) | ((bArr[i + 2] & 255) << 40) | ((bArr[i + 3] & 255) << 32) | ((bArr[i + 4] & 255) << 24) | ((bArr[i + 5] & 255) << 16) | ((bArr[i + 6] & 255) << 8);
this.b = i + 8;
return (bArr[i2] & 255) | j;
}
public long n() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 7;
long j = (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16) | ((bArr[i + 3] & 255) << 24) | ((bArr[i + 4] & 255) << 32) | ((bArr[i + 5] & 255) << 40) | ((bArr[i + 6] & 255) << 48);
this.b = i + 8;
return ((bArr[i2] & 255) << 56) | j;
}
public int x() {
byte[] bArr = this.a;
int i = this.b;
int i2 = (bArr[i + 1] & 255) | ((bArr[i] & 255) << 8);
this.b = i + 4;
return i2;
}
public int v() {
return (w() << 21) | (w() << 14) | (w() << 7) | w();
}
public int A() {
int j = j();
if (j >= 0) {
return j;
}
throw new IllegalStateException("Top bit not zero: " + j);
}
public void f(int i) {
b1.a(i >= 0 && i <= this.c);
this.b = i;
}
public int q() {
int m = m();
if (m >= 0) {
return m;
}
throw new IllegalStateException("Top bit not zero: " + m);
}
public long B() {
long s = s();
if (s >= 0) {
return s;
}
throw new IllegalStateException("Top bit not zero: " + s);
}
public void g(int i) {
f(this.b + i);
}
public float i() {
return Float.intBitsToFloat(j());
}
public double h() {
return Double.longBitsToDouble(s());
}
public void a(ah ahVar, int i) {
a(ahVar.a, 0, i);
ahVar.c(0);
}
public String t() {
return a((char) 0);
}
public String l() {
if (a() == 0) {
return null;
}
int i = this.b;
while (i < this.c && !xp.h(this.a[i])) {
i++;
}
int i2 = this.b;
if (i - i2 >= 3) {
byte[] bArr = this.a;
if (bArr[i2] == -17 && bArr[i2 + 1] == -69 && bArr[i2 + 2] == -65) {
this.b = i2 + 3;
}
}
byte[] bArr2 = this.a;
int i3 = this.b;
String a = xp.a(bArr2, i3, i - i3);
this.b = i;
int i4 = this.c;
if (i == i4) {
return a;
}
byte[] bArr3 = this.a;
if (bArr3[i] == 13) {
int i5 = i + 1;
this.b = i5;
if (i5 == i4) {
return a;
}
}
int i6 = this.b;
if (bArr3[i6] == 10) {
this.b = i6 + 1;
}
return a;
}
public long D() {
int i;
int i2;
long j = this.a[this.b];
int i3 = 7;
while (true) {
if (i3 < 0) {
break;
}
if (((1 << i3) & j) != 0) {
i3--;
} else if (i3 < 6) {
j &= r6 - 1;
i2 = 7 - i3;
} else if (i3 == 7) {
i2 = 1;
}
}
i2 = 0;
if (i2 == 0) {
throw new NumberFormatException("Invalid UTF-8 sequence first byte: " + j);
}
for (i = 1; i < i2; i++) {
if ((this.a[this.b + i] & 192) != 128) {
throw new NumberFormatException("Invalid UTF-8 sequence continuation byte: " + j);
}
j = (j << 6) | (r3 & 63);
}
this.b += i2;
return j;
}
public String c(int i) {
return a(i, Charsets.UTF_8);
}
public String b(int i) {
if (i == 0) {
return "";
}
int i2 = this.b;
int i3 = (i2 + i) - 1;
String a = xp.a(this.a, i2, (i3 >= this.c || this.a[i3] != 0) ? i : i - 1);
this.b += i;
return a;
}
public void a(byte[] bArr, int i, int i2) {
System.arraycopy(this.a, this.b, bArr, i, i2);
this.b += i2;
}
public String a(char c) {
if (a() == 0) {
return null;
}
int i = this.b;
while (i < this.c && this.a[i] != c) {
i++;
}
byte[] bArr = this.a;
int i2 = this.b;
String a = xp.a(bArr, i2, i - i2);
this.b = i;
if (i < this.c) {
this.b = i + 1;
}
return a;
}
public void a(byte[] bArr) {
a(bArr, bArr.length);
}
public String a(int i, Charset charset) {
String str = new String(this.a, this.b, i, charset);
this.b += i;
return str;
}
}

View File

@@ -0,0 +1,178 @@
package com.applovin.impl;
import com.applovin.impl.ai;
import com.applovin.impl.be;
import com.applovin.impl.bi;
import com.applovin.impl.fo;
import com.applovin.impl.i5;
import com.applovin.impl.td;
import com.applovin.impl.zh;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
public final class bi extends c2 implements ai.b {
private final td g;
private final td.g h;
private final i5.a i;
private final zh.a j;
private final b7 k;
private final mc l;
private final int m;
private boolean n;
private long o;
private boolean p;
private boolean q;
private xo r;
@Override // com.applovin.impl.be
public td a() {
return this.g;
}
@Override // com.applovin.impl.be
public void b() {
}
public static final class b implements de {
private final i5.a a;
private zh.a b;
private c7 c;
private mc d;
private int e;
private String f;
private Object g;
public b(i5.a aVar) {
this(aVar, new c6());
}
public b(i5.a aVar, final o8 o8Var) {
this(aVar, new zh.a() { // from class: com.applovin.impl.bi$b$$ExternalSyntheticLambda0
@Override // com.applovin.impl.zh.a
public final zh a() {
zh a;
a = bi.b.a(o8.this);
return a;
}
});
}
public bi a(td tdVar) {
b1.a(tdVar.b);
td.g gVar = tdVar.b;
boolean z = false;
boolean z2 = gVar.g == null && this.g != null;
if (gVar.e == null && this.f != null) {
z = true;
}
if (z2 && z) {
tdVar = tdVar.a().a(this.g).a(this.f).a();
} else if (z2) {
tdVar = tdVar.a().a(this.g).a();
} else if (z) {
tdVar = tdVar.a().a(this.f).a();
}
td tdVar2 = tdVar;
return new bi(tdVar2, this.a, this.b, this.c.a(tdVar2), this.d, this.e, null);
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ zh a(o8 o8Var) {
return new q2(o8Var);
}
public b(i5.a aVar, zh.a aVar2) {
this.a = aVar;
this.b = aVar2;
this.c = new z5();
this.d = new g6();
this.e = 1048576;
}
}
private bi(td tdVar, i5.a aVar, zh.a aVar2, b7 b7Var, mc mcVar, int i) {
this.h = (td.g) b1.a(tdVar.b);
this.g = tdVar;
this.i = aVar;
this.j = aVar2;
this.k = b7Var;
this.l = mcVar;
this.m = i;
this.n = true;
this.o = C.TIME_UNSET;
}
@Override // com.applovin.impl.be
public wd a(be.a aVar, n0 n0Var, long j) {
i5 a2 = this.i.a();
xo xoVar = this.r;
if (xoVar != null) {
a2.a(xoVar);
}
return new ai(this.h.a, a2, this.j.a(), this.k, a(aVar), this.l, b(aVar), this, n0Var, this.h.e, this.m);
}
@Override // com.applovin.impl.c2
public void h() {
this.k.a();
}
public /* synthetic */ bi(td tdVar, i5.a aVar, zh.a aVar2, b7 b7Var, mc mcVar, int i, a aVar3) {
this(tdVar, aVar, aVar2, b7Var, mcVar, i);
}
private void i() {
fo gkVar = new gk(this.o, this.p, false, this.q, null, this.g);
if (this.n) {
gkVar = new a(gkVar);
}
a(gkVar);
}
public class a extends i9 {
public a(fo foVar) {
super(foVar);
}
@Override // com.applovin.impl.i9, com.applovin.impl.fo
public fo.b a(int i, fo.b bVar, boolean z) {
super.a(i, bVar, z);
bVar.g = true;
return bVar;
}
@Override // com.applovin.impl.i9, com.applovin.impl.fo
public fo.d a(int i, fo.d dVar, long j) {
super.a(i, dVar, j);
dVar.m = true;
return dVar;
}
}
@Override // com.applovin.impl.ai.b
public void a(long j, boolean z, boolean z2) {
if (j == C.TIME_UNSET) {
j = this.o;
}
if (!this.n && this.o == j && this.p == z && this.q == z2) {
return;
}
this.o = j;
this.p = z;
this.q = z2;
this.n = false;
i();
}
@Override // com.applovin.impl.c2
public void a(xo xoVar) {
this.r = xoVar;
this.k.b();
i();
}
@Override // com.applovin.impl.be
public void a(wd wdVar) {
((ai) wdVar).t();
}
}

View File

@@ -0,0 +1,688 @@
package com.applovin.impl;
import android.os.Looper;
import com.applovin.impl.a7;
import com.applovin.impl.b7;
import com.applovin.impl.bj;
import com.applovin.impl.qo;
import com.applovin.impl.z6;
/* loaded from: classes.dex */
public class bj implements qo {
private boolean A;
private f9 B;
private f9 C;
private int D;
private boolean E;
private boolean F;
private long G;
private boolean H;
private final aj a;
private final b7 d;
private final a7.a e;
private final Looper f;
private d g;
private f9 h;
private z6 i;
private int q;
private int r;
private int s;
private int t;
private boolean x;
private final b b = new b();
private int j = 1000;
private int[] k = new int[1000];
private long[] l = new long[1000];
private long[] o = new long[1000];
private int[] n = new int[1000];
private int[] m = new int[1000];
private qo.a[] p = new qo.a[1000];
private final qk c = new qk(new r4() { // from class: com.applovin.impl.bj$$ExternalSyntheticLambda0
@Override // com.applovin.impl.r4
public final void accept(Object obj) {
bj.a((bj.c) obj);
}
});
private long u = Long.MIN_VALUE;
private long v = Long.MIN_VALUE;
private long w = Long.MIN_VALUE;
private boolean z = true;
private boolean y = true;
public static final class b {
public int a;
public long b;
public qo.a c;
}
public interface d {
void a(f9 f9Var);
}
private int d(int i) {
int i2 = this.s + i;
int i3 = this.j;
return i2 < i3 ? i2 : i2 - i3;
}
private boolean h() {
return this.t != this.q;
}
public final void a(d dVar) {
this.g = dVar;
}
public final void c(long j) {
this.u = j;
}
public final int e() {
return this.r + this.t;
}
public final int g() {
return this.r + this.q;
}
public bj(n0 n0Var, Looper looper, b7 b7Var, a7.a aVar) {
this.f = looper;
this.d = b7Var;
this.e = aVar;
this.a = new aj(n0Var);
}
public void l() {
b(true);
m();
}
public final void n() {
b(false);
}
public void k() {
b();
m();
}
public void j() {
z6 z6Var = this.i;
if (z6Var != null && z6Var.b() == 1) {
throw ((z6.a) b1.a(this.i.getError()));
}
}
public final synchronized f9 f() {
return this.z ? null : this.C;
}
public final synchronized long c() {
return this.w;
}
public final synchronized long d() {
return Math.max(this.v, c(this.t));
}
public final synchronized boolean i() {
return this.x;
}
private synchronized void o() {
this.t = 0;
this.a.c();
}
private void m() {
z6 z6Var = this.i;
if (z6Var != null) {
z6Var.a(this.e);
this.i = null;
this.h = null;
}
}
public final synchronized void f(int i) {
boolean z;
if (i >= 0) {
try {
if (this.t + i <= this.q) {
z = true;
b1.a(z);
this.t += i;
}
} catch (Throwable th) {
throw th;
}
}
z = false;
b1.a(z);
this.t += i;
}
private synchronized boolean a(long j) {
if (this.q == 0) {
return j > this.v;
}
if (d() >= j) {
return false;
}
b(this.r + b(j));
return true;
}
private int b(long j) {
int i = this.q;
int d2 = d(i - 1);
while (i > this.t && this.o[d2] >= j) {
i--;
d2--;
if (d2 == -1) {
d2 = this.j - 1;
}
}
return i;
}
public static final class c {
public final f9 a;
public final b7.b b;
private c(f9 f9Var, b7.b bVar) {
this.a = f9Var;
this.b = bVar;
}
}
private boolean e(int i) {
z6 z6Var = this.i;
return z6Var == null || z6Var.b() == 4 || ((this.n[i] & 1073741824) == 0 && this.i.c());
}
private long c(int i) {
long j = Long.MIN_VALUE;
if (i == 0) {
return Long.MIN_VALUE;
}
int d2 = d(i - 1);
for (int i2 = 0; i2 < i; i2++) {
j = Math.max(j, this.o[d2]);
if ((this.n[d2] & 1) != 0) {
break;
}
d2--;
if (d2 == -1) {
d2 = this.j - 1;
}
}
return j;
}
public final void b(long j, boolean z, boolean z2) {
this.a.a(a(j, z, z2));
}
private synchronized void a(long j, int i, long j2, int i2, qo.a aVar) {
b7.b bVar;
try {
int i3 = this.q;
if (i3 > 0) {
int d2 = d(i3 - 1);
b1.a(this.l[d2] + ((long) this.m[d2]) <= j2);
}
this.x = (536870912 & i) != 0;
this.w = Math.max(this.w, j);
int d3 = d(this.q);
this.o[d3] = j;
this.l[d3] = j2;
this.m[d3] = i2;
this.n[d3] = i;
this.p[d3] = aVar;
this.k[d3] = this.D;
if (this.c.c() || !((c) this.c.b()).a.equals(this.C)) {
b7 b7Var = this.d;
if (b7Var != null) {
bVar = b7Var.b((Looper) b1.a(this.f), this.e, this.C);
} else {
bVar = b7.b.a;
}
this.c.a(g(), new c((f9) b1.a(this.C), bVar));
}
int i4 = this.q + 1;
this.q = i4;
int i5 = this.j;
if (i4 == i5) {
int i6 = i5 + 1000;
int[] iArr = new int[i6];
long[] jArr = new long[i6];
long[] jArr2 = new long[i6];
int[] iArr2 = new int[i6];
int[] iArr3 = new int[i6];
qo.a[] aVarArr = new qo.a[i6];
int i7 = this.s;
int i8 = i5 - i7;
System.arraycopy(this.l, i7, jArr, 0, i8);
System.arraycopy(this.o, this.s, jArr2, 0, i8);
System.arraycopy(this.n, this.s, iArr2, 0, i8);
System.arraycopy(this.m, this.s, iArr3, 0, i8);
System.arraycopy(this.p, this.s, aVarArr, 0, i8);
System.arraycopy(this.k, this.s, iArr, 0, i8);
int i9 = this.s;
System.arraycopy(this.l, 0, jArr, i8, i9);
System.arraycopy(this.o, 0, jArr2, i8, i9);
System.arraycopy(this.n, 0, iArr2, i8, i9);
System.arraycopy(this.m, 0, iArr3, i8, i9);
System.arraycopy(this.p, 0, aVarArr, i8, i9);
System.arraycopy(this.k, 0, iArr, i8, i9);
this.l = jArr;
this.o = jArr2;
this.n = iArr2;
this.m = iArr3;
this.p = aVarArr;
this.k = iArr;
this.s = 0;
this.j = i6;
}
} catch (Throwable th) {
throw th;
}
}
public final void b() {
this.a.a(a());
}
private synchronized boolean c(f9 f9Var) {
try {
this.z = false;
if (xp.a(f9Var, this.C)) {
return false;
}
if (this.c.c() || !((c) this.c.b()).a.equals(f9Var)) {
this.C = f9Var;
} else {
this.C = ((c) this.c.b()).a;
}
f9 f9Var2 = this.C;
this.E = Cif.a(f9Var2.m, f9Var2.j);
this.F = false;
return true;
} catch (Throwable th) {
throw th;
}
}
private synchronized long a(long j, boolean z, boolean z2) {
int i;
try {
int i2 = this.q;
if (i2 != 0) {
long[] jArr = this.o;
int i3 = this.s;
if (j >= jArr[i3]) {
if (z2 && (i = this.t) != i2) {
i2 = i + 1;
}
int a2 = a(i3, i2, j, z);
if (a2 == -1) {
return -1L;
}
return a(a2);
}
}
return -1L;
} finally {
}
}
private long b(int i) {
int g = g() - i;
boolean z = false;
b1.a(g >= 0 && g <= this.q - this.t);
int i2 = this.q - g;
this.q = i2;
this.w = Math.max(this.v, c(i2));
if (g == 0 && this.x) {
z = true;
}
this.x = z;
this.c.a(i);
int i3 = this.q;
if (i3 == 0) {
return 0L;
}
return this.l[d(i3 - 1)] + this.m[r9];
}
private synchronized long a() {
int i = this.q;
if (i == 0) {
return -1L;
}
return a(i);
}
public f9 b(f9 f9Var) {
return (this.G == 0 || f9Var.q == Long.MAX_VALUE) ? f9Var : f9Var.a().a(f9Var.q + this.G).a();
}
public void b(boolean z) {
this.a.b();
this.q = 0;
this.r = 0;
this.s = 0;
this.t = 0;
this.y = true;
this.u = Long.MIN_VALUE;
this.v = Long.MIN_VALUE;
this.w = Long.MIN_VALUE;
this.x = false;
this.c.a();
if (z) {
this.B = null;
this.C = null;
this.z = true;
}
}
private long a(int i) {
this.v = Math.max(this.v, c(i));
this.q -= i;
int i2 = this.r + i;
this.r = i2;
int i3 = this.s + i;
this.s = i3;
int i4 = this.j;
if (i3 >= i4) {
this.s = i3 - i4;
}
int i5 = this.t - i;
this.t = i5;
if (i5 < 0) {
this.t = 0;
}
this.c.b(i2);
if (this.q == 0) {
int i6 = this.s;
if (i6 == 0) {
i6 = this.j;
}
return this.l[i6 - 1] + this.m[r6];
}
return this.l[this.s];
}
public final synchronized boolean b(long j, boolean z) {
o();
int d2 = d(this.t);
if (h() && j >= this.o[d2] && (j <= this.w || z)) {
int a2 = a(d2, this.q - this.t, j, true);
if (a2 == -1) {
return false;
}
this.u = j;
this.t += a2;
return true;
}
return false;
}
private int a(int i, int i2, long j, boolean z) {
int i3 = -1;
for (int i4 = 0; i4 < i2; i4++) {
long j2 = this.o[i];
if (j2 > j) {
break;
}
if (!z || (this.n[i] & 1) != 0) {
i3 = i4;
if (j2 == j) {
break;
}
}
i++;
if (i == this.j) {
i = 0;
}
}
return i3;
}
@Override // com.applovin.impl.qo
public final void a(f9 f9Var) {
f9 b2 = b(f9Var);
this.A = false;
this.B = f9Var;
boolean c2 = c(b2);
d dVar = this.g;
if (dVar == null || !c2) {
return;
}
dVar.a(b2);
}
public final synchronized int a(long j, boolean z) {
int d2 = d(this.t);
if (h() && j >= this.o[d2]) {
if (j > this.w && z) {
return this.q - this.t;
}
int a2 = a(d2, this.q - this.t, j, true);
if (a2 == -1) {
return 0;
}
return a2;
}
return 0;
}
public synchronized boolean a(boolean z) {
f9 f9Var;
boolean z2 = true;
if (h()) {
if (((c) this.c.c(e())).a != this.h) {
return true;
}
return e(d(this.t));
}
if (!z && !this.x && ((f9Var = this.C) == null || f9Var == this.h)) {
z2 = false;
}
return z2;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void a(c cVar) {
cVar.b.a();
}
private void a(f9 f9Var, g9 g9Var) {
f9 f9Var2 = this.h;
boolean z = f9Var2 == null;
y6 y6Var = z ? null : f9Var2.p;
this.h = f9Var;
y6 y6Var2 = f9Var.p;
b7 b7Var = this.d;
g9Var.b = b7Var != null ? f9Var.a(b7Var.a(f9Var)) : f9Var;
g9Var.a = this.i;
if (this.d == null) {
return;
}
if (z || !xp.a(y6Var, y6Var2)) {
z6 z6Var = this.i;
z6 a2 = this.d.a((Looper) b1.a(this.f), this.e, f9Var);
this.i = a2;
g9Var.a = a2;
if (z6Var != null) {
z6Var.a(this.e);
}
}
}
private synchronized int a(g9 g9Var, p5 p5Var, boolean z, boolean z2, b bVar) {
try {
p5Var.d = false;
if (!h()) {
if (!z2 && !this.x) {
f9 f9Var = this.C;
if (f9Var == null || (!z && f9Var == this.h)) {
return -3;
}
a((f9) b1.a(f9Var), g9Var);
return -5;
}
p5Var.e(4);
return -4;
}
f9 f9Var2 = ((c) this.c.c(e())).a;
if (!z && f9Var2 == this.h) {
int d2 = d(this.t);
if (!e(d2)) {
p5Var.d = true;
return -3;
}
p5Var.e(this.n[d2]);
long j = this.o[d2];
p5Var.f = j;
if (j < this.u) {
p5Var.b(Integer.MIN_VALUE);
}
bVar.a = this.m[d2];
bVar.b = this.l[d2];
bVar.c = this.p[d2];
return -4;
}
a(f9Var2, g9Var);
return -5;
} catch (Throwable th) {
throw th;
}
}
public int a(g9 g9Var, p5 p5Var, int i, boolean z) {
int a2 = a(g9Var, p5Var, (i & 2) != 0, z, this.b);
if (a2 == -4 && !p5Var.e()) {
boolean z2 = (i & 1) != 0;
if ((i & 4) == 0) {
if (z2) {
this.a.a(p5Var, this.b);
} else {
this.a.b(p5Var, this.b);
}
}
if (!z2) {
this.t++;
}
}
return a2;
}
@Override // com.applovin.impl.qo
public final int a(g5 g5Var, int i, boolean z, int i2) {
return this.a.a(g5Var, i, z);
}
@Override // com.applovin.impl.qo
public final void a(bh bhVar, int i, int i2) {
this.a.a(bhVar, i);
}
/* JADX WARN: Removed duplicated region for block: B:25:0x0059 */
@Override // com.applovin.impl.qo
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void a(long r12, int r14, int r15, int r16, com.applovin.impl.qo.a r17) {
/*
r11 = this;
r8 = r11
boolean r0 = r8.A
if (r0 == 0) goto L10
com.applovin.impl.f9 r0 = r8.B
java.lang.Object r0 = com.applovin.impl.b1.b(r0)
com.applovin.impl.f9 r0 = (com.applovin.impl.f9) r0
r11.a(r0)
L10:
r0 = r14 & 1
r1 = 0
r2 = 1
if (r0 == 0) goto L18
r3 = r2
goto L19
L18:
r3 = r1
L19:
boolean r4 = r8.y
if (r4 == 0) goto L22
if (r3 != 0) goto L20
return
L20:
r8.y = r1
L22:
long r4 = r8.G
long r4 = r4 + r12
boolean r6 = r8.E
if (r6 == 0) goto L54
long r6 = r8.u
int r6 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
if (r6 >= 0) goto L30
return
L30:
if (r0 != 0) goto L54
boolean r0 = r8.F
if (r0 != 0) goto L50
java.lang.StringBuilder r0 = new java.lang.StringBuilder
r0.<init>()
java.lang.String r6 = "Overriding unexpected non-sync sample for format: "
r0.append(r6)
com.applovin.impl.f9 r6 = r8.C
r0.append(r6)
java.lang.String r0 = r0.toString()
java.lang.String r6 = "SampleQueue"
com.applovin.impl.pc.d(r6, r0)
r8.F = r2
L50:
r0 = r14 | 1
r6 = r0
goto L55
L54:
r6 = r14
L55:
boolean r0 = r8.H
if (r0 == 0) goto L66
if (r3 == 0) goto L65
boolean r0 = r11.a(r4)
if (r0 != 0) goto L62
goto L65
L62:
r8.H = r1
goto L66
L65:
return
L66:
com.applovin.impl.aj r0 = r8.a
long r0 = r0.a()
r7 = r15
long r2 = (long) r7
long r0 = r0 - r2
r2 = r16
long r2 = (long) r2
long r9 = r0 - r2
r0 = r11
r1 = r4
r3 = r6
r4 = r9
r6 = r15
r7 = r17
r0.a(r1, r3, r4, r6, r7)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.bj.a(long, int, int, int, com.applovin.impl.qo$a):void");
}
public static bj a(n0 n0Var, Looper looper, b7 b7Var, a7.a aVar) {
return new bj(n0Var, (Looper) b1.a(looper), (b7) b1.a(b7Var), (a7.a) b1.a(aVar));
}
}

View File

@@ -0,0 +1,255 @@
package com.applovin.impl;
import java.util.ArrayDeque;
/* loaded from: classes.dex */
public abstract class bk implements m5 {
private final Thread a;
private final Object b = new Object();
private final ArrayDeque c = new ArrayDeque();
private final ArrayDeque d = new ArrayDeque();
private final p5[] e;
private final zg[] f;
private int g;
private int h;
private p5 i;
private o5 j;
private boolean k;
private boolean l;
private int m;
public abstract o5 a(p5 p5Var, zg zgVar, boolean z);
public abstract o5 a(Throwable th);
public abstract p5 f();
public abstract zg g();
public bk(p5[] p5VarArr, zg[] zgVarArr) {
this.e = p5VarArr;
this.g = p5VarArr.length;
for (int i = 0; i < this.g; i++) {
this.e[i] = f();
}
this.f = zgVarArr;
this.h = zgVarArr.length;
for (int i2 = 0; i2 < this.h; i2++) {
this.f[i2] = g();
}
a aVar = new a("ExoPlayer:SimpleDecoder");
this.a = aVar;
aVar.start();
}
public class a extends Thread {
public a(String str) {
super(str);
}
@Override // java.lang.Thread, java.lang.Runnable
public void run() {
bk.this.m();
}
}
@Override // com.applovin.impl.m5
/* renamed from: i, reason: merged with bridge method [inline-methods] */
public final p5 d() {
p5 p5Var;
synchronized (this.b) {
l();
b1.b(this.i == null);
int i = this.g;
if (i == 0) {
p5Var = null;
} else {
p5[] p5VarArr = this.e;
int i2 = i - 1;
this.g = i2;
p5Var = p5VarArr[i2];
}
this.i = p5Var;
}
return p5Var;
}
@Override // com.applovin.impl.m5
/* renamed from: j, reason: merged with bridge method [inline-methods] */
public final zg c() {
synchronized (this.b) {
try {
l();
if (this.d.isEmpty()) {
return null;
}
return (zg) this.d.removeFirst();
} catch (Throwable th) {
throw th;
}
}
}
@Override // com.applovin.impl.m5
public final void a(p5 p5Var) {
synchronized (this.b) {
l();
b1.a(p5Var == this.i);
this.c.addLast(p5Var);
k();
this.i = null;
}
}
@Override // com.applovin.impl.m5
public final void b() {
synchronized (this.b) {
try {
this.k = true;
this.m = 0;
p5 p5Var = this.i;
if (p5Var != null) {
b(p5Var);
this.i = null;
}
while (!this.c.isEmpty()) {
b((p5) this.c.removeFirst());
}
while (!this.d.isEmpty()) {
((zg) this.d.removeFirst()).g();
}
} catch (Throwable th) {
throw th;
}
}
}
private void l() {
o5 o5Var = this.j;
if (o5Var != null) {
throw o5Var;
}
}
private void k() {
if (e()) {
this.b.notify();
}
}
/* JADX INFO: Access modifiers changed from: private */
public void m() {
do {
try {
} catch (InterruptedException e) {
throw new IllegalStateException(e);
}
} while (h());
}
private boolean h() {
o5 a2;
synchronized (this.b) {
while (!this.l && !e()) {
try {
this.b.wait();
} finally {
}
}
if (this.l) {
return false;
}
p5 p5Var = (p5) this.c.removeFirst();
zg[] zgVarArr = this.f;
int i = this.h - 1;
this.h = i;
zg zgVar = zgVarArr[i];
boolean z = this.k;
this.k = false;
if (p5Var.e()) {
zgVar.b(4);
} else {
if (p5Var.d()) {
zgVar.b(Integer.MIN_VALUE);
}
try {
a2 = a(p5Var, zgVar, z);
} catch (OutOfMemoryError e) {
a2 = a((Throwable) e);
} catch (RuntimeException e2) {
a2 = a((Throwable) e2);
}
if (a2 != null) {
synchronized (this.b) {
this.j = a2;
}
return false;
}
}
synchronized (this.b) {
try {
if (this.k) {
zgVar.g();
} else if (zgVar.d()) {
this.m++;
zgVar.g();
} else {
zgVar.c = this.m;
this.m = 0;
this.d.addLast(zgVar);
}
b(p5Var);
} finally {
}
}
return true;
}
}
private boolean e() {
return !this.c.isEmpty() && this.h > 0;
}
@Override // com.applovin.impl.m5
public void a() {
synchronized (this.b) {
this.l = true;
this.b.notify();
}
try {
this.a.join();
} catch (InterruptedException unused) {
Thread.currentThread().interrupt();
}
}
private void b(p5 p5Var) {
p5Var.b();
p5[] p5VarArr = this.e;
int i = this.g;
this.g = i + 1;
p5VarArr[i] = p5Var;
}
public void a(zg zgVar) {
synchronized (this.b) {
b(zgVar);
k();
}
}
public final void a(int i) {
b1.b(this.g == this.e.length);
for (p5 p5Var : this.e) {
p5Var.g(i);
}
}
private void b(zg zgVar) {
zgVar.b();
zg[] zgVarArr = this.f;
int i = this.h;
this.h = i + 1;
zgVarArr[i] = zgVar;
}
}

View File

@@ -0,0 +1,66 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public final class bl implements gd {
private final l3 a;
private boolean b;
private long c;
private long d;
private ph f = ph.d;
@Override // com.applovin.impl.gd
public ph a() {
return this.f;
}
public bl(l3 l3Var) {
this.a = l3Var;
}
public void b() {
if (this.b) {
return;
}
this.d = this.a.c();
this.b = true;
}
public void c() {
if (this.b) {
a(p());
this.b = false;
}
}
@Override // com.applovin.impl.gd
public long p() {
long a;
long j = this.c;
if (!this.b) {
return j;
}
long c = this.a.c() - this.d;
ph phVar = this.f;
if (phVar.a == 1.0f) {
a = t2.a(c);
} else {
a = phVar.a(c);
}
return j + a;
}
public void a(long j) {
this.c = j;
if (this.b) {
this.d = this.a.c();
}
}
@Override // com.applovin.impl.gd
public void a(ph phVar) {
if (this.b) {
a(p());
}
this.f = phVar;
}
}

View File

@@ -0,0 +1,597 @@
package com.applovin.impl;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import com.applovin.impl.e1;
import com.applovin.impl.f1;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.ze;
import com.applovin.sdk.AppLovinAdLoadListener;
import com.applovin.sdk.AppLovinErrorCodes;
import com.applovin.sdk.AppLovinSdkUtils;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.vungle.ads.internal.model.AdPayload;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
/* loaded from: classes.dex */
public abstract class bm extends yl implements ze.a {
protected final com.applovin.impl.sdk.ad.b h;
protected final u2 i;
private AppLovinAdLoadListener j;
private final com.applovin.impl.sdk.l k;
private final Collection l;
private boolean m;
protected ExecutorService n;
protected ExecutorService o;
protected List p;
protected String q;
public interface e {
void a(String str);
}
public List e() {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Caching mute images...");
}
ArrayList arrayList = new ArrayList();
if (this.h.L() != null) {
arrayList.add(a(this.h.L().toString(), new a()));
}
if (this.h.f0() != null) {
arrayList.add(a(this.h.f0().toString(), new b()));
}
return arrayList;
}
public void f() {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Rendered new ad:" + this.h);
}
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.bm$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
bm.this.i();
}
});
}
public void j() {
if (z3.f()) {
return;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Caching mute images...");
}
Uri a2 = a(this.h.L(), CampaignEx.JSON_NATIVE_VIDEO_MUTE);
if (a2 != null) {
this.h.b(a2);
}
Uri a3 = a(this.h.f0(), CampaignEx.JSON_NATIVE_VIDEO_UNMUTE);
if (a3 != null) {
this.h.c(a3);
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Ad updated with muteImageFilename = " + this.h.L() + ", unmuteImageFilename = " + this.h.f0());
}
}
public boolean l() {
return this.m;
}
public bm(String str, com.applovin.impl.sdk.ad.b bVar, com.applovin.impl.sdk.j jVar, AppLovinAdLoadListener appLovinAdLoadListener) {
super(str, jVar);
if (bVar != null) {
this.h = bVar;
this.j = appLovinAdLoadListener;
this.k = jVar.B();
this.l = h();
this.i = new u2();
if (((Boolean) jVar.a(sj.c1)).booleanValue()) {
this.q = StringUtils.isValidString(bVar.H()) ? bVar.H() : UUID.randomUUID().toString();
this.n = jVar.j0().a("com.applovin.sdk.caching." + this.q, ((Integer) jVar.a(sj.d1)).intValue());
this.o = jVar.j0().a("com.applovin.sdk.caching.html." + this.q, ((Integer) jVar.a(sj.e1)).intValue());
return;
}
return;
}
throw new IllegalArgumentException("No ad specified.");
}
@Override // java.lang.Runnable
public void run() {
if (this.h.e1()) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Subscribing to timeout events...");
}
this.a.S().a(this);
}
}
public void k() {
this.a.S().b(this);
ExecutorService executorService = this.n;
if (executorService != null) {
executorService.shutdown();
this.n = null;
}
ExecutorService executorService2 = this.o;
if (executorService2 != null) {
executorService2.shutdown();
this.o = null;
}
}
public void g() {
this.m = true;
List list = this.p;
if (list != null && !list.isEmpty()) {
Iterator it = this.p.iterator();
while (it.hasNext()) {
((d1) it.next()).a(true);
}
}
ExecutorService executorService = this.n;
if (executorService != null) {
executorService.shutdown();
this.n = null;
}
ExecutorService executorService2 = this.o;
if (executorService2 != null) {
executorService2.shutdown();
this.o = null;
}
}
public List a(List list) {
this.p = list;
return this.a.j0().a(list, this.n);
}
public class a implements f1.a {
public a() {
}
@Override // com.applovin.impl.f1.a
public void a(Uri uri) {
bm.this.h.b(uri);
com.applovin.impl.sdk.n nVar = bm.this.c;
if (com.applovin.impl.sdk.n.a()) {
bm bmVar = bm.this;
bmVar.c.a(bmVar.b, "Ad updated with muteImageUri = " + uri);
}
}
}
public class b implements f1.a {
public b() {
}
@Override // com.applovin.impl.f1.a
public void a(Uri uri) {
bm.this.h.c(uri);
com.applovin.impl.sdk.n nVar = bm.this.c;
if (com.applovin.impl.sdk.n.a()) {
bm bmVar = bm.this;
bmVar.c.a(bmVar.b, "Ad updated with unmuteImageUri = " + uri);
}
}
}
public class c implements f1.a {
final /* synthetic */ f1.a a;
public c(f1.a aVar) {
this.a = aVar;
}
@Override // com.applovin.impl.f1.a
public void a(Uri uri) {
if (uri != null) {
com.applovin.impl.sdk.n nVar = bm.this.c;
if (com.applovin.impl.sdk.n.a()) {
bm bmVar = bm.this;
bmVar.c.a(bmVar.b, "Finish caching video for ad #" + bm.this.h.getAdIdNumber() + ". Updating ad with cachedVideoURL = " + uri);
}
this.a.a(uri);
return;
}
com.applovin.impl.sdk.n nVar2 = bm.this.c;
if (com.applovin.impl.sdk.n.a()) {
bm bmVar2 = bm.this;
bmVar2.c.b(bmVar2.b, "Failed to cache video");
}
bm.this.a(AppLovinErrorCodes.UNABLE_TO_PRECACHE_VIDEO_RESOURCES);
Bundle bundle = new Bundle();
bundle.putLong("ad_id", bm.this.h.getAdIdNumber());
bundle.putInt("load_response_code", bm.this.i.b());
Throwable a = bm.this.i.a();
if (a != null) {
bundle.putString("load_exception_message", a.getMessage());
}
bm.this.a.p().a(bundle, "video_caching_failed");
}
}
public class d implements e1.c {
final /* synthetic */ e a;
public d(e eVar) {
this.a = eVar;
}
@Override // com.applovin.impl.e1.c
public void a(String str, boolean z) {
if (z) {
bm.this.a(AppLovinErrorCodes.UNABLE_TO_PRECACHE_HTML_RESOURCES);
return;
}
e eVar = this.a;
if (eVar != null) {
eVar.a(str);
}
}
}
public Uri c(String str) {
return c(str, this.h.X(), true);
}
public Uri b(String str) {
return a(str, this.h.X(), true);
}
public String d(String str, List list, boolean z) {
if (((Boolean) this.a.a(sj.D)).booleanValue()) {
try {
InputStream a2 = this.k.a(str, list, z, this.i);
if (a2 == null) {
if (a2 != null) {
a2.close();
}
return null;
}
try {
String a3 = this.k.a(a2);
a2.close();
return a3;
} finally {
}
} catch (Throwable th) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Unknown failure to read input stream.", th);
}
this.c.a(this.b, th);
this.a.E().a(this.b, "readInputStreamAsString", th);
return null;
}
}
InputStream a4 = this.k.a(str, list, z, this.i);
if (a4 == null) {
return null;
}
try {
String a5 = this.k.a(a4);
yp.a(a4, this.a);
return a5;
} catch (Throwable th2) {
try {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Unknown failure to read input stream.", th2);
}
this.a.E().a(this.b, "readInputStreamAsString", th2);
yp.a(a4, this.a);
return null;
} catch (Throwable th3) {
yp.a(a4, this.a);
throw th3;
}
}
}
public Uri c(String str, List list, boolean z) {
if (!StringUtils.isValidString(str)) {
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Caching video " + str + "...");
}
String a2 = this.k.a(a(), str, this.h.getCachePrefix(), list, z, this.i, this.a.B().a(str, this.h));
if (StringUtils.isValidString(a2)) {
File a3 = this.k.a(a2, a());
if (a3 != null) {
Uri fromFile = Uri.fromFile(a3);
if (fromFile != null) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Finish caching video for ad #" + this.h.getAdIdNumber() + ". Updating ad with cachedVideoFilename = " + a2);
}
return fromFile;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Unable to create URI from cached video file = " + a3);
}
this.a.E().a(la.G, "extractUriFromVideoFile", (Map) CollectionUtils.hashMap("url", a2));
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Unable to retrieve File from cached video filename = " + a2);
}
this.a.E().a(la.G, "retrieveVideoFile", (Map) CollectionUtils.hashMap("url", a2));
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Failed to cache video: " + str);
}
this.a.E().a(la.G, "cacheVideo", (Map) CollectionUtils.hashMap("url", str));
a(AppLovinErrorCodes.UNABLE_TO_PRECACHE_VIDEO_RESOURCES);
return null;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void i() {
AppLovinAdLoadListener appLovinAdLoadListener = this.j;
if (appLovinAdLoadListener != null) {
appLovinAdLoadListener.adReceived(this.h);
this.j = null;
}
}
private Collection h() {
HashSet hashSet = new HashSet();
for (char c2 : ((String) this.a.a(sj.X0)).toCharArray()) {
hashSet.add(Character.valueOf(c2));
}
hashSet.add('\"');
return hashSet;
}
public String b(String str, List list, boolean z) {
InputStream inputStream;
if (StringUtils.isValidString(str)) {
Uri parse = Uri.parse(str);
if (parse == null) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Nothing to cache, skipping...");
}
return null;
}
try {
File a2 = this.k.a(yp.a(parse, this.h.getCachePrefix(), this.a), a());
if (!this.k.a(a2)) {
if (((Boolean) this.a.a(sj.D)).booleanValue()) {
try {
InputStream a3 = this.k.a(str, list, z, this.i);
try {
if (a3 != null) {
this.k.a(a3, a2);
} else {
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Failed to load resource: " + str);
}
this.a.E().a(la.G, "cacheStringResource", (Map) CollectionUtils.hashMap("url", str));
}
if (a3 != null) {
a3.close();
}
} finally {
}
} catch (Throwable th) {
this.c.a(this.b, th);
this.a.E().a(this.b, "cacheStringResource", th);
}
} else {
try {
inputStream = this.k.a(str, list, z, this.i);
try {
if (inputStream != null) {
this.k.a(inputStream, a2);
} else {
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Failed to load resource: " + str);
}
this.a.E().a(la.G, "cacheStringResource", (Map) CollectionUtils.hashMap("url", str));
}
yp.a(inputStream, this.a);
} catch (Throwable th2) {
th = th2;
yp.a(inputStream, this.a);
throw th;
}
} catch (Throwable th3) {
th = th3;
inputStream = null;
}
}
}
return this.k.e(a2);
} catch (Throwable th4) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Resource at " + str + " failed to load.", th4);
}
}
}
return null;
}
private Uri a(String str, String str2) {
File a2 = this.k.a(yp.a(Uri.parse(str2), this.h.getCachePrefix(), this.a), com.applovin.impl.sdk.j.l());
if (a2 == null) {
return null;
}
if (this.k.a(a2)) {
this.i.a(a2.length());
return Uri.parse(AdPayload.FILE_SCHEME + a2.getAbsolutePath());
}
String str3 = str + str2;
if (!this.k.a(a2, str3, Arrays.asList(str), this.i, this.a.B().a(str3, this.h))) {
return null;
}
return Uri.parse(AdPayload.FILE_SCHEME + a2.getAbsolutePath());
}
public f1 b(String str, f1.a aVar) {
return a(str, this.h.X(), true, aVar);
}
/* JADX WARN: Code restructure failed: missing block: B:64:0x0038, code lost:
continue;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.String a(java.lang.String r12, java.util.List r13, com.applovin.impl.sdk.ad.b r14) {
/*
Method dump skipped, instructions count: 360
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.bm.a(java.lang.String, java.util.List, com.applovin.impl.sdk.ad.b):java.lang.String");
}
public Uri a(String str, List list, boolean z) {
try {
String a2 = this.k.a(a(), str, this.h.getCachePrefix(), list, z, this.i, this.a.B().a(str, this.h));
if (StringUtils.isValidString(a2)) {
File a3 = this.k.a(a2, a());
if (a3 != null) {
Uri fromFile = Uri.fromFile(a3);
if (fromFile != null) {
return fromFile;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Unable to extract Uri from image file");
}
this.a.E().a(la.G, "extractUriFromImageFile", (Map) CollectionUtils.hashMap("url", a2));
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Unable to retrieve File from cached image filename = " + a2);
}
this.a.E().a(la.G, "retrieveImageFile", (Map) CollectionUtils.hashMap("url", a2));
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Failed to cache image: " + str);
}
this.a.E().a(la.G, "cacheImageResource", (Map) CollectionUtils.hashMap("url", str));
return null;
} catch (Throwable th) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Failed to cache image at url = " + str, th);
}
this.a.E().a(this.b, "cacheImageResource", th, CollectionUtils.hashMap("url", str));
return null;
}
}
public Uri a(Uri uri, String str) {
if (uri == null) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "No " + str + " image to cache");
}
return null;
}
String uri2 = uri.toString();
if (TextUtils.isEmpty(uri2)) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Failed to cache " + str + " image");
}
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Caching " + str + " image...");
}
return b(uri2);
}
public void a(com.applovin.impl.sdk.ad.b bVar) {
String a2 = a(bVar.h0(), bVar.i0(), bVar.P0(), bVar.X(), bVar.b1());
if (bVar.O0() && StringUtils.isValidString(a2)) {
String a3 = a(a2, bVar.X(), bVar);
bVar.a(a3);
this.c.f(this.b, "Ad updated with video button HTML assets cached = " + a3);
}
}
public f1 a(String str, List list, boolean z, f1.a aVar) {
if (TextUtils.isEmpty(str)) {
if (!com.applovin.impl.sdk.n.a()) {
return null;
}
this.c.a(this.b, "No video to cache, skipping...");
return null;
}
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Caching video " + str + "...");
}
return new f1(str, this.h, list, z, this.i, this.a, new c(aVar));
}
public void a(int i) {
if (this.j != null) {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Calling back ad load failed with error code: " + i);
}
this.j.failedToReceiveAd(i);
this.j = null;
}
g();
}
@Override // com.applovin.impl.ze.a
public void a(ge geVar) {
if (geVar.S().equalsIgnoreCase(this.h.H())) {
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Updating flag for timeout...");
}
g();
}
this.a.S().b(this);
}
public String a(String str, String str2, boolean z, List list, boolean z2) {
if (StringUtils.isValidString(str2)) {
String a2 = a(str2, z, list, z2);
if (StringUtils.isValidString(a2)) {
return a2;
}
if (TextUtils.isEmpty(str)) {
a(AppLovinErrorCodes.UNABLE_TO_PRECACHE_HTML_RESOURCES);
if (com.applovin.impl.sdk.n.a()) {
this.c.b(this.b, "Could not retrieve HTML from: " + str2 + " and HTML source is invalid.");
}
this.a.E().a(la.G, "retrieveHtmlString", (Map) CollectionUtils.hashMap("url", str2));
}
}
return str;
}
private String a(String str, boolean z, List list, boolean z2) {
if (z) {
return b(str, list, z2);
}
return d(str, list, z2);
}
public f1 a(String str, f1.a aVar) {
return new f1(str, this.h, this.i, this.a, aVar);
}
public e1 a(String str, List list, e eVar) {
return new e1(str, this.h, list, this.i, this.o, this.a, new d(eVar));
}
}

View File

@@ -0,0 +1,34 @@
package com.applovin.impl;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.tm;
import com.applovin.sdk.AppLovinAdLoadListener;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class bn extends yl {
private final JSONObject h;
private final JSONObject i;
private final AppLovinAdLoadListener j;
@Override // java.lang.Runnable
public void run() {
if (com.applovin.impl.sdk.n.a()) {
this.c.a(this.b, "Rendering ad...");
}
com.applovin.impl.sdk.ad.a aVar = new com.applovin.impl.sdk.ad.a(this.h, this.i, this.a);
boolean booleanValue = JsonUtils.getBoolean(this.h, "gs_load_immediately", Boolean.FALSE).booleanValue();
boolean booleanValue2 = JsonUtils.getBoolean(this.h, "vs_load_immediately", Boolean.TRUE).booleanValue();
cm cmVar = new cm(aVar, this.a, this.j);
cmVar.c(booleanValue2);
cmVar.b(booleanValue);
this.a.j0().a((yl) cmVar, tm.b.CACHING);
}
public bn(JSONObject jSONObject, JSONObject jSONObject2, AppLovinAdLoadListener appLovinAdLoadListener, com.applovin.impl.sdk.j jVar) {
super("TaskRenderAppLovinAd", jVar);
this.h = jSONObject;
this.i = jSONObject2;
this.j = appLovinAdLoadListener;
}
}

View File

@@ -0,0 +1,195 @@
package com.applovin.impl;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.util.Collections;
import java.util.List;
/* loaded from: classes.dex */
public final class bo extends e2 implements Handler.Callback {
private int A;
private long B;
private final Handler n;
private final ao o;
private final ql p;
private final g9 q;
private boolean r;
private boolean s;
private boolean t;
private int u;
private f9 v;
private ol w;
private rl x;
private sl y;
private sl z;
@Override // com.applovin.impl.qi
public boolean c() {
return this.s;
}
@Override // com.applovin.impl.qi
public boolean d() {
return true;
}
@Override // com.applovin.impl.qi, com.applovin.impl.ri
public String getName() {
return "TextRenderer";
}
public bo(ao aoVar, Looper looper) {
this(aoVar, looper, ql.a);
}
public bo(ao aoVar, Looper looper, ql qlVar) {
super(3);
this.o = (ao) b1.a(aoVar);
this.n = looper == null ? null : xp.a(looper, (Handler.Callback) this);
this.p = qlVar;
this.q = new g9();
this.B = C.TIME_UNSET;
}
@Override // com.applovin.impl.e2
public void v() {
this.v = null;
this.B = C.TIME_UNSET;
z();
D();
}
private void C() {
this.x = null;
this.A = -1;
sl slVar = this.y;
if (slVar != null) {
slVar.g();
this.y = null;
}
sl slVar2 = this.z;
if (slVar2 != null) {
slVar2.g();
this.z = null;
}
}
private void D() {
C();
((ol) b1.a(this.w)).a();
this.w = null;
this.u = 0;
}
private void B() {
this.t = true;
this.w = this.p.b((f9) b1.a(this.v));
}
private void E() {
D();
B();
}
private long A() {
if (this.A == -1) {
return Long.MAX_VALUE;
}
b1.a(this.y);
if (this.A >= this.y.a()) {
return Long.MAX_VALUE;
}
return this.y.a(this.A);
}
private void b(List list) {
Handler handler = this.n;
if (handler != null) {
handler.obtainMessage(0, list).sendToTarget();
} else {
a(list);
}
}
private void z() {
b(Collections.emptyList());
}
@Override // android.os.Handler.Callback
public boolean handleMessage(Message message) {
if (message.what == 0) {
a((List) message.obj);
return true;
}
throw new IllegalStateException();
}
private void a(pl plVar) {
pc.a("TextRenderer", "Subtitle decoding failed. streamFormat=" + this.v, plVar);
z();
E();
}
public void c(long j) {
b1.b(k());
this.B = j;
}
private void a(List list) {
this.o.a(list);
}
@Override // com.applovin.impl.e2
public void a(long j, boolean z) {
z();
this.r = false;
this.s = false;
this.B = C.TIME_UNSET;
if (this.u != 0) {
E();
} else {
C();
((ol) b1.a(this.w)).b();
}
}
@Override // com.applovin.impl.e2
public void a(f9[] f9VarArr, long j, long j2) {
this.v = f9VarArr[0];
if (this.w != null) {
this.u = 1;
} else {
B();
}
}
/* JADX WARN: Code restructure failed: missing block: B:98:0x00a7, code lost:
if (r11 != false) goto L48;
*/
@Override // com.applovin.impl.qi
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void a(long r9, long r11) {
/*
Method dump skipped, instructions count: 312
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.bo.a(long, long):void");
}
@Override // com.applovin.impl.ri
public int a(f9 f9Var) {
if (this.p.a(f9Var)) {
return ri.a(f9Var.F == 0 ? 4 : 2);
}
if (Cif.h(f9Var.m)) {
return ri.a(1);
}
return ri.a(0);
}
}

View File

@@ -0,0 +1,123 @@
package com.applovin.impl;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
final class bp {
private final int a;
private boolean d;
private boolean e;
private boolean f;
private final ho b = new ho(0);
private long g = C.TIME_UNSET;
private long h = C.TIME_UNSET;
private long i = C.TIME_UNSET;
private final bh c = new bh();
public long a() {
return this.i;
}
public ho b() {
return this.b;
}
public boolean c() {
return this.d;
}
public bp(int i) {
this.a = i;
}
private int a(l8 l8Var) {
this.c.a(xp.f);
this.d = true;
l8Var.b();
return 0;
}
private int c(l8 l8Var, th thVar, int i) {
long a = l8Var.a();
int min = (int) Math.min(this.a, a);
long j = a - min;
if (l8Var.f() != j) {
thVar.a = j;
return 1;
}
this.c.d(min);
l8Var.b();
l8Var.c(this.c.c(), 0, min);
this.h = b(this.c, i);
this.f = true;
return 0;
}
private int b(l8 l8Var, th thVar, int i) {
int min = (int) Math.min(this.a, l8Var.a());
long j = 0;
if (l8Var.f() != j) {
thVar.a = j;
return 1;
}
this.c.d(min);
l8Var.b();
l8Var.c(this.c.c(), 0, min);
this.g = a(this.c, i);
this.e = true;
return 0;
}
public int a(l8 l8Var, th thVar, int i) {
if (i <= 0) {
return a(l8Var);
}
if (!this.f) {
return c(l8Var, thVar, i);
}
if (this.h == C.TIME_UNSET) {
return a(l8Var);
}
if (!this.e) {
return b(l8Var, thVar, i);
}
long j = this.g;
if (j == C.TIME_UNSET) {
return a(l8Var);
}
long b = this.b.b(this.h) - this.b.b(j);
this.i = b;
if (b < 0) {
pc.d("TsDurationReader", "Invalid duration: " + this.i + ". Using TIME_UNSET instead.");
this.i = C.TIME_UNSET;
}
return a(l8Var);
}
private long b(bh bhVar, int i) {
int d = bhVar.d();
int e = bhVar.e();
for (int i2 = e - 188; i2 >= d; i2--) {
if (ep.a(bhVar.c(), d, e, i2)) {
long a = ep.a(bhVar, i2, i);
if (a != C.TIME_UNSET) {
return a;
}
}
}
return C.TIME_UNSET;
}
private long a(bh bhVar, int i) {
int e = bhVar.e();
for (int d = bhVar.d(); d < e; d++) {
if (bhVar.c()[d] == 71) {
long a = ep.a(bhVar, d, i);
if (a != C.TIME_UNSET) {
return a;
}
}
}
return C.TIME_UNSET;
}
}

View File

@@ -0,0 +1,105 @@
package com.applovin.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
/* loaded from: classes.dex */
public class bq {
private final String a;
private final List b;
private final String c;
private final Set d;
public Set a() {
return this.d;
}
public List b() {
return this.b;
}
public String c() {
return this.a;
}
public String d() {
return this.c;
}
public String toString() {
return "VastAdVerification{vendorId='" + this.a + "'javascriptResources='" + this.b + "'verificationParameters='" + this.c + "'errorEventTrackers='" + this.d + "'}";
}
private bq(String str, List list, String str2, Set set) {
this.a = str;
this.b = list;
this.c = str2;
this.d = set;
}
public static bq a(es esVar, eq eqVar, com.applovin.impl.sdk.j jVar) {
try {
String str = (String) esVar.a().get("vendor");
es b = esVar.b("VerificationParameters");
String d = b != null ? b.d() : null;
List a = esVar.a("JavaScriptResource");
ArrayList arrayList = new ArrayList(a.size());
Iterator it = a.iterator();
while (it.hasNext()) {
hq a2 = hq.a((es) it.next(), jVar);
if (a2 != null) {
arrayList.add(a2);
}
}
HashMap hashMap = new HashMap();
mq.a(esVar, hashMap, eqVar, jVar);
return new bq(str, arrayList, d, (Set) hashMap.get("verificationNotExecuted"));
} catch (Throwable th) {
jVar.J();
if (com.applovin.impl.sdk.n.a()) {
jVar.J().a("VastAdVerification", "Error occurred while initializing", th);
}
jVar.E().a("VastAdVerification", th);
return null;
}
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
bq bqVar = (bq) obj;
String str = this.a;
if (str == null ? bqVar.a != null : !str.equals(bqVar.a)) {
return false;
}
List list = this.b;
if (list == null ? bqVar.b != null : !list.equals(bqVar.b)) {
return false;
}
String str2 = this.c;
if (str2 == null ? bqVar.c != null : !str2.equals(bqVar.c)) {
return false;
}
Set set = this.d;
Set set2 = bqVar.d;
return set != null ? set.equals(set2) : set2 == null;
}
public int hashCode() {
String str = this.a;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
List list = this.b;
int hashCode2 = (hashCode + (list != null ? list.hashCode() : 0)) * 31;
String str2 = this.c;
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
Set set = this.d;
return hashCode3 + (set != null ? set.hashCode() : 0);
}
}

View File

@@ -0,0 +1,194 @@
package com.applovin.impl;
import android.graphics.Rect;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import com.applovin.sdk.AppLovinSdkUtils;
import java.lang.ref.WeakReference;
/* loaded from: classes.dex */
public class br {
private final com.applovin.impl.sdk.n a;
private final Runnable e;
private final ViewTreeObserver.OnPreDrawListener f;
private final WeakReference g;
private final long h;
private int k;
private float l;
private float m;
private long n;
private final Object b = new Object();
private final Rect c = new Rect();
private WeakReference i = new WeakReference(null);
private WeakReference j = new WeakReference(null);
private long o = Long.MIN_VALUE;
private final Handler d = new Handler(Looper.getMainLooper());
public interface a {
void onLogVisibilityImpression();
}
public br(final View view, com.applovin.impl.sdk.j jVar, a aVar) {
this.a = jVar.J();
this.h = ((Long) jVar.a(sj.U1)).longValue();
this.g = new WeakReference(view);
final WeakReference weakReference = new WeakReference(aVar);
this.e = new Runnable() { // from class: com.applovin.impl.br$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
br.this.a(weakReference);
}
};
this.f = new ViewTreeObserver.OnPreDrawListener() { // from class: com.applovin.impl.br$$ExternalSyntheticLambda1
@Override // android.view.ViewTreeObserver.OnPreDrawListener
public final boolean onPreDraw() {
boolean a2;
a2 = br.this.a(view);
return a2;
}
};
}
private void c(View view) {
View b = zq.b((View) this.g.get());
if (b == null) {
b = zq.b(view);
}
if (b == null) {
if (com.applovin.impl.sdk.n.a()) {
this.a.a("VisibilityTracker", "Unable to set view tree observer due to no root view.");
return;
}
return;
}
ViewTreeObserver viewTreeObserver = b.getViewTreeObserver();
if (!viewTreeObserver.isAlive()) {
if (com.applovin.impl.sdk.n.a()) {
this.a.k("VisibilityTracker", "Unable to set view tree observer since the view tree observer is not alive.");
}
} else {
this.i = new WeakReference(viewTreeObserver);
viewTreeObserver.addOnPreDrawListener(this.f);
}
}
private boolean b(View view, View view2) {
if (view2 == null || view2.getVisibility() != 0 || view.getParent() == null || view2.getWidth() <= 0 || view2.getHeight() <= 0 || !view2.getGlobalVisibleRect(this.c)) {
return false;
}
long pxToDp = AppLovinSdkUtils.pxToDp(view2.getContext(), this.c.width()) * AppLovinSdkUtils.pxToDp(view2.getContext(), this.c.height());
if (pxToDp < this.k) {
return false;
}
if ((pxToDp / (AppLovinSdkUtils.pxToDp(view2.getContext(), view2.getWidth()) * AppLovinSdkUtils.pxToDp(view2.getContext(), view2.getHeight()))) * 100.0f < this.l) {
return false;
}
return (((float) ((long) (this.c.width() * this.c.height()))) / ((float) ((long) (view2.getWidth() * view2.getHeight())))) * 100.0f >= this.m;
}
private boolean a(View view, View view2) {
if (!b(view, view2)) {
return false;
}
if (this.o == Long.MIN_VALUE) {
this.o = SystemClock.uptimeMillis();
}
return SystemClock.uptimeMillis() - this.o >= this.n;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(WeakReference weakReference) {
View view = (View) this.g.get();
ViewGroup viewGroup = view instanceof ViewGroup ? (ViewGroup) view : null;
View view2 = (View) this.j.get();
if (viewGroup == null || view2 == null) {
return;
}
if (a(viewGroup, view2)) {
if (com.applovin.impl.sdk.n.a()) {
this.a.a("VisibilityTracker", "View met visibility requirements. Logging visibility impression..");
}
b();
a aVar = (a) weakReference.get();
if (aVar != null) {
aVar.onLogVisibilityImpression();
return;
}
return;
}
a();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean a(View view) {
a();
b(view);
return true;
}
private void b(View view) {
ViewTreeObserver viewTreeObserver = (ViewTreeObserver) this.i.get();
if (viewTreeObserver != null && viewTreeObserver.isAlive()) {
viewTreeObserver.removeOnPreDrawListener(this.f);
} else if (view != null) {
ViewTreeObserver viewTreeObserver2 = view.getViewTreeObserver();
if (viewTreeObserver2.isAlive()) {
viewTreeObserver2.removeOnPreDrawListener(this.f);
} else if (com.applovin.impl.sdk.n.a()) {
this.a.a("VisibilityTracker", "Could not remove on pre-draw listener. View tree observer is not alive.");
}
} else if (com.applovin.impl.sdk.n.a()) {
this.a.a("VisibilityTracker", "Could not remove on pre-draw listener. Root view is null.");
}
this.i.clear();
}
private void a() {
this.d.postDelayed(this.e, this.h);
}
public void b() {
synchronized (this.b) {
this.d.removeMessages(0);
b((View) this.g.get());
this.o = Long.MIN_VALUE;
this.j.clear();
}
}
public void a(int i, float f, float f2, long j, View view) {
synchronized (this.b) {
try {
if (com.applovin.impl.sdk.n.a()) {
this.a.a("VisibilityTracker", "Tracking visibility for " + view);
}
b();
WeakReference weakReference = new WeakReference(view);
this.j = weakReference;
this.k = i;
this.l = f;
this.m = f2;
this.n = j;
c((View) weakReference.get());
} catch (Throwable th) {
throw th;
}
}
}
public void a(ne neVar) {
View q0;
if (neVar instanceof he) {
q0 = neVar.y();
} else if (!(neVar instanceof je)) {
return;
} else {
q0 = ((je) neVar).q0();
}
a(neVar.i0(), neVar.k0(), neVar.l0(), neVar.m0(), q0);
}
}

View File

@@ -0,0 +1,29 @@
package com.applovin.impl;
import android.util.Pair;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import com.mbridge.msdk.playercommon.exoplayer2.drm.WidevineUtil;
import java.util.Map;
/* loaded from: classes.dex */
public abstract class bs {
private static long a(Map map, String str) {
if (map == null) {
return C.TIME_UNSET;
}
try {
String str2 = (String) map.get(str);
return str2 != null ? Long.parseLong(str2) : C.TIME_UNSET;
} catch (NumberFormatException unused) {
return C.TIME_UNSET;
}
}
public static Pair a(z6 z6Var) {
Map d = z6Var.d();
if (d == null) {
return null;
}
return new Pair(Long.valueOf(a(d, WidevineUtil.PROPERTY_LICENSE_DURATION_REMAINING)), Long.valueOf(a(d, WidevineUtil.PROPERTY_PLAYBACK_DURATION_REMAINING)));
}
}

View File

@@ -0,0 +1,58 @@
package com.applovin.impl;
import com.applovin.exoplayer2.common.base.Preconditions;
import java.util.NoSuchElementException;
/* loaded from: classes.dex */
abstract class c extends qp {
private final int a;
private int b;
public abstract Object a(int i);
@Override // java.util.Iterator, java.util.ListIterator
public final boolean hasNext() {
return this.b < this.a;
}
@Override // java.util.ListIterator
public final boolean hasPrevious() {
return this.b > 0;
}
@Override // java.util.ListIterator
public final int nextIndex() {
return this.b;
}
@Override // java.util.ListIterator
public final int previousIndex() {
return this.b - 1;
}
public c(int i, int i2) {
Preconditions.checkPositionIndex(i2, i);
this.a = i;
this.b = i2;
}
@Override // java.util.Iterator, java.util.ListIterator
public final Object next() {
if (hasNext()) {
int i = this.b;
this.b = i + 1;
return a(i);
}
throw new NoSuchElementException();
}
@Override // java.util.ListIterator
public final Object previous() {
if (hasPrevious()) {
int i = this.b - 1;
this.b = i;
return a(i);
}
throw new NoSuchElementException();
}
}

View File

@@ -0,0 +1,127 @@
package com.applovin.impl;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.SpannedString;
import android.widget.ListAdapter;
import android.widget.ListView;
import androidx.core.view.ViewCompat;
import com.applovin.impl.dc;
import com.applovin.impl.ec;
import com.applovin.impl.r;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.mediation.MaxDebuggerAdUnitDetailActivity;
import com.applovin.mediation.MaxDebuggerAdUnitWaterfallsListActivity;
import com.applovin.sdk.R;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes.dex */
public abstract class c0 extends se {
private com.applovin.impl.sdk.j a;
private ec b;
private List c;
private boolean d;
private ListView f;
@Override // com.applovin.impl.se
public com.applovin.impl.sdk.j getSdk() {
return this.a;
}
public void initialize(final List<z> list, boolean z, final com.applovin.impl.sdk.j jVar) {
this.d = z;
this.a = jVar;
this.c = a(list);
a aVar = new a(this, list);
this.b = aVar;
aVar.a(new ec.a() { // from class: com.applovin.impl.c0$$ExternalSyntheticLambda0
@Override // com.applovin.impl.ec.a
public final void a(lb lbVar, dc dcVar) {
c0.this.a(list, jVar, lbVar, dcVar);
}
});
this.b.notifyDataSetChanged();
}
public class a extends ec {
final /* synthetic */ List f;
@Override // com.applovin.impl.ec
public int b() {
return 1;
}
@Override // com.applovin.impl.ec
public dc e(int i) {
return new fj("");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public a(Context context, List list) {
super(context);
this.f = list;
}
@Override // com.applovin.impl.ec
public int d(int i) {
return this.f.size();
}
@Override // com.applovin.impl.ec
public List c(int i) {
return c0.this.c;
}
}
@Override // com.applovin.impl.se, android.app.Activity
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
StringBuilder sb = new StringBuilder();
sb.append(this.d ? "Selective Init " : "");
sb.append("Ad Units");
setTitle(sb.toString());
setContentView(R.layout.mediation_debugger_list_view);
ListView listView = (ListView) findViewById(R.id.listView);
this.f = listView;
listView.setAdapter((ListAdapter) this.b);
}
private List a(List list) {
ArrayList arrayList = new ArrayList(list.size());
Iterator it = list.iterator();
while (it.hasNext()) {
z zVar = (z) it.next();
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(StringUtils.createListItemDetailSubSpannedString("ID\t\t\t\t\t\t", -7829368));
spannableStringBuilder.append((CharSequence) StringUtils.createListItemDetailSpannedString(zVar.c(), ViewCompat.MEASURED_STATE_MASK));
spannableStringBuilder.append((CharSequence) new SpannedString("\n"));
spannableStringBuilder.append((CharSequence) StringUtils.createListItemDetailSubSpannedString("FORMAT ", -7829368));
spannableStringBuilder.append((CharSequence) StringUtils.createListItemDetailSpannedString(zVar.b(), ViewCompat.MEASURED_STATE_MASK));
arrayList.add(dc.a(dc.c.DETAIL).b(StringUtils.createSpannedString(zVar.d(), ViewCompat.MEASURED_STATE_MASK, 18, 1)).a(new SpannedString(spannableStringBuilder)).a(this).a(true).a());
}
return arrayList;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(List list, final com.applovin.impl.sdk.j jVar, lb lbVar, dc dcVar) {
final z zVar = (z) list.get(lbVar.a());
if (zVar.g().size() == 1) {
r.a(this, MaxDebuggerAdUnitDetailActivity.class, jVar.e(), new r.b() { // from class: com.applovin.impl.c0$$ExternalSyntheticLambda1
@Override // com.applovin.impl.r.b
public final void a(Activity activity) {
((MaxDebuggerAdUnitDetailActivity) activity).initialize(z.this, null, null, jVar);
}
});
} else {
r.a(this, MaxDebuggerAdUnitWaterfallsListActivity.class, jVar.e(), new r.b() { // from class: com.applovin.impl.c0$$ExternalSyntheticLambda2
@Override // com.applovin.impl.r.b
public final void a(Activity activity) {
((MaxDebuggerAdUnitWaterfallsListActivity) activity).initialize(z.this, jVar);
}
});
}
}
}

View File

@@ -0,0 +1,119 @@
package com.applovin.impl;
import android.content.Context;
import android.content.res.AssetManager;
import android.net.Uri;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
/* loaded from: classes.dex */
public final class c1 extends a2 {
private final AssetManager e;
private Uri f;
private InputStream g;
private long h;
private boolean i;
@Override // com.applovin.impl.i5
public Uri c() {
return this.f;
}
public static final class a extends j5 {
public a(Throwable th, int i) {
super(th, i);
}
}
public c1(Context context) {
super(false);
this.e = context.getAssets();
}
@Override // com.applovin.impl.i5
public long a(l5 l5Var) {
try {
Uri uri = l5Var.a;
this.f = uri;
String str = (String) b1.a((Object) uri.getPath());
if (str.startsWith("/android_asset/")) {
str = str.substring(15);
} else if (str.startsWith("/")) {
str = str.substring(1);
}
b(l5Var);
InputStream open = this.e.open(str, 1);
this.g = open;
if (open.skip(l5Var.g) >= l5Var.g) {
long j = l5Var.h;
if (j != -1) {
this.h = j;
} else {
long available = this.g.available();
this.h = available;
if (available == 2147483647L) {
this.h = -1L;
}
}
this.i = true;
c(l5Var);
return this.h;
}
throw new a(null, 2008);
} catch (a e) {
throw e;
} catch (IOException e2) {
throw new a(e2, e2 instanceof FileNotFoundException ? 2005 : 2000);
}
}
@Override // com.applovin.impl.i5
public void close() {
this.f = null;
try {
try {
InputStream inputStream = this.g;
if (inputStream != null) {
inputStream.close();
}
} catch (IOException e) {
throw new a(e, 2000);
}
} finally {
this.g = null;
if (this.i) {
this.i = false;
g();
}
}
}
@Override // com.applovin.impl.g5
public int a(byte[] bArr, int i, int i2) {
if (i2 == 0) {
return 0;
}
long j = this.h;
if (j == 0) {
return -1;
}
if (j != -1) {
try {
i2 = (int) Math.min(j, i2);
} catch (IOException e) {
throw new a(e, 2000);
}
}
int read = ((InputStream) xp.a((Object) this.g)).read(bArr, i, i2);
if (read == -1) {
return -1;
}
long j2 = this.h;
if (j2 != -1) {
this.h = j2 - read;
}
d(read);
return read;
}
}

View File

@@ -0,0 +1,131 @@
package com.applovin.impl;
import android.os.Handler;
import android.os.Looper;
import com.applovin.impl.a7;
import com.applovin.impl.be;
import com.applovin.impl.ce;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
/* loaded from: classes.dex */
public abstract class c2 implements be {
private final ArrayList a = new ArrayList(1);
private final HashSet b = new HashSet(1);
private final ce.a c = new ce.a();
private final a7.a d = new a7.a();
private Looper e;
private fo f;
public abstract void a(xo xoVar);
public void e() {
}
public void f() {
}
public abstract void h();
public final ce.a b(be.a aVar) {
return this.c.a(0, aVar, 0L);
}
public final boolean g() {
return !this.b.isEmpty();
}
@Override // com.applovin.impl.be
public final void a(Handler handler, a7 a7Var) {
b1.a(handler);
b1.a(a7Var);
this.d.a(handler, a7Var);
}
@Override // com.applovin.impl.be
public final void c(be.b bVar) {
this.a.remove(bVar);
if (this.a.isEmpty()) {
this.e = null;
this.f = null;
this.b.clear();
h();
return;
}
a(bVar);
}
@Override // com.applovin.impl.be
public final void b(be.b bVar) {
b1.a(this.e);
boolean isEmpty = this.b.isEmpty();
this.b.add(bVar);
if (isEmpty) {
f();
}
}
@Override // com.applovin.impl.be
public final void a(Handler handler, ce ceVar) {
b1.a(handler);
b1.a(ceVar);
this.c.a(handler, ceVar);
}
public final a7.a a(int i, be.a aVar) {
return this.d.a(i, aVar);
}
public final a7.a a(be.a aVar) {
return this.d.a(0, aVar);
}
public final ce.a a(int i, be.a aVar, long j) {
return this.c.a(i, aVar, j);
}
@Override // com.applovin.impl.be
public final void a(be.b bVar) {
boolean z = !this.b.isEmpty();
this.b.remove(bVar);
if (z && this.b.isEmpty()) {
e();
}
}
@Override // com.applovin.impl.be
public final void a(be.b bVar, xo xoVar) {
Looper myLooper = Looper.myLooper();
Looper looper = this.e;
b1.a(looper == null || looper == myLooper);
fo foVar = this.f;
this.a.add(bVar);
if (this.e == null) {
this.e = myLooper;
this.b.add(bVar);
a(xoVar);
} else if (foVar != null) {
b(bVar);
bVar.a(this, foVar);
}
}
public final void a(fo foVar) {
this.f = foVar;
Iterator it = this.a.iterator();
while (it.hasNext()) {
((be.b) it.next()).a(this, foVar);
}
}
@Override // com.applovin.impl.be
public final void a(a7 a7Var) {
this.d.e(a7Var);
}
@Override // com.applovin.impl.be
public final void a(ce ceVar) {
this.c.a(ceVar);
}
}

View File

@@ -0,0 +1,65 @@
package com.applovin.impl;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
public abstract class c3 {
public static void a(long j, bh bhVar, qo[] qoVarArr) {
while (true) {
if (bhVar.a() <= 1) {
return;
}
int a = a(bhVar);
int a2 = a(bhVar);
int d = bhVar.d() + a2;
if (a2 == -1 || a2 > bhVar.a()) {
pc.d("CeaUtil", "Skipping remainder of malformed SEI NAL unit.");
d = bhVar.e();
} else if (a == 4 && a2 >= 8) {
int w = bhVar.w();
int C = bhVar.C();
int j2 = C == 49 ? bhVar.j() : 0;
int w2 = bhVar.w();
if (C == 47) {
bhVar.g(1);
}
boolean z = w == 181 && (C == 49 || C == 47) && w2 == 3;
if (C == 49) {
z &= j2 == 1195456820;
}
if (z) {
b(j, bhVar, qoVarArr);
}
}
bhVar.f(d);
}
}
public static void b(long j, bh bhVar, qo[] qoVarArr) {
int w = bhVar.w();
if ((w & 64) != 0) {
bhVar.g(1);
int i = (w & 31) * 3;
int d = bhVar.d();
for (qo qoVar : qoVarArr) {
bhVar.f(d);
qoVar.a(bhVar, i);
if (j != C.TIME_UNSET) {
qoVar.a(j, 1, i, 0, null);
}
}
}
}
private static int a(bh bhVar) {
int i = 0;
while (bhVar.a() != 0) {
int w = bhVar.w();
i += w;
if (w != 255) {
return i;
}
}
return -1;
}
}

View File

@@ -0,0 +1,55 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public class c4 {
private final l3 a;
private boolean b;
public c4() {
this(l3.a);
}
public synchronized boolean e() {
if (this.b) {
return false;
}
this.b = true;
notifyAll();
return true;
}
public synchronized boolean c() {
boolean z;
z = this.b;
this.b = false;
return z;
}
public synchronized void a() {
while (!this.b) {
wait();
}
}
public c4(l3 l3Var) {
this.a = l3Var;
}
public synchronized void b() {
boolean z = false;
while (!this.b) {
try {
wait();
} catch (InterruptedException unused) {
z = true;
}
}
if (z) {
Thread.currentThread().interrupt();
}
}
public synchronized boolean d() {
return this.b;
}
}

View File

@@ -0,0 +1,17 @@
package com.applovin.impl;
import android.os.Bundle;
import android.os.Parcel;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class c5 {
public eb a(byte[] bArr) {
Parcel obtain = Parcel.obtain();
obtain.unmarshall(bArr, 0, bArr.length);
obtain.setDataPosition(0);
Bundle readBundle = obtain.readBundle(Bundle.class.getClassLoader());
obtain.recycle();
return p2.a(b5.t, (ArrayList) b1.a(readBundle.getParcelableArrayList("c")));
}
}

View File

@@ -0,0 +1,128 @@
package com.applovin.impl;
import android.net.Uri;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/* loaded from: classes.dex */
public final class c6 implements o8 {
private static final int[] n = {5, 4, 12, 8, 3, 10, 9, 11, 6, 2, 0, 1, 7, 14};
private static final Constructor o;
private boolean b;
private boolean c;
private int d;
private int e;
private int f;
private int g;
private int h;
private int i;
private int j;
private int l;
private int k = 1;
private int m = 112800;
static {
Constructor constructor = null;
try {
if (Boolean.TRUE.equals(Class.forName("com.applovin.exoplayer2.ext.flac.FlacLibrary").getMethod("isAvailable", new Class[0]).invoke(null, new Object[0]))) {
constructor = Class.forName("com.applovin.exoplayer2.ext.flac.FlacExtractor").asSubclass(k8.class).getConstructor(Integer.TYPE);
}
} catch (ClassNotFoundException unused) {
} catch (Exception e) {
throw new RuntimeException("Error instantiating FLAC extension", e);
}
o = constructor;
}
private void a(int i, List list) {
switch (i) {
case 0:
list.add(new i());
return;
case 1:
list.add(new l());
return;
case 2:
list.add(new j0((this.c ? 2 : 0) | this.d | (this.b ? 1 : 0)));
return;
case 3:
list.add(new q0((this.c ? 2 : 0) | this.e | (this.b ? 1 : 0)));
return;
case 4:
Constructor constructor = o;
if (constructor != null) {
try {
list.add((k8) constructor.newInstance(Integer.valueOf(this.f)));
return;
} catch (Exception e) {
throw new IllegalStateException("Unexpected error creating FLAC extractor", e);
}
}
list.add(new v8(this.f));
return;
case 5:
list.add(new e9());
return;
case 6:
list.add(new yc(this.g));
return;
case 7:
list.add(new of((this.c ? 2 : 0) | this.j | (this.b ? 1 : 0)));
return;
case 8:
list.add(new j9(this.i));
list.add(new pf(this.h));
return;
case 9:
list.add(new hg());
return;
case 10:
list.add(new ii());
return;
case 11:
list.add(new cp(this.k, this.l, this.m));
return;
case 12:
list.add(new lr());
return;
case 13:
default:
return;
case 14:
list.add(new yb());
return;
}
}
@Override // com.applovin.impl.o8
public synchronized k8[] a() {
return a(Uri.EMPTY, new HashMap());
}
@Override // com.applovin.impl.o8
public synchronized k8[] a(Uri uri, Map map) {
ArrayList arrayList;
try {
arrayList = new ArrayList(14);
int a = q8.a(map);
if (a != -1) {
a(a, arrayList);
}
int a2 = q8.a(uri);
if (a2 != -1 && a2 != a) {
a(a2, arrayList);
}
for (int i : n) {
if (i != a && i != a2) {
a(i, arrayList);
}
}
} catch (Throwable th) {
throw th;
}
return (k8[]) arrayList.toArray(new k8[arrayList.size()]);
}
}

View File

@@ -0,0 +1,6 @@
package com.applovin.impl;
/* loaded from: classes.dex */
public interface c7 {
b7 a(td tdVar);
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,55 @@
package com.applovin.impl;
import com.applovin.impl.p1;
import java.nio.ByteBuffer;
/* loaded from: classes.dex */
final class c9 extends z1 {
private static final int i = Float.floatToIntBits(Float.NaN);
@Override // com.applovin.impl.z1
public p1.a b(p1.a aVar) {
int i2 = aVar.c;
if (!xp.f(i2)) {
throw new p1.b(aVar);
}
if (i2 != 4) {
return new p1.a(aVar.a, aVar.b, 4);
}
return p1.a.e;
}
@Override // com.applovin.impl.p1
public void a(ByteBuffer byteBuffer) {
ByteBuffer a;
int position = byteBuffer.position();
int limit = byteBuffer.limit();
int i2 = limit - position;
int i3 = this.b.c;
if (i3 == 536870912) {
a = a((i2 / 3) * 4);
while (position < limit) {
a(((byteBuffer.get(position) & 255) << 8) | ((byteBuffer.get(position + 1) & 255) << 16) | ((byteBuffer.get(position + 2) & 255) << 24), a);
position += 3;
}
} else if (i3 == 805306368) {
a = a(i2);
while (position < limit) {
a((byteBuffer.get(position) & 255) | ((byteBuffer.get(position + 1) & 255) << 8) | ((byteBuffer.get(position + 2) & 255) << 16) | ((byteBuffer.get(position + 3) & 255) << 24), a);
position += 4;
}
} else {
throw new IllegalStateException();
}
byteBuffer.position(byteBuffer.limit());
a.flip();
}
private static void a(int i2, ByteBuffer byteBuffer) {
int floatToIntBits = Float.floatToIntBits((float) (i2 * 4.656612875245797E-10d));
if (floatToIntBits == i) {
floatToIntBits = Float.floatToIntBits(0.0f);
}
byteBuffer.putInt(floatToIntBits);
}
}

View File

@@ -0,0 +1,70 @@
package com.applovin.impl;
import android.text.TextUtils;
import com.unity3d.services.core.di.ServiceProvider;
import java.util.HashSet;
import java.util.Set;
/* loaded from: classes.dex */
public class ca {
private static final Set b = new HashSet(32);
private static final Set c = new HashSet(16);
public static final ca d = a(ServiceProvider.NAMED_AD_REQ);
public static final ca e = a("ad_imp");
public static final ca f = a("max_ad_imp");
public static final ca g = a("ad_session_start");
public static final ca h = a("ad_imp_session");
public static final ca i = a("max_ad_imp_session");
public static final ca j = a("cached_files_expired");
public static final ca k = a("cache_drop_count");
public static final ca l = a("sdk_reset_state_count", true);
public static final ca m = a("ad_response_process_failures", true);
public static final ca n = a("response_process_failures", true);
public static final ca o = a("incent_failed_to_display_count", true);
public static final ca p = a("app_paused_and_resumed");
public static final ca q = a("ad_rendered_with_mismatched_sdk_key", true);
public static final ca r = a("ad_shown_outside_app_count");
public static final ca s = a("med_ad_req");
public static final ca t = a("med_ad_response_process_failures", true);
public static final ca u = a("med_waterfall_ad_no_fill", true);
public static final ca v = a("med_waterfall_ad_adapter_load_failed", true);
public static final ca w = a("med_waterfall_ad_invalid_response", true);
private final String a;
static {
a("fullscreen_ad_nil_vc_count");
a("applovin_bundle_missing");
}
public static Set a() {
return c;
}
public String b() {
return this.a;
}
private ca(String str) {
this.a = str;
}
private static ca a(String str) {
return a(str, false);
}
private static ca a(String str, boolean z) {
if (!TextUtils.isEmpty(str)) {
Set set = b;
if (!set.contains(str)) {
set.add(str);
ca caVar = new ca(str);
if (z) {
c.add(caVar);
}
return caVar;
}
throw new IllegalArgumentException("Key has already been used: " + str);
}
throw new IllegalArgumentException("No key name specified");
}
}

View File

@@ -0,0 +1,139 @@
package com.applovin.impl;
import com.applovin.exoplayer2.common.base.Preconditions;
import java.io.Serializable;
import java.util.AbstractCollection;
import java.util.Arrays;
import java.util.Collection;
/* loaded from: classes.dex */
public abstract class cb extends AbstractCollection implements Serializable {
private static final Object[] a = new Object[0];
public abstract int a(Object[] objArr, int i);
@Override // java.util.AbstractCollection, java.util.Collection
public final boolean add(Object obj) {
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractCollection, java.util.Collection
public final boolean addAll(Collection collection) {
throw new UnsupportedOperationException();
}
public Object[] b() {
return null;
}
public int c() {
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractCollection, java.util.Collection
public final void clear() {
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractCollection, java.util.Collection
public abstract boolean contains(Object obj);
public int d() {
throw new UnsupportedOperationException();
}
public abstract boolean e();
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
public abstract pp iterator();
@Override // java.util.AbstractCollection, java.util.Collection
public final boolean remove(Object obj) {
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractCollection, java.util.Collection
public final boolean removeAll(Collection collection) {
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractCollection, java.util.Collection
public final boolean retainAll(Collection collection) {
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractCollection, java.util.Collection
public final Object[] toArray() {
return toArray(a);
}
public eb a() {
return isEmpty() ? eb.h() : eb.a(toArray());
}
public static abstract class b {
public static int a(int i, int i2) {
if (i2 < 0) {
throw new AssertionError("cannot store more than MAX_VALUE elements");
}
int i3 = i + (i >> 1) + 1;
if (i3 < i2) {
i3 = Integer.highestOneBit(i2 - 1) << 1;
}
if (i3 < 0) {
return Integer.MAX_VALUE;
}
return i3;
}
}
@Override // java.util.AbstractCollection, java.util.Collection
public final Object[] toArray(Object[] objArr) {
Preconditions.checkNotNull(objArr);
int size = size();
if (objArr.length < size) {
Object[] b2 = b();
if (b2 != null) {
return mh.a(b2, d(), c(), objArr);
}
objArr = gg.b(objArr, size);
} else if (objArr.length > size) {
objArr[size] = null;
}
a(objArr, 0);
return objArr;
}
public static abstract class a extends b {
Object[] a;
int b;
boolean c;
public a(int i) {
p3.a(i, "initialCapacity");
this.a = new Object[i];
this.b = 0;
}
public a a(Object obj) {
Preconditions.checkNotNull(obj);
a(this.b + 1);
Object[] objArr = this.a;
int i = this.b;
this.b = i + 1;
objArr[i] = obj;
return this;
}
private void a(int i) {
Object[] objArr = this.a;
if (objArr.length < i) {
this.a = Arrays.copyOf(objArr, b.a(objArr.length, i));
this.c = false;
} else if (this.c) {
this.a = (Object[]) objArr.clone();
this.c = false;
}
}
}
}

View File

@@ -0,0 +1,64 @@
package com.applovin.impl;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.TextView;
/* loaded from: classes.dex */
public class cc {
public TextView a;
public TextView b;
public ImageView c;
public ImageView d;
private dc e;
private int f;
public int a() {
return this.f;
}
public void a(int i) {
this.f = i;
}
public dc b() {
return this.e;
}
public void a(dc dcVar) {
this.e = dcVar;
this.a.setText(dcVar.k());
this.a.setTextColor(dcVar.l());
if (this.b != null) {
if (!TextUtils.isEmpty(dcVar.f())) {
this.b.setTypeface(null, 0);
this.b.setVisibility(0);
this.b.setText(dcVar.f());
this.b.setTextColor(dcVar.g());
if (dcVar.p()) {
this.b.setTypeface(null, 1);
}
} else {
this.b.setVisibility(8);
}
}
if (this.c != null) {
if (dcVar.h() > 0) {
this.c.setImageResource(dcVar.h());
this.c.setColorFilter(dcVar.i());
this.c.setVisibility(0);
} else {
this.c.setVisibility(8);
}
}
if (this.d != null) {
if (dcVar.d() > 0) {
this.d.setImageResource(dcVar.d());
this.d.setColorFilter(dcVar.e());
this.d.setVisibility(0);
return;
}
this.d.setVisibility(8);
}
}
}

View File

@@ -0,0 +1,40 @@
package com.applovin.impl;
import android.graphics.Color;
import androidx.core.view.ViewCompat;
import com.applovin.impl.sdk.utils.JsonUtils;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class cd {
private final JSONObject a;
public cd(JSONObject jSONObject) {
this.a = jSONObject == null ? new JSONObject() : jSONObject;
}
public int a() {
String string = JsonUtils.getString(this.a, "background_color", null);
return string != null ? Color.parseColor(string) : ViewCompat.MEASURED_STATE_MASK;
}
public int f() {
return JsonUtils.getInt(this.a, "close_button_top_margin", 20);
}
public int d() {
return JsonUtils.getInt(this.a, "close_button_h_margin", 5);
}
public int e() {
return JsonUtils.getInt(this.a, "close_button_size", 30);
}
public int c() {
return JsonUtils.getInt(this.a, "close_button_extended_touch_area_size", 10);
}
public long b() {
return JsonUtils.getLong(this.a, "close_button_delay_ms", 3000L);
}
}

View File

@@ -0,0 +1,191 @@
package com.applovin.impl;
import android.os.Handler;
import com.applovin.impl.be;
import com.applovin.impl.ce;
import com.mbridge.msdk.playercommon.exoplayer2.C;
import java.io.IOException;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes.dex */
public interface ce {
void a(int i, be.a aVar, nc ncVar, ud udVar);
void a(int i, be.a aVar, nc ncVar, ud udVar, IOException iOException, boolean z);
void a(int i, be.a aVar, ud udVar);
void b(int i, be.a aVar, nc ncVar, ud udVar);
void c(int i, be.a aVar, nc ncVar, ud udVar);
public static class a {
public final int a;
public final be.a b;
private final CopyOnWriteArrayList c;
private final long d;
public a() {
this(new CopyOnWriteArrayList(), 0, null, 0L);
}
public void a(Handler handler, ce ceVar) {
b1.a(handler);
b1.a(ceVar);
this.c.add(new C0018a(handler, ceVar));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c(ce ceVar, nc ncVar, ud udVar) {
ceVar.b(this.a, this.b, ncVar, udVar);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(ce ceVar, nc ncVar, ud udVar) {
ceVar.c(this.a, this.b, ncVar, udVar);
}
private a(CopyOnWriteArrayList copyOnWriteArrayList, int i, be.a aVar, long j) {
this.c = copyOnWriteArrayList;
this.a = i;
this.b = aVar;
this.d = j;
}
/* renamed from: com.applovin.impl.ce$a$a, reason: collision with other inner class name */
public static final class C0018a {
public Handler a;
public ce b;
public C0018a(Handler handler, ce ceVar) {
this.a = handler;
this.b = ceVar;
}
}
public void c(nc ncVar, int i, int i2, f9 f9Var, int i3, Object obj, long j, long j2) {
c(ncVar, new ud(i, i2, f9Var, i3, obj, a(j), a(j2)));
}
public void b(nc ncVar, int i, int i2, f9 f9Var, int i3, Object obj, long j, long j2) {
b(ncVar, new ud(i, i2, f9Var, i3, obj, a(j), a(j2)));
}
private long a(long j) {
long b = t2.b(j);
return b == C.TIME_UNSET ? C.TIME_UNSET : this.d + b;
}
public void c(final nc ncVar, final ud udVar) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0018a c0018a = (C0018a) it.next();
final ce ceVar = c0018a.b;
xp.a(c0018a.a, new Runnable() { // from class: com.applovin.impl.ce$a$$ExternalSyntheticLambda1
@Override // java.lang.Runnable
public final void run() {
ce.a.this.c(ceVar, ncVar, udVar);
}
});
}
}
public void b(final nc ncVar, final ud udVar) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0018a c0018a = (C0018a) it.next();
final ce ceVar = c0018a.b;
xp.a(c0018a.a, new Runnable() { // from class: com.applovin.impl.ce$a$$ExternalSyntheticLambda4
@Override // java.lang.Runnable
public final void run() {
ce.a.this.b(ceVar, ncVar, udVar);
}
});
}
}
public void a(int i, f9 f9Var, int i2, Object obj, long j) {
a(new ud(1, i, f9Var, i2, obj, a(j), C.TIME_UNSET));
}
public void a(final ud udVar) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0018a c0018a = (C0018a) it.next();
final ce ceVar = c0018a.b;
xp.a(c0018a.a, new Runnable() { // from class: com.applovin.impl.ce$a$$ExternalSyntheticLambda3
@Override // java.lang.Runnable
public final void run() {
ce.a.this.a(ceVar, udVar);
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(ce ceVar, ud udVar) {
ceVar.a(this.a, this.b, udVar);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(ce ceVar, nc ncVar, ud udVar) {
ceVar.a(this.a, this.b, ncVar, udVar);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a(ce ceVar, nc ncVar, ud udVar, IOException iOException, boolean z) {
ceVar.a(this.a, this.b, ncVar, udVar, iOException, z);
}
public void a(nc ncVar, int i, int i2, f9 f9Var, int i3, Object obj, long j, long j2) {
a(ncVar, new ud(i, i2, f9Var, i3, obj, a(j), a(j2)));
}
public void a(final nc ncVar, final ud udVar) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0018a c0018a = (C0018a) it.next();
final ce ceVar = c0018a.b;
xp.a(c0018a.a, new Runnable() { // from class: com.applovin.impl.ce$a$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
ce.a.this.a(ceVar, ncVar, udVar);
}
});
}
}
public void a(nc ncVar, int i, int i2, f9 f9Var, int i3, Object obj, long j, long j2, IOException iOException, boolean z) {
a(ncVar, new ud(i, i2, f9Var, i3, obj, a(j), a(j2)), iOException, z);
}
public void a(final nc ncVar, final ud udVar, final IOException iOException, final boolean z) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0018a c0018a = (C0018a) it.next();
final ce ceVar = c0018a.b;
xp.a(c0018a.a, new Runnable() { // from class: com.applovin.impl.ce$a$$ExternalSyntheticLambda2
@Override // java.lang.Runnable
public final void run() {
ce.a.this.a(ceVar, ncVar, udVar, iOException, z);
}
});
}
}
public void a(ce ceVar) {
Iterator it = this.c.iterator();
while (it.hasNext()) {
C0018a c0018a = (C0018a) it.next();
if (c0018a.b == ceVar) {
this.c.remove(c0018a);
}
}
}
public a a(int i, be.a aVar, long j) {
return new a(this.c, i, aVar, j);
}
}
}

Some files were not shown because too many files have changed in this diff Show More