what-the-bank/sources/com/pingan/ai/a.java

70 lines
2.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.pingan.ai;
import android.content.Context;
import android.os.AsyncTask;
import com.pingan.ai.face.control.LiveFaceConfig;
import com.pingan.ai.face.entity.PaFaceDetectFrame;
import com.pingan.ai.face.utils.PaFaceLogger;
import java.io.File;
/* loaded from: classes3.dex */
public class a {
public String a;
public StringBuilder b;
public native void a(String str, String str2, LiveFaceConfig liveFaceConfig);
public StringBuilder b() {
if (this.b == null) {
this.b = new StringBuilder();
}
return this.b;
}
public void a(Context context) {
File externalFilesDir = context.getExternalFilesDir(null);
StringBuilder sb = new StringBuilder("PAFaceSDK");
sb.append(File.separator);
sb.append("logs");
File file = new File(externalFilesDir, sb.toString());
if (!file.exists()) {
PaFaceLogger.i("sdkRootPath.mkdirs suc: ".concat(String.valueOf(file.mkdirs())));
}
this.a = file.getAbsolutePath();
StringBuilder sb2 = new StringBuilder("debug log dir: ");
sb2.append(this.a);
PaFaceLogger.i(sb2.toString());
}
public String a() {
return this.a;
}
/* renamed from: com.pingan.ai.a$a, reason: collision with other inner class name */
/* loaded from: classes3.dex */
public static class C0067a {
public static final a a = new a();
}
/* loaded from: classes3.dex */
public static class b extends AsyncTask<PaFaceDetectFrame, Integer, Object> {
public String a;
public String b;
public LiveFaceConfig c;
@Override // android.os.AsyncTask
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public native Object doInBackground(PaFaceDetectFrame... paFaceDetectFrameArr);
public b(String str, String str2, LiveFaceConfig liveFaceConfig) {
this.a = str;
this.b = str2;
this.c = liveFaceConfig;
}
}
public static a c() {
return C0067a.a;
}
}