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,30 @@
package com.fyber.inneractive.sdk.metrics;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
/* loaded from: classes2.dex */
public class a {
public final String a;
public a(String str) {
this.a = str;
}
public static boolean a(int i, int i2, JSONArray jSONArray, CopyOnWriteArrayList copyOnWriteArrayList) {
if (i <= 0 || i2 <= 0) {
return false;
}
long currentTimeMillis = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(i);
int i3 = 0;
for (int i4 = 0; i4 < jSONArray.length(); i4++) {
long optLong = jSONArray.optLong(i4, 0L);
if (optLong > currentTimeMillis) {
i3++;
copyOnWriteArrayList.add(Long.valueOf(optLong));
}
}
return i3 >= i2;
}
}

View File

@@ -0,0 +1,99 @@
package com.fyber.inneractive.sdk.metrics;
import android.app.Application;
import android.content.SharedPreferences;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
import com.fyber.inneractive.sdk.config.k;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.network.r;
import com.fyber.inneractive.sdk.network.s;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.o;
import com.fyber.inneractive.sdk.util.t;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class b implements Runnable {
public final /* synthetic */ g a;
public final /* synthetic */ Map b;
public final /* synthetic */ c c;
public b(c cVar, g gVar, Map map) {
this.c = cVar;
this.a = gVar;
this.b = map;
}
@Override // java.lang.Runnable
public final void run() {
UnitDisplayType unitDisplayType;
int a;
int a2;
String str;
IAlog.a("MetricCreativeReporter: sendMetricEvent()", new Object[0]);
c cVar = this.c;
UnitDisplayType unitDisplayType2 = cVar.b;
if (unitDisplayType2 == null || !(unitDisplayType2 == (unitDisplayType = UnitDisplayType.BANNER) || unitDisplayType2 == UnitDisplayType.MRECT || unitDisplayType2.isFullscreenUnit())) {
Object[] objArr = new Object[1];
UnitDisplayType unitDisplayType3 = cVar.b;
objArr[0] = unitDisplayType3 != null ? unitDisplayType3.value() : "";
IAlog.a("Unit display type %s is not supported for metric event", objArr);
return;
}
IAlog.a("MetricCreativeReporter: sendMetricEvent(), collectorData: data: %s", this.a.toString());
k kVar = IAConfigManager.L.t.b;
UnitDisplayType unitDisplayType4 = this.c.b;
if (unitDisplayType4 == unitDisplayType || unitDisplayType4 == UnitDisplayType.MRECT) {
String a3 = kVar.a("ad_metrics_interval_banner", c.f);
String a4 = kVar.a("ad_metrics_limit_banner", c.g);
a = t.a(a3, 24);
a2 = t.a(a4, 3);
str = "LastSentMetricsBanner";
} else {
String a5 = kVar.a("ad_metrics_interval_interstitial", c.h);
String a6 = kVar.a("ad_metrics_limit_interstitial", c.i);
a = t.a(a5, 24);
a2 = t.a(a6, 3);
str = "LastSentMetricsInterstitial";
}
Application application = o.a;
if (application != null) {
SharedPreferences sharedPreferences = application.getSharedPreferences("IAConfigPrefs", 0);
JSONArray jSONArray = new JSONArray();
try {
jSONArray = new JSONArray(sharedPreferences.getString(str, "[]"));
} catch (JSONException unused) {
}
CopyOnWriteArrayList copyOnWriteArrayList = new CopyOnWriteArrayList();
if (kVar.a(false, this.c.a) && !a.a(a, a2, jSONArray, copyOnWriteArrayList)) {
copyOnWriteArrayList.add(Long.valueOf(System.currentTimeMillis()));
c cVar2 = this.c;
InneractiveAdRequest inneractiveAdRequest = cVar2.d;
T t = cVar2.c;
Map map = this.b;
try {
s.a aVar = new s.a(r.METRIC_MEASUREMENTS_EVENT, inneractiveAdRequest, t, cVar2.e);
JSONObject jSONObject = new JSONObject();
for (String str2 : map.keySet()) {
Object obj = map.get(str2);
try {
jSONObject.put(str2, obj);
} catch (Exception unused2) {
IAlog.f("Got exception adding param to json object: %s, %s", str2, obj);
}
}
aVar.f.put(jSONObject);
aVar.a((String) null);
} catch (Exception unused3) {
}
}
sharedPreferences.edit().putString(str, new JSONArray((Collection) copyOnWriteArrayList).toString()).apply();
}
}
}

View File

