package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.List; import o.C15715hv; import o.PRA; /* renamed from: o.pY, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16587pY extends C16157lj { /* JADX INFO: Access modifiers changed from: package-private */ @InterfaceC13391fZD public C16587pY(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } public final List c(List list, final boolean z) { if (list == null) { list = new ArrayList<>(); } YKU yku = new YKU(list); return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, z) { // from class: o.qe private boolean c; private C16587pY d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C16587pY.c(this.d, this.c, (XCj) obj); } { this.d = this; this.c = z; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } public static JC b(wXR wxr) { JC e = JC.e(); e.d = wxr.b; e.i = wxr.e; return e; } public static /* synthetic */ JC c(C16587pY c16587pY, boolean z, XCj xCj) { String format; String e = c16587pY.e(z ? C15715hv.tOB.device_added : C15715hv.tOB.review_device_added_on); if (xCj.c) { format = String.format(c16587pY.e(C15715hv.tOB.three_words), e, c16587pY.a(xCj.i), c16587pY.e(C15715hv.tOB.this_device)); } else { format = String.format(c16587pY.e(C15715hv.tOB.two_words), e, c16587pY.a(xCj.i)); } JC e2 = JC.e(); e2.b = xCj.a; e2.h = xCj.h; e2.f = xCj.f; e2.j = xCj.j; e2.i = xCj.g; e2.d = xCj.d; e2.a = xCj.b; e2.g = format; e2.c = xCj.c; return e2; } }