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,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJAwardCurrencyListener;
@j0
/* loaded from: classes4.dex */
public class TJAwardCurrencyListenerNative implements TJAwardCurrencyListener {
public final long a;
public TJAwardCurrencyListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJAwardCurrencyListenerNative(j);
}
@j0
private static native void onAwardCurrencyResponseFailureNative(long j, String str);
@j0
private static native void onAwardCurrencyResponseNative(long j, String str, int i);
@Override // com.tapjoy.TJAwardCurrencyListener
public final void onAwardCurrencyResponse(String str, int i) {
onAwardCurrencyResponseNative(this.a, str, i);
}
@Override // com.tapjoy.TJAwardCurrencyListener
public final void onAwardCurrencyResponseFailure(String str) {
onAwardCurrencyResponseFailureNative(this.a, str);
}
}

View File

@@ -0,0 +1,45 @@
package com.tapjoy.internal;
import com.tapjoy.TJConnectListener;
@j0
/* loaded from: classes4.dex */
public class TJConnectListenerNative extends TJConnectListener {
public final long a;
public TJConnectListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJConnectListenerNative(j);
}
@j0
private static native void onConnectFailureNative(long j, int i, String str);
@j0
private static native void onConnectSuccessNative(long j);
@j0
private static native void onConnectWarningNative(long j, int i, String str);
@Override // com.tapjoy.TJConnectListener, com.tapjoy.TJConnectInterface
public final void onConnectFailure(int i, String str) {
onConnectFailureNative(this.a, i, str);
}
@Override // com.tapjoy.TJConnectListener, com.tapjoy.TJConnectInterface
public final void onConnectSuccess() {
onConnectSuccessNative(this.a);
}
@Override // com.tapjoy.TJConnectListener, com.tapjoy.TJConnectInterface
public final void onConnectWarning(int i, String str) {
onConnectWarningNative(this.a, i, str);
}
}

View File

@@ -0,0 +1,29 @@
package com.tapjoy.internal;
import com.tapjoy.TJEarnedCurrencyListener;
@j0
/* loaded from: classes4.dex */
public class TJEarnedCurrencyListenerNative implements TJEarnedCurrencyListener {
public final long a;
public TJEarnedCurrencyListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJEarnedCurrencyListenerNative(j);
}
@j0
private static native void onEarnedCurrencyNative(long j, String str, int i);
@Override // com.tapjoy.TJEarnedCurrencyListener
public final void onEarnedCurrency(String str, int i) {
onEarnedCurrencyNative(this.a, str, i);
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJGetCurrencyBalanceListener;
@j0
/* loaded from: classes4.dex */
public class TJGetCurrencyBalanceListenerNative implements TJGetCurrencyBalanceListener {
public final long a;
public TJGetCurrencyBalanceListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJGetCurrencyBalanceListenerNative(j);
}
@j0
private static native void onGetCurrencyBalanceResponseFailureNative(long j, String str);
@j0
private static native void onGetCurrencyBalanceResponseNative(long j, String str, int i);
@Override // com.tapjoy.TJGetCurrencyBalanceListener
public final void onGetCurrencyBalanceResponse(String str, int i) {
onGetCurrencyBalanceResponseNative(this.a, str, i);
}
@Override // com.tapjoy.TJGetCurrencyBalanceListener
public final void onGetCurrencyBalanceResponseFailure(String str) {
onGetCurrencyBalanceResponseFailureNative(this.a, str);
}
}

View File

