导航菜单

页面标题

页面副标题

Kredinesia v8.3.1 - c.java 源代码

正在查看: Kredinesia v8.3.1 应用的 c.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package ua;

import A.C0011f;
import A3.k;
import M3.O2;
import N3.J2;
import W3.f;
import W3.h;
import W3.o;
import a6.InterfaceC0483a;
import a6.InterfaceC0484b;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Parcel;
import android.os.ParcelFileDescriptor;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Log;
import android.util.Pair;
import b7.M;
import com.bumptech.glide.manager.n;
import com.facebook.FacebookException;
import com.facebook.FacebookSdk;
import com.google.api.client.http.HttpStatusCodes;
import e3.InterfaceC1250a;
import f9.AbstractC1304b;
import j2.C1407a;
import j2.C1410d;
import j2.p;
import j2.q;
import j2.s;
import j2.t;
import j2.u;
import j2.w;
import j2.y;
import java.io.File;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Locale;
import java.util.Map;
import kotlin.jvm.internal.i;
import okhttp3.internal.publicsuffix.PublicSuffixDatabase;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import p5.AbstractC1706e;
import q1.InterfaceC1734b;
import q3.j;
import u1.AbstractC1943a;
import u1.C1947e;
import v1.InterfaceC1974c;
import v9.InterfaceC1985a;
import x5.m;
import y8.C2070d;
import z2.AbstractC2113f;
import z2.C2117j;
import z2.G;
import z2.z;

public final class c implements A3.d, j, J0.e, L1.a, InterfaceC1985a, w9.j, f, L9.c, L9.a, X4.b, InterfaceC0483a, n, InterfaceC1250a, t1.b, InterfaceC1974c, m {
    public final int a;

    public c(int i4) {
        this.a = i4;
    }

    public static void A(org.json.JSONObject r7, java.lang.String r8, j2.s r9) {
        throw new UnsupportedOperationException("Method not decompiled: ua.c.A(org.json.JSONObject, java.lang.String, j2.s):void");
    }