@@ -0,0 +1,26 @@
package com.fyber.inneractive.sdk.metrics;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.response.e;
import org.json.JSONArray;
/* loaded from: classes2.dex */
public final class c<T extends com.fyber.inneractive.sdk.response.e> extends a {
public static final String f = String.valueOf(24);
public static final String g = String.valueOf(3);
public static final String h = String.valueOf(24);
public static final String i = String.valueOf(3);
public final UnitDisplayType b;
public final T c;
public final InneractiveAdRequest d;
public final JSONArray e;
public c(T t, InneractiveAdRequest inneractiveAdRequest, String str, UnitDisplayType unitDisplayType, JSONArray jSONArray) {
super("send_metric_report");
this.c = t;
this.d = inneractiveAdRequest;
this.b = unitDisplayType;
this.e = jSONArray;
}
}

View File

@@ -0,0 +1,37 @@
package com.fyber.inneractive.sdk.metrics;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class d {
public static final d d = new d();
public final HashMap a = new HashMap();
public final HashMap b = new HashMap();
public final f c = new f();
public final h b(String str) {
h hVar = (h) this.b.get(str);
if (hVar == null) {
hVar = new i();
}
this.b.put(str, hVar);
return hVar;
}
public final g a(String str) {
try {
if (str == null) {
return this.c;
}
g gVar = (g) this.a.get(str);
if (gVar != null) {
return gVar;
}
e eVar = new e();
this.a.put(str, eVar);
return eVar;
} catch (Exception unused) {
return this.c;
}
}
}

View File

