- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
135 lines
5.9 KiB
Java
135 lines
5.9 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import android.graphics.PointF;
|
||
import android.os.SystemClock;
|
||
import android.text.TextUtils;
|
||
import android.view.KeyEvent;
|
||
import android.view.ViewConfiguration;
|
||
import com.ironsource.adqualitysdk.sdk.ISAdQualitySegment;
|
||
import org.json.JSONException;
|
||
import org.json.JSONObject;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class am {
|
||
|
||
/* renamed from: ﱡ, reason: contains not printable characters */
|
||
private static int f278 = 1;
|
||
|
||
/* renamed from: ﻏ, reason: contains not printable characters */
|
||
private static int f279 = 0;
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private static char f280 = 64990;
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static char f281 = 46087;
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static char f282 = 48975;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static char f283 = 12774;
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private final af f284;
|
||
|
||
public am(af afVar) {
|
||
this.f284 = afVar;
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public final void m1078(ISAdQualitySegment iSAdQualitySegment) {
|
||
int i = f278 + 59;
|
||
f279 = i % 128;
|
||
int i2 = i % 2;
|
||
this.f284.m982(m1076("퉒紭뛵勚퉒紭\ue62f戡\u2e6e퇘៦⛚", (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 11).intern(), m1077(iSAdQualitySegment));
|
||
int i3 = f278 + 41;
|
||
f279 = i3 % 128;
|
||
if (i3 % 2 != 0) {
|
||
int i4 = 85 / 0;
|
||
}
|
||
}
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static JSONObject m1077(ISAdQualitySegment iSAdQualitySegment) {
|
||
JSONObject jSONObject = new JSONObject(iSAdQualitySegment.getCustomData());
|
||
try {
|
||
if (!TextUtils.isEmpty(iSAdQualitySegment.getName())) {
|
||
int i = f279 + 101;
|
||
f278 = i % 128;
|
||
jSONObject.put(i % 2 == 0 ? m1076("鯱徆Ჾ呖", 5 - TextUtils.indexOf((CharSequence) "", ']', 0, 0)).intern() : m1076("鯱徆Ჾ呖", TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 5).intern(), iSAdQualitySegment.getName());
|
||
}
|
||
if (iSAdQualitySegment.getAge() != -1) {
|
||
jSONObject.put(m1076("ꅩ\udb99\uedc0뉧", (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 4).intern(), iSAdQualitySegment.getAge());
|
||
}
|
||
if (!TextUtils.isEmpty(iSAdQualitySegment.getGender())) {
|
||
int i2 = f278 + 37;
|
||
f279 = i2 % 128;
|
||
jSONObject.put(i2 % 2 != 0 ? m1076("鯱徆\u2e6e퇘", 5 << (SystemClock.elapsedRealtime() > 1L ? 1 : (SystemClock.elapsedRealtime() == 1L ? 0 : -1))).intern() : m1076("鯱徆\u2e6e퇘", (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 3).intern(), iSAdQualitySegment.getGender());
|
||
}
|
||
if (iSAdQualitySegment.getLevel() != -1) {
|
||
int i3 = f279 + 89;
|
||
f278 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
jSONObject.put(m1076("엔趰兓\u2455", (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)) + 4).intern(), iSAdQualitySegment.getLevel());
|
||
}
|
||
if (iSAdQualitySegment.getIsPaying() != null) {
|
||
jSONObject.put(m1076("㲟쿊ꬱ昍", (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 3).intern(), iSAdQualitySegment.getIsPaying().get());
|
||
}
|
||
if (iSAdQualitySegment.getInAppPurchasesTotal() != -1.0d) {
|
||
int i5 = f279 + 119;
|
||
f278 = i5 % 128;
|
||
int i6 = i5 % 2;
|
||
jSONObject.put(m1076("蝹缣\u1bf6ᷱ៦⛚", 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))).intern(), iSAdQualitySegment.getInAppPurchasesTotal());
|
||
}
|
||
if (iSAdQualitySegment.getUserCreationDate() != 0) {
|
||
jSONObject.put(m1076("薮\ue43e衭팮", (KeyEvent.getMaxKeyCode() >> 16) + 4).intern(), iSAdQualitySegment.getUserCreationDate());
|
||
}
|
||
} catch (JSONException unused) {
|
||
}
|
||
return jSONObject;
|
||
}
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private static String m1076(String str, int i) {
|
||
String str2;
|
||
char[] cArr = str;
|
||
if (str != null) {
|
||
cArr = str.toCharArray();
|
||
}
|
||
char[] cArr2 = cArr;
|
||
synchronized (k.f2799) {
|
||
try {
|
||
char[] cArr3 = new char[cArr2.length];
|
||
k.f2798 = 0;
|
||
char[] cArr4 = new char[2];
|
||
while (true) {
|
||
int i2 = k.f2798;
|
||
if (i2 < cArr2.length) {
|
||
cArr4[0] = cArr2[i2];
|
||
cArr4[1] = cArr2[i2 + 1];
|
||
int i3 = 58224;
|
||
for (int i4 = 0; i4 < 16; i4++) {
|
||
char c = cArr4[1];
|
||
char c2 = cArr4[0];
|
||
char c3 = (char) (c - (((c2 + i3) ^ ((c2 << 4) + f282)) ^ ((c2 >>> 5) + f283)));
|
||
cArr4[1] = c3;
|
||
cArr4[0] = (char) (c2 - (((c3 >>> 5) + f281) ^ ((c3 + i3) ^ ((c3 << 4) + f280))));
|
||
i3 -= 40503;
|
||
}
|
||
int i5 = k.f2798;
|
||
cArr3[i5] = cArr4[0];
|
||
cArr3[i5 + 1] = cArr4[1];
|
||
k.f2798 = i5 + 2;
|
||
} else {
|
||
str2 = new String(cArr3, 0, i);
|
||
}
|
||
}
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str2;
|
||
}
|
||
}
|