    public static void B(String str, Object obj, s sVar, boolean z9) {
        Class<?> cls = obj.getClass();
        if (JSONObject.class.isAssignableFrom(cls)) {
            JSONObject jSONObject = (JSONObject) obj;
            if (z9) {
                Iterator<String> keys = jSONObject.keys();
                while (keys.hasNext()) {
                    String next = keys.next();
                    String format = String.format("%s[%s]", Arrays.copyOf(new Object[]{str, next}, 2));
                    Object opt = jSONObject.opt(next);
                    i.e(opt, "jsonObject.opt(propertyName)");
                    B(format, opt, sVar, z9);
                }
                return;
            }
            if (jSONObject.has("id")) {
                String optString = jSONObject.optString("id");
                i.e(optString, "jsonObject.optString(\"id\")");
                B(str, optString, sVar, z9);
                return;
            } else if (jSONObject.has("url")) {
                String optString2 = jSONObject.optString("url");
                i.e(optString2, "jsonObject.optString(\"url\")");
                B(str, optString2, sVar, z9);
                return;
            } else {
                if (jSONObject.has("fbsdk:create_object")) {
                    String jSONObject2 = jSONObject.toString();
                    i.e(jSONObject2, "jsonObject.toString()");
                    B(str, jSONObject2, sVar, z9);
                    return;
                }
                return;
            }
        }
        if (!JSONArray.class.isAssignableFrom(cls)) {
            if (String.class.isAssignableFrom(cls) || Number.class.isAssignableFrom(cls) || Boolean.class.isAssignableFrom(cls)) {
                sVar.a(str, obj.toString());
                return;
            }
            if (Date.class.isAssignableFrom(cls)) {
                String format2 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.US).format((Date) obj);
                i.e(format2, "iso8601DateFormat.format(date)");
                sVar.a(str, format2);
                return;
            } else {
                String str2 = u.f11479j;
                G.J("u", "The type of property " + str + " in the graph object is unknown. It won't be sent in the request.");
                return;
            }
        }
        JSONArray jSONArray = (JSONArray) obj;
        int length = jSONArray.length();
        if (length <= 0) {
            return;
        }
        int i4 = 0;
        while (true) {
            int i10 = i4 + 1;
            String format3 = String.format(Locale.ROOT, "%s[%d]", Arrays.copyOf(new Object[]{str, Integer.valueOf(i4)}, 2));
            Object opt2 = jSONArray.opt(i4);
            i.e(opt2, "jsonArray.opt(i)");
            B(format3, opt2, sVar, z9);
            if (i10 >= length) {
                return;
            } else {
                i4 = i10;
            }
        }
    }

    public static void C(w wVar, z zVar, int i4, URL url, FilterOutputStream filterOutputStream, boolean z9) {
        String applicationId;
        int i10 = 2;
        char c5 = 0;
        e9.j jVar = new e9.j();
        jVar.f10474c = filterOutputStream;
        jVar.f10475d = zVar;
        jVar.a = true;
        jVar.f10473b = z9;
        if (i4 == 1) {
            u uVar = (u) wVar.f11492c.get(0);
            HashMap hashMap = new HashMap();
            for (String key : uVar.f11484d.keySet()) {
                Object obj = uVar.f11484d.get(key);
                if (v(obj)) {
                    i.e(key, "key");
                    hashMap.put(key, new p(uVar, obj));
                }
            }
            zVar.a("  Parameters:\n");
            Bundle bundle = uVar.f11484d;
            for (String key2 : bundle.keySet()) {
                Object obj2 = bundle.get(key2);
                if (w(obj2)) {
                    i.e(key2, "key");
                    jVar.m(key2, obj2, uVar);
                }
            }
            zVar.a("  Attachments:\n");
            F(hashMap, jVar);
            JSONObject jSONObject = uVar.f11483c;
            if (jSONObject != null) {
                String path = url.getPath();
                i.e(path, "url.path");
                A(jSONObject, path, jVar);
                return;
            }
            return;
        }
        wVar.getClass();
        Iterator<E> it = wVar.iterator();
        while (true) {
            if (it.hasNext()) {
                C1407a c1407a = ((u) it.next()).a;
                if (c1407a != null) {
                    applicationId = c1407a.f11410S;
                    break;
                }
            } else {
                String str = u.f11479j;
                applicationId = FacebookSdk.getApplicationId();
                break;
            }
        }
        if (applicationId.length() == 0) {
            throw new FacebookException("App ID was not specified at the request or Settings.");
        }
        jVar.a("batch_app_id", applicationId);
        HashMap hashMap2 = new HashMap();
        JSONArray jSONArray = new JSONArray();
        Iterator it2 = wVar.iterator();
        while (it2.hasNext()) {
            u uVar2 = (u) it2.next();
            uVar2.getClass();
            JSONObject jSONObject2 = new JSONObject();
            Object[] objArr = new Object[1];
            objArr[c5] = FacebookSdk.getGraphDomain();
            String h = uVar2.h(String.format("https://graph.%s", Arrays.copyOf(objArr, 1)));
            uVar2.a();
            Uri parse = Uri.parse(uVar2.b(h, true));
            String path2 = parse.getPath();
            String query = parse.getQuery();
            Object[] objArr2 = new Object[i10];
            objArr2[c5] = path2;
            objArr2[1] = query;
            String format = String.format("%s?%s", Arrays.copyOf(objArr2, i10));
            jSONObject2.put("relative_url", format);
            jSONObject2.put("method", uVar2.h);
            C1407a c1407a2 = uVar2.a;
            if (c1407a2 != null) {
                z.f15419c.u(c1407a2.f11407P);
            }
            ArrayList arrayList = new ArrayList();
            Iterator<String> it3 = uVar2.f11484d.keySet().iterator();
            while (true) {
                boolean hasNext = it3.hasNext();
                String str2 = u.f11479j;
                if (!hasNext) {
                    break;
                }
                Object obj3 = uVar2.f11484d.get(it3.next());
                if (v(obj3)) {
                    Locale locale = Locale.ROOT;
                    Integer valueOf = Integer.valueOf(hashMap2.size());
                    char c10 = c5;
                    Object[] objArr3 = new Object[i10];
                    objArr3[c10] = "file";
                    objArr3[1] = valueOf;
                    String format2 = String.format(locale, "%s%d", Arrays.copyOf(objArr3, i10));
                    arrayList.add(format2);
                    hashMap2.put(format2, new p(uVar2, obj3));
                    c5 = c10;
                    i10 = 2;
                }
            }
            char c11 = c5;
            if (!arrayList.isEmpty()) {
                jSONObject2.put("attached_files", TextUtils.join(",", arrayList));
            }
            JSONObject jSONObject3 = uVar2.f11483c;
            if (jSONObject3 != null) {
                ArrayList arrayList2 = new ArrayList();
                A(jSONObject3, format, new X1.e(arrayList2));
                jSONObject2.put("body", TextUtils.join("&", arrayList2));
            }
            jSONArray.put(jSONObject2);
            c5 = c11;
            i10 = 2;
        }
        String jSONArray2 = jSONArray.toString();
        i.e(jSONArray2, "requestJsonArray.toString()");
        jVar.a("batch", jSONArray2);
        zVar.a("  Attachments:\n");
        F(hashMap2, jVar);
    }

    public static void D(w requests, ArrayList arrayList) {
        i.f(requests, "requests");
        int size = requests.f11492c.size();
        ArrayList arrayList2 = new ArrayList();
        if (size > 0) {
            int i4 = 0;
            while (true) {
                int i10 = i4 + 1;
                u uVar = (u) requests.f11492c.get(i4);
                if (uVar.f11487g != null) {
                    arrayList2.add(new Pair(uVar.f11487g, arrayList.get(i4)));
                }
                if (i10 >= size) {
                    break;
                } else {
                    i4 = i10;
                }
            }
        }
        if (arrayList2.size() > 0) {
            M m10 = new M(requests, arrayList2);
            Handler handler = requests.a;
            if ((handler == null ? null : Boolean.valueOf(handler.post(m10))) == null) {
                m10.run();
            }
        }
    }

    public static void F(HashMap hashMap, e9.j jVar) {
        for (Map.Entry entry : hashMap.entrySet()) {
            String str = u.f11479j;
            if (v(((p) entry.getValue()).f11477b)) {
                jVar.m((String) entry.getKey(), ((p) entry.getValue()).f11477b, ((p) entry.getValue()).a);
            }
        }
    }

    public static void G(j2.w r14, java.net.HttpURLConnection r15) {
        throw new UnsupportedOperationException("Method not decompiled: ua.c.G(j2.w, java.net.HttpURLConnection):void");
    }

    public static HttpURLConnection H(w requests) {
        i.f(requests, "requests");
        Iterator<E> it = requests.iterator();
        while (it.hasNext()) {
            u uVar = (u) it.next();
            if (y.a == uVar.h && G.D(uVar.f11484d.getString("fields"))) {
                C2070d c2070d = z.f15419c;
                j2.z zVar = j2.z.f11501Q;
                StringBuilder sb = new StringBuilder("GET requests for /");
                String str = uVar.f11482b;
                if (str == null) {
                    str = "";
                }
                c2070d.q(zVar, 5, "Request", AbstractC1706e.i(sb, str, " should contain an explicit \"fields\" parameter."));
            }
        }
        try {
            HttpURLConnection httpURLConnection = null;
            try {
                httpURLConnection = m(requests.f11492c.size() == 1 ? new URL(((u) requests.f11492c.get(0)).g()) : new URL(String.format("https://graph.%s", Arrays.copyOf(new Object[]{FacebookSdk.getGraphDomain()}, 1))));
                G(requests, httpURLConnection);
                return httpURLConnection;
            } catch (IOException e10) {
                G.k(httpURLConnection);
                throw new FacebookException("could not construct request body", e10);
            } catch (JSONException e11) {
                G.k(httpURLConnection);
                throw new FacebookException("could not construct request body", e11);
            }
        } catch (MalformedURLException e12) {
            throw new FacebookException("could not construct URL for request", e12);
        }
    }

    public static final String f(byte[] bArr, byte[][] bArr2, int i4) {
        int i10;
        boolean z9;
        int i11;
        int i12;
        int i13 = -1;
        byte[] bArr3 = PublicSuffixDatabase.f13256e;
        int length = bArr.length;
        int i14 = 0;
        while (i14 < length) {
            int i15 = (i14 + length) / 2;
            while (i15 > i13 && bArr[i15] != 10) {
                i15 += i13;
            }
            int i16 = i15 + 1;
            int i17 = 1;
            while (true) {
                i10 = i16 + i17;
                if (bArr[i10] == 10) {
                    break;
                }
                i17++;
            }
            int i18 = i10 - i16;
            int i19 = i4;
            boolean z10 = false;
            int i20 = 0;
            int i21 = 0;
            while (true) {
                if (z10) {
                    i11 = 46;
                    z9 = false;
                } else {
                    byte b10 = bArr2[i19][i20];
                    byte[] bArr4 = AbstractC1304b.a;
                    int i22 = b10 & 255;
                    z9 = z10;
                    i11 = i22;
                }
                byte b11 = bArr[i16 + i21];
                byte[] bArr5 = AbstractC1304b.a;
                i12 = i11 - (b11 & 255);
                if (i12 != 0) {
                    break;
                }
                i21++;
                i20++;
                if (i21 == i18) {
                    break;
                }
                if (bArr2[i19].length != i20) {
                    z10 = z9;
                } else {
                    if (i19 == bArr2.length - 1) {
                        break;
                    }
                    i19++;
                    z10 = true;
                    i20 = -1;
                }
            }
            if (i12 >= 0) {
                if (i12 <= 0) {
                    int i23 = i18 - i21;
                    int length2 = bArr2[i19].length - i20;
                    int length3 = bArr2.length;
                    for (int i24 = i19 + 1; i24 < length3; i24++) {
                        length2 += bArr2[i24].length;
                    }
                    if (length2 >= i23) {
                        if (length2 <= i23) {
                            Charset UTF_8 = StandardCharsets.UTF_8;
                            i.e(UTF_8, "UTF_8");
                            return new String(bArr, i16, i18, UTF_8);
                        }
                    }
                }
                i14 = i10 + 1;
                i13 = -1;
            }
            length = i15;
            i13 = -1;
        }
        return null;
    }

    public static final String i(Object obj) {
        String str = u.f11479j;
        if (obj instanceof String) {
            return (String) obj;
        }
        if ((obj instanceof Boolean) || (obj instanceof Number)) {
            return obj.toString();
        }
        if (!(obj instanceof Date)) {
            throw new IllegalArgumentException("Unsupported parameter type.");
        }
        String format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.US).format((Date) obj);
        i.e(format, "iso8601DateFormat.format(value)");
        return format;
    }

    public static HttpURLConnection m(URL url) {
        URLConnection openConnection = url.openConnection();
        if (openConnection == null) {
            throw new NullPointerException("null cannot be cast to non-null type java.net.HttpURLConnection");
        }
        HttpURLConnection httpURLConnection = (HttpURLConnection) openConnection;
        if (u.f11481l == null) {
            u.f11481l = String.format("%s.%s", Arrays.copyOf(new Object[]{"FBAndroidSDK", "17.0.0"}, 2));
        }
        httpURLConnection.setRequestProperty("User-Agent", u.f11481l);
        httpURLConnection.setRequestProperty("Accept-Language", Locale.getDefault().toString());
        httpURLConnection.setChunkedStreamingMode(0);
        return httpURLConnection;
    }

    public static ArrayList n(w requests) {
        Exception exc;
        HttpURLConnection httpURLConnection;
        ArrayList arrayList;
        i.f(requests, "requests");
        AbstractC2113f.i(requests);
        HttpURLConnection httpURLConnection2 = null;
        try {
            httpURLConnection = H(requests);
            exc = null;
        } catch (Exception e10) {
            exc = e10;
            httpURLConnection = null;
        } catch (Throwable th) {
            th = th;
            G.k(httpURLConnection2);
            throw th;
        }
        try {
            if (httpURLConnection != null) {
                arrayList = p(requests, httpURLConnection);
            } else {
                ArrayList a = J2.a(requests.f11492c, null, new FacebookException(exc));
                D(requests, a);
                arrayList = a;
            }
            G.k(httpURLConnection);
            return arrayList;
        } catch (Throwable th2) {
            th = th2;
            httpURLConnection2 = httpURLConnection;
            G.k(httpURLConnection2);
            throw th;
        }
    }

    public static ArrayList p(w requests, HttpURLConnection httpURLConnection) {
        ArrayList a;
        i.f(requests, "requests");
        j2.z zVar = j2.z.a;
        InputStream inputStream = null;
        try {
            try {
                try {
                } catch (FacebookException e10) {
                    z.f15419c.t(zVar, "Response", "Response <Error>: %s", e10);
                    a = J2.a(requests, httpURLConnection, e10);
                }
            } catch (Exception e11) {
                z.f15419c.t(zVar, "Response", "Response <Error>: %s", e11);
                a = J2.a(requests, httpURLConnection, new FacebookException(e11));
            }
            if (!FacebookSdk.isFullyInitialized()) {
                Log.e("j2.x", "GraphRequest can't be used when Facebook SDK isn't fully initialized");
                throw new FacebookException("GraphRequest can't be used when Facebook SDK isn't fully initialized");
            }
            inputStream = httpURLConnection.getResponseCode() >= 400 ? httpURLConnection.getErrorStream() : httpURLConnection.getInputStream();
            a = J2.c(inputStream, httpURLConnection, requests);
            G.d(inputStream);
            httpURLConnection.disconnect();
            int size = requests.f11492c.size();
            if (size != a.size()) {
                throw new FacebookException(String.format(Locale.US, "Received %d responses while expecting %d", Arrays.copyOf(new Object[]{Integer.valueOf(a.size()), Integer.valueOf(size)}, 2)));
            }
            D(requests, a);
            C1410d s10 = C1410d.f11423f.s();
            C1407a c1407a = s10.f11426c;
            if (c1407a != null) {
                long time = new Date().getTime();
                if (c1407a.f11408Q.a && time - s10.f11428e.getTime() > 3600000 && time - c1407a.f11409R.getTime() > 86400000) {
                    if (i.a(Looper.getMainLooper(), Looper.myLooper())) {
                        s10.a();
                    } else {
                        new Handler(Looper.getMainLooper()).post(new c7.b(9, s10));
                    }
                }
            }
            return a;
        } catch (Throwable th) {
            G.d(null);
            throw th;
        }
    }

    public static C2117j u() {
        return new C2117j(null, H8.u.a(new G8.d(2, null), new G8.d(4, null), new G8.d(9, null), new G8.d(17, null), new G8.d(341, null)), H8.u.a(new G8.d(102, null), new G8.d(190, null), new G8.d(Integer.valueOf(HttpStatusCodes.STATUS_CODE_PRECONDITION_FAILED), null)), null, null, null);
    }

    public static boolean v(Object obj) {
        return (obj instanceof Bitmap) || (obj instanceof byte[]) || (obj instanceof Uri) || (obj instanceof ParcelFileDescriptor) || (obj instanceof t);
    }

    public static boolean w(Object obj) {
        return (obj instanceof String) || (obj instanceof Boolean) || (obj instanceof Number) || (obj instanceof Date);
    }

    public static u x(C1407a c1407a, String str, q qVar) {
        return new u(c1407a, str, null, null, qVar);
    }

    public static u y(C1407a c1407a, String str, JSONObject jSONObject, q qVar) {
        u uVar = new u(c1407a, str, null, y.f11498b, qVar);
        uVar.f11483c = jSONObject;
        return uVar;
    }

    public static HashMap z(JSONObject jSONObject) {
        int optInt;
        HashSet hashSet;
        JSONArray optJSONArray = jSONObject.optJSONArray("items");
        if (optJSONArray == null || optJSONArray.length() == 0) {
            return null;
        }
        HashMap hashMap = new HashMap();
        int length = optJSONArray.length();
        if (length > 0) {
            int i4 = 0;
            while (true) {
                int i10 = i4 + 1;
                JSONObject optJSONObject = optJSONArray.optJSONObject(i4);
                if (optJSONObject != null && (optInt = optJSONObject.optInt("code")) != 0) {
                    JSONArray optJSONArray2 = optJSONObject.optJSONArray("subcodes");
                    if (optJSONArray2 == null || optJSONArray2.length() <= 0) {
                        hashSet = null;
                    } else {
                        hashSet = new HashSet();
                        int length2 = optJSONArray2.length();
                        if (length2 > 0) {
                            int i11 = 0;
                            while (true) {
                                int i12 = i11 + 1;
                                int optInt2 = optJSONArray2.optInt(i11);
                                if (optInt2 != 0) {
                                    hashSet.add(Integer.valueOf(optInt2));
                                }
                                if (i12 >= length2) {
                                    break;
                                }
                                i11 = i12;
                            }
                        }
                    }
                    hashMap.put(Integer.valueOf(optInt), hashSet);
                }
                if (i10 >= length) {
                    break;
                }
                i4 = i10;
            }
        }
        return hashMap;
    }

    @Override
    public void E() {
        Log.d("ProfileInstaller", "DIAGNOSTIC_PROFILE_IS_COMPRESSED");
    }

    @Override
    public void L(Object obj, Object obj2) {
        G3.d dVar = (G3.d) ((G3.e) obj).u();
        C3.b bVar = new C3.b((h) obj2, 1);
        Parcel obtain = Parcel.obtain();
        obtain.writeInterfaceToken("com.google.android.gms.auth.api.phone.internal.ISmsRetrieverApiService");
        int i4 = G3.c.a;
        obtain.writeStrongBinder(bVar);
        Parcel obtain2 = Parcel.obtain();
        try {
            dVar.a.transact(1, obtain, obtain2, 0);
            obtain2.readException();
        } finally {
            obtain.recycle();
            obtain2.recycle();
        }
    }

    @Override
    public X4.a b(C2070d c2070d, JSONObject jSONObject) {
        jSONObject.optInt("settings_version", 0);
        int optInt = jSONObject.optInt("cache_duration", 3600);
        double optDouble = jSONObject.optDouble("on_demand_upload_rate_per_minute", 10.0d);
        double optDouble2 = jSONObject.optDouble("on_demand_backoff_base", 1.2d);
        int optInt2 = jSONObject.optInt("on_demand_backoff_step_duration_seconds", 60);
        k kVar = jSONObject.has("session") ? new k(jSONObject.getJSONObject("session").optInt("max_custom_exception_events", 8), 9) : new k(new JSONObject().optInt("max_custom_exception_events", 8), 9);
        JSONObject jSONObject2 = jSONObject.getJSONObject("features");
        return new X4.a(jSONObject.has("expires_at") ? jSONObject.optLong("expires_at") : (optInt * 1000) + System.currentTimeMillis(), kVar, new J1.h(jSONObject2.optBoolean("collect_reports", true), jSONObject2.optBoolean("collect_anrs", false), jSONObject2.optBoolean("collect_build_ids", false)), optDouble, optDouble2, optInt2);
    }

    @Override
    public void c(Activity activity, ArrayList arrayList, ArrayList arrayList2, boolean z9, InterfaceC0484b interfaceC0484b) {
        U0.f.a(arrayList2, z9, interfaceC0484b);
    }

    @Override
    public A3.c d(Context context, String str, A3.b bVar) {
        A3.c cVar = new A3.c();
        int b10 = bVar.b(context, str);
        cVar.a = b10;
        if (b10 != 0) {
            cVar.f216c = -1;
            return cVar;
        }
        int d10 = bVar.d(context, str, true);
        cVar.f215b = d10;
        if (d10 != 0) {
            cVar.f216c = 1;
        }
        return cVar;
    }

    @Override
    public File e(H1.f fVar) {
        return null;
    }

    @Override
    public void g(Activity activity, ArrayList arrayList, ArrayList arrayList2, boolean z9, InterfaceC0484b interfaceC0484b) {
        if (interfaceC0484b == null) {
            return;
        }
        interfaceC0484b.onGranted(arrayList2, z9);
    }

    @Override
    public void h(int i4, Serializable serializable) {
        String str;
        switch (i4) {
            case 1:
                str = "RESULT_INSTALL_SUCCESS";
                break;
            case 2:
                str = "RESULT_ALREADY_INSTALLED";
                break;
            case 3:
                str = "RESULT_UNSUPPORTED_ART_VERSION";
                break;
            case 4:
                str = "RESULT_NOT_WRITABLE";
                break;
            case 5:
                str = "RESULT_DESIRED_FORMAT_UNSUPPORTED";
                break;
            case 6:
                str = "RESULT_BASELINE_PROFILE_NOT_FOUND";
                break;
            case 7:
                str = "RESULT_IO_EXCEPTION";
                break;
            case 8:
                str = "RESULT_PARSE_EXCEPTION";
                break;
            case 9:
            default:
                str = "";
                break;
            case 10:
                str = "RESULT_INSTALL_SKIP_FILE_SUCCESS";
                break;
            case 11:
                str = "RESULT_DELETE_SKIP_FILE_SUCCESS";
                break;
        }
        if (i4 == 6 || i4 == 7 || i4 == 8) {
            Log.e("ProfileInstaller", str, (Throwable) serializable);
        } else {
            Log.d("ProfileInstaller", str);
        }
    }

    @Override
    public long j() {
        return SystemClock.elapsedRealtime();
    }

    @Override
    public void k(AbstractC1943a abstractC1943a, LinkedList linkedList) {
        switch (this.a) {
            case 18:
                break;
            default:
                int a = W8.e.a(abstractC1943a) / abstractC1943a.f14603T;
                Iterator it = linkedList.iterator();
                int i4 = a;
                while (it.hasNext()) {
                    Rect rect = ((C1947e) it.next()).a;
                    int i10 = rect.right;
                    InterfaceC1734b interfaceC1734b = abstractC1943a.f14607X;
                    if (i10 == interfaceC1734b.d()) {
                        rect.left += interfaceC1734b.d() - rect.right;
                        rect.right = interfaceC1734b.d();
                        rect.left -= i4;
                    } else {
                        rect.right -= i4;
                        i4 += a;
                        rect.left -= i4;
                    }
                }
                break;
        }
    }

    @Override
    public boolean o(AbstractC1943a abstractC1943a) {
        int i4 = abstractC1943a.f14602S;
        InterfaceC1734b interfaceC1734b = abstractC1943a.f14607X;
        return i4 > interfaceC1734b.b() && abstractC1943a.f14602S + abstractC1943a.a > interfaceC1734b.d();
    }

    @Override
    public String q() {
        return "version";
    }

    @Override
    public Object r() {
        return new ArrayDeque();
    }

    public synchronized C2117j s() {
        C2117j c2117j;
        try {
            if (C2117j.f15346e == null) {
                C2117j.f15346e = u();
            }
            c2117j = C2117j.f15346e;
            if (c2117j == null) {
                throw new NullPointerException("null cannot be cast to non-null type com.facebook.internal.FacebookRequestErrorClassification");
            }
        } catch (Throwable th) {
            throw th;
        }
        return c2117j;
    }

    @Override
    public o t(Object obj) {
        return O2.e(Boolean.TRUE);
    }

    public c(G3.a aVar) {
        this.a = 2;
    }

    private final void l(AbstractC1943a abstractC1943a, LinkedList linkedList) {
    }

    @Override
    public void a(H1.f fVar, C0011f c0011f) {
    }
}