@@ -0,0 +1,88 @@
package com.tapjoy.internal;
import com.tapjoy.TJActionRequest;
import com.tapjoy.TJError;
import com.tapjoy.TJPlacement;
import com.tapjoy.TJPlacementListener;
@j0
/* loaded from: classes4.dex */
public class TJPlacementListenerNative implements TJPlacementListener {
public final long a;
public TJPlacementListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJPlacementListenerNative(j);
}
@j0
private static native void onClickNative(long j, TJPlacement tJPlacement, String str);
@j0
private static native void onContentDismissNative(long j, TJPlacement tJPlacement, String str);
@j0
private static native void onContentReadyNative(long j, TJPlacement tJPlacement, String str);
@j0
private static native void onContentShowNative(long j, TJPlacement tJPlacement, String str);
@j0
private static native void onPurchaseRequestNative(long j, TJPlacement tJPlacement, String str, TJActionRequest tJActionRequest, String str2, String str3, String str4);
@j0
private static native void onRequestFailureNative(long j, TJPlacement tJPlacement, String str, int i, String str2);
@j0
private static native void onRequestSuccessNative(long j, TJPlacement tJPlacement, String str);
@j0
private static native void onRewardRequestNative(long j, TJPlacement tJPlacement, String str, TJActionRequest tJActionRequest, String str2, String str3, String str4, int i);
@Override // com.tapjoy.TJPlacementListener
public final void onClick(TJPlacement tJPlacement) {
onClickNative(this.a, tJPlacement, tJPlacement.getName());
}
@Override // com.tapjoy.TJPlacementListener
public final void onContentDismiss(TJPlacement tJPlacement) {
onContentDismissNative(this.a, tJPlacement, tJPlacement.getName());
}
@Override // com.tapjoy.TJPlacementListener
public final void onContentReady(TJPlacement tJPlacement) {
onContentReadyNative(this.a, tJPlacement, tJPlacement.getName());
}
@Override // com.tapjoy.TJPlacementListener
public final void onContentShow(TJPlacement tJPlacement) {
onContentShowNative(this.a, tJPlacement, tJPlacement.getName());
}
@Override // com.tapjoy.TJPlacementListener
public final void onPurchaseRequest(TJPlacement tJPlacement, TJActionRequest tJActionRequest, String str) {
onPurchaseRequestNative(this.a, tJPlacement, tJPlacement.getName(), tJActionRequest, tJActionRequest.getRequestId(), tJActionRequest.getToken(), str);
}
@Override // com.tapjoy.TJPlacementListener
public final void onRequestFailure(TJPlacement tJPlacement, TJError tJError) {
onRequestFailureNative(this.a, tJPlacement, tJPlacement.getName(), tJError.code, tJError.message);
}
@Override // com.tapjoy.TJPlacementListener
public final void onRequestSuccess(TJPlacement tJPlacement) {
onRequestSuccessNative(this.a, tJPlacement, tJPlacement.getName());
}
@Override // com.tapjoy.TJPlacementListener
public final void onRewardRequest(TJPlacement tJPlacement, TJActionRequest tJActionRequest, String str, int i) {
onRewardRequestNative(this.a, tJPlacement, tJPlacement.getName(), tJActionRequest, tJActionRequest.getRequestId(), tJActionRequest.getToken(), str, i);
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJSetCurrencyAmountRequiredListener;
@j0
/* loaded from: classes4.dex */
public class TJSetCurrencyAmountRequiredListenerNative implements TJSetCurrencyAmountRequiredListener {
public final long a;
public TJSetCurrencyAmountRequiredListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJSetCurrencyAmountRequiredListenerNative(j);
}
@j0
private static native void onSetCurrencyAmountRequiredFailureNative(long j, int i, String str);
@j0
private static native void onSetCurrencyAmountRequiredSuccessNative(long j);
@Override // com.tapjoy.TJSetCurrencyAmountRequiredListener
public final void onSetCurrencyAmountRequiredFailure(int i, String str) {
onSetCurrencyAmountRequiredFailureNative(this.a, i, str);
}
@Override // com.tapjoy.TJSetCurrencyAmountRequiredListener
public final void onSetCurrencyAmountRequiredSuccess() {
onSetCurrencyAmountRequiredSuccessNative(this.a);
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJSetCurrencyBalanceListener;
@j0
/* loaded from: classes4.dex */
public class TJSetCurrencyBalanceListenerNative implements TJSetCurrencyBalanceListener {
public final long a;
public TJSetCurrencyBalanceListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJSetCurrencyBalanceListenerNative(j);
}
@j0
private static native void onSetCurrencyBalanceFailureNative(long j, int i, String str);
@j0
private static native void onSetCurrencyBalanceSuccessNative(long j);
@Override // com.tapjoy.TJSetCurrencyBalanceListener
public final void onSetCurrencyBalanceFailure(int i, String str) {
onSetCurrencyBalanceFailureNative(this.a, i, str);
}
@Override // com.tapjoy.TJSetCurrencyBalanceListener
public final void onSetCurrencyBalanceSuccess() {
onSetCurrencyBalanceSuccessNative(this.a);
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJSetUserIDListener;
@j0
/* loaded from: classes4.dex */
public class TJSetUserIDListenerNative implements TJSetUserIDListener {
public final long a;
public TJSetUserIDListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJSetUserIDListenerNative(j);
}
@j0
private static native void onSetUserIDFailureNative(long j, int i, String str);
@j0
private static native void onSetUserIDSuccessNative(long j);
@Override // com.tapjoy.TJSetUserIDListener
public final void onSetUserIDFailure(int i, String str) {
onSetUserIDFailureNative(this.a, i, str);
}
@Override // com.tapjoy.TJSetUserIDListener
public final void onSetUserIDSuccess() {
onSetUserIDSuccessNative(this.a);
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJSpendCurrencyListener;
@j0
/* loaded from: classes4.dex */
public class TJSpendCurrencyListenerNative implements TJSpendCurrencyListener {
public final long a;
public TJSpendCurrencyListenerNative(long j) {
if (j == 0) {
throw new IllegalArgumentException();
}
this.a = j;
}
@j0
public static Object create(long j) {
return new TJSpendCurrencyListenerNative(j);
}
@j0
private static native void onSpendCurrencyResponseFailureNative(long j, String str);
@j0
private static native void onSpendCurrencyResponseNative(long j, String str, int i);
@Override // com.tapjoy.TJSpendCurrencyListener
public final void onSpendCurrencyResponse(String str, int i) {
onSpendCurrencyResponseNative(this.a, str, i);
}
@Override // com.tapjoy.TJSpendCurrencyListener
public final void onSpendCurrencyResponseFailure(String str) {
onSpendCurrencyResponseFailureNative(this.a, str);
}
}

View File

@@ -0,0 +1,20 @@
package com.tapjoy.internal;
import android.content.Context;
import com.tapjoy.TJPlacement;
import com.tapjoy.TJPlacementListener;
import com.tapjoy.TJPrivacyPolicy;
@j0
/* loaded from: classes4.dex */
public class TapjoyNative {
@j0
public static Object createPlacement(Context context, String str, TJPlacementListener tJPlacementListener) {
return new TJPlacement(context, str, tJPlacementListener);
}
@j0
public static Object getPrivacyPolicy() {
return TJPrivacyPolicy.getInstance();
}
}

View File

@@ -0,0 +1,30 @@
package com.tapjoy.internal;
import android.app.Application;
import android.util.Log;
import com.tapjoy.TapjoyLog;
import java.util.concurrent.CountDownLatch;
/* loaded from: classes4.dex */
public final class a implements Runnable {
public final /* synthetic */ CountDownLatch a;
public final /* synthetic */ c b;
public a(c cVar, CountDownLatch countDownLatch) {
this.b = cVar;
this.a = countDownLatch;
}
@Override // java.lang.Runnable
public final void run() {
try {
try {
this.b.a = (Application) Class.forName("android.app.ActivityThread").getMethod("currentApplication", null).invoke(null, null);
} catch (Exception e) {
TapjoyLog.w("Tapjoy.ActivityTracker", Log.getStackTraceString(e));
}
} finally {
this.a.countDown();
}
}
}

View File

@@ -0,0 +1,5 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class a0 {
}

View File

@@ -0,0 +1,56 @@
package com.tapjoy.internal;
import androidx.work.WorkRequest;
import com.mbridge.msdk.newreward.player.view.hybrid.util.MRAIDCommunicatorUtil;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/* loaded from: classes4.dex */
public final class a1 extends o {
public static final Map f = Collections.unmodifiableMap(new HashMap());
public final n b;
public final n c;
public final n d;
public final n e;
public a1() {
this.a.add(new n());
n nVar = new n();
this.a.add(nVar);
this.b = nVar;
n nVar2 = new n();
this.a.add(nVar2);
this.c = nVar2;
nVar2.a = new ConcurrentHashMap();
n nVar3 = new n();
this.a.add(nVar3);
this.d = nVar3;
n nVar4 = new n();
this.a.add(nVar4);
this.e = nVar4;
n nVar5 = new n();
this.a.add(nVar5);
HashMap hashMap = new HashMap();
hashMap.put("placement_request_content_retry_timeout", -1);
hashMap.put("placement_request_content_retry_backoff", Arrays.asList(0L, 500L, Long.valueOf(WorkRequest.MIN_BACKOFF_MILLIS), Double.valueOf(2.0d)));
nVar5.a = hashMap;
}
public final void a(HashMap hashMap) {
Map map;
Map map2;
if (hashMap != null) {
map = (Map) hashMap.get("final");
map2 = (Map) hashMap.get(MRAIDCommunicatorUtil.STATES_DEFAULT);
} else {
map = null;
map2 = null;
}
this.b.a = map;
this.e.a = map2;
setChanged();
}
}

View File

@@ -0,0 +1,13 @@
package com.tapjoy.internal;
import java.util.Locale;
/* loaded from: classes4.dex */
public final class a2 {
public final String a;
public a2() {
this.a = null;
this.a = Locale.getDefault().getCountry();
}
}

View File

@@ -0,0 +1,13 @@
package com.tapjoy.internal;
import com.tapjoy.TapjoyConfig;
import com.tapjoy.TapjoyConnectFlag;
import java.util.Hashtable;
/* loaded from: classes4.dex */
public final class a3 extends Hashtable {
public a3() {
put(TapjoyConnectFlag.SERVICE_URL, TapjoyConfig.TJC_SERVICE_URL);
put(TapjoyConnectFlag.PLACEMENT_URL, TapjoyConfig.TJC_PLACEMENT_SERVICE_URL);
}
}

View File

@@ -0,0 +1,51 @@
package com.tapjoy.internal;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import com.tapjoy.TJSession;
/* loaded from: classes4.dex */
public final class b implements Application.ActivityLifecycleCallbacks {
public final /* synthetic */ c a;
public b(c cVar) {
this.a = cVar;
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityCreated(Activity activity, Bundle bundle) {
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityDestroyed(Activity activity) {
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityPaused(Activity activity) {
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityResumed(Activity activity) {
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityStarted(Activity activity) {
this.a.c.add(activity.getClass().getName() + "@" + System.identityHashCode(activity));
if (this.a.c.size() == 1) {
TJSession.INSTANCE.initSession();
}
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityStopped(Activity activity) {
this.a.c.remove(activity.getClass().getName() + "@" + System.identityHashCode(activity));
if (this.a.c.size() <= 0) {
TJSession.INSTANCE.endSession();
}
}
}

View File

@@ -0,0 +1,6 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class b0 {
public static d0 a;
}

View File

@@ -0,0 +1,42 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class b1 {
public final byte[] a;
public int b;
public int c;
public boolean d;
public final boolean e;
public b1 f;
public b1 g;
public b1() {
this.a = new byte[8192];
this.e = true;
this.d = false;
}
public final b1 a() {
b1 b1Var = this.f;
b1 b1Var2 = b1Var != this ? b1Var : null;
b1 b1Var3 = this.g;
b1Var3.f = b1Var;
this.f.g = b1Var3;
this.f = null;
this.g = null;
return b1Var2;
}
public b1(b1 b1Var) {
this(b1Var.a, b1Var.b, b1Var.c);
b1Var.d = true;
}
public b1(byte[] bArr, int i, int i2) {
this.a = bArr;
this.b = i;
this.c = i2;
this.e = false;
this.d = true;
}
}

View File

@@ -0,0 +1,50 @@
package com.tapjoy.internal;
import android.os.Build;
import com.tapjoy.TJDeviceInfo;
import com.tapjoy.TJStore;
import com.tapjoy.TJTracking;
import com.tapjoy.TapjoyConnectCore;
import java.util.Locale;
import java.util.TimeZone;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class b2 {
public final String a;
public final String b;
public final Boolean c;
public final boolean d;
public final String e;
public final String f;
public final String g;
public final String h;
public final String i;
public final o1 j;
public b2() {
o1 android2 = new o1();
Intrinsics.checkNotNullParameter(android2, "android");
this.a = null;
this.b = null;
this.c = null;
this.d = false;
this.e = null;
this.f = null;
this.g = null;
this.h = null;
this.i = null;
this.j = android2;
this.a = Locale.getDefault().getLanguage();
TJStore tJStore = TJStore.INSTANCE;
this.b = tJStore.getStore();
this.c = Boolean.valueOf(tJStore.getStoreView());
TJTracking tJTracking = TJTracking.INSTANCE;
this.d = tJTracking.getAdTrackingEnableIfPresent();
this.e = tJTracking.getAdvertisingIdIfAllowed();
this.f = "android";
this.g = Build.VERSION.RELEASE;
this.h = TimeZone.getDefault().getID();
this.i = TJDeviceInfo.INSTANCE.getTheme(TapjoyConnectCore.getInstance().getContext());
}
}

View File

@@ -0,0 +1,20 @@
package com.tapjoy.internal;
import java.util.List;
import java.util.Map;
/* loaded from: classes4.dex */
public final class b3 {
public int a;
public Map b;
public String c;
public String d;
public long e;
public long f;
public final String a(String str) {
List list;
Map map = this.b;
return (map == null || (list = (List) map.get(str)) == null || list.get(0) == null) ? "" : (String) list.get(0);
}
}

View File

@@ -0,0 +1,71 @@
package com.tapjoy.internal;
import android.app.Application;
import android.content.Context;
import android.util.Log;
import com.tapjoy.TJSession;
import com.tapjoy.TapjoyLog;
import com.tapjoy.TapjoyUtil;
import java.util.HashSet;
import java.util.concurrent.CountDownLatch;
/* loaded from: classes4.dex */
public final class c {
public static final c d = new c();
public Application a;
public b b;
public final HashSet c = new HashSet();
public static void a(Context context) {
if (context == null) {
return;
}
c cVar = d;
Context applicationContext = context.getApplicationContext();
if (cVar.a == null) {
try {
if (applicationContext instanceof Application) {
cVar.a = (Application) applicationContext;
} else {
CountDownLatch countDownLatch = new CountDownLatch(1);
TapjoyUtil.runOnMainThread(new a(cVar, countDownLatch));
countDownLatch.await();
}
} catch (Exception e) {
TapjoyLog.w("Tapjoy.ActivityTracker", Log.getStackTraceString(e));
}
if (cVar.a == null) {
return;
}
}
synchronized (cVar) {
try {
if (cVar.b == null) {
b bVar = new b(cVar);
cVar.b = bVar;
cVar.a.registerActivityLifecycleCallbacks(bVar);
TJSession.INSTANCE.initSession();
}
} finally {
}
}
}
public static void a() {
c cVar = d;
if (cVar.a == null) {
return;
}
synchronized (cVar) {
try {
b bVar = cVar.b;
if (bVar != null) {
cVar.a.unregisterActivityLifecycleCallbacks(bVar);
cVar.b = null;
}
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,137 @@
package com.tapjoy.internal;
import java.io.Closeable;
import java.util.LinkedList;
/* loaded from: classes4.dex */
public abstract class c0 implements Closeable {
/* JADX WARN: Code restructure failed: missing block: B:14:0x0048, code lost:
r1.a(4);
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x004b, code lost:
return r0;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.util.LinkedHashMap a() {
/*
r5 = this;
java.util.LinkedHashMap r0 = new java.util.LinkedHashMap
r0.<init>()
r1 = r5
com.tapjoy.internal.e0 r1 = (com.tapjoy.internal.e0) r1
r2 = 3
r1.a(r2)
Lc:
r1.e()
int r2 = r1.i
r3 = 4
if (r2 == r3) goto L48
r4 = 2
if (r2 == r4) goto L48
r1.e()
int r2 = r1.i
r3 = 5
if (r2 != r3) goto L34
java.lang.String r2 = r1.j
r1.e()
r3 = 0
r1.i = r3
r3 = 0
r1.k = r3
r1.j = r3
java.lang.Object r3 = r5.b()
r0.put(r2, r3)
goto Lc
L34:
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
int r1 = r1.e()
java.lang.String r1 = com.tapjoy.internal.g0.a(r1)
java.lang.String r2 = "Expected a name but was "
java.lang.String r1 = r2.concat(r1)
r0.<init>(r1)
throw r0
L48:
r1.a(r3)
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.c0.a():java.util.LinkedHashMap");
}
public final Object b() {
e0 e0Var = (e0) this;
int e = e0Var.e();
int a = h0.a(e);
if (a == 0) {
LinkedList linkedList = new LinkedList();
e0Var.a(1);
while (true) {
e0Var.e();
int i = e0Var.i;
if (i == 4 || i == 2) {
break;
}
linkedList.add(b());
}
e0Var.a(2);
return linkedList;
}
if (a == 2) {
return a();
}
if (a == 5) {
e0Var.e();
int i2 = e0Var.i;
if (i2 != 6 && i2 != 7) {
throw new IllegalStateException("Expected a string but was ".concat(g0.a(e0Var.e())));
}
String str = e0Var.k;
e0Var.e();
e0Var.i = 0;
e0Var.k = null;
e0Var.j = null;
return str;
}
if (a == 6) {
e0Var.e();
int i3 = e0Var.i;
if (i3 != 6 && i3 != 7) {
throw new IllegalStateException("Expected a string but was ".concat(g0.a(e0Var.e())));
}
String str2 = e0Var.k;
e0Var.e();
e0Var.i = 0;
e0Var.k = null;
e0Var.j = null;
return new j1(str2);
}
if (a == 7) {
e0Var.e();
if (e0Var.i != 8) {
throw new IllegalStateException("Expected a boolean but was ".concat(g0.a(e0Var.i)));
}
boolean z = e0Var.k == "true";
e0Var.e();
e0Var.i = 0;
e0Var.k = null;
e0Var.j = null;
return Boolean.valueOf(z);
}
if (a != 8) {
throw new IllegalStateException("Expected a value but was ".concat(g0.a(e)));
}
e0Var.e();
if (e0Var.i != 9) {
throw new IllegalStateException("Expected null but was ".concat(g0.a(e0Var.i)));
}
e0Var.e();
e0Var.i = 0;
e0Var.k = null;
e0Var.j = null;
return null;
}
}

View File

@@ -0,0 +1,51 @@
package com.tapjoy.internal;
import android.support.v4.media.session.PlaybackStateCompat;
/* loaded from: classes4.dex */
public abstract class c1 {
public static b1 a;
public static long b;
public static b1 a() {
synchronized (c1.class) {
try {
b1 b1Var = a;
if (b1Var == null) {
return new b1();
}
a = b1Var.f;
b1Var.f = null;
b -= PlaybackStateCompat.ACTION_PLAY_FROM_URI;
return b1Var;
} catch (Throwable th) {
throw th;
}
}
}
public static void a(b1 b1Var) {
if (b1Var.f == null && b1Var.g == null) {
if (b1Var.d) {
return;
}
synchronized (c1.class) {
try {
long j = b + PlaybackStateCompat.ACTION_PLAY_FROM_URI;
if (j > PlaybackStateCompat.ACTION_PREPARE_FROM_SEARCH) {
return;
}
b = j;
b1Var.f = a;
b1Var.c = 0;
b1Var.b = 0;
a = b1Var;
return;
} catch (Throwable th) {
throw th;
}
}
}
throw new IllegalArgumentException();
}
}

View File

@@ -0,0 +1,13 @@
package com.tapjoy.internal;
import com.tapjoy.TapjoyConnectCore;
/* loaded from: classes4.dex */
public final class c2 {
public final String a;
public c2() {
this.a = null;
this.a = TapjoyConnectCore.getInstance().getCustomParameter();
}
}

View File

@@ -0,0 +1,33 @@
package com.tapjoy.internal;
import com.tapjoy.TapjoyUtil;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes4.dex */
public final class c3 {
public static b3 a(String str, Map map) {
return a(str, TapjoyUtil.convertURLParams((Map<String, String>) map, false), 0, null, null, null);
}
public static b3 b(String str, Map map) {
return a(str, "", 1, null, "application/x-www-form-urlencoded", TapjoyUtil.convertURLParams((Map<String, String>) map, false));
}
public static b3 a(String str, HashMap hashMap, String str2) {
return a(str, "", 1, hashMap, "application/json;charset=utf-8", str2);
}
/* JADX WARN: Removed duplicated region for block: B:34:0x01de */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static com.tapjoy.internal.b3 a(java.lang.String r8, java.lang.String r9, int r10, java.util.HashMap r11, java.lang.String r12, java.lang.String r13) {
/*
Method dump skipped, instructions count: 525
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.c3.a(java.lang.String, java.lang.String, int, java.util.HashMap, java.lang.String, java.lang.String):com.tapjoy.internal.b3");
}
}

View File

@@ -0,0 +1,33 @@
package com.tapjoy.internal;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/* loaded from: classes4.dex */
public final class d implements Runnable {
public final /* synthetic */ Method a;
public final /* synthetic */ Object[] b;
public final /* synthetic */ e c;
public d(e eVar, Method method, Object[] objArr) {
this.c = eVar;
this.a = method;
this.b = objArr;
}
@Override // java.lang.Runnable
public final void run() {
try {
this.a.invoke(this.c.a, this.b);
} catch (IllegalAccessException e) {
i2.a(e);
throw null;
} catch (IllegalArgumentException e2) {
i2.a(e2);
throw null;
} catch (InvocationTargetException e3) {
i2.a(e3);
throw null;
}
}
}

View File

@@ -0,0 +1,5 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class d0 extends b0 {
}

View File

@@ -0,0 +1,224 @@
package com.tapjoy.internal;
import java.nio.charset.Charset;
import java.util.Arrays;
/* loaded from: classes4.dex */
public final class d1 extends m {
public final transient byte[][] f;
public final transient int[] g;
public d1(l lVar, int i) {
super(null);
f3.a(lVar.b, 0L, i);
b1 b1Var = lVar.a;
int i2 = 0;
int i3 = 0;
int i4 = 0;
while (i3 < i) {
int i5 = b1Var.c;
int i6 = b1Var.b;
if (i5 == i6) {
throw new AssertionError("s.limit == s.pos");
}
i3 += i5 - i6;
i4++;
b1Var = b1Var.f;
}
this.f = new byte[i4][];
this.g = new int[i4 * 2];
b1 b1Var2 = lVar.a;
int i7 = 0;
while (i2 < i) {
byte[][] bArr = this.f;
bArr[i7] = b1Var2.a;
int i8 = b1Var2.c;
int i9 = b1Var2.b;
int i10 = (i8 - i9) + i2;
i2 = i10 > i ? i : i10;
int[] iArr = this.g;
iArr[i7] = i2;
iArr[bArr.length + i7] = i9;
b1Var2.d = true;
i7++;
b1Var2 = b1Var2.f;
}
}
@Override // com.tapjoy.internal.m
public final String a() {
return e().a();
}
@Override // com.tapjoy.internal.m
public final int b() {
return this.g[this.f.length - 1];
}
@Override // com.tapjoy.internal.m
public final m c() {
return e().c();
}
@Override // com.tapjoy.internal.m
public final String d() {
return e().d();
}
public final m e() {
int[] iArr = this.g;
byte[][] bArr = this.f;
byte[] bArr2 = new byte[iArr[bArr.length - 1]];
int length = bArr.length;
int i = 0;
int i2 = 0;
while (i < length) {
int[] iArr2 = this.g;
int i3 = iArr2[length + i];
int i4 = iArr2[i];
System.arraycopy(this.f[i], i3, bArr2, i2, i4 - i2);
i++;
i2 = i4;
}
return new m(bArr2);
}
@Override // com.tapjoy.internal.m
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof m) {
m mVar = (m) obj;
if (mVar.b() == b()) {
int b = b();
if (b() - b >= 0) {
int binarySearch = Arrays.binarySearch(this.g, 0, this.f.length, 1);
if (binarySearch < 0) {
binarySearch = ~binarySearch;
}
int i = 0;
int i2 = 0;
while (b > 0) {
int i3 = binarySearch == 0 ? 0 : this.g[binarySearch - 1];
int min = Math.min(b, ((this.g[binarySearch] - i3) + i3) - i2);
int[] iArr = this.g;
byte[][] bArr = this.f;
if (mVar.a(i, bArr[binarySearch], (i2 - i3) + iArr[bArr.length + binarySearch], min)) {
i2 += min;
i += min;
b -= min;
binarySearch++;
}
}
return true;
}
}
}
return false;
}
@Override // com.tapjoy.internal.m
public final String toString() {
return e().toString();
}
@Override // com.tapjoy.internal.m
public final byte a(int i) {
f3.a(this.g[this.f.length - 1], i, 1L);
int binarySearch = Arrays.binarySearch(this.g, 0, this.f.length, i + 1);
if (binarySearch < 0) {
binarySearch = ~binarySearch;
}
int i2 = binarySearch != 0 ? this.g[binarySearch - 1] : 0;
int[] iArr = this.g;
byte[][] bArr = this.f;
return bArr[binarySearch][(i - i2) + iArr[bArr.length + binarySearch]];
}
@Override // com.tapjoy.internal.m
public final void a(l lVar) {
int length = this.f.length;
int i = 0;
int i2 = 0;
while (i < length) {
int[] iArr = this.g;
int i3 = iArr[length + i];
int i4 = iArr[i];
b1 b1Var = new b1(this.f[i], i3, (i3 + i4) - i2);
b1 b1Var2 = lVar.a;
if (b1Var2 == null) {
b1Var.g = b1Var;
b1Var.f = b1Var;
lVar.a = b1Var;
} else {
b1 b1Var3 = b1Var2.g;
b1Var3.getClass();
b1Var.g = b1Var3;
b1Var.f = b1Var3.f;
b1Var3.f.g = b1Var;
b1Var3.f = b1Var;
}
i++;
i2 = i4;
}
lVar.b += i2;
}
@Override // com.tapjoy.internal.m
public final int hashCode() {
int i = this.b;
if (i != 0) {
return i;
}
int length = this.f.length;
int i2 = 0;
int i3 = 1;
int i4 = 0;
while (i2 < length) {
byte[] bArr = this.f[i2];
int[] iArr = this.g;
int i5 = iArr[length + i2];
int i6 = iArr[i2];
int i7 = (i6 - i4) + i5;
while (i5 < i7) {
i3 = (i3 * 31) + bArr[i5];
i5++;
}
i2++;
i4 = i6;
}
this.b = i3;
return i3;
}
@Override // com.tapjoy.internal.m
public final boolean a(int i, byte[] bArr, int i2, int i3) {
if (i < 0 || i > b() - i3 || i2 < 0 || i2 > bArr.length - i3) {
return false;
}
int binarySearch = Arrays.binarySearch(this.g, 0, this.f.length, i + 1);
if (binarySearch < 0) {
binarySearch = ~binarySearch;
}
while (i3 > 0) {
int i4 = binarySearch == 0 ? 0 : this.g[binarySearch - 1];
int min = Math.min(i3, ((this.g[binarySearch] - i4) + i4) - i);
int[] iArr = this.g;
byte[][] bArr2 = this.f;
int i5 = (i - i4) + iArr[bArr2.length + binarySearch];
byte[] bArr3 = bArr2[binarySearch];
Charset charset = f3.a;
for (int i6 = 0; i6 < min; i6++) {
if (bArr3[i6 + i5] != bArr[i6 + i2]) {
return false;
}
}
i += min;
i2 += min;
i3 -= min;
binarySearch++;
}
return true;
}
}

View File

@@ -0,0 +1,26 @@
package com.tapjoy.internal;
import com.tapjoy.TJPurchases;
/* loaded from: classes4.dex */
public final class d2 {
public final String a;
public final Double b;
public final Long c;
public final Double d;
public final Integer e;
public d2() {
this.a = null;
this.b = null;
this.c = null;
this.d = null;
this.e = null;
TJPurchases tJPurchases = TJPurchases.INSTANCE;
this.a = tJPurchases.getPurchaseCurrency();
this.b = tJPurchases.getPurchaseTotalPrice();
this.c = tJPurchases.getPurchaseLastTime();
this.d = tJPurchases.getPurchaseLastPrice();
this.e = tJPurchases.getPurchaseTotalCount();
}
}

View File

@@ -0,0 +1,17 @@
package com.tapjoy.internal;
import android.os.SystemClock;
/* loaded from: classes4.dex */
public final class d3 {
public final long a;
public final long b = SystemClock.elapsedRealtime();
static {
new d3(-1L);
}
public d3(long j) {
this.a = j;
}
}

View File

@@ -0,0 +1,39 @@
package com.tapjoy.internal;
import android.os.Handler;
import android.os.Looper;
import com.tapjoy.TJPlacementListener;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/* loaded from: classes4.dex */
public final class e implements InvocationHandler {
public final TJPlacementListener a;
public final Thread b;
public final Looper c;
public e(TJPlacementListener tJPlacementListener, Thread thread, Looper looper) {
this.a = tJPlacementListener;
this.b = thread;
this.c = looper;
}
@Override // java.lang.reflect.InvocationHandler
public final Object invoke(Object obj, Method method, Object[] objArr) {
if (this.b == Thread.currentThread()) {
return method.invoke(this.a, objArr);
}
if (!method.getReturnType().equals(Void.TYPE)) {
throw new UnsupportedOperationException("method not return void: " + method.getName());
}
d dVar = new d(this, method, objArr);
if (this.c != null && new Handler(this.c).post(dVar)) {
return null;
}
Looper mainLooper = Looper.getMainLooper();
if (mainLooper == null || !new Handler(mainLooper).post(dVar)) {
return method.invoke(this.a, objArr);
}
return null;
}
}

View File

@@ -0,0 +1,330 @@
package com.tapjoy.internal;
import java.io.EOFException;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
/* loaded from: classes4.dex */
public final class e0 extends c0 {
public static final d0 n = new d0();
public final StringReader b;
public final ArrayList h;
public int i;
public String j;
public String k;
public int l;
public int m;
public final k1 a = new k1();
public final char[] c = new char[1024];
public int d = 0;
public int e = 0;
public int f = 1;
public int g = 1;
public e0(StringReader stringReader) {
ArrayList arrayList = new ArrayList();
this.h = arrayList;
arrayList.add(f0.f);
this.b = stringReader;
}
public final void a(int i) {
e();
if (this.i == i) {
e();
this.i = 0;
this.k = null;
this.j = null;
return;
}
throw new IllegalStateException("Expected " + g0.a(i) + " but was " + g0.a(e()));
}
public final int b(boolean z) {
if (!z) {
int c = c();
if (c != 44 && c != 59) {
if (c != 125) {
a("Unterminated object");
throw null;
}
this.i = 4;
return 4;
}
} else {
if (c() == 125) {
this.i = 4;
return 4;
}
this.d--;
}
int c2 = c();
if (c2 != 34) {
if (c2 != 39) {
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
}
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
}
this.j = a((char) c2);
f0 f0Var = f0.d;
this.h.set(r0.size() - 1, f0Var);
this.i = 5;
return 5;
}
public final int c() {
while (true) {
if (this.d >= this.e && !b(1)) {
throw new EOFException("End of input");
}
char[] cArr = this.c;
int i = this.d;
int i2 = i + 1;
this.d = i2;
char c = cArr[i];
if (c != '\t' && c != '\n' && c != '\r' && c != ' ') {
if (c == '#') {
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
}
if (c != '/') {
return c;
}
if (i2 == this.e && !b(1)) {
return c;
}
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:172:0x006b, code lost:
a("Use JsonReader.setLenient(true) to accept malformed JSON");
*/
/* JADX WARN: Code restructure failed: missing block: B:173:0x006e, code lost:
throw null;
*/
/* JADX WARN: Removed duplicated region for block: B:130:0x01f1 */
/* JADX WARN: Removed duplicated region for block: B:132:0x00ab */
/* JADX WARN: Removed duplicated region for block: B:22:0x00a5 */
/* JADX WARN: Removed duplicated region for block: B:25:0x00c4 */
/* JADX WARN: Removed duplicated region for block: B:45:0x01ec A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:47:0x01ed */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final int d() {
/*
Method dump skipped, instructions count: 548
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.e0.d():int");
}
public final String toString() {
StringBuilder sb = new StringBuilder();
sb.append(e0.class.getSimpleName());
sb.append(" near ");
StringBuilder sb2 = new StringBuilder();
int min = Math.min(this.d, 20);
sb2.append(this.c, this.d - min, min);
sb2.append(this.c, this.d, Math.min(this.e - this.d, 20));
sb.append((Object) sb2);
return sb.toString();
}
public final int e() {
int i = this.i;
if (i != 0) {
return i;
}
ArrayList arrayList = this.h;
switch ((f0) arrayList.get(arrayList.size() - 1)) {
case a:
return a(true);
case b:
return a(false);
case c:
return b(true);
case d:
int c = c();
if (c == 58) {
f0 f0Var = f0.e;
ArrayList arrayList2 = this.h;
arrayList2.set(arrayList2.size() - 1, f0Var);
return d();
}
if (c != 61) {
a("Expected ':'");
throw null;
}
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
case e:
return b(false);
case f:
f0 f0Var2 = f0.g;
ArrayList arrayList3 = this.h;
arrayList3.set(arrayList3.size() - 1, f0Var2);
int d = d();
int i2 = this.i;
if (i2 == 1 || i2 == 3) {
return d;
}
throw new IOException("Expected JSON document to start with '[' or '{' but was ".concat(g0.a(this.i)));
case g:
try {
d();
a("Expected EOF");
throw null;
} catch (EOFException unused) {
this.i = 10;
return 10;
}
case h:
throw new IllegalStateException("JsonReader is closed");
default:
throw new AssertionError();
}
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
this.k = null;
this.i = 0;
this.h.clear();
this.h.add(f0.h);
this.b.close();
}
public final int a(boolean z) {
if (z) {
f0 f0Var = f0.b;
this.h.set(r7.size() - 1, f0Var);
} else {
int c = c();
if (c != 44) {
if (c == 59) {
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
}
if (c == 93) {
this.i = 2;
return 2;
}
a("Unterminated array");
throw null;
}
}
int c2 = c();
if (c2 != 44 && c2 != 59) {
if (c2 != 93) {
this.d--;
return d();
}
if (z) {
this.i = 2;
return 2;
}
}
a("Use JsonReader.setLenient(true) to accept malformed JSON");
throw null;
}
public final boolean b(int i) {
int i2;
int i3;
int i4;
int i5 = 0;
while (true) {
i2 = this.d;
if (i5 >= i2) {
break;
}
if (this.c[i5] == '\n') {
this.f++;
this.g = 1;
} else {
this.g++;
}
i5++;
}
int i6 = this.e;
if (i6 != i2) {
int i7 = i6 - i2;
this.e = i7;
char[] cArr = this.c;
System.arraycopy(cArr, i2, cArr, 0, i7);
} else {
this.e = 0;
}
this.d = 0;
do {
StringReader stringReader = this.b;
char[] cArr2 = this.c;
int i8 = this.e;
int read = stringReader.read(cArr2, i8, cArr2.length - i8);
if (read == -1) {
return false;
}
i3 = this.e + read;
this.e = i3;
if (this.f == 1 && (i4 = this.g) == 1 && i3 > 0 && this.c[0] == 65279) {
this.d++;
this.g = i4 - 1;
}
} while (i3 < i);
return true;
}
/* JADX WARN: Code restructure failed: missing block: B:56:0x00b2, code lost:
if (r1 != null) goto L53;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x00b4, code lost:
r1 = new java.lang.StringBuilder();
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x00b9, code lost:
r1.append(r7.c, r2, r7.d - r2);
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.String a(char r8) {
/*
Method dump skipped, instructions count: 207
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.e0.a(char):java.lang.String");
}
public final void a(String str) {
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(" at line ");
int i = this.f;
for (int i2 = 0; i2 < this.d; i2++) {
if (this.c[i2] == '\n') {
i++;
}
}
sb.append(i);
sb.append(" column ");
int i3 = this.g;
for (int i4 = 0; i4 < this.d; i4++) {
i3 = this.c[i4] == '\n' ? 1 : i3 + 1;
}
sb.append(i3);
throw new k0(sb.toString());
}
}

View File

@@ -0,0 +1,67 @@
package com.tapjoy.internal;
import android.os.SystemClock;
import com.applovin.exoplayer2.common.base.Ascii;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.concurrent.TimeUnit;
/* loaded from: classes4.dex */
public final class e1 implements Runnable {
@Override // java.lang.Runnable
public final void run() {
DatagramSocket datagramSocket;
if (e3.a) {
f1.b.countDown();
return;
}
DatagramSocket datagramSocket2 = null;
try {
datagramSocket = new DatagramSocket();
} catch (Exception unused) {
} catch (Throwable th) {
th = th;
}
try {
datagramSocket.setSoTimeout(20000);
byte[] bArr = new byte[48];
DatagramPacket datagramPacket = new DatagramPacket(bArr, 48, InetAddress.getByName("pool.ntp.org"), 123);
bArr[0] = Ascii.ESC;
long currentTimeMillis = System.currentTimeMillis();
long elapsedRealtime = SystemClock.elapsedRealtime();
g1.a(bArr, currentTimeMillis);
datagramSocket.send(datagramPacket);
datagramSocket.receive(new DatagramPacket(bArr, 48));
long elapsedRealtime2 = SystemClock.elapsedRealtime();
long j = currentTimeMillis + (elapsedRealtime2 - elapsedRealtime);
long a = g1.a(bArr, 24);
long a2 = ((g1.a(bArr, 28) * 1000) / 4294967296L) + ((a - 2208988800L) * 1000);
long a3 = g1.a(bArr, 32);
long a4 = ((g1.a(bArr, 36) * 1000) / 4294967296L) + ((a3 - 2208988800L) * 1000);
long a5 = g1.a(bArr, 40);
long a6 = j + ((((((g1.a(bArr, 44) * 1000) / 4294967296L) + ((a5 - 2208988800L) * 1000)) - j) + (a4 - a2)) / 2);
datagramSocket.close();
synchronized (e3.class) {
e3.a = true;
e3.b = a6;
e3.c = elapsedRealtime2;
e3.d = e3.b - e3.c;
}
f1.b.countDown();
} catch (Exception unused2) {
datagramSocket2 = datagramSocket;
if (datagramSocket2 != null) {
datagramSocket2.close();
}
f1.a.schedule(this, 300L, TimeUnit.SECONDS);
} catch (Throwable th2) {
th = th2;
datagramSocket2 = datagramSocket;
if (datagramSocket2 != null) {
datagramSocket2.close();
}
throw th;
}
}
}

View File

@@ -0,0 +1,33 @@
package com.tapjoy.internal;
import com.tapjoy.TJPrivacyPolicy;
import com.tapjoy.TJStatus;
/* loaded from: classes4.dex */
public final class e2 {
public final Boolean a;
public final Boolean b;
public final String c;
public final String d;
public e2() {
Boolean bool;
String str = null;
this.a = null;
this.b = null;
this.c = null;
this.d = null;
TJPrivacyPolicy tJPrivacyPolicy = TJPrivacyPolicy.getInstance();
TJStatus belowConsentAge = tJPrivacyPolicy.getBelowConsentAge();
this.a = belowConsentAge != null ? belowConsentAge.getBoolean() : null;
TJStatus subjectToGDPR = tJPrivacyPolicy.getSubjectToGDPR();
this.b = subjectToGDPR != null ? subjectToGDPR.getBoolean() : null;
TJStatus userConsent = tJPrivacyPolicy.getUserConsent();
this.c = (userConsent == null || (bool = userConsent.getBoolean()) == null) ? null : bool.booleanValue() ? "1" : "0";
String uSPrivacy = tJPrivacyPolicy.getUSPrivacy();
if (uSPrivacy != null && uSPrivacy.length() != 0) {
str = tJPrivacyPolicy.getUSPrivacy();
}
this.d = str;
}
}

View File

@@ -0,0 +1,22 @@
package com.tapjoy.internal;
import android.os.SystemClock;
/* loaded from: classes4.dex */
public abstract class e3 {
public static volatile boolean a = false;
public static volatile long b;
public static volatile long c;
public static volatile long d;
static {
long elapsedRealtime = SystemClock.elapsedRealtime();
long currentTimeMillis = System.currentTimeMillis();
synchronized (e3.class) {
a = false;
b = currentTimeMillis;
c = elapsedRealtime;
d = b - c;
}
}
}

View File

@@ -0,0 +1,70 @@
package com.tapjoy.internal;
import android.util.Base64;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.UUID;
import java.util.zip.CRC32;
/* loaded from: classes4.dex */
public final class f {
public final String a;
public final int b;
public final int c;
public final String d;
public final String e;
public f(String str) {
int length = str.length();
if (!str.matches("[A-Za-z0-9\\-_]*") || length < 60 || (length & 3) != 0) {
throw new IllegalArgumentException("The given API key was malformed.");
}
try {
byte[] decode = Base64.decode(str, 8);
int length2 = decode.length;
ByteBuffer wrap = ByteBuffer.wrap(decode);
wrap.order(ByteOrder.BIG_ENDIAN);
int length3 = decode.length - 4;
int i = wrap.getInt(length3);
CRC32 crc32 = new CRC32();
crc32.update(decode, 0, length3);
if (i != ((int) crc32.getValue())) {
throw new IllegalArgumentException("The given API key was invalid.");
}
this.a = str;
this.d = new UUID(wrap.getLong(0), wrap.getLong(8)).toString();
byte b = wrap.get(16);
this.b = b;
byte b2 = wrap.get(17);
int[] iArr = new int[1];
System.arraycopy(h0.a, 0, iArr, 0, 1);
int i2 = iArr[0];
if (i2 == 0) {
throw null;
}
int i3 = 2 == b2 ? i2 : 0;
this.c = i3;
this.e = str.substring(24, 44);
if (b == 2 && i3 == 1) {
if (length2 < 57) {
throw new IllegalArgumentException("The given API key was invalid.");
}
} else if (b != 1) {
throw new IllegalArgumentException("The given API key was not supported.");
}
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("The given API key was malformed.", e);
}
}
public final boolean equals(Object obj) {
if (obj instanceof f) {
return this.a.equals(((f) obj).a);
}
return false;
}
public final String toString() {
return this.a;
}
}

View File

@@ -0,0 +1,16 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public enum f0 {
a,
b,
c,
d,
e,
f,
g,
h;
f0() {
}
}

View File

@@ -0,0 +1,12 @@
package com.tapjoy.internal;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
/* loaded from: classes4.dex */
public abstract class f1 {
public static final ScheduledExecutorService a = Executors.newScheduledThreadPool(1);
public static final CountDownLatch b = new CountDownLatch(1);
public static final e1 c = new e1();
}

View File

@@ -0,0 +1,52 @@
package com.tapjoy.internal;
import androidx.core.app.NotificationCompat;
import com.tapjoy.TJAppInfo;
import com.tapjoy.TJTracking;
import com.tapjoy.TJVerifier;
import com.tapjoy.TapjoyConstants;
import com.tapjoy.TapjoyLog;
import com.tapjoy.TapjoyPluginAPI;
import com.tapjoy.TapjoyRevision;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class f2 {
public final String a;
public final Boolean b;
public final String c;
public final Long d;
public final String e;
public final String f;
public final String g;
public final String h;
public final String i;
public final String j;
public final h2 k;
public f2(long j) {
h2 session = new h2();
Intrinsics.checkNotNullParameter(session, "session");
this.a = null;
this.b = null;
this.d = null;
this.e = null;
this.f = null;
this.g = null;
this.h = null;
this.i = null;
this.j = null;
this.k = session;
this.c = NotificationCompat.CATEGORY_EVENT;
this.b = Boolean.valueOf(TapjoyLog.isLoggingEnabled());
this.d = Long.valueOf(TJAppInfo.INSTANCE.getInstallTime());
this.e = TapjoyPluginAPI.getPlugin();
TJTracking tJTracking = TJTracking.INSTANCE;
this.f = tJTracking.getTestID();
this.g = tJTracking.getInstallID();
this.h = "14.1.0";
this.i = TapjoyRevision.GIT_REVISION;
this.j = TapjoyConstants.TJC_BRIDGE_VERSION_NUMBER;
this.a = TJVerifier.INSTANCE.getVerifier(j);
}
}

View File

@@ -0,0 +1,18 @@
package com.tapjoy.internal;
import java.nio.charset.Charset;
/* loaded from: classes4.dex */
public abstract class f3 {
public static final Charset a = Charset.forName("UTF-8");
public static long a(long j) {
return ((j & 255) << 56) | (((-72057594037927936L) & j) >>> 56) | ((71776119061217280L & j) >>> 40) | ((280375465082880L & j) >>> 24) | ((1095216660480L & j) >>> 8) | ((4278190080L & j) << 8) | ((16711680 & j) << 24) | ((65280 & j) << 40);
}
public static void a(long j, long j2, long j3) {
if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) {
throw new ArrayIndexOutOfBoundsException("size=" + j + " offset=" + j2 + " byteCount=" + j3);
}
}
}

View File

@@ -0,0 +1,26 @@
package com.tapjoy.internal;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import java.util.Set;
/* loaded from: classes4.dex */
public abstract class g {
public static i a;
public static void a(Activity activity) {
int taskId;
Intent intent;
Set<String> categories;
ComponentName component;
i iVar = a;
if (iVar == null || activity == null || (taskId = activity.getTaskId()) == -1 || (intent = activity.getIntent()) == null || (categories = intent.getCategories()) == null || !categories.contains("android.intent.category.LAUNCHER") || !"android.intent.action.MAIN".equals(intent.getAction()) || (component = intent.getComponent()) == null) {
return;
}
Integer num = (Integer) iVar.b.put(component.getClassName(), Integer.valueOf(taskId));
if (num == null || num.intValue() != taskId) {
iVar.c.c();
}
}
}

View File

@@ -0,0 +1,31 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract /* synthetic */ class g0 {
public static /* synthetic */ String a(int i) {
switch (i) {
case 1:
return "BEGIN_ARRAY";
case 2:
return "END_ARRAY";
case 3:
return "BEGIN_OBJECT";
case 4:
return "END_OBJECT";
case 5:
return "NAME";
case 6:
return "STRING";
case 7:
return "NUMBER";
case 8:
return "BOOLEAN";
case 9:
return "NULL";
case 10:
return "END_DOCUMENT";
default:
return "null";
}
}
}

View File

@@ -0,0 +1,38 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class g1 {
public static long a(byte[] bArr, int i) {
int i2 = bArr[i];
int i3 = bArr[i + 1];
int i4 = bArr[i + 2];
int i5 = bArr[i + 3];
if ((i2 & 128) == 128) {
i2 = (i2 & 127) + 128;
}
if ((i3 & 128) == 128) {
i3 = (i3 & 127) + 128;
}
if ((i4 & 128) == 128) {
i4 = (i4 & 127) + 128;
}
if ((i5 & 128) == 128) {
i5 = (i5 & 127) + 128;
}
return (i2 << 24) + (i3 << 16) + (i4 << 8) + i5;
}
public static void a(byte[] bArr, long j) {
long j2 = j / 1000;
long j3 = j - (j2 * 1000);
bArr[40] = (byte) (r2 >> 24);
bArr[41] = (byte) (r2 >> 16);
bArr[42] = (byte) (r2 >> 8);
bArr[43] = (byte) (j2 + 2208988800L);
long j4 = (j3 * 4294967296L) / 1000;
bArr[44] = (byte) (j4 >> 24);
bArr[45] = (byte) (j4 >> 16);
bArr[46] = (byte) (j4 >> 8);
bArr[47] = (byte) (Math.random() * 255.0d);
}
}

View File

@@ -0,0 +1,57 @@
package com.tapjoy.internal;
import com.ironsource.v8;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class g2 {
public final String a;
public final Long b;
public final String c;
public final String d;
public final ArrayList e = new ArrayList();
public g2(JSONObject jSONObject) {
this.a = null;
this.b = null;
this.c = null;
this.d = null;
if (jSONObject != null) {
this.a = jSONObject.optString(v8.h.U);
this.b = Long.valueOf(jSONObject.optLong("placement_request_content_retry_timeout"));
this.c = jSONObject.optString("logging_level");
jSONObject.optBoolean("error_enabled");
this.d = jSONObject.optString("override_service_url");
JSONArray optJSONArray = jSONObject.optJSONArray("assets");
int length = optJSONArray != null ? optJSONArray.length() : 0;
for (int i = 0; i < length; i++) {
JSONObject optJSONObject = optJSONArray != null ? optJSONArray.optJSONObject(i) : null;
if (optJSONObject != null) {
this.e.add(new s1(optJSONObject));
}
}
}
}
public final ArrayList a() {
return this.e;
}
public final String b() {
return this.c;
}
public final String c() {
return this.d;
}
public final Long d() {
return this.b;
}
public final String e() {
return this.a;
}
}

View File

@@ -0,0 +1,8 @@
package com.tapjoy.internal;
import java.lang.ref.WeakReference;
/* loaded from: classes4.dex */
public final class g3 {
public WeakReference a;
}

View File

@@ -0,0 +1,18 @@
package com.tapjoy.internal;
import android.content.Context;
import com.tapjoy.TJPlacement;
import com.tapjoy.TJPlacementManager;
/* loaded from: classes4.dex */
public final class h extends m1 {
@Override // com.tapjoy.internal.m1
public final TJPlacement a(Context context, l1 l1Var) {
return TJPlacementManager.createPlacement(context, "AppLaunch", true, l1Var);
}
@Override // com.tapjoy.internal.m1
public final /* bridge */ /* synthetic */ String b() {
return "AppLaunch";
}
}

View File

@@ -0,0 +1,13 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract /* synthetic */ class h0 {
public static final /* synthetic */ int[] a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
public static /* synthetic */ int a(int i) {
if (i != 0) {
return i - 1;
}
throw null;
}
}

View File

@@ -0,0 +1,62 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class h1 extends u0 {
public h1() {
super(3);
}
/* JADX WARN: Removed duplicated region for block: B:11:0x00e6 */
/* JADX WARN: Removed duplicated region for block: B:51:0x0151 A[SYNTHETIC] */
@Override // com.tapjoy.internal.u0
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object a(com.tapjoy.internal.v0 r18) {
/*
Method dump skipped, instructions count: 474
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.h1.a(com.tapjoy.internal.v0):java.lang.Object");
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
i1 i1Var = (i1) obj;
o0 o0Var = u0.f;
q0 q0Var = o0Var.b;
if (q0Var == null) {
q0Var = new q0(o0Var, 3);
o0Var.b = q0Var;
}
q0Var.a(w0Var, 1, i1Var.c);
m mVar = i1Var.a;
if (mVar == null) {
mVar = m.e;
}
l lVar = w0Var.a;
if (mVar != null) {
mVar.a(lVar);
return;
}
throw new IllegalArgumentException("byteString == null");
}
@Override // com.tapjoy.internal.u0
public final int a(Object obj) {
i1 i1Var = (i1) obj;
o0 o0Var = u0.f;
q0 q0Var = o0Var.b;
if (q0Var == null) {
q0Var = new q0(o0Var, 3);
o0Var.b = q0Var;
}
int b = q0Var.b(i1Var.c);
m mVar = i1Var.a;
if (mVar == null) {
mVar = m.e;
}
return mVar.b() + b;
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import com.tapjoy.TJSession;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class h2 {
public final String a;
public final Long b;
public final Long c;
public final Integer d;
public final Long e;
public final Long f;
public final Integer g;
public final Integer h;
public h2() {
Intrinsics.checkNotNullParameter("", "id");
this.a = "";
this.b = null;
this.c = null;
this.d = null;
this.e = null;
this.f = null;
this.g = null;
this.h = null;
TJSession tJSession = TJSession.INSTANCE;
this.a = tJSession.getSessionId();
this.b = tJSession.getSessionLastLength();
this.c = tJSession.getSessionLastTime();
this.d = Integer.valueOf(tJSession.getSessionTotalCount());
this.e = tJSession.getSessionTotalLength();
this.f = tJSession.getDuration();
this.g = Integer.valueOf(tJSession.getSessionWeeklyFrequency());
this.h = Integer.valueOf(tJSession.getSessionMonthlyFrequency());
}
}

View File

@@ -0,0 +1,124 @@
package com.tapjoy.internal;
import java.util.AbstractMap;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
/* loaded from: classes4.dex */
public final class h3 extends AbstractMap {
public final HashMap a = new HashMap();
public final n0 b = new n0();
public final void a() {
while (true) {
m0 a = this.b.a();
if (a == null) {
return;
} else {
this.a.remove(a.a);
}
}
}
@Override // java.util.AbstractMap, java.util.Map
public final void clear() {
this.a.clear();
while (this.b.a() != null) {
}
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean containsKey(Object obj) {
a();
return this.a.containsKey(obj);
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean containsValue(Object obj) {
a();
Iterator it = this.a.values().iterator();
while (it.hasNext()) {
if (obj.equals(((m0) it.next()).get())) {
return true;
}
}
return false;
}
@Override // java.util.AbstractMap, java.util.Map
public final Set entrySet() {
a();
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean equals(Object obj) {
a();
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractMap, java.util.Map
public final Object get(Object obj) {
a();
m0 m0Var = (m0) this.a.get(obj);
if (m0Var != null) {
return m0Var.get();
}
return null;
}
@Override // java.util.AbstractMap, java.util.Map
public final int hashCode() {
a();
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractMap, java.util.Map
public final Set keySet() {
a();
return this.a.keySet();
}
@Override // java.util.AbstractMap, java.util.Map
public final Object put(Object obj, Object obj2) {
a();
HashMap hashMap = this.a;
n0 n0Var = this.b;
n0Var.getClass();
m0 m0Var = (m0) hashMap.put(obj, new m0(obj, obj2, n0Var));
if (m0Var != null) {
return m0Var.get();
}
return null;
}
@Override // java.util.AbstractMap, java.util.Map
public final Object remove(Object obj) {
a();
m0 m0Var = (m0) this.a.remove(obj);
if (m0Var != null) {
return m0Var.get();
}
return null;
}
@Override // java.util.AbstractMap, java.util.Map
public final int size() {
a();
return this.a.size();
}
@Override // java.util.AbstractMap
public final String toString() {
a();
throw new UnsupportedOperationException();
}
@Override // java.util.AbstractMap, java.util.Map
public final Collection values() {
a();
throw new UnsupportedOperationException();
}
}

View File

@@ -0,0 +1,14 @@
package com.tapjoy.internal;
import java.util.HashMap;
/* loaded from: classes4.dex */
public final class i extends g {
public static final /* synthetic */ int d = 0;
public final HashMap b = new HashMap();
public final h c = new h();
static {
g.a = new i();
}
}

View File

@@ -0,0 +1,228 @@
package com.tapjoy.internal;
import com.facebook.internal.security.CertificateUtil;
import com.ironsource.v8;
import java.io.Closeable;
import java.io.IOException;
import java.io.StringWriter;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes4.dex */
public final class i0 implements Closeable {
public final StringWriter a;
public final ArrayList b;
public final String c;
public i0(StringWriter stringWriter) {
ArrayList arrayList = new ArrayList();
this.b = arrayList;
arrayList.add(f0.f);
this.c = CertificateUtil.DELIMITER;
this.a = stringWriter;
}
public final void a(boolean z) {
ArrayList arrayList = this.b;
int ordinal = ((f0) arrayList.get(arrayList.size() - 1)).ordinal();
if (ordinal == 0) {
f0 f0Var = f0.b;
ArrayList arrayList2 = this.b;
arrayList2.set(arrayList2.size() - 1, f0Var);
return;
}
if (ordinal == 1) {
this.a.append(',');
return;
}
if (ordinal == 3) {
this.a.append((CharSequence) this.c);
f0 f0Var2 = f0.e;
ArrayList arrayList3 = this.b;
arrayList3.set(arrayList3.size() - 1, f0Var2);
return;
}
if (ordinal != 5) {
if (ordinal == 6) {
throw new IllegalStateException("JSON must have only one top-level value.");
}
throw new IllegalStateException("Nesting problem: " + this.b);
}
if (!z) {
throw new IllegalStateException("JSON must start with an array or an object.");
}
f0 f0Var3 = f0.g;
ArrayList arrayList4 = this.b;
arrayList4.set(arrayList4.size() - 1, f0Var3);
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
this.a.close();
if (((f0) this.b.get(r0.size() - 1)) != f0.g) {
throw new IOException("Incomplete document");
}
}
public final i0 a(f0 f0Var, f0 f0Var2, String str) {
f0 f0Var3 = (f0) this.b.get(r0.size() - 1);
if (f0Var3 != f0Var2 && f0Var3 != f0Var) {
throw new IllegalStateException("Nesting problem: " + this.b);
}
this.b.remove(r3.size() - 1);
this.a.write(str);
return this;
}
public final void a(Object obj) {
if (obj == null) {
a(false);
this.a.write("null");
return;
}
if (obj instanceof Boolean) {
boolean booleanValue = ((Boolean) obj).booleanValue();
a(false);
this.a.write(booleanValue ? "true" : "false");
return;
}
if (obj instanceof Number) {
if (obj instanceof Long) {
long longValue = ((Number) obj).longValue();
a(false);
this.a.write(Long.toString(longValue));
return;
}
if (obj instanceof Double) {
double doubleValue = ((Number) obj).doubleValue();
if (!Double.isNaN(doubleValue) && !Double.isInfinite(doubleValue)) {
a(false);
this.a.append((CharSequence) Double.toString(doubleValue));
return;
}
throw new IllegalArgumentException("Numeric values must be finite, but was " + doubleValue);
}
Number number = (Number) obj;
String obj2 = number.toString();
if (!obj2.equals("-Infinity") && !obj2.equals("Infinity") && !obj2.equals("NaN")) {
a(false);
this.a.append((CharSequence) obj2);
return;
}
throw new IllegalArgumentException("Numeric values must be finite, but was " + number);
}
if (obj instanceof String) {
a(false);
a((String) obj);
return;
}
if (!(obj instanceof a0)) {
if (obj instanceof Collection) {
f0 f0Var = f0.a;
a(true);
this.b.add(f0Var);
this.a.write(v8.i.d);
Iterator it = ((Collection) obj).iterator();
while (it.hasNext()) {
a(it.next());
}
a(f0.a, f0.b, v8.i.e);
return;
}
if (obj instanceof Map) {
f0 f0Var2 = f0.c;
a(true);
this.b.add(f0Var2);
this.a.write("{");
for (Map.Entry entry : ((Map) obj).entrySet()) {
String valueOf = String.valueOf(entry.getKey());
ArrayList arrayList = this.b;
f0 f0Var3 = (f0) arrayList.get(arrayList.size() - 1);
if (f0Var3 == f0.e) {
this.a.write(44);
} else if (f0Var3 != f0.c) {
throw new IllegalStateException("Nesting problem: " + this.b);
}
f0 f0Var4 = f0.d;
ArrayList arrayList2 = this.b;
arrayList2.set(arrayList2.size() - 1, f0Var4);
a(valueOf);
a(entry.getValue());
}
a(f0.c, f0.e, "}");
return;
}
if (obj instanceof Date) {
String format = ((DateFormat) q.a.get()).format((Date) obj);
if (format == null) {
a(false);
this.a.write("null");
return;
} else {
a(false);
a(format);
return;
}
}
if (obj instanceof Object[]) {
f0 f0Var5 = f0.a;
a(true);
this.b.add(f0Var5);
this.a.write(v8.i.d);
for (Object obj3 : (Object[]) obj) {
a(obj3);
}
a(f0.a, f0.b, v8.i.e);
return;
}
throw new IllegalArgumentException("Unknown type: ".concat(obj.getClass().getName()));
}
a(false);
throw null;
}
public final void a(String str) {
this.a.write("\"");
int length = str.length();
for (int i = 0; i < length; i++) {
char charAt = str.charAt(i);
if (charAt == '\f') {
this.a.write("\\f");
} else if (charAt == '\r') {
this.a.write("\\r");
} else if (charAt != '\"' && charAt != '\\') {
if (charAt == 8232 || charAt == 8233) {
this.a.write(String.format("\\u%04x", Integer.valueOf(charAt)));
} else {
switch (charAt) {
case '\b':
this.a.write("\\b");
break;
case '\t':
this.a.write("\\t");
break;
case '\n':
this.a.write("\\n");
break;
default:
if (charAt <= 31) {
this.a.write(String.format("\\u%04x", Integer.valueOf(charAt)));
break;
} else {
this.a.write(charAt);
break;
}
}
}
} else {
this.a.write(92);
this.a.write(charAt);
}
}
this.a.write("\"");
}
}

View File

@@ -0,0 +1,81 @@
package com.tapjoy.internal;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.Collections;
import java.util.List;
/* loaded from: classes4.dex */
public final class i1 implements Serializable {
public static final h1 d = new h1();
public final transient m a;
public transient int b = 0;
public final List c;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r2v9, types: [java.util.List] */
public i1(AbstractList abstractList, m mVar) {
if (mVar == null) {
throw new NullPointerException("unknownFields == null");
}
this.a = mVar;
AbstractList abstractList2 = abstractList instanceof l0 ? ((l0) abstractList).b : abstractList;
AbstractList abstractList3 = abstractList2;
if (abstractList2 != Collections.emptyList()) {
boolean z = abstractList2 instanceof t;
abstractList3 = abstractList2;
if (!z) {
t tVar = new t(abstractList2);
if (tVar.contains(null)) {
throw new IllegalArgumentException("elements.contains(null)");
}
abstractList3 = tVar;
}
}
this.c = abstractList3;
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof i1)) {
return false;
}
i1 i1Var = (i1) obj;
m mVar = this.a;
if (mVar == null) {
mVar = m.e;
}
m mVar2 = i1Var.a;
if (mVar2 == null) {
mVar2 = m.e;
}
return mVar.equals(mVar2) && this.c.equals(i1Var.c);
}
public final String toString() {
StringBuilder sb = new StringBuilder();
if (!this.c.isEmpty()) {
sb.append(", elements=");
sb.append(this.c);
}
StringBuilder replace = sb.replace(0, 2, "StringList{");
replace.append('}');
return replace.toString();
}
public final int hashCode() {
int i = this.b;
if (i != 0) {
return i;
}
m mVar = this.a;
if (mVar == null) {
mVar = m.e;
}
int hashCode = (mVar.hashCode() * 37) + this.c.hashCode();
this.b = hashCode;
return hashCode;
}
}

View File

@@ -0,0 +1,22 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class i2 {
public static void a(Exception exc) {
if (Error.class.isInstance(exc)) {
try {
throw ((Throwable) Error.class.cast(exc));
} catch (Throwable th) {
th.printStackTrace();
}
}
if (RuntimeException.class.isInstance(exc)) {
try {
throw ((Throwable) RuntimeException.class.cast(exc));
} catch (Throwable th2) {
th2.printStackTrace();
}
}
throw new RuntimeException(exc);
}
}

View File

@@ -0,0 +1,25 @@
package com.tapjoy.internal;
import android.app.Application;
import android.content.Context;
/* loaded from: classes4.dex */
public abstract class j {
public static Context a;
public static int b;
public static final g3 c = new g3();
public static synchronized void a(Context context) {
synchronized (j.class) {
try {
if (context instanceof Application) {
a = context;
} else {
a = context.getApplicationContext();
}
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,12 @@
package com.tapjoy.internal;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.CLASS)
/* loaded from: classes4.dex */
public @interface j0 {
}

View File

@@ -0,0 +1,59 @@
package com.tapjoy.internal;
import java.math.BigInteger;
/* loaded from: classes4.dex */
public final class j1 extends Number {
public final String a;
public j1(String str) {
this.a = str;
}
@Override // java.lang.Number
public final double doubleValue() {
return Double.parseDouble(this.a);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Number)) {
return false;
}
Number number = (Number) obj;
return number instanceof Integer ? intValue() == number.intValue() : number instanceof Long ? longValue() == number.longValue() : number instanceof Float ? Float.parseFloat(this.a) == number.floatValue() : number instanceof Double ? Double.parseDouble(this.a) == number.doubleValue() : this.a.equals(number.toString());
}
@Override // java.lang.Number
public final float floatValue() {
return Float.parseFloat(this.a);
}
@Override // java.lang.Number
public final int intValue() {
try {
try {
return Integer.parseInt(this.a);
} catch (NumberFormatException unused) {
return (int) Long.parseLong(this.a);
}
} catch (NumberFormatException unused2) {
return new BigInteger(this.a).intValue();
}
}
@Override // java.lang.Number
public final long longValue() {
try {
return Long.parseLong(this.a);
} catch (NumberFormatException unused) {
return new BigInteger(this.a).longValue();
}
}
public final String toString() {
return this.a;
}
}

View File

@@ -0,0 +1,19 @@
package com.tapjoy.internal;
import java.util.concurrent.Executors;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes4.dex */
public final class j2 extends Lambda implements Function0 {
public static final j2 a = new j2();
public j2() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Object invoke() {
return Executors.newSingleThreadExecutor();
}
}

View File

@@ -0,0 +1,30 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class k {
public static final k f = new k(0, 0, 0, 0.0d);
public final long a;
public final long b;
public final long c;
public final double d;
public long e;
public k(long j, long j2, long j3, double d) {
this.a = j;
this.b = j2;
this.c = j3;
this.d = d;
this.e = j;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || k.class != obj.getClass()) {
return false;
}
k kVar = (k) obj;
return this.a == kVar.a && this.b == kVar.b && this.c == kVar.c && this.d == kVar.d && this.e == kVar.e;
}
}

View File

@@ -0,0 +1,10 @@
package com.tapjoy.internal;
import java.io.IOException;
/* loaded from: classes4.dex */
public final class k0 extends IOException {
public k0(String str) {
super(str);
}
}

View File

@@ -0,0 +1,26 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class k1 {
public final String[] a = new String[512];
public final String a(char[] cArr, int i, int i2) {
int i3 = 0;
for (int i4 = i; i4 < i + i2; i4++) {
i3 = (i3 * 31) + cArr[i4];
}
int i5 = ((i3 >>> 20) ^ (i3 >>> 12)) ^ i3;
int length = (i5 ^ ((i5 >>> 7) ^ (i5 >>> 4))) & (r2.length - 1);
String str = this.a[length];
if (str != null && str.length() == i2) {
for (int i6 = 0; i6 < i2; i6++) {
if (cArr[i + i6] == str.charAt(i6)) {
}
}
return str;
}
String str2 = new String(cArr, i, i2);
this.a[length] = str2;
return str2;
}
}

View File

@@ -0,0 +1,18 @@
package com.tapjoy.internal;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes4.dex */
public final class k2 extends Lambda implements Function0 {
public static final k2 a = new k2();
public k2() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Object invoke() {
return new c3();
}
}

View File

@@ -0,0 +1,274 @@
package com.tapjoy.internal;
import java.io.Closeable;
import java.io.EOFException;
import java.io.Flushable;
import java.nio.charset.Charset;
/* loaded from: classes4.dex */
public final class l implements Closeable, Flushable, Cloneable {
public b1 a;
public long b;
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof l)) {
return false;
}
l lVar = (l) obj;
long j = this.b;
if (j != lVar.b) {
return false;
}
long j2 = 0;
if (j == 0) {
return true;
}
b1 b1Var = this.a;
b1 b1Var2 = lVar.a;
int i = b1Var.b;
int i2 = b1Var2.b;
while (j2 < this.b) {
long min = Math.min(b1Var.c - i, b1Var2.c - i2);
int i3 = 0;
while (i3 < min) {
int i4 = i + 1;
int i5 = i2 + 1;
if (b1Var.a[i] != b1Var2.a[i2]) {
return false;
}
i3++;
i = i4;
i2 = i5;
}
if (i == b1Var.c) {
b1Var = b1Var.f;
i = b1Var.b;
}
if (i2 == b1Var2.c) {
b1Var2 = b1Var2.f;
i2 = b1Var2.b;
}
j2 += min;
}
return true;
}
@Override // java.io.Flushable
public final void flush() {
}
/* renamed from: clone, reason: merged with bridge method [inline-methods] */
public final l m3723clone() {
l lVar = new l();
if (this.b == 0) {
return lVar;
}
b1 b1Var = new b1(this.a);
lVar.a = b1Var;
b1Var.g = b1Var;
b1Var.f = b1Var;
for (b1 b1Var2 = this.a.f; b1Var2 != this.a; b1Var2 = b1Var2.f) {
b1 b1Var3 = lVar.a.g;
b1 b1Var4 = new b1(b1Var2);
b1Var3.getClass();
b1Var4.g = b1Var3;
b1Var4.f = b1Var3.f;
b1Var3.f.g = b1Var4;
b1Var3.f = b1Var4;
}
lVar.b = this.b;
return lVar;
}
public final String toString() {
long j = this.b;
if (j <= 2147483647L) {
int i = (int) j;
return (i == 0 ? m.e : new d1(this, i)).toString();
}
throw new IllegalArgumentException("size > Integer.MAX_VALUE: " + this.b);
}
public final byte a() {
long j = this.b;
if (j != 0) {
b1 b1Var = this.a;
int i = b1Var.b;
int i2 = b1Var.c;
int i3 = i + 1;
byte b = b1Var.a[i];
this.b = j - 1;
if (i3 == i2) {
this.a = b1Var.a();
c1.a(b1Var);
} else {
b1Var.b = i3;
}
return b;
}
throw new IllegalStateException("size == 0");
}
public final int b() {
long j = this.b;
if (j >= 4) {
b1 b1Var = this.a;
int i = b1Var.b;
int i2 = b1Var.c;
if (i2 - i < 4) {
return ((a() & 255) << 24) | ((a() & 255) << 16) | ((a() & 255) << 8) | (a() & 255);
}
byte[] bArr = b1Var.a;
int i3 = i + 3;
int i4 = ((bArr[i + 1] & 255) << 16) | ((bArr[i] & 255) << 24) | ((bArr[i + 2] & 255) << 8);
int i5 = i + 4;
int i6 = (bArr[i3] & 255) | i4;
this.b = j - 4;
if (i5 == i2) {
this.a = b1Var.a();
c1.a(b1Var);
} else {
b1Var.b = i5;
}
return i6;
}
throw new IllegalStateException("size < 4: " + this.b);
}
public final int hashCode() {
b1 b1Var = this.a;
if (b1Var == null) {
return 0;
}
int i = 1;
do {
int i2 = b1Var.c;
for (int i3 = b1Var.b; i3 < i2; i3++) {
i = (i * 31) + b1Var.a[i3];
}
b1Var = b1Var.f;
} while (b1Var != this.a);
return i;
}
public final byte[] a(long j) {
int min;
f3.a(this.b, 0L, j);
if (j <= 2147483647L) {
int i = (int) j;
byte[] bArr = new byte[i];
int i2 = 0;
while (i2 < i) {
int i3 = i - i2;
f3.a(i, i2, i3);
b1 b1Var = this.a;
if (b1Var == null) {
min = -1;
} else {
min = Math.min(i3, b1Var.c - b1Var.b);
System.arraycopy(b1Var.a, b1Var.b, bArr, i2, min);
int i4 = b1Var.b + min;
b1Var.b = i4;
this.b -= min;
if (i4 == b1Var.c) {
this.a = b1Var.a();
c1.a(b1Var);
}
}
if (min == -1) {
throw new EOFException();
}
i2 += min;
}
return bArr;
}
throw new IllegalArgumentException("byteCount > Integer.MAX_VALUE: " + j);
}
public final String b(long j) {
Charset charset = f3.a;
f3.a(this.b, 0L, j);
if (charset == null) {
throw new IllegalArgumentException("charset == null");
}
if (j > 2147483647L) {
throw new IllegalArgumentException("byteCount > Integer.MAX_VALUE: " + j);
}
if (j == 0) {
return "";
}
b1 b1Var = this.a;
int i = b1Var.b;
if (i + j > b1Var.c) {
return new String(a(j), charset);
}
String str = new String(b1Var.a, i, (int) j, charset);
int i2 = (int) (b1Var.b + j);
b1Var.b = i2;
this.b -= j;
if (i2 == b1Var.c) {
this.a = b1Var.a();
c1.a(b1Var);
}
return str;
}
public final l a(byte[] bArr, int i) {
if (bArr != null) {
int i2 = 0;
long j = i;
f3.a(bArr.length, 0, j);
while (i2 < i) {
b1 a = a(1);
int min = Math.min(i - i2, 8192 - a.c);
System.arraycopy(bArr, i2, a.a, a.c, min);
i2 += min;
a.c += min;
}
this.b += j;
return this;
}
throw new IllegalArgumentException("source == null");
}
public final l b(int i) {
b1 a = a(1);
byte[] bArr = a.a;
int i2 = a.c;
a.c = i2 + 1;
bArr[i2] = (byte) i;
this.b++;
return this;
}
public final b1 a(int i) {
if (i < 1 || i > 8192) {
throw new IllegalArgumentException();
}
b1 b1Var = this.a;
if (b1Var == null) {
b1 a = c1.a();
this.a = a;
a.g = a;
a.f = a;
return a;
}
b1 b1Var2 = b1Var.g;
if (b1Var2.c + i <= 8192 && b1Var2.e) {
return b1Var2;
}
b1 a2 = c1.a();
a2.g = b1Var2;
a2.f = b1Var2.f;
b1Var2.f.g = a2;
b1Var2.f = a2;
return a2;
}
}

View File

@@ -0,0 +1,52 @@
package com.tapjoy.internal;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import java.util.RandomAccess;
/* loaded from: classes4.dex */
public final class l0 extends AbstractList implements RandomAccess, Serializable {
public final List a;
public List b;
public l0(List list) {
this.a = list;
this.b = list;
}
@Override // java.util.AbstractList, java.util.List
public final Object get(int i) {
return this.b.get(i);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.b.size();
}
@Override // java.util.AbstractList, java.util.List
public final void add(int i, Object obj) {
if (this.b == this.a) {
this.b = new ArrayList(this.a);
}
this.b.add(i, obj);
}
@Override // java.util.AbstractList, java.util.List
public final Object remove(int i) {
if (this.b == this.a) {
this.b = new ArrayList(this.a);
}
return this.b.remove(i);
}
@Override // java.util.AbstractList, java.util.List
public final Object set(int i, Object obj) {
if (this.b == this.a) {
this.b = new ArrayList(this.a);
}
return this.b.set(i, obj);
}
}

View File

@@ -0,0 +1,141 @@
package com.tapjoy.internal;
import android.os.SystemClock;
import androidx.work.WorkRequest;
import com.tapjoy.TJActionRequest;
import com.tapjoy.TJError;
import com.tapjoy.TJPlacement;
import com.tapjoy.TJPlacementListener;
import com.tapjoy.TapjoyConnectCore;
import com.tapjoy.TapjoyLog;
import java.util.Observable;
import java.util.Observer;
/* loaded from: classes4.dex */
public final class l1 implements Observer, TJPlacementListener {
public final d3 a;
public volatile boolean b;
public TJPlacement c;
public final /* synthetic */ m1 d;
public l1(m1 m1Var) {
d3 d3Var = new d3(WorkRequest.MIN_BACKOFF_MILLIS);
this.d = m1Var;
this.a = d3Var;
}
public final void a() {
synchronized (this) {
try {
if (this.b) {
return;
}
d3 d3Var = this.a;
d3Var.getClass();
try {
if (SystemClock.elapsedRealtime() - d3Var.b <= d3Var.a) {
if (!TapjoyConnectCore.getInstance().isConnected()) {
x xVar = y.a;
xVar.addObserver(this);
if (!TapjoyConnectCore.getInstance().isConnected()) {
return;
} else {
xVar.deleteObserver(this);
}
}
TJPlacement tJPlacement = this.c;
if (tJPlacement == null) {
if (!this.d.a()) {
a("Cannot request");
return;
}
TJPlacement a = this.d.a(TapjoyConnectCore.getInstance().getContext(), this);
this.c = a;
a.requestContent();
return;
}
if (tJPlacement.isContentReady()) {
this.d.getClass();
if (TapjoyConnectCore.getInstance().isViewOpen()) {
x xVar2 = y.c;
xVar2.addObserver(this);
if (TapjoyConnectCore.getInstance().isViewOpen()) {
return;
} else {
xVar2.deleteObserver(this);
}
}
this.c.showContent();
a(null);
return;
}
return;
}
} catch (NullPointerException unused) {
}
a("Timed out");
} catch (Throwable th) {
throw th;
}
}
}
@Override // com.tapjoy.TJPlacementListener
public final void onClick(TJPlacement tJPlacement) {
}
@Override // com.tapjoy.TJPlacementListener
public final void onContentDismiss(TJPlacement tJPlacement) {
}
@Override // com.tapjoy.TJPlacementListener
public final void onContentReady(TJPlacement tJPlacement) {
a();
}
@Override // com.tapjoy.TJPlacementListener
public final void onContentShow(TJPlacement tJPlacement) {
}
@Override // com.tapjoy.TJPlacementListener
public final void onPurchaseRequest(TJPlacement tJPlacement, TJActionRequest tJActionRequest, String str) {
}
@Override // com.tapjoy.TJPlacementListener
public final void onRequestFailure(TJPlacement tJPlacement, TJError tJError) {
a(tJError.message);
}
@Override // com.tapjoy.TJPlacementListener
public final void onRequestSuccess(TJPlacement tJPlacement) {
}
@Override // com.tapjoy.TJPlacementListener
public final void onRewardRequest(TJPlacement tJPlacement, TJActionRequest tJActionRequest, String str, int i) {
}
@Override // java.util.Observer
public final void update(Observable observable, Object obj) {
a();
}
public final void a(String str) {
synchronized (this) {
try {
String b = this.d.b();
if (str == null) {
TapjoyLog.i("SystemPlacement", "Placement " + b + " is presented now");
} else {
TapjoyLog.i("SystemPlacement", "Cannot show placement " + b + " now (" + str + ")");
}
this.b = true;
this.c = null;
y.a.deleteObserver(this);
y.c.deleteObserver(this);
} catch (Throwable th) {
throw th;
}
}
this.d.a(this);
}
}

View File

@@ -0,0 +1,53 @@
package com.tapjoy.internal;
import com.ironsource.v8;
import com.tapjoy.TJUser;
import com.tapjoy.TapjoyUtil;
import java.util.HashMap;
import java.util.List;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class l2 {
public String a;
public final Integer b;
public final Integer c;
public final List d;
public final n1 e;
public l2() {
List tags = CollectionsKt__CollectionsKt.emptyList();
n1 analytics = new n1();
Intrinsics.checkNotNullParameter(tags, "tags");
Intrinsics.checkNotNullParameter(analytics, "analytics");
this.a = null;
this.b = null;
this.c = null;
this.d = tags;
this.e = analytics;
TJUser tJUser = TJUser.INSTANCE;
this.a = tJUser.getUserIdIfNotEmpty();
this.b = tJUser.getUserLevelIfNeeded();
this.c = tJUser.getUserSegmentInt();
this.d = CollectionsKt___CollectionsKt.toList(tJUser.getUserTags());
}
public final void a(HashMap params) {
Intrinsics.checkNotNullParameter(params, "params");
TapjoyUtil.safePut(params, "publisher_user_id", this.a, true);
TapjoyUtil.safePut(params, "user_segment", TJUser.INSTANCE.getUserSegmentString(), true);
TapjoyUtil.safePut(params, "user_level", this.b);
int i = 0;
for (Object obj : this.d) {
int i2 = i + 1;
if (i < 0) {
CollectionsKt__CollectionsKt.throwIndexOverflow();
}
TapjoyUtil.safePut(params, "user_tags[" + i + v8.i.e, (String) obj, true);
i = i2;
}
this.e.a(params);
}
}

View File

@@ -0,0 +1,201 @@
package com.tapjoy.internal;
import com.applovin.exoplayer2.common.base.Ascii;
import com.ironsource.v8;
import java.io.Serializable;
import java.nio.charset.Charset;
import java.util.Arrays;
/* loaded from: classes4.dex */
public class m implements Serializable, Comparable {
public static final char[] d = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
public static final m e = new m((byte[]) new byte[0].clone());
public final byte[] a;
public transient int b;
public transient String c;
public m(byte[] bArr) {
this.a = bArr;
}
public String a() {
byte[] bArr = this.a;
char[] cArr = new char[bArr.length * 2];
int i = 0;
for (byte b : bArr) {
int i2 = i + 1;
char[] cArr2 = d;
cArr[i] = cArr2[(b >> 4) & 15];
i += 2;
cArr[i2] = cArr2[b & Ascii.SI];
}
return new String(cArr);
}
public int b() {
return this.a.length;
}
public m c() {
byte[] bArr = this.a;
if (64 > bArr.length) {
throw new IllegalArgumentException("endIndex > length(" + this.a.length + ")");
}
if (64 == bArr.length) {
return this;
}
byte[] bArr2 = new byte[64];
System.arraycopy(bArr, 0, bArr2, 0, 64);
return new m(bArr2);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x002b A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:8:0x002d A[ORIG_RETURN, RETURN] */
@Override // java.lang.Comparable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final int compareTo(java.lang.Object r8) {
/*
r7 = this;
com.tapjoy.internal.m r8 = (com.tapjoy.internal.m) r8
int r0 = r7.b()
int r1 = r8.b()
int r2 = java.lang.Math.min(r0, r1)
r3 = 0
r4 = r3
L10:
if (r4 >= r2) goto L26
byte r5 = r7.a(r4)
r5 = r5 & 255(0xff, float:3.57E-43)
byte r6 = r8.a(r4)
r6 = r6 & 255(0xff, float:3.57E-43)
if (r5 != r6) goto L23
int r4 = r4 + 1
goto L10
L23:
if (r5 >= r6) goto L2d
goto L2b
L26:
if (r0 != r1) goto L29
goto L2e
L29:
if (r0 >= r1) goto L2d
L2b:
r3 = -1
goto L2e
L2d:
r3 = 1
L2e:
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.m.compareTo(java.lang.Object):int");
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof m) {
m mVar = (m) obj;
int b = mVar.b();
byte[] bArr = this.a;
if (b == bArr.length && mVar.a(0, bArr, 0, bArr.length)) {
return true;
}
}
return false;
}
public String toString() {
StringBuilder sb;
if (this.a.length == 0) {
return "[size=0]";
}
String d2 = d();
int length = d2.length();
int i = 0;
int i2 = 0;
while (true) {
if (i >= length) {
i = d2.length();
break;
}
if (i2 == 64) {
break;
}
int codePointAt = d2.codePointAt(i);
if ((!Character.isISOControl(codePointAt) || codePointAt == 10 || codePointAt == 13) && codePointAt != 65533) {
i2++;
i += Character.charCount(codePointAt);
}
}
i = -1;
if (i == -1) {
if (this.a.length <= 64) {
return "[hex=" + a() + v8.i.e;
}
return "[size=" + this.a.length + " hex=" + c().a() + "…]";
}
String replace = d2.substring(0, i).replace("\\", "\\\\").replace("\n", "\\n").replace("\r", "\\r");
if (i < d2.length()) {
sb = new StringBuilder("[size=");
sb.append(this.a.length);
sb.append(" text=");
sb.append(replace);
sb.append("…]");
} else {
sb = new StringBuilder("[text=");
sb.append(replace);
sb.append(v8.i.e);
}
return sb.toString();
}
public int hashCode() {
int i = this.b;
if (i != 0) {
return i;
}
int hashCode = Arrays.hashCode(this.a);
this.b = hashCode;
return hashCode;
}
public String d() {
String str = this.c;
if (str != null) {
return str;
}
String str2 = new String(this.a, f3.a);
this.c = str2;
return str2;
}
public byte a(int i) {
return this.a[i];
}
public void a(l lVar) {
byte[] bArr = this.a;
lVar.a(bArr, bArr.length);
}
public boolean a(int i, byte[] bArr, int i2, int i3) {
if (i < 0) {
return false;
}
byte[] bArr2 = this.a;
if (i > bArr2.length - i3 || i2 < 0 || i2 > bArr.length - i3) {
return false;
}
Charset charset = f3.a;
for (int i4 = 0; i4 < i3; i4++) {
if (bArr2[i4 + i] != bArr[i4 + i2]) {
return false;
}
}
return true;
}
}

View File

@@ -0,0 +1,14 @@
package com.tapjoy.internal;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
/* loaded from: classes4.dex */
public final class m0 extends WeakReference {
public final Object a;
public m0(Object obj, Object obj2, ReferenceQueue referenceQueue) {
super(obj2, referenceQueue);
this.a = obj;
}
}

View File

@@ -0,0 +1,51 @@
package com.tapjoy.internal;
import android.content.Context;
import com.tapjoy.TJPlacement;
import com.tapjoy.TapjoyConnectCore;
/* loaded from: classes4.dex */
public abstract class m1 {
public volatile l1 a;
public abstract TJPlacement a(Context context, l1 l1Var);
public boolean a() {
return !TapjoyConnectCore.getInstance().isViewOpen();
}
public abstract String b();
public final void c() {
l1 l1Var;
if (a()) {
synchronized (this) {
try {
if (this.a == null) {
l1Var = new l1(this);
this.a = l1Var;
} else {
l1Var = null;
}
} catch (Throwable th) {
throw th;
}
}
if (l1Var != null) {
l1Var.a();
}
}
}
public final void a(l1 l1Var) {
synchronized (this) {
try {
if (this.a == l1Var) {
this.a = null;
}
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,12 @@
package com.tapjoy.internal;
import android.view.GestureDetector;
import android.view.MotionEvent;
/* loaded from: classes4.dex */
public final class m2 extends GestureDetector.SimpleOnGestureListener {
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
public final boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) {
return true;
}
}

View File

@@ -0,0 +1,8 @@
package com.tapjoy.internal;
import java.util.Map;
/* loaded from: classes4.dex */
public final class n {
public volatile Map a;
}

View File

@@ -0,0 +1,16 @@
package com.tapjoy.internal;
import java.lang.ref.Reference;
import java.lang.ref.ReferenceQueue;
/* loaded from: classes4.dex */
public final class n0 extends ReferenceQueue {
public final m0 a() {
return (m0) super.poll();
}
@Override // java.lang.ref.ReferenceQueue
public final Reference poll() {
return (m0) super.poll();
}
}

View File

@@ -0,0 +1,34 @@
package com.tapjoy.internal;
import android.os.SystemClock;
import com.tapjoy.TapjoyUtil;
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class n1 {
public final Long a;
public final d2 b;
public n1() {
d2 purchase = new d2();
Intrinsics.checkNotNullParameter(purchase, "purchase");
this.a = null;
this.b = purchase;
this.a = Long.valueOf(TimeUnit.MILLISECONDS.toSeconds(SystemClock.elapsedRealtime()));
}
public final void a(HashMap params) {
Intrinsics.checkNotNullParameter(params, "params");
TapjoyUtil.safePut(params, "uptime", this.a);
d2 d2Var = this.b;
d2Var.getClass();
Intrinsics.checkNotNullParameter(params, "params");
TapjoyUtil.safePut(params, "purchase_currency", d2Var.a, true);
TapjoyUtil.safePut(params, "purchase_total_price", d2Var.b);
TapjoyUtil.safePut(params, "purchase_last_price", d2Var.d);
TapjoyUtil.safePut(params, "purchase_last_at", d2Var.c);
TapjoyUtil.safePut(params, "purchase_total_count", d2Var.e);
}
}

View File

@@ -0,0 +1,24 @@
package com.tapjoy.internal;
import android.app.Activity;
import com.tapjoy.TJSession;
/* loaded from: classes4.dex */
public final class n2 implements Runnable {
public final /* synthetic */ Activity a;
public n2(Activity activity) {
this.a = activity;
}
@Override // java.lang.Runnable
public final void run() {
r2 r2Var = p2.a;
Activity activity = this.a;
r2Var.getClass();
c.a();
TJSession tJSession = TJSession.INSTANCE;
tJSession.setSemiAutoSessionTrackingStarted(true);
tJSession.onActivityStart(activity);
}
}

View File

@@ -0,0 +1,15 @@
package com.tapjoy.internal;
import java.util.ArrayList;
import java.util.Observable;
/* loaded from: classes4.dex */
public abstract class o extends Observable {
public final ArrayList a = new ArrayList();
@Override // java.util.Observable
public final void setChanged() {
super.setChanged();
notifyObservers();
}
}

View File

@@ -0,0 +1,104 @@
package com.tapjoy.internal;
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor;
/* loaded from: classes4.dex */
public final class o0 extends u0 {
public o0() {
super(3);
}
@Override // com.tapjoy.internal.u0
public final Object a(v0 v0Var) {
return v0Var.a.b(v0Var.a());
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
char charAt;
String str = (String) obj;
l lVar = w0Var.a;
int length = str.length();
if (length >= 0) {
if (length > str.length()) {
throw new IllegalArgumentException("endIndex > string.length: " + length + " > " + str.length());
}
int i = 0;
while (i < length) {
char charAt2 = str.charAt(i);
if (charAt2 < 128) {
b1 a = lVar.a(1);
byte[] bArr = a.a;
int i2 = a.c - i;
int min = Math.min(length, 8192 - i2);
int i3 = i + 1;
bArr[i + i2] = (byte) charAt2;
while (true) {
i = i3;
if (i >= min || (charAt = str.charAt(i)) >= 128) {
break;
}
i3 = i + 1;
bArr[i + i2] = (byte) charAt;
}
int i4 = a.c;
int i5 = (i2 + i) - i4;
a.c = i4 + i5;
lVar.b += i5;
} else {
if (charAt2 < 2048) {
lVar.b((charAt2 >> 6) | PsExtractor.AUDIO_STREAM);
lVar.b((charAt2 & '?') | 128);
} else if (charAt2 >= 55296 && charAt2 <= 57343) {
int i6 = i + 1;
char charAt3 = i6 < length ? str.charAt(i6) : (char) 0;
if (charAt2 <= 56319 && charAt3 >= 56320 && charAt3 <= 57343) {
int i7 = (((charAt2 & 10239) << 10) | (9215 & charAt3)) + 65536;
lVar.b((i7 >> 18) | PsExtractor.VIDEO_STREAM_MASK);
lVar.b(((i7 >> 12) & 63) | 128);
lVar.b(((i7 >> 6) & 63) | 128);
lVar.b((i7 & 63) | 128);
i += 2;
} else {
lVar.b(63);
i = i6;
}
} else {
lVar.b((charAt2 >> '\f') | 224);
lVar.b(((charAt2 >> 6) & 63) | 128);
lVar.b((charAt2 & '?') | 128);
}
i++;
}
}
return;
}
throw new IllegalArgumentException("endIndex < beginIndex: " + length + " < 0");
}
@Override // com.tapjoy.internal.u0
public final int a(Object obj) {
int i;
String str = (String) obj;
int length = str.length();
int i2 = 0;
int i3 = 0;
while (i2 < length) {
char charAt = str.charAt(i2);
if (charAt >= 128) {
if (charAt < 2048) {
i3 += 2;
} else if (charAt < 55296 || charAt > 57343) {
i3 += 3;
} else if (charAt <= 56319 && (i = i2 + 1) < length && str.charAt(i) >= 56320 && str.charAt(i) <= 57343) {
i3 += 4;
i2 = i;
}
i2++;
}
i3++;
i2++;
}
return i3;
}
}

View File

@@ -0,0 +1,59 @@
package com.tapjoy.internal;
import android.os.Build;
import com.tapjoy.TJAppInfo;
import com.tapjoy.TJDeviceInfo;
import com.tapjoy.TJDeviceUtils;
import com.tapjoy.TJTracking;
import com.tapjoy.TapjoyConnectCore;
/* loaded from: classes4.dex */
public final class o1 {
public final Integer a;
public final String b;
public final String c;
public final String d;
public final String e;
public final String f;
public final String g;
public final Boolean h;
public final Boolean i;
public final Boolean j;
public final String k;
public final Long l;
public final Long m;
public o1() {
this.a = null;
this.b = null;
this.c = null;
this.d = null;
this.e = null;
this.f = null;
this.g = null;
this.h = null;
this.i = null;
this.j = null;
this.k = null;
this.l = null;
this.m = null;
this.a = TJDeviceInfo.INSTANCE.getDeviceScreenLayoutSize(TapjoyConnectCore.getInstance().getContext());
TJAppInfo tJAppInfo = TJAppInfo.INSTANCE;
this.b = tJAppInfo.getInstaller();
TJTracking tJTracking = TJTracking.INSTANCE;
this.c = tJTracking.getAppSetID();
this.d = tJTracking.getAndroidIDIfAllowed();
this.e = Build.MANUFACTURER;
Long deviceGpsVersion = tJTracking.getDeviceGpsVersion();
this.f = deviceGpsVersion != null ? deviceGpsVersion.toString() : null;
Integer packagedGpsVersion = tJTracking.getPackagedGpsVersion();
this.g = packagedGpsVersion != null ? packagedGpsVersion.toString() : null;
this.h = Boolean.valueOf(!tJTracking.isAdvertisingIdAllowed());
this.i = Boolean.valueOf(tJTracking.getAdIdCheckDisabled());
this.j = Boolean.valueOf(tJTracking.getLegacyIdFallbackAllowed());
this.k = tJAppInfo.getPkgSign();
TJDeviceUtils tJDeviceUtils = TJDeviceUtils.INSTANCE;
this.l = Long.valueOf(tJDeviceUtils.getAvailableDiskSpace());
this.m = Long.valueOf(tJDeviceUtils.getTotalDiskSpace());
}
}

View File

@@ -0,0 +1,22 @@
package com.tapjoy.internal;
import android.app.Activity;
import com.tapjoy.TJSession;
/* loaded from: classes4.dex */
public final class o2 implements Runnable {
public final /* synthetic */ Activity a;
public o2(Activity activity) {
this.a = activity;
}
@Override // java.lang.Runnable
public final void run() {
r2 r2Var = p2.a;
Activity activity = this.a;
r2Var.getClass();
c.a();
TJSession.INSTANCE.onActivityStop(activity);
}
}

View File

@@ -0,0 +1,11 @@
package com.tapjoy.internal;
import java.text.SimpleDateFormat;
/* loaded from: classes4.dex */
public final class p extends ThreadLocal {
@Override // java.lang.ThreadLocal
public final Object initialValue() {
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ssZ");
}
}

View File

@@ -0,0 +1,29 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class p0 extends u0 {
public p0() {
super(3);
}
@Override // com.tapjoy.internal.u0
public final Object a(v0 v0Var) {
return new m(v0Var.a.a(v0Var.a()));
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
m mVar = (m) obj;
l lVar = w0Var.a;
if (mVar != null) {
mVar.a(lVar);
return;
}
throw new IllegalArgumentException("byteString == null");
}
@Override // com.tapjoy.internal.u0
public final int a(Object obj) {
return ((m) obj).b();
}
}

View File

@@ -0,0 +1,44 @@
package com.tapjoy.internal;
import com.tapjoy.TJAppInfo;
import com.tapjoy.TJTracking;
import com.tapjoy.TapjoyConnectCore;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class p1 {
public final String a;
public final String b;
public final String c;
public final String d;
public final String e;
public final String f;
public final String g;
public final String h;
public final c2 i;
public p1() {
c2 publisher = new c2();
Intrinsics.checkNotNullParameter(publisher, "publisher");
this.a = null;
this.b = null;
this.c = null;
this.d = null;
this.e = null;
this.f = null;
this.g = null;
this.h = null;
this.i = publisher;
this.a = TapjoyConnectCore.getInstance().getAppID();
TJTracking tJTracking = TJTracking.INSTANCE;
this.b = tJTracking.getUnityAdsIdfi();
this.c = tJTracking.getLevelPlayAuid();
TJAppInfo tJAppInfo = TJAppInfo.INSTANCE;
this.d = tJAppInfo.getAppVersion();
this.e = tJAppInfo.getPkgId();
this.f = tJAppInfo.getPkgVer();
Integer pkgRev = tJAppInfo.getPkgRev();
this.g = pkgRev != null ? pkgRev.toString() : null;
this.h = tJAppInfo.getAppGroupId();
}
}

View File

@@ -0,0 +1,11 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class p2 {
public static final r2 a;
static {
int i = i.d;
a = new r2();
}
}

View File

@@ -0,0 +1,6 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class q {
public static final p a = new p();
}

View File

@@ -0,0 +1,50 @@
package com.tapjoy.internal;
import java.util.Collections;
import java.util.List;
/* loaded from: classes4.dex */
public final class q0 extends u0 {
public final /* synthetic */ u0 h;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public q0(u0 u0Var, int i) {
super(i);
this.h = u0Var;
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
throw new UnsupportedOperationException("Repeated values can only be encoded with a tag.");
}
@Override // com.tapjoy.internal.u0
public final int b(Object obj) {
List list = (List) obj;
int size = list.size();
int i = 0;
for (int i2 = 0; i2 < size; i2++) {
i += this.h.b(list.get(i2));
}
return i;
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, int i, Object obj) {
List list = (List) obj;
int size = list.size();
for (int i2 = 0; i2 < size; i2++) {
this.h.a(w0Var, i, list.get(i2));
}
}
@Override // com.tapjoy.internal.u0
public final int a(Object obj) {
throw new UnsupportedOperationException("Repeated values can only be sized with a tag.");
}
@Override // com.tapjoy.internal.u0
public final Object a(v0 v0Var) {
return Collections.singletonList(this.h.a(v0Var));
}
}

View File

@@ -0,0 +1,45 @@
package com.tapjoy.internal;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class q1 {
public final JSONObject a;
public final String b;
public final ArrayList c = new ArrayList();
public q1(JSONObject jSONObject) {
this.a = jSONObject;
this.b = null;
if (jSONObject != null) {
this.b = jSONObject.optString("group_id");
JSONArray optJSONArray = jSONObject.optJSONArray("currencies");
int length = optJSONArray != null ? optJSONArray.length() : 0;
for (int i = 0; i < length; i++) {
JSONObject optJSONObject = optJSONArray != null ? optJSONArray.optJSONObject(i) : null;
if (optJSONObject != null) {
this.c.add(new y1(optJSONObject));
}
}
}
}
public final String a() {
return this.b;
}
public final ArrayList b() {
return this.c;
}
public final String c() {
JSONArray optJSONArray;
JSONObject jSONObject = this.a;
if (jSONObject == null || (optJSONArray = jSONObject.optJSONArray("currencies")) == null) {
return null;
}
return optJSONArray.toString();
}
}

View File

@@ -0,0 +1,10 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class q2 extends z2 {
public final /* synthetic */ r2 l;
public q2(r2 r2Var) {
this.l = r2Var;
}
}

View File

@@ -0,0 +1,37 @@
package com.tapjoy.internal;
import java.nio.charset.Charset;
/* loaded from: classes4.dex */
public final class r0 extends u0 {
public r0() {
super(4);
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
int intValue = ((Integer) obj).intValue();
l lVar = w0Var.a;
Charset charset = f3.a;
int i = ((intValue & 255) << 24) | (((-16777216) & intValue) >>> 24) | ((16711680 & intValue) >>> 8) | ((65280 & intValue) << 8);
b1 a = lVar.a(4);
byte[] bArr = a.a;
int i2 = a.c;
bArr[i2] = (byte) ((i >>> 24) & 255);
bArr[i2 + 1] = (byte) ((i >>> 16) & 255);
bArr[i2 + 2] = (byte) ((i >>> 8) & 255);
bArr[i2 + 3] = (byte) (i & 255);
a.c = i2 + 4;
lVar.b += 4;
}
@Override // com.tapjoy.internal.u0
public final /* bridge */ /* synthetic */ int a(Object obj) {
return 4;
}
@Override // com.tapjoy.internal.u0
public final Object a(v0 v0Var) {
return Integer.valueOf(v0Var.c());
}
}

View File

@@ -0,0 +1,26 @@
package com.tapjoy.internal;
import com.google.android.gms.appset.AppSetIdInfo;
import com.google.android.gms.tasks.OnSuccessListener;
import com.tapjoy.TJTaskHandler;
import com.tapjoy.TapjoyLog;
import java.util.Locale;
/* loaded from: classes4.dex */
public final class r1 implements OnSuccessListener {
public final /* synthetic */ TJTaskHandler a;
public r1(TJTaskHandler tJTaskHandler) {
this.a = tJTaskHandler;
}
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
AppSetIdInfo appSetIdInfo = (AppSetIdInfo) obj;
int scope = appSetIdInfo.getScope();
String id = appSetIdInfo.getId();
Locale locale = Locale.ENGLISH;
TapjoyLog.d("TJAppSetId", "Scope: " + scope + ". AppSetId: " + id);
this.a.onComplete(id);
}
}

View File

@@ -0,0 +1,7 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class r2 extends com.tapjoy.m1 {
public int d = 0;
public final q2 e = new q2(this);
}

View File

@@ -0,0 +1,9 @@
package com.tapjoy.internal;
import android.content.Context;
/* loaded from: classes4.dex */
public final class s {
public static final s b = new s();
public Context a;
}

View File

@@ -0,0 +1,53 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class s0 extends u0 {
public s0() {
super(1);
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
long longValue = ((Long) obj).longValue();
while (((-128) & longValue) != 0) {
w0Var.a.b((((int) longValue) & 127) | 128);
longValue >>>= 7;
}
w0Var.a.b((int) longValue);
}
@Override // com.tapjoy.internal.u0
public final int a(Object obj) {
long longValue = ((Long) obj).longValue();
if (((-128) & longValue) == 0) {
return 1;
}
if (((-16384) & longValue) == 0) {
return 2;
}
if (((-2097152) & longValue) == 0) {
return 3;
}
if (((-268435456) & longValue) == 0) {
return 4;
}
if (((-34359738368L) & longValue) == 0) {
return 5;
}
if (((-4398046511104L) & longValue) == 0) {
return 6;
}
if (((-562949953421312L) & longValue) == 0) {
return 7;
}
if (((-72057594037927936L) & longValue) == 0) {
return 8;
}
return (longValue & Long.MIN_VALUE) == 0 ? 9 : 10;
}
@Override // com.tapjoy.internal.u0
public final Object a(v0 v0Var) {
return Long.valueOf(v0Var.e());
}
}

View File

@@ -0,0 +1,24 @@
package com.tapjoy.internal;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class s1 {
public final String a;
public final Long b;
public s1(JSONObject jSONObject) {
this.a = null;
this.b = null;
this.a = jSONObject.optString("url");
this.b = Long.valueOf(jSONObject.optLong("ttl"));
}
public final Long a() {
return this.b;
}
public final String b() {
return this.a;
}
}

View File

@@ -0,0 +1,80 @@
package com.tapjoy.internal;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.work.WorkRequest;
import com.tapjoy.TapjoyConstants;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
/* loaded from: classes4.dex */
public final class s2 {
public static final s2 c = new s2();
public final a1 a = new a1();
public Context b;
public static s2 a() {
return c;
}
public final synchronized void a(Context context) {
if (context != null) {
try {
if (this.b == null) {
this.b = context;
SharedPreferences sharedPreferences = context.getSharedPreferences(TapjoyConstants.TJC_PREFERENCE, 0);
String string = this.b.getSharedPreferences(TapjoyConstants.TJC_PREFERENCE, 0).getString("configurations", null);
if (string != null) {
try {
if (b0.a == null) {
b0.a = e0.n;
}
e0 e0Var = new e0(new StringReader(string));
try {
LinkedHashMap a = e0Var.a();
e0Var.close();
this.a.a(a);
} catch (Throwable th) {
e0Var.close();
throw th;
}
} catch (Exception unused) {
sharedPreferences.edit().remove("configurations").apply();
}
}
}
} catch (Throwable th2) {
throw th2;
}
}
}
public final void a(Long l) {
try {
HashMap hashMap = new HashMap();
hashMap.put("placement_request_content_retry_timeout", l);
hashMap.put("placement_request_content_retry_backoff", Arrays.asList(0L, 500L, Long.valueOf(WorkRequest.MIN_BACKOFF_MILLIS), Double.valueOf(2.0d)));
this.a.a(hashMap);
StringWriter stringWriter = new StringWriter();
i0 i0Var = new i0(stringWriter);
try {
i0Var.a(l);
try {
i0Var.a.flush();
this.b.getSharedPreferences(TapjoyConstants.TJC_PREFERENCE, 0).edit().putString("configurations", stringWriter.toString()).apply();
} catch (IOException e) {
i2.a(e);
throw null;
}
} catch (IOException e2) {
i2.a(e2);
throw null;
}
} catch (Exception unused) {
}
}
}

View File

@@ -0,0 +1,31 @@
package com.tapjoy.internal;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import java.util.RandomAccess;
/* loaded from: classes4.dex */
public final class t extends AbstractList implements RandomAccess, Serializable {
public final ArrayList a;
public t(List list) {
this.a = new ArrayList(list);
}
@Override // java.util.AbstractList, java.util.List
public final Object get(int i) {
return this.a.get(i);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final int size() {
return this.a.size();
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.List
public final Object[] toArray() {
return this.a.toArray();
}
}

View File

@@ -0,0 +1,38 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public final class t0 extends u0 {
public t0() {
super(2);
}
@Override // com.tapjoy.internal.u0
public final void a(w0 w0Var, Object obj) {
long longValue = ((Long) obj).longValue();
l lVar = w0Var.a;
long a = f3.a(longValue);
b1 a2 = lVar.a(8);
byte[] bArr = a2.a;
int i = a2.c;
bArr[i] = (byte) ((a >>> 56) & 255);
bArr[i + 1] = (byte) ((a >>> 48) & 255);
bArr[i + 2] = (byte) ((a >>> 40) & 255);
bArr[i + 3] = (byte) ((a >>> 32) & 255);
bArr[i + 4] = (byte) ((a >>> 24) & 255);
bArr[i + 5] = (byte) ((a >>> 16) & 255);
bArr[i + 6] = (byte) ((a >>> 8) & 255);
bArr[i + 7] = (byte) (a & 255);
a2.c = i + 8;
lVar.b += 8;
}
@Override // com.tapjoy.internal.u0
public final /* bridge */ /* synthetic */ int a(Object obj) {
return 8;
}
@Override // com.tapjoy.internal.u0
public final Object a(v0 v0Var) {
return Long.valueOf(v0Var.d());
}
}

View File

@@ -0,0 +1,66 @@
package com.tapjoy.internal;
import com.ironsource.nb;
import com.tapjoy.TapjoyConfig;
import com.tapjoy.TapjoyConnectCore;
import java.util.HashMap;
import java.util.UUID;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public class t1 {
public final String a;
public final long b;
public final f2 c;
public final p1 d;
public final z1 e;
public final e2 f;
public final l2 g;
public String h;
public static HashMap a() {
HashMap hashMap = new HashMap();
hashMap.put("accept", nb.L);
hashMap.put("Content-Type", nb.L);
return hashMap;
}
public final String b() {
if (!TapjoyConnectCore.getInstance().getHostURL().equals(TapjoyConfig.TJC_SERVICE_URL)) {
String hostURL = TapjoyConnectCore.getInstance().getHostURL();
Intrinsics.checkNotNullExpressionValue(hostURL, "getHostURL(...)");
this.h = hostURL;
}
return this.h;
}
public t1() {
p1 app = new p1();
z1 device = new z1();
e2 regs = new e2();
l2 user = new l2();
Intrinsics.checkNotNullParameter("", "id");
Intrinsics.checkNotNullParameter(app, "app");
Intrinsics.checkNotNullParameter(device, "device");
Intrinsics.checkNotNullParameter(regs, "regs");
Intrinsics.checkNotNullParameter(user, "user");
this.a = "";
this.b = -1L;
this.c = null;
this.d = app;
this.e = device;
this.f = regs;
this.g = user;
this.h = TapjoyConfig.TJC_SERVICE_URL;
String uuid = UUID.randomUUID().toString();
Intrinsics.checkNotNullExpressionValue(uuid, "toString(...)");
this.a = uuid;
long currentTimeMillis = System.currentTimeMillis() / 1000;
this.b = currentTimeMillis;
this.c = new f2(currentTimeMillis);
}
public final void a(String str) {
this.g.a = str;
}
}

View File

@@ -0,0 +1,31 @@
package com.tapjoy.internal;
import java.util.Observable;
import java.util.Observer;
/* loaded from: classes4.dex */
public final class t2 implements Observer {
public final /* synthetic */ q2 a;
public t2(q2 q2Var) {
this.a = q2Var;
}
@Override // java.util.Observer
public final void update(Observable observable, Object obj) {
q2 q2Var;
v2 v2Var;
y.b.deleteObserver(this);
Boolean bool = Boolean.TRUE;
Boolean valueOf = Boolean.valueOf(bool.equals(obj));
if (!(obj instanceof String)) {
bool = valueOf;
}
if (bool.booleanValue() || (v2Var = (q2Var = this.a).h) == null || v2Var.a == null) {
return;
}
q2Var.f = new y2(q2Var);
q2 q2Var2 = this.a;
q2Var2.c.execute(q2Var2.f);
}
}

View File

@@ -0,0 +1,38 @@
package com.tapjoy.internal;
import android.content.Context;
import android.os.Build;
import java.util.Locale;
import java.util.UUID;
/* loaded from: classes4.dex */
public final class u {
public static u a;
static {
UUID.randomUUID().toString();
}
public u(Context context) {
f1.a.execute(f1.c);
String str = Build.VERSION.RELEASE;
String str2 = Build.MANUFACTURER;
Locale.getDefault().toString();
context.getApplicationContext();
}
public static synchronized u a(Context context) {
u uVar;
synchronized (u.class) {
try {
if (a == null) {
a = new u(context);
}
uVar = a;
} catch (Throwable th) {
throw th;
}
}
return uVar;
}
}

View File

@@ -0,0 +1,61 @@
package com.tapjoy.internal;
/* loaded from: classes4.dex */
public abstract class u0 {
public static final r0 c = new r0();
public static final s0 d = new s0();
public static final t0 e = new t0();
public static final o0 f = new o0();
public static final p0 g = new p0();
public final int a;
public q0 b;
public u0(int i) {
this.a = i;
}
public abstract int a(Object obj);
public abstract Object a(v0 v0Var);
public void a(w0 w0Var, int i, Object obj) {
int i2 = this.a;
w0Var.getClass();
int i3 = i << 3;
int i4 = 1;
if (i2 == 1) {
i4 = 0;
} else if (i2 != 2) {
if (i2 == 3) {
i4 = 2;
} else {
if (i2 != 4) {
throw null;
}
i4 = 5;
}
}
w0Var.b(i3 | i4);
if (this.a == 3) {
w0Var.b(a(obj));
}
a(w0Var, obj);
}
public abstract void a(w0 w0Var, Object obj);
public int b(Object obj) {
int a = a(obj);
if (this.a == 3) {
a += w0.a(a);
}
return w0.a(8) + a;
}
public final Object a(byte[] bArr) {
if (bArr != null) {
return a(new v0(new l().a(bArr, bArr.length)));
}
throw new NullPointerException("bytes == null");
}
}

View File

@@ -0,0 +1,60 @@
package com.tapjoy.internal;
import com.tapjoy.TJDeviceNetwork;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes4.dex */
public final class u1 {
public final String a;
public final String b;
public final String c;
public final String d;
public final String e;
public final String f;
public u1() {
this.a = null;
this.b = null;
this.c = null;
this.d = null;
this.e = null;
this.f = null;
TJDeviceNetwork tJDeviceNetwork = TJDeviceNetwork.INSTANCE;
this.a = tJDeviceNetwork.getCarrierName();
this.b = tJDeviceNetwork.getCarrierNameSim();
this.f = tJDeviceNetwork.getDeviceCountrySIM();
this.c = tJDeviceNetwork.getCarrierCountryCode();
this.d = tJDeviceNetwork.getMobileCountryCode();
this.e = tJDeviceNetwork.getMobileNetworkCode();
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof u1)) {
return false;
}
u1 u1Var = (u1) obj;
return Intrinsics.areEqual(this.a, u1Var.a) && Intrinsics.areEqual(this.b, u1Var.b) && Intrinsics.areEqual(this.c, u1Var.c) && Intrinsics.areEqual(this.d, u1Var.d) && Intrinsics.areEqual(this.e, u1Var.e) && Intrinsics.areEqual(this.f, u1Var.f);
}
public final int hashCode() {
String str = this.a;
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
String str2 = this.b;
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
String str3 = this.c;
int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
String str4 = this.d;
int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
String str5 = this.e;
int hashCode5 = (hashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31;
String str6 = this.f;
return hashCode5 + (str6 != null ? str6.hashCode() : 0);
}
public final String toString() {
return "TJCarrierModel(carrierName=" + this.a + ", carrierNameSim=" + this.b + ", carrierCountryCode=" + this.c + ", mobileCountryCode=" + this.d + ", mobileNetworkCode=" + this.e + ", countrySim=" + this.f + ")";
}
}

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