package o;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.os.Build;
import android.text.Spanned;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.TextView;
import android.window.BackEvent;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.f00, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC1155f00 {
    public static final float[][] a = {new float[]{0.401288f, 0.650173f, -0.051461f}, new float[]{-0.250268f, 1.204414f, 0.045854f}, new float[]{-0.002079f, 0.048952f, 0.953127f}};
    public static final float[][] b = {new float[]{1.8620678f, -1.0112547f, 0.14918678f}, new float[]{0.38752654f, 0.62144744f, -0.00897398f}, new float[]{-0.0158415f, -0.03412294f, 1.0499644f}};
    public static final float[] c = {95.047f, 100.0f, 108.883f};
    public static final float[][] d = {new float[]{0.41233894f, 0.35762063f, 0.18051042f}, new float[]{0.2126f, 0.7152f, 0.0722f}, new float[]{0.01932141f, 0.11916382f, 0.9503448f}};
    public static final J7 e = new J7(20);
    public static final BP f = new BP(6);
    public static final C2943xq g = new C2943xq("NO_THREAD_ELEMENTS", 4);
    public static final C2494t40 h = new C2494t40(24);
    public static final C2494t40 i = new C2494t40(25);
    public static final C2494t40 j = new C2494t40(26);
    public static CG k = null;
    public static CG l = null;
    public static CG m = null;
    public static boolean n = true;

    public static void A(C2730ve0 c2730ve0, C3013yd0 c3013yd0, Ne0 ne0, InterfaceC1184fK interfaceC1184fK, Ie0 ie0, boolean z, InterfaceC1955nT interfaceC1955nT) {
        if (z) {
            int iP = interfaceC1955nT.p(Ue0.e(c2730ve0.b));
            String str = Hd0.a;
            T00 t00B = iP < ne0.a.a.m.length() ? ne0.b(iP) : iP != 0 ? ne0.b(iP - 1) : new T00(0.0f, 0.0f, 1.0f, (int) (new C1470iI(Hd0.a(c3013yd0.b, c3013yd0.g, c3013yd0.h, Hd0.a, 1)).a & 4294967295L));
            float f2 = t00B.b;
            float f3 = t00B.a;
            long jL = interfaceC1184fK.L((Float.floatToRawIntBits(f3) << 32) | (Float.floatToRawIntBits(f2) & 4294967295L));
            T00 t00F = AbstractC2001nt0.f((Float.floatToRawIntBits(Float.intBitsToFloat((int) (jL & 4294967295L))) & 4294967295L) | (Float.floatToRawIntBits(Float.intBitsToFloat((int) (jL >> 32))) << 32), (Float.floatToRawIntBits(t00B.c - f3) << 32) | (Float.floatToRawIntBits(t00B.d - f2) & 4294967295L));
            if (F3.c((Ie0) ie0.a.b.get(), ie0)) {
                ie0.b.c(t00F);
            }
        }
    }

    public static void B(InputConnection inputConnection, EditorInfo editorInfo, TextView textView) {
        if (inputConnection == null || editorInfo.hintText != null) {
            return;
        }
        for (ViewParent parent = textView.getParent(); parent instanceof View; parent = parent.getParent()) {
        }
    }

    public static final void C(InterfaceC2747vn interfaceC2747vn, Object obj) {
        if (obj == g) {
            return;
        }
        if (!(obj instanceof C1973nf0)) {
            AbstractC2462sn.s(interfaceC2747vn.R(null, i));
            throw null;
        }
        C1973nf0 c1973nf0 = (C1973nf0) obj;
        InterfaceC1593jf0[] interfaceC1593jf0Arr = c1973nf0.b;
        int length = interfaceC1593jf0Arr.length - 1;
        if (length < 0) {
            return;
        }
        InterfaceC1593jf0 interfaceC1593jf0 = interfaceC1593jf0Arr[length];
        Object obj2 = c1973nf0.a[length];
        throw null;
    }

    public static final Z5 D(C1166f6 c1166f6, int i2) {
        Object next;
        Iterator<T> it = c1166f6.getLayoutNodeToHolder().entrySet().iterator();
        while (true) {
            if (!it.hasNext()) {
                next = null;
                break;
            }
            next = it.next();
            if (((C2420sK) ((Map.Entry) next).getKey()).m == i2) {
                break;
            }
        }
        Map.Entry entry = (Map.Entry) next;
        if (entry != null) {
            return (Z5) entry.getValue();
        }
        return null;
    }

    public static void E(ViewGroup viewGroup, boolean z) {
        if (Build.VERSION.SDK_INT >= 29) {
            Vj0.b(viewGroup, z);
        } else if (n) {
            try {
                Vj0.b(viewGroup, z);
            } catch (NoSuchMethodError unused) {
                n = false;
            }
        }
    }

    public static final Vm0 F(C1565jJ c1565jJ, L60 l60) {
        AbstractC2841wm0 abstractC2841wm0C = l60.c();
        if (abstractC2841wm0C instanceof PX) {
            return Vm0.q;
        }
        if (F3.c(abstractC2841wm0C, C1585jb0.v)) {
            return Vm0.f386o;
        }
        if (!F3.c(abstractC2841wm0C, C1585jb0.w)) {
            return Vm0.n;
        }
        L60 l60L = l(l60.j(0), c1565jJ.b);
        AbstractC2841wm0 abstractC2841wm0C2 = l60L.c();
        if ((abstractC2841wm0C2 instanceof EY) || F3.c(abstractC2841wm0C2, N60.v)) {
            return Vm0.p;
        }
        c1565jJ.a.getClass();
        throw AbstractC0249Jp.d(l60L);
    }

    public static final String G(int i2) {
        if (i2 == 0) {
            return "android.widget.Button";
        }
        if (i2 == 1) {
            return "android.widget.CheckBox";
        }
        if (i2 == 3) {
            return "android.widget.RadioButton";
        }
        if (i2 == 5) {
            return "android.widget.ImageView";
        }
        if (i2 == 6) {
            return "android.widget.Spinner";
        }
        if (i2 == 7) {
            return "android.widget.NumberPicker";
        }
        return null;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r0v0, types: [o.Eu0, o.h00] */
    /* JADX WARN: Type inference failed for: r7v0, types: [java.lang.Integer] */
    /* JADX WARN: Type inference failed for: r7v1, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r7v3 */
    /* JADX WARN: Type inference failed for: r7v4 */
    /* JADX WARN: Type inference failed for: r7v5 */
    public static final ArrayList H(C0982d90 c0982d90, int i2, Integer num) {
        ?? c1347h00 = new C1347h00(c0982d90);
        int iQ = c0982d90.q(i2);
        G2 g2A = c0982d90.a(i2);
        while (i2 >= 0) {
            c1347h00.k(c0982d90.a.f(i2), num);
            if (iQ >= 0) {
                G2 g2 = g2A;
                g2A = c0982d90.a(iQ);
                i2 = iQ;
                iQ = c0982d90.q(iQ);
                num = g2;
            } else {
                i2 = iQ;
                num = g2A;
            }
        }
        return (ArrayList) c1347h00.a;
    }

    public static final Object I(InterfaceC2747vn interfaceC2747vn, Object obj) {
        if (obj == null) {
            obj = interfaceC2747vn.R(0, h);
        }
        if (obj == 0) {
            return g;
        }
        if (obj instanceof Integer) {
            return interfaceC2747vn.R(new C1973nf0(((Number) obj).intValue(), interfaceC2747vn), j);
        }
        AbstractC2462sn.s(obj);
        throw null;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:114:0x017b  */
    /* JADX WARN: Removed duplicated region for block: B:122:0x0193  */
    /* JADX WARN: Removed duplicated region for block: B:125:0x01a5 A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:152:0x01eb  */
    /* JADX WARN: Removed duplicated region for block: B:156:0x01f7  */
    /* JADX WARN: Removed duplicated region for block: B:157:0x01fb  */
    /* JADX WARN: Removed duplicated region for block: B:235:0x02ac  */
    /* JADX WARN: Removed duplicated region for block: B:244:0x02c2 A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:246:0x02c6  */
    /* JADX WARN: Removed duplicated region for block: B:257:0x0148 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0070  */
    /* JADX WARN: Removed duplicated region for block: B:297:0x01ac A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:298:0x00e1 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:84:0x0130  */
    /* JADX WARN: Type inference failed for: r7v2 */
    /* JADX WARN: Type inference failed for: r7v22, types: [java.io.ByteArrayOutputStream, java.io.OutputStream] */
    /* JADX WARN: Type inference failed for: r7v23, types: [int] */
    /* JADX WARN: Type inference failed for: r7v24 */
    /* JADX WARN: Type inference failed for: r7v3, types: [java.io.FileInputStream, java.io.InputStream] */
    /* JADX WARN: Type inference failed for: r7v30 */
    /* JADX WARN: Type inference failed for: r7v4 */
    /* JADX WARN: Type inference failed for: r7v42 */
    /* JADX WARN: Type inference failed for: r7v43 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static void J(android.content.Context r18, java.util.concurrent.Executor r19, o.InterfaceC0912cZ r20, boolean r21) throws android.content.pm.PackageManager.NameNotFoundException, java.io.IOException {
        /*
            Method dump skipped, instructions count: 724
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC1155f00.J(android.content.Context, java.util.concurrent.Executor, o.cZ, boolean):void");
    }

    public static float K() {
        return ((float) Math.pow((50.0f + 16.0d) / 116.0d, 3.0d)) * 100.0f;
    }

    public static final C1875me a(float f2, long j2) {
        return new C1875me(f2, new Q90(j2));
    }

    public static final long b(float f2, float f3) {
        return (Float.floatToRawIntBits(f3) & 4294967295L) | (Float.floatToRawIntBits(f2) << 32);
    }

    public static final long c(int i2) {
        long j2 = (i2 << 32) | (0 & 4294967295L);
        int i3 = FJ.p;
        return j2;
    }

    public static final C2712vR d(BackEvent backEvent) {
        float touchX = backEvent.getTouchX();
        float touchY = backEvent.getTouchY();
        return new C2712vR(backEvent.getSwipeEdge(), backEvent.getProgress(), touchX, touchY, Build.VERSION.SDK_INT >= 36 ? backEvent.getFrameTimeMillis() : 0L);
    }

    public static final C2018o30 e(float f2, float f3, float f4, float f5, long j2) {
        float fIntBitsToFloat = Float.intBitsToFloat((int) (j2 >> 32));
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (j2 & 4294967295L));
        long jFloatToRawIntBits = (Float.floatToRawIntBits(fIntBitsToFloat) << 32) | (4294967295L & Float.floatToRawIntBits(fIntBitsToFloat2));
        return new C2018o30(f2, f3, f4, f5, jFloatToRawIntBits, jFloatToRawIntBits, jFloatToRawIntBits, jFloatToRawIntBits);
    }

    public static final Object[] f(Object[] objArr, int i2, Object obj, Object obj2) {
        Object[] objArr2 = new Object[objArr.length + 2];
        AbstractC2219q9.M(0, i2, 6, objArr, objArr2);
        AbstractC2219q9.J(i2 + 2, i2, objArr.length, objArr, objArr2);
        objArr2[i2] = obj;
        objArr2[i2 + 1] = obj2;
        return objArr2;
    }

    public static final Object[] g(int i2, Object[] objArr) {
        Object[] objArr2 = new Object[objArr.length - 2];
        AbstractC2219q9.M(0, i2, 6, objArr, objArr2);
        AbstractC2219q9.J(i2, i2 + 2, objArr.length, objArr, objArr2);
        return objArr2;
    }

    public static final Object[] h(int i2, Object[] objArr) {
        Object[] objArr2 = new Object[objArr.length - 1];
        AbstractC2219q9.M(0, i2, 6, objArr, objArr2);
        AbstractC2219q9.J(i2, i2 + 1, objArr.length, objArr, objArr2);
        return objArr2;
    }

    public static final MP i(MP mp, float f2) {
        return f2 == 1.0f ? mp : androidx.compose.ui.graphics.a.c(mp, 0.0f, 0.0f, f2, null, 520187);
    }

    public static int j(C3111zf c3111zf, boolean z) {
        int i2 = c3111zf.m;
        int i3 = c3111zf.n;
        int i4 = z ? i3 : i2;
        if (!z) {
            i2 = i3;
        }
        byte[][] bArr = (byte[][]) c3111zf.f826o;
        int i5 = 0;
        for (int i6 = 0; i6 < i4; i6++) {
            byte b2 = -1;
            int i7 = 0;
            for (int i8 = 0; i8 < i2; i8++) {
                byte b3 = z ? bArr[i6][i8] : bArr[i8][i6];
                if (b3 == b2) {
                    i7++;
                } else {
                    if (i7 >= 5) {
                        i5 += i7 - 2;
                    }
                    i7 = 1;
                    b2 = b3;
                }
            }
            if (i7 >= 5) {
                i5 = (i7 - 2) + i5;
            }
        }
        return i5;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r0v2, types: [o.Eu0, o.h00] */
    /* JADX WARN: Type inference failed for: r5v0, types: [java.lang.Integer] */
    /* JADX WARN: Type inference failed for: r5v1 */
    /* JADX WARN: Type inference failed for: r5v2, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r5v3, types: [o.G2] */
    /* JADX WARN: Type inference failed for: r5v7, types: [java.lang.Integer] */
    public static final List k(C1365h90 c1365h90, Integer num, int i2, Integer num2) {
        int iC;
        UQ uq;
        if (c1365h90.w || c1365h90.o() == 0) {
            return C0332Mv.l;
        }
        ?? c1347h00 = new C1347h00(c1365h90);
        if (num2 != null) {
            iC = num2.intValue();
        } else {
            iC = c1365h90.v;
            if (iC < 0) {
                iC = c1365h90.C(c1365h90.b, i2);
            }
        }
        if (num == 0) {
            int iL = c1365h90.i - c1365h90.L(c1365h90.b, c1365h90.q(i2));
            IQ iq = c1365h90.s;
            num = Integer.valueOf(iL + ((iq == null || (uq = (UQ) iq.b(i2)) == null) ? 0 : uq.b));
        }
        while (i2 >= 0) {
            c1347h00.k(c1365h90.M(i2), num);
            num = c1365h90.b(i2);
            if (iC >= 0) {
                int i3 = iC;
                iC = c1365h90.C(c1365h90.b, iC);
                i2 = i3;
            } else {
                i2 = iC;
            }
        }
        return (ArrayList) c1347h00.a;
    }

    public static final L60 l(L60 l60, BP bp) {
        if (!F3.c(l60.c(), N60.u)) {
            return l60.f() ? l(l60.j(0), bp) : l60;
        }
        As0.D(l60);
        return l60;
    }

    public static final C2961y00 n(Context context) {
        C3126zm0 c3126zm0 = new C3126zm0(context, 18);
        Context context2 = (Context) c3126zm0.m;
        C2279qq c2279qq = (C2279qq) c3126zm0.n;
        C1014dc0 c1014dc0 = new C1014dc0(new C2701vG(c3126zm0, 0));
        C1014dc0 c1014dc02 = new C1014dc0(new C2701vG(c3126zm0, 1));
        C1014dc0 c1014dc03 = new C1014dc0(C0744al.w);
        C0332Mv c0332Mv = C0332Mv.l;
        return new C2961y00(context2, c2279qq, c1014dc0, c1014dc02, c1014dc03, new C0372Oj(c0332Mv, c0332Mv, c0332Mv, c0332Mv, c0332Mv), (J7) c3126zm0.f831o);
    }

    public static final Integer o(C0982d90 c0982d90, AbstractC0425Qk abstractC0425Qk, int i2, int i3) {
        Integer numO;
        int[] iArr = c0982d90.b;
        while (true) {
            if (i2 >= i3) {
                return null;
            }
            int i4 = iArr[(i2 * 5) + 3] + i2;
            if (c0982d90.j(i2) && c0982d90.i(i2) == 206 && F3.c(c0982d90.p(iArr, i2), AbstractC0373Ok.e)) {
                Object objH = c0982d90.h(i2, 0);
                C0218Ik c0218Ik = objH instanceof C0218Ik ? (C0218Ik) objH : null;
                if (c0218Ik != null && c0218Ik.l.equals(abstractC0425Qk)) {
                    return Integer.valueOf(i2);
                }
            }
            if (c0982d90.d(i2) && (numO = o(c0982d90, abstractC0425Qk, i2 + 1, i4)) != null) {
                return Integer.valueOf(numO.intValue());
            }
            i2 = i4;
        }
    }

    public static final CG p() {
        CG cg = k;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.Error", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(12.0f, 2.0f);
        ke.f(6.48f, 2.0f, 2.0f, 6.48f, 2.0f, 12.0f);
        ke.n(4.48f, 10.0f, 10.0f, 10.0f);
        ke.n(10.0f, -4.48f, 10.0f, -10.0f);
        ke.m(17.52f, 2.0f, 12.0f, 2.0f);
        ke.e();
        ke.l(13.0f, 17.0f);
        ke.i(-2.0f);
        ke.r(-2.0f);
        ke.i(2.0f);
        ke.r(2.0f);
        ke.e();
        ke.l(13.0f, 13.0f);
        ke.i(-2.0f);
        ke.j(11.0f, 7.0f);
        ke.i(2.0f);
        ke.r(6.0f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        k = cgB;
        return cgB;
    }

    public static final CG q() {
        CG cg = m;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.Payments", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(19.0f, 14.0f);
        ke.j(19.0f, 6.0f);
        ke.g(0.0f, -1.1f, -0.9f, -2.0f, -2.0f, -2.0f);
        ke.j(3.0f, 4.0f);
        ke.g(-1.1f, 0.0f, -2.0f, 0.9f, -2.0f, 2.0f);
        ke.r(8.0f);
        ke.g(0.0f, 1.1f, 0.9f, 2.0f, 2.0f, 2.0f);
        ke.i(14.0f);
        ke.g(1.1f, 0.0f, 2.0f, -0.9f, 2.0f, -2.0f);
        ke.e();
        ke.l(10.0f, 13.0f);
        ke.g(-1.66f, 0.0f, -3.0f, -1.34f, -3.0f, -3.0f);
        ke.n(1.34f, -3.0f, 3.0f, -3.0f);
        ke.n(3.0f, 1.34f, 3.0f, 3.0f);
        ke.n(-1.34f, 3.0f, -3.0f, 3.0f);
        ke.e();
        ke.l(23.0f, 7.0f);
        ke.r(11.0f);
        ke.g(0.0f, 1.1f, -0.9f, 2.0f, -2.0f, 2.0f);
        ke.j(4.0f, 20.0f);
        ke.r(-2.0f);
        ke.i(17.0f);
        ke.j(21.0f, 7.0f);
        ke.i(2.0f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        m = cgB;
        return cgB;
    }

    public static final int r(int i2, int i3, int i4) {
        if (i4 > 0) {
            if (i2 < i3) {
                int i5 = i3 % i4;
                if (i5 < 0) {
                    i5 += i4;
                }
                int i6 = i2 % i4;
                if (i6 < 0) {
                    i6 += i4;
                }
                int i7 = (i5 - i6) % i4;
                if (i7 < 0) {
                    i7 += i4;
                }
                return i3 - i7;
            }
        } else {
            if (i4 >= 0) {
                throw new IllegalArgumentException("Step is zero.");
            }
            if (i2 > i3) {
                int i8 = -i4;
                int i9 = i2 % i8;
                if (i9 < 0) {
                    i9 += i8;
                }
                int i10 = i3 % i8;
                if (i10 < 0) {
                    i10 += i8;
                }
                int i11 = (i9 - i10) % i8;
                if (i11 < 0) {
                    i11 += i8;
                }
                return i11 + i3;
            }
        }
        return i3;
    }

    public static final Ne0 s(N50 n50) {
        OC oc;
        ArrayList arrayList = new ArrayList();
        Object objG = n50.l.g(M50.a);
        if (objG == null) {
            objG = null;
        }
        C1726l0 c1726l0 = (C1726l0) objG;
        if (c1726l0 == null || (oc = (OC) c1726l0.b) == null || !((Boolean) oc.g(arrayList)).booleanValue()) {
            return null;
        }
        return (Ne0) arrayList.get(0);
    }

    public static final void t(Throwable th, InterfaceC2747vn interfaceC2747vn) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        try {
            InterfaceC2937xn interfaceC2937xn = (InterfaceC2937xn) interfaceC2747vn.m(C0669Zu.E);
            if (interfaceC2937xn != null) {
                interfaceC2937xn.g(th, interfaceC2747vn);
            } else {
                YT.A(th, interfaceC2747vn);
            }
        } catch (Throwable th2) {
            if (th != th2) {
                RuntimeException runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2);
                C80.i(runtimeException, th);
                th = runtimeException;
            }
            YT.A(th, interfaceC2747vn);
        }
    }

    public static final boolean u(Spanned spanned, Class cls) {
        return spanned.nextSpanTransition(-1, spanned.length(), cls) != spanned.length();
    }

    public static final int v(int i2, int i3) {
        return (i2 >> i3) & 31;
    }

    public static int w(float f2) {
        if (f2 < 1.0f) {
            return -16777216;
        }
        if (f2 > 99.0f) {
            return -1;
        }
        float f3 = (f2 + 16.0f) / 116.0f;
        float f4 = f2 > 8.0f ? f3 * f3 * f3 : f2 / 903.2963f;
        float f5 = f3 * f3 * f3;
        boolean z = f5 > 0.008856452f;
        float f6 = z ? f5 : ((f3 * 116.0f) - 16.0f) / 903.2963f;
        if (!z) {
            f5 = ((f3 * 116.0f) - 16.0f) / 903.2963f;
        }
        float[] fArr = c;
        return AbstractC0501Ti.a(f6 * fArr[0], f4 * fArr[1], f5 * fArr[2]);
    }

    public static final boolean x(C2018o30 c2018o30) {
        long j2 = c2018o30.e;
        return (j2 >>> 32) == (4294967295L & j2) && j2 == c2018o30.f && j2 == c2018o30.g && j2 == c2018o30.h;
    }

    public static float y(int i2) {
        float f2 = i2 / 255.0f;
        return (f2 <= 0.04045f ? f2 / 12.92f : (float) Math.pow((f2 + 0.055f) / 1.055f, 2.4000000953674316d)) * 100.0f;
    }

    public static void z(PackageInfo packageInfo, File file) throws IOException {
        try {
            DataOutputStream dataOutputStream = new DataOutputStream(new FileOutputStream(new File(file, "profileinstaller_profileWrittenFor_lastUpdateTime.dat")));
            try {
                dataOutputStream.writeLong(packageInfo.lastUpdateTime);
                dataOutputStream.close();
            } finally {
            }
        } catch (IOException unused) {
        }
    }

    public abstract List m(String str, List list);
}
