294 lines
9.9 KiB
Java
294 lines
9.9 KiB
Java
|
package com.pingan.ai;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.Color;
|
||
|
import android.graphics.PointF;
|
||
|
import android.os.SystemClock;
|
||
|
import android.util.SparseIntArray;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.google.common.base.Ascii;
|
||
|
import com.pingan.ai.face.entity.PreviewFrame;
|
||
|
import com.pingan.ai.face.utils.PaFaceLogger;
|
||
|
import com.pingan.ai.face.view.AuroraView;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import o.GuL;
|
||
|
import o.xzZ;
|
||
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
||
|
import org.jmrtd.lds.CVCAFile;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class e {
|
||
|
public List<byte[]> a = Collections.synchronizedList(new ArrayList());
|
||
|
public List<float[]> b = Collections.synchronizedList(new ArrayList());
|
||
|
public byte[] c = new byte[7];
|
||
|
public SparseIntArray d = new SparseIntArray(5);
|
||
|
public List<Integer> e = new ArrayList(7);
|
||
|
public float f = BitmapDescriptorFactory.HUE_RED;
|
||
|
private static final byte[] $$a = {CVCAFile.CAR_TAG, 74, -6, Ascii.DEL};
|
||
|
private static final int $$b = CipherSuite.TLS_PSK_WITH_NULL_SHA256;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int h = 0;
|
||
|
private static int i = 1;
|
||
|
private static long g = 362061901472835008L;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class a implements Runnable {
|
||
|
public final AuroraView a;
|
||
|
public final Integer b;
|
||
|
|
||
|
public a(e eVar, AuroraView auroraView, Integer num) {
|
||
|
this.a = auroraView;
|
||
|
this.b = num;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public void run() {
|
||
|
AuroraView auroraView = this.a;
|
||
|
if (auroraView != null) {
|
||
|
auroraView.setAuroraViewColor(this.b.intValue());
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002c). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void k(byte r6, short r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r6 = r6 * 2
|
||
|
int r6 = r6 + 4
|
||
|
int r8 = r8 * 2
|
||
|
int r8 = r8 + 119
|
||
|
byte[] r0 = com.pingan.ai.e.$$a
|
||
|
int r7 = r7 * 3
|
||
|
int r1 = r7 + 1
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L17
|
||
|
r8 = r6
|
||
|
r4 = r7
|
||
|
r3 = r2
|
||
|
goto L2c
|
||
|
L17:
|
||
|
r3 = r2
|
||
|
r5 = r8
|
||
|
r8 = r6
|
||
|
r6 = r5
|
||
|
L1b:
|
||
|
byte r4 = (byte) r6
|
||
|
r1[r3] = r4
|
||
|
if (r3 != r7) goto L28
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L28:
|
||
|
int r3 = r3 + 1
|
||
|
r4 = r0[r8]
|
||
|
L2c:
|
||
|
int r6 = r6 + r4
|
||
|
int r8 = r8 + 1
|
||
|
goto L1b
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.pingan.ai.e.k(byte, short, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
public native float a(PreviewFrame previewFrame, Context context);
|
||
|
|
||
|
public native void a(PreviewFrame previewFrame, float[] fArr, AuroraView auroraView);
|
||
|
|
||
|
private static void j(char[] cArr, int i2, Object[] objArr) {
|
||
|
int i3 = 2 % 2;
|
||
|
GuL guL = new GuL();
|
||
|
char[] a2 = GuL.a(g ^ (-7538262848231253921L), cArr, i2);
|
||
|
guL.a = 4;
|
||
|
int i4 = $10 + 9;
|
||
|
while (true) {
|
||
|
$11 = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
if (guL.a >= a2.length) {
|
||
|
objArr[0] = new String(a2, 4, a2.length - 4);
|
||
|
return;
|
||
|
}
|
||
|
int i6 = $10 + 125;
|
||
|
$11 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
guL.c = guL.a - 4;
|
||
|
int i8 = guL.a;
|
||
|
try {
|
||
|
Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(g)};
|
||
|
Object obj = xzZ.y.get(428080616);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(209 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 1706));
|
||
|
byte b = (byte) 0;
|
||
|
byte b2 = b;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
k(b, b2, b2, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
|
||
|
xzZ.y.put(428080616, obj);
|
||
|
}
|
||
|
a2[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
Object[] objArr4 = {guL, guL};
|
||
|
Object obj2 = xzZ.y.get(-1875914398);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(392 - Color.alpha(0), (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 4, (char) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
|
||
|
byte b3 = (byte) 0;
|
||
|
byte b4 = b3;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
k(b3, b4, (byte) (b4 + 1), objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1875914398, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(null, objArr4);
|
||
|
i4 = $10 + 11;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void c() {
|
||
|
int i2 = 2 % 2;
|
||
|
this.a.clear();
|
||
|
this.b.clear();
|
||
|
int i3 = 0;
|
||
|
while (true) {
|
||
|
byte[] bArr = this.c;
|
||
|
if (i3 >= bArr.length) {
|
||
|
break;
|
||
|
}
|
||
|
int i4 = h;
|
||
|
int i5 = i4 + 113;
|
||
|
i = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
bArr[i3] = 1;
|
||
|
i3 += 120;
|
||
|
} else {
|
||
|
bArr[i3] = 0;
|
||
|
i3++;
|
||
|
}
|
||
|
int i6 = i4 + 53;
|
||
|
i = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
}
|
||
|
this.f = BitmapDescriptorFactory.HUE_RED;
|
||
|
this.e.clear();
|
||
|
this.e.add(-65536);
|
||
|
this.e.add(-16711936);
|
||
|
this.e.add(-16776961);
|
||
|
this.e.add(-256);
|
||
|
Collections.shuffle(this.e);
|
||
|
List<Integer> list = this.e;
|
||
|
list.add(list.get(2));
|
||
|
List<Integer> list2 = this.e;
|
||
|
list2.add(list2.get(3));
|
||
|
this.e.add(0, 0);
|
||
|
this.d.clear();
|
||
|
this.d.append(0, 0);
|
||
|
this.d.append(1, -65536);
|
||
|
this.d.append(2, -16711936);
|
||
|
this.d.append(3, -16776961);
|
||
|
this.d.append(4, -256);
|
||
|
int i8 = h + 51;
|
||
|
i = i8 % 128;
|
||
|
if (i8 % 2 != 0) {
|
||
|
return;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public final Integer b() {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = h + 123;
|
||
|
i = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
if (this.e.size() == 0) {
|
||
|
int i5 = i + 81;
|
||
|
h = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
return null;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
Integer remove = this.e.remove(0);
|
||
|
int size = 6 - this.e.size();
|
||
|
this.c[size] = (byte) this.d.indexOfValue(remove.intValue());
|
||
|
StringBuilder sb = new StringBuilder("indexAndColor, index=");
|
||
|
sb.append(size);
|
||
|
sb.append(", color=");
|
||
|
sb.append(a(remove));
|
||
|
sb.append(", codes=");
|
||
|
sb.append((int) this.c[size]);
|
||
|
PaFaceLogger.error(sb.toString());
|
||
|
return remove;
|
||
|
}
|
||
|
|
||
|
public boolean a() {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = i + 45;
|
||
|
h = i3 % 128;
|
||
|
boolean z = i3 % 2 == 0 ? this.a.size() == 7 : this.a.size() == 76;
|
||
|
int i4 = h + 57;
|
||
|
i = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return z;
|
||
|
}
|
||
|
|
||
|
public final String a(Integer num) {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = h + 71;
|
||
|
i = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
if (num != null) {
|
||
|
if (num.intValue() == 0) {
|
||
|
return "normal";
|
||
|
}
|
||
|
if (num.intValue() == -65536) {
|
||
|
int i5 = i + 97;
|
||
|
h = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return "red";
|
||
|
}
|
||
|
if (num.intValue() == -16711936) {
|
||
|
return "green";
|
||
|
}
|
||
|
Object obj = null;
|
||
|
if (num.intValue() == -16776961) {
|
||
|
int i7 = i + 39;
|
||
|
h = i7 % 128;
|
||
|
if (i7 % 2 == 0) {
|
||
|
return "blue";
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
if (num.intValue() == -256) {
|
||
|
int i8 = i + 123;
|
||
|
h = i8 % 128;
|
||
|
if (i8 % 2 == 0) {
|
||
|
return "yellow";
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
Object[] objArr = new Object[1];
|
||
|
j(new char[]{41459, 39217, 63047, 19039, 41373, 58587, 3349, 13038}, (ViewConfiguration.getEdgeSlop() >> 16) + 1, objArr);
|
||
|
return ((String) objArr[0]).intern();
|
||
|
}
|
||
|
}
|