157 lines
4.4 KiB
Java
157 lines
4.4 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.Comparator;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* renamed from: o.rp, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C16852rp extends C16157lj {
|
||
|
public final C16965sn a;
|
||
|
public final RtP b;
|
||
|
public String d;
|
||
|
private final C16746qs j;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C16852rp(Resources resources, SharedPreferences sharedPreferences, RtP rtP, C16746qs c16746qs, C16965sn c16965sn) {
|
||
|
super(resources, sharedPreferences);
|
||
|
C14957gcv.e(resources, "");
|
||
|
C14957gcv.e(sharedPreferences, "");
|
||
|
C14957gcv.e(rtP, "");
|
||
|
C14957gcv.e(c16746qs, "");
|
||
|
C14957gcv.e(c16965sn, "");
|
||
|
this.b = rtP;
|
||
|
this.j = c16746qs;
|
||
|
this.a = c16965sn;
|
||
|
this.d = "";
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rp$HBt */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class HBt<T> implements Comparator {
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // java.util.Comparator
|
||
|
public final int compare(T t, T t2) {
|
||
|
Integer num = ((JPY) t).b;
|
||
|
Integer num2 = ((JPY) t2).b;
|
||
|
if (num == num2) {
|
||
|
return 0;
|
||
|
}
|
||
|
if (num == null) {
|
||
|
return -1;
|
||
|
}
|
||
|
if (num2 == null) {
|
||
|
return 1;
|
||
|
}
|
||
|
return num.compareTo(num2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final KW c(SaB saB) {
|
||
|
String str = saB.e;
|
||
|
List<VtH> list = saB.c;
|
||
|
C14957gcv.e(list, "");
|
||
|
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
|
||
|
Iterator<T> it = list.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
arrayList.add(a((VtH) it.next()));
|
||
|
}
|
||
|
return new KW(Boolean.TRUE, str, C14881gav.d((Iterable) arrayList));
|
||
|
}
|
||
|
|
||
|
private final KQ a(VtH vtH) {
|
||
|
WW e = e(new KQ(this.j.e(this.d, vtH.h)), vtH);
|
||
|
C14957gcv.d(e, "");
|
||
|
return (KQ) e;
|
||
|
}
|
||
|
|
||
|
public static KV k(String str) {
|
||
|
return new KV(str);
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rp$RVV */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static final class RVV {
|
||
|
private RVV() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ RVV(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static void e(List<KY> list, PpS ppS) {
|
||
|
List<String> list2 = ppS.b;
|
||
|
C14957gcv.e(list2, "");
|
||
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
||
|
Iterator<T> it = list2.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
arrayList.add(Boolean.valueOf(list.add(new KX((String) it.next()))));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static KP d(KW kw) {
|
||
|
return new KP(null, kw.e.get(0).a, 1);
|
||
|
}
|
||
|
|
||
|
public final WW e(WW ww, C0586KHg c0586KHg) {
|
||
|
String str;
|
||
|
if (c0586KHg.a.length() == 0) {
|
||
|
str = c0586KHg.e;
|
||
|
} else {
|
||
|
str = c0586KHg.a;
|
||
|
}
|
||
|
ww.x = str;
|
||
|
ww.i = c0586KHg.b;
|
||
|
ww.h = c0586KHg.d;
|
||
|
ww.t = c0586KHg.c;
|
||
|
ww.s = C6583cXR.b(c0586KHg.c, this.b.c.T());
|
||
|
C14957gcv.c(ww, "");
|
||
|
return ww;
|
||
|
}
|
||
|
|
||
|
public static String d(PpS ppS) {
|
||
|
return ppS.e;
|
||
|
}
|
||
|
|
||
|
public static C0638Ld a(Ptk ptk, List<String> list) {
|
||
|
int indexOf = list.indexOf(ptk.c);
|
||
|
String str = ptk.c;
|
||
|
if (indexOf < 0) {
|
||
|
indexOf = 0;
|
||
|
}
|
||
|
return new C0638Ld(Boolean.TRUE, str, indexOf, ptk.b);
|
||
|
}
|
||
|
|
||
|
public static List<String> b(Lul lul) {
|
||
|
C14957gcv.e(lul, "");
|
||
|
List a = C14881gav.a((Iterable) lul.a, (Comparator) new HBt());
|
||
|
C14957gcv.e(a, "");
|
||
|
ArrayList arrayList = new ArrayList(a instanceof Collection ? a.size() : 10);
|
||
|
Iterator it = a.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
String str = ((JPY) it.next()).d;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
arrayList.add(str);
|
||
|
}
|
||
|
ArrayList arrayList2 = new ArrayList();
|
||
|
for (Object obj : arrayList) {
|
||
|
if (((String) obj).length() > 0) {
|
||
|
arrayList2.add(obj);
|
||
|
}
|
||
|
}
|
||
|
return arrayList2;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new RVV((byte) 0);
|
||
|
}
|
||
|
}
|