what-the-bank/sources/com/huawei/hms/hatool/j.java

118 lines
2.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hatool;
import android.content.Context;
import android.text.TextUtils;
import android.util.Pair;
import java.util.UUID;
import o.yyw;
/* loaded from: classes2.dex */
public class j {
private static j b;
private Context a;
public String f(String str, String str2) {
return f1.a(str, str2);
}
public Pair<String, String> e(String str, String str2) {
if (!z.f(str, str2)) {
return new Pair<>("", "");
}
String p = s.c().b().p();
String q = s.c().b().q();
if (!TextUtils.isEmpty(p) && !TextUtils.isEmpty(q)) {
return new Pair<>(p, q);
}
Pair<String, String> e = x0.e(this.a);
s.c().b().k((String) e.first);
s.c().b().l((String) e.second);
return e;
}
public String d(String str, String str2) {
return f1.b(str, str2);
}
/* loaded from: classes2.dex */
static class a extends e0 {
String a;
String b;
@Override // com.huawei.hms.hatool.e0
public int d() {
return (z.k(this.a, this.b) ? 4 : 0) | (z.e(this.a, this.b) ? 2 : 0) | (z.h(this.a, this.b) ? 1 : 0);
}
@Override // com.huawei.hms.hatool.e0
public String c() {
return z.j(this.a, this.b);
}
@Override // com.huawei.hms.hatool.e0
public String b() {
return z.g(this.a, this.b);
}
@Override // com.huawei.hms.hatool.e0
public String a(String str) {
return yyw.e(str);
}
@Override // com.huawei.hms.hatool.e0
public String a() {
return z.d(this.a, this.b);
}
public a(String str, String str2) {
this.a = str;
this.b = str2;
}
}
public i c(String str, String str2) {
return new a(str, str2).a(this.a);
}
public String b(String str, String str2) {
return i0.b(this.a, str, str2);
}
public void a(Context context) {
if (this.a == null) {
this.a = context;
}
}
public String a(boolean z) {
if (!z) {
return "";
}
String e = q0.e();
if (TextUtils.isEmpty(e)) {
e = d.a(this.a, "global_v2", "uuid", "");
if (TextUtils.isEmpty(e)) {
e = UUID.randomUUID().toString().replace("-", "");
d.b(this.a, "global_v2", "uuid", e);
}
q0.h(e);
}
return e;
}
public String a(String str, String str2) {
return i0.a(this.a, str, str2);
}
public static j a() {
j jVar;
synchronized (j.class) {
if (b == null) {
b = new j();
}
jVar = b;
}
return jVar;
}
}