@@ -0,0 +1,148 @@
package com.fyber.inneractive.sdk.metrics;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class e implements g {
public Long a = null;
public Long b = null;
public Long c = null;
public Long d = null;
public Long e = null;
public Long f = null;
public Long g = null;
public Long h = null;
@Override // com.fyber.inneractive.sdk.metrics.g
public final boolean a() {
return true;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long b() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.g = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long c() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.d = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long d() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.b = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long e() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.c = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long f() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.e = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long g() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.a = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long h() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.f = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long i() {
Long valueOf = Long.valueOf(System.currentTimeMillis());
this.h = valueOf;
return valueOf;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final HashMap j() {
HashMap hashMap = new HashMap();
Long l = this.b;
if (l != null && this.a != null) {
hashMap.put("sdk_init_network_req", Long.valueOf(l.longValue() - this.a.longValue()));
}
Long l2 = this.h;
if (l2 != null && this.b != null) {
hashMap.put("sdk_got_response_from_markup_url", Long.valueOf(l2.longValue() - this.b.longValue()));
}
Long l3 = this.d;
if (l3 != null && this.h != null) {
hashMap.put("sdk_parsed_res", Long.valueOf(l3.longValue() - this.h.longValue()));
}
Long l4 = this.c;
if (l4 != null && this.b != null) {
hashMap.put("sdk_got_server_res", Long.valueOf(l4.longValue() - this.b.longValue()));
}
Long l5 = this.d;
if (l5 != null && this.c != null) {
hashMap.put("sdk_parsed_res", Long.valueOf(l5.longValue() - this.c.longValue()));
}
Long l6 = this.e;
if (l6 != null && this.d != null) {
hashMap.put("ad_loaded_result", Long.valueOf(l6.longValue() - this.d.longValue()));
}
Long l7 = this.f;
if (l7 != null && this.e != null) {
hashMap.put("publisher_notified", Long.valueOf(l7.longValue() - this.e.longValue()));
}
Long l8 = this.g;
if (l8 != null && this.a != null) {
hashMap.put("roundtrip", Long.valueOf(l8.longValue() - this.a.longValue()));
}
return hashMap;
}
public final String toString() {
StringBuilder sb = new StringBuilder("MetricsCollectorData{");
if (this.a != null && this.b != null) {
sb.append(" sdk_init_network_req=");
sb.append(this.b.longValue() - this.a.longValue());
}
if (this.h != null && this.b != null) {
sb.append(", sdk_got_response_from_markup_url=");
sb.append(this.h.longValue() - this.b.longValue());
}
if (this.c != null && this.b != null) {
sb.append(", sdk_got_server_res=");
sb.append(this.c.longValue() - this.b.longValue());
}
if (this.d != null && this.c != null) {
sb.append(", sdk_parsed_res=");
sb.append(this.d.longValue() - this.c.longValue());
}
if (this.e != null && this.d != null) {
sb.append(", ad_loaded_result=");
sb.append(this.e.longValue() - this.d.longValue());
}
if (this.f != null && this.e != null) {
sb.append(", publisher_notified=");
sb.append(this.f.longValue() - this.e.longValue());
}
if (this.g != null && this.a != null) {
sb.append(", roundtrip=");
sb.append(this.g.longValue() - this.a.longValue());
}
sb.append(" }");
return sb.toString();
}
}

View File

@@ -0,0 +1,56 @@
package com.fyber.inneractive.sdk.metrics;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class f implements g {
@Override // com.fyber.inneractive.sdk.metrics.g
public final boolean a() {
return false;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long b() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long c() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long d() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long e() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long f() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long g() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long h() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final Long i() {
return null;
}
@Override // com.fyber.inneractive.sdk.metrics.g
public final HashMap j() {
return new HashMap();
}
}

View File

@@ -0,0 +1,26 @@
package com.fyber.inneractive.sdk.metrics;
import java.util.HashMap;
/* loaded from: classes2.dex */
public interface g {
boolean a();
Long b();
Long c();
Long d();
Long e();
Long f();
Long g();
Long h();
Long i();
HashMap j();
}

View File

@@ -0,0 +1,17 @@
package com.fyber.inneractive.sdk.metrics;
import com.fyber.inneractive.sdk.config.global.s;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
/* loaded from: classes2.dex */
public interface h {
void a();
void a(s sVar, InneractiveAdRequest inneractiveAdRequest, com.fyber.inneractive.sdk.response.e eVar);
void a(String str);
void b();
void b(String str);
}

View File

@@ -0,0 +1,118 @@
package com.fyber.inneractive.sdk.metrics;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.config.global.s;
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
import com.fyber.inneractive.sdk.network.r;
import com.fyber.inneractive.sdk.network.s;
import com.fyber.inneractive.sdk.util.IAlog;
import java.util.LinkedHashMap;
import java.util.UUID;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class i implements h {
public final LinkedHashMap a = new LinkedHashMap();
public final LinkedHashMap b = new LinkedHashMap();
public long c;
public long d;
public static class a {
public final String a;
public final String b;
public /* synthetic */ a() {
throw null;
}
public a(String str) {
this.a = UUID.randomUUID().toString();
this.b = str;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || a.class != obj.getClass()) {
return false;
}
return this.a.equals(((a) obj).a);
}
public final int hashCode() {
return this.a.hashCode();
}
}
@Override // com.fyber.inneractive.sdk.metrics.h
public final void a() {
this.d = System.currentTimeMillis();
}
@Override // com.fyber.inneractive.sdk.metrics.h
public final void b() {
this.c = System.currentTimeMillis();
}
@Override // com.fyber.inneractive.sdk.metrics.h
public final void a(String str) {
this.b.put(new a(str), Long.valueOf(System.currentTimeMillis() - this.d));
}
@Override // com.fyber.inneractive.sdk.metrics.h
public final void b(String str) {
this.a.put(new a(str), Long.valueOf(System.currentTimeMillis() - this.c));
}
@Override // com.fyber.inneractive.sdk.metrics.h
public final void a(s sVar, InneractiveAdRequest inneractiveAdRequest, com.fyber.inneractive.sdk.response.e eVar) {
JSONObject jSONObject = new JSONObject();
LinkedHashMap linkedHashMap = this.b;
JSONArray jSONArray = new JSONArray();
for (a aVar : linkedHashMap.keySet()) {
JSONObject jSONObject2 = new JSONObject();
try {
jSONObject2.putOpt("outcome", aVar.b);
jSONObject2.putOpt("time", linkedHashMap.get(aVar));
jSONObject2.putOpt("idx", Integer.valueOf(jSONArray.length()));
} catch (JSONException unused) {
}
jSONArray.put(jSONObject2);
}
try {
jSONObject.put("adl", jSONArray);
} catch (Exception unused2) {
IAlog.f("Got exception adding param to json object: %s, %s", "adl", jSONArray);
}
LinkedHashMap linkedHashMap2 = this.a;
JSONArray jSONArray2 = new JSONArray();
for (a aVar2 : linkedHashMap2.keySet()) {
JSONObject jSONObject3 = new JSONObject();
try {
jSONObject3.putOpt("outcome", aVar2.b);
jSONObject3.putOpt("time", linkedHashMap2.get(aVar2));
jSONObject3.putOpt("idx", Integer.valueOf(jSONArray2.length()));
} catch (JSONException unused3) {
}
jSONArray2.put(jSONObject3);
}
try {
jSONObject.put("adml", jSONArray2);
} catch (Exception unused4) {
IAlog.f("Got exception adding param to json object: %s, %s", "adml", jSONArray2);
}
if (!TextUtils.isEmpty(null)) {
try {
jSONObject.put("dns_failed", (Object) null);
} catch (Exception unused5) {
IAlog.f("Got exception adding param to json object: %s, %s", "dns_failed", null);
}
}
s.a aVar3 = new s.a(r.SDK_BIDDING_METRICS, inneractiveAdRequest, eVar, sVar.c());
aVar3.f.put(jSONObject);
aVar3.a((String) null);
}
}