154 lines
5.6 KiB
Java
154 lines
5.6 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import o.oKp;
|
|
|
|
/* renamed from: o.sno, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
public class C16967sno extends AbstractC12322evy {
|
|
private static final Map<String, AbstractC12322evy> a = new HashMap();
|
|
private static List<kLX> d;
|
|
private static String e;
|
|
private final InterfaceC8452dLk b;
|
|
private final C16257mjt c;
|
|
private final C16257mjt g;
|
|
|
|
private C16967sno(InterfaceC8452dLk interfaceC8452dLk) {
|
|
this.b = interfaceC8452dLk;
|
|
this.c = new C16257mjt(d, interfaceC8452dLk.c());
|
|
C16257mjt c16257mjt = new C16257mjt(null, interfaceC8452dLk.c());
|
|
this.g = c16257mjt;
|
|
if (interfaceC8452dLk instanceof Sal) {
|
|
List<kLX> list = ((Sal) interfaceC8452dLk).a;
|
|
interfaceC8452dLk.c();
|
|
c16257mjt.a(list);
|
|
}
|
|
}
|
|
|
|
public static void e(Context context) {
|
|
synchronized (C16967sno.class) {
|
|
if (a.size() > 0) {
|
|
return;
|
|
}
|
|
lVh a2 = lVh.a(context);
|
|
synchronized (C16967sno.class) {
|
|
Context applicationContext = context.getApplicationContext();
|
|
if (applicationContext != null) {
|
|
context = applicationContext;
|
|
}
|
|
oKp.d("/agcgw/url", new oKp.Sts() { // from class: o.sno.1
|
|
@Override // o.oKp.Sts
|
|
public final String a(InterfaceC8452dLk interfaceC8452dLk) {
|
|
String str;
|
|
if (interfaceC8452dLk.b().equals(PoK.a)) {
|
|
str = "/agcgw_all/CN";
|
|
} else if (interfaceC8452dLk.b().equals(PoK.e)) {
|
|
str = "/agcgw_all/RU";
|
|
} else if (interfaceC8452dLk.b().equals(PoK.c)) {
|
|
str = "/agcgw_all/DE";
|
|
} else {
|
|
if (!interfaceC8452dLk.b().equals(PoK.d)) {
|
|
return null;
|
|
}
|
|
str = "/agcgw_all/SG";
|
|
}
|
|
return interfaceC8452dLk.d(str);
|
|
}
|
|
});
|
|
oKp.d("/agcgw/backurl", new oKp.Sts() { // from class: o.sno.4
|
|
@Override // o.oKp.Sts
|
|
public final String a(InterfaceC8452dLk interfaceC8452dLk) {
|
|
String str;
|
|
if (interfaceC8452dLk.b().equals(PoK.a)) {
|
|
str = "/agcgw_all/CN_back";
|
|
} else if (interfaceC8452dLk.b().equals(PoK.e)) {
|
|
str = "/agcgw_all/RU_back";
|
|
} else if (interfaceC8452dLk.b().equals(PoK.c)) {
|
|
str = "/agcgw_all/DE_back";
|
|
} else {
|
|
if (!interfaceC8452dLk.b().equals(PoK.d)) {
|
|
return null;
|
|
}
|
|
str = "/agcgw_all/SG_back";
|
|
}
|
|
return interfaceC8452dLk.d(str);
|
|
}
|
|
});
|
|
if (d == null) {
|
|
Zck zck = new Zck(context);
|
|
List<String> a3 = zck.a();
|
|
ArrayList arrayList = new ArrayList();
|
|
Iterator<String> it = a3.iterator();
|
|
while (it.hasNext()) {
|
|
InterfaceC1159WyQ d2 = Zck.d(it.next());
|
|
if (d2 != null) {
|
|
Context context2 = zck.c;
|
|
Context context3 = zck.c;
|
|
List<kLX> e2 = d2.e();
|
|
if (e2 != null) {
|
|
arrayList.addAll(e2);
|
|
}
|
|
}
|
|
}
|
|
arrayList.size();
|
|
d = arrayList;
|
|
}
|
|
c(a2, true);
|
|
e = a2.e();
|
|
bCL.c();
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.AbstractC12322evy
|
|
public final InterfaceC8452dLk b() {
|
|
return this.b;
|
|
}
|
|
|
|
@Override // o.AbstractC12322evy
|
|
public final Context d() {
|
|
return this.b.c();
|
|
}
|
|
|
|
private static AbstractC12322evy c(String str) {
|
|
AbstractC12322evy abstractC12322evy;
|
|
synchronized (C16967sno.class) {
|
|
abstractC12322evy = a.get(str);
|
|
if (abstractC12322evy == null) {
|
|
"DEFAULT_INSTANCE".equals(str);
|
|
}
|
|
}
|
|
return abstractC12322evy;
|
|
}
|
|
|
|
private static AbstractC12322evy c(InterfaceC8452dLk interfaceC8452dLk, boolean z) {
|
|
AbstractC12322evy abstractC12322evy;
|
|
synchronized (C16967sno.class) {
|
|
Map<String, AbstractC12322evy> map = a;
|
|
abstractC12322evy = map.get(interfaceC8452dLk.e());
|
|
if (abstractC12322evy == null || z) {
|
|
abstractC12322evy = new C16967sno(interfaceC8452dLk);
|
|
map.put(interfaceC8452dLk.e(), abstractC12322evy);
|
|
}
|
|
}
|
|
return abstractC12322evy;
|
|
}
|
|
|
|
public static AbstractC12322evy a(InterfaceC8452dLk interfaceC8452dLk) {
|
|
return c(interfaceC8452dLk, false);
|
|
}
|
|
|
|
public static AbstractC12322evy c() {
|
|
String str = e;
|
|
if (str == null) {
|
|
str = "DEFAULT_INSTANCE";
|
|
}
|
|
return c(str);
|
|
}
|
|
}
|