package com.google.android.gms.internal.measurement;

import a.AbstractC0386a;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.InputFilter;
import android.view.View;
import android.view.ViewParent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.TextView;
import d0.C0761b;
import d5.AbstractC0844a;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.MappedByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ServiceConfigurationError;
import java.util.logging.Level;
import java.util.logging.Logger;
import v0.AbstractC1664c;

/* JADX INFO: loaded from: classes.dex */
public abstract class X1 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final /* synthetic */ int f9780a = 0;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final /* synthetic */ int f9781b = 0;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final /* synthetic */ int f9782c = 0;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final /* synthetic */ int f9783d = 0;

    public static C0761b G(MappedByteBuffer mappedByteBuffer) throws IOException {
        long j8;
        ByteBuffer byteBufferDuplicate = mappedByteBuffer.duplicate();
        byteBufferDuplicate.order(ByteOrder.BIG_ENDIAN);
        byteBufferDuplicate.position(byteBufferDuplicate.position() + 4);
        int i = byteBufferDuplicate.getShort() & 65535;
        if (i > 100) {
            throw new IOException("Cannot read metadata.");
        }
        byteBufferDuplicate.position(byteBufferDuplicate.position() + 6);
        int i5 = 0;
        while (true) {
            if (i5 >= i) {
                j8 = -1;
                break;
            }
            int i8 = byteBufferDuplicate.getInt();
            byteBufferDuplicate.position(byteBufferDuplicate.position() + 4);
            j8 = ((long) byteBufferDuplicate.getInt()) & 4294967295L;
            byteBufferDuplicate.position(byteBufferDuplicate.position() + 4);
            if (1835365473 == i8) {
                break;
            }
            i5++;
        }
        if (j8 != -1) {
            byteBufferDuplicate.position(byteBufferDuplicate.position() + ((int) (j8 - ((long) byteBufferDuplicate.position()))));
            byteBufferDuplicate.position(byteBufferDuplicate.position() + 12);
            long j9 = ((long) byteBufferDuplicate.getInt()) & 4294967295L;
            for (int i9 = 0; i9 < j9; i9++) {
                int i10 = byteBufferDuplicate.getInt();
                long j10 = ((long) byteBufferDuplicate.getInt()) & 4294967295L;
                byteBufferDuplicate.getInt();
                if (1164798569 == i10 || 1701669481 == i10) {
                    byteBufferDuplicate.position((int) (j10 + j8));
                    C0761b c0761b = new C0761b();
                    byteBufferDuplicate.order(ByteOrder.LITTLE_ENDIAN);
                    int iPosition = byteBufferDuplicate.position() + byteBufferDuplicate.getInt(byteBufferDuplicate.position());
                    c0761b.f1393t = byteBufferDuplicate;
                    c0761b.f1390q = iPosition;
                    int i11 = iPosition - byteBufferDuplicate.getInt(iPosition);
                    c0761b.f1391r = i11;
                    c0761b.f1392s = ((ByteBuffer) c0761b.f1393t).getShort(i11);
                    return c0761b;
                }
            }
        }
        throw new IOException("Cannot read metadata.");
    }

    public static void K(Drawable drawable, int i) {
        drawable.setTint(i);
    }

    public static void O(Parcel parcel, int i, Bundle bundle) {
        if (bundle == null) {
            return;
        }
        int iU = U(parcel, i);
        parcel.writeBundle(bundle);
        Y(parcel, iU);
    }

    public static void P(Parcel parcel, int i, IBinder iBinder) {
        if (iBinder == null) {
            return;
        }
        int iU = U(parcel, i);
        parcel.writeStrongBinder(iBinder);
        Y(parcel, iU);
    }

    public static void Q(Parcel parcel, int i, Parcelable parcelable, int i5) {
        if (parcelable == null) {
            return;
        }
        int iU = U(parcel, i);
        parcelable.writeToParcel(parcel, i5);
        Y(parcel, iU);
    }

    public static void R(Parcel parcel, int i, String str) {
        if (str == null) {
            return;
        }
        int iU = U(parcel, i);
        parcel.writeString(str);
        Y(parcel, iU);
    }

    public static void S(Parcel parcel, int i, Parcelable[] parcelableArr, int i5) {
        if (parcelableArr == null) {
            return;
        }
        int iU = U(parcel, i);
        parcel.writeInt(parcelableArr.length);
        for (Parcelable parcelable : parcelableArr) {
            if (parcelable == null) {
                parcel.writeInt(0);
            } else {
                int iDataPosition = parcel.dataPosition();
                parcel.writeInt(1);
                int iDataPosition2 = parcel.dataPosition();
                parcelable.writeToParcel(parcel, i5);
                int iDataPosition3 = parcel.dataPosition();
                parcel.setDataPosition(iDataPosition);
                parcel.writeInt(iDataPosition3 - iDataPosition2);
                parcel.setDataPosition(iDataPosition3);
            }
        }
        Y(parcel, iU);
    }

    public static void T(Parcel parcel, int i, List list) {
        if (list == null) {
            return;
        }
        int iU = U(parcel, i);
        int size = list.size();
        parcel.writeInt(size);
        for (int i5 = 0; i5 < size; i5++) {
            Parcelable parcelable = (Parcelable) list.get(i5);
            if (parcelable == null) {
                parcel.writeInt(0);
            } else {
                int iDataPosition = parcel.dataPosition();
                parcel.writeInt(1);
                int iDataPosition2 = parcel.dataPosition();
                parcelable.writeToParcel(parcel, 0);
                int iDataPosition3 = parcel.dataPosition();
                parcel.setDataPosition(iDataPosition);
                parcel.writeInt(iDataPosition3 - iDataPosition2);
                parcel.setDataPosition(iDataPosition3);
            }
        }
        Y(parcel, iU);
    }

    public static int U(Parcel parcel, int i) {
        parcel.writeInt(i | (-65536));
        parcel.writeInt(0);
        return parcel.dataPosition();
    }

    public static int V(byte[] bArr, int i, P1 p1) throws C0654j2 {
        int iD0 = d0(bArr, i, p1);
        int i5 = p1.f9658a;
        if (i5 < 0) {
            throw new C0654j2("CodedInputStream encountered an embedded string or message which claimed to have negative size.");
        }
        if (i5 > bArr.length - iD0) {
            throw new C0654j2("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
        }
        if (i5 == 0) {
            p1.f9660c = S1.f9671s;
            return iD0;
        }
        p1.f9660c = S1.g(bArr, iD0, i5);
        return iD0 + i5;
    }

    public static int W(int i, byte[] bArr) {
        int i5 = bArr[i] & 255;
        int i8 = bArr[i + 1] & 255;
        int i9 = bArr[i + 2] & 255;
        return ((bArr[i + 3] & 255) << 24) | (i8 << 8) | i5 | (i9 << 16);
    }

    public static U1 X() {
        String str;
        ClassLoader classLoader = X1.class.getClassLoader();
        if (U1.class.equals(U1.class)) {
            str = "com.google.protobuf.BlazeGeneratedExtensionRegistryLiteLoader";
        } else {
            if (!U1.class.getPackage().equals(X1.class.getPackage())) {
                throw new IllegalArgumentException(U1.class.getName());
            }
            str = U1.class.getPackage().getName() + ".BlazeGenerated" + U1.class.getSimpleName() + "Loader";
        }
        try {
            try {
                try {
                    try {
                        I1.a.v(Class.forName(str, true, classLoader).getConstructor(null).newInstance(null));
                        throw null;
                    } catch (IllegalAccessException e8) {
                        throw new IllegalStateException(e8);
                    } catch (InvocationTargetException e9) {
                        throw new IllegalStateException(e9);
                    }
                } catch (InstantiationException e10) {
                    throw new IllegalStateException(e10);
                } catch (NoSuchMethodException e11) {
                    throw new IllegalStateException(e11);
                }
            } catch (Throwable th) {
                throw new ServiceConfigurationError(th.getMessage(), th);
            }
        } catch (ClassNotFoundException unused) {
            Iterator it = Arrays.asList(new X1[0]).iterator();
            ArrayList arrayList = new ArrayList();
            while (it.hasNext()) {
                try {
                    if (it.next() == null) {
                        throw null;
                    }
                    throw new ClassCastException();
                } catch (ServiceConfigurationError e12) {
                    Logger.getLogger(T1.class.getName()).logp(Level.SEVERE, "com.google.protobuf.GeneratedExtensionRegistryLoader", "load", "Unable to load ".concat(U1.class.getSimpleName()), (Throwable) e12);
                }
            }
            if (arrayList.size() == 1) {
                return (U1) arrayList.get(0);
            }
            if (arrayList.size() == 0) {
                return null;
            }
            try {
                return (U1) U1.class.getMethod("combine", Collection.class).invoke(null, arrayList);
            } catch (IllegalAccessException e13) {
                throw new IllegalStateException(e13);
            } catch (NoSuchMethodException e14) {
                throw new IllegalStateException(e14);
            } catch (InvocationTargetException e15) {
                throw new IllegalStateException(e15);
            }
        }
    }

    public static void Y(Parcel parcel, int i) {
        int iDataPosition = parcel.dataPosition();
        parcel.setDataPosition(i - 4);
        parcel.writeInt(iDataPosition - i);
        parcel.setDataPosition(iDataPosition);
    }

    public static void Z(Parcel parcel, int i, int i5) {
        parcel.writeInt(i | (i5 << 16));
    }

    public static int a0(A2 a22, int i, byte[] bArr, int i5, int i8, InterfaceC0639g2 interfaceC0639g2, P1 p1) throws C0654j2 {
        AbstractC0609a2 abstractC0609a2A = a22.a();
        A2 a23 = a22;
        byte[] bArr2 = bArr;
        int i9 = i8;
        P1 p12 = p1;
        int iI0 = i0(abstractC0609a2A, a23, bArr2, i5, i9, p12);
        a23.b(abstractC0609a2A);
        p12.f9660c = abstractC0609a2A;
        interfaceC0639g2.add(abstractC0609a2A);
        while (iI0 < i9) {
            P1 p13 = p12;
            int i10 = i9;
            int iD0 = d0(bArr2, iI0, p13);
            if (i != p13.f9658a) {
                break;
            }
            byte[] bArr3 = bArr2;
            A2 a24 = a23;
            AbstractC0609a2 abstractC0609a2A2 = a24.a();
            iI0 = i0(abstractC0609a2A2, a24, bArr3, iD0, i10, p13);
            a23 = a24;
            bArr2 = bArr3;
            i9 = i10;
            p12 = p13;
            a23.b(abstractC0609a2A2);
            p12.f9660c = abstractC0609a2A2;
            interfaceC0639g2.add(abstractC0609a2A2);
        }
        return iI0;
    }

    public static int b0(byte[] bArr, int i, InterfaceC0639g2 interfaceC0639g2, P1 p1) throws C0654j2 {
        C0614b2 c0614b2 = (C0614b2) interfaceC0639g2;
        int iD0 = d0(bArr, i, p1);
        int i5 = p1.f9658a + iD0;
        while (iD0 < i5) {
            iD0 = d0(bArr, iD0, p1);
            c0614b2.f(p1.f9658a);
        }
        if (iD0 == i5) {
            return iD0;
        }
        throw new C0654j2("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
    }

    public static int c0(int i, byte[] bArr, int i5, int i8, C2 c22, P1 p1) throws C0654j2 {
        if ((i >>> 3) == 0) {
            throw new C0654j2("Protocol message contained an invalid tag (zero).");
        }
        int i9 = i & 7;
        if (i9 == 0) {
            int iG0 = g0(bArr, i5, p1);
            c22.c(i, Long.valueOf(p1.f9659b));
            return iG0;
        }
        if (i9 == 1) {
            c22.c(i, Long.valueOf(j0(i5, bArr)));
            return i5 + 8;
        }
        if (i9 == 2) {
            int iD0 = d0(bArr, i5, p1);
            int i10 = p1.f9658a;
            if (i10 < 0) {
                throw new C0654j2("CodedInputStream encountered an embedded string or message which claimed to have negative size.");
            }
            if (i10 > bArr.length - iD0) {
                throw new C0654j2("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
            }
            if (i10 == 0) {
                c22.c(i, S1.f9671s);
            } else {
                c22.c(i, S1.g(bArr, iD0, i10));
            }
            return iD0 + i10;
        }
        if (i9 != 3) {
            if (i9 != 5) {
                throw new C0654j2("Protocol message contained an invalid tag (zero).");
            }
            c22.c(i, Integer.valueOf(W(i5, bArr)));
            return i5 + 4;
        }
        int i11 = (i & (-8)) | 4;
        C2 c2B = C2.b();
        int i12 = p1.f9661d + 1;
        p1.f9661d = i12;
        if (i12 >= 100) {
            throw new C0654j2("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
        }
        int i13 = 0;
        while (true) {
            if (i5 >= i8) {
                break;
            }
            int iD02 = d0(bArr, i5, p1);
            int i14 = p1.f9658a;
            if (i14 == i11) {
                i13 = i14;
                i5 = iD02;
                break;
            }
            i5 = c0(i14, bArr, iD02, i8, c2B, p1);
            i13 = i14;
        }
        p1.f9661d--;
        if (i5 > i8 || i13 != i11) {
            throw new C0654j2("Failed to parse the message.");
        }
        c22.c(i, c2B);
        return i5;
    }

    public static int d0(byte[] bArr, int i, P1 p1) {
        int i5 = i + 1;
        byte b8 = bArr[i];
        if (b8 < 0) {
            return e0(b8, bArr, i5, p1);
        }
        p1.f9658a = b8;
        return i5;
    }

    public static void e(long j8, String str) {
        if (j8 >= 0) {
            return;
        }
        throw new IllegalArgumentException(str + " (" + j8 + ") must be >= 0");
    }

    public static int e0(int i, byte[] bArr, int i5, P1 p1) {
        byte b8 = bArr[i5];
        int i8 = i5 + 1;
        int i9 = i & 127;
        if (b8 >= 0) {
            p1.f9658a = i9 | (b8 << 7);
            return i8;
        }
        int i10 = i9 | ((b8 & 127) << 7);
        int i11 = i5 + 2;
        byte b9 = bArr[i8];
        if (b9 >= 0) {
            p1.f9658a = i10 | (b9 << 14);
            return i11;
        }
        int i12 = i10 | ((b9 & 127) << 14);
        int i13 = i5 + 3;
        byte b10 = bArr[i11];
        if (b10 >= 0) {
            p1.f9658a = i12 | (b10 << 21);
            return i13;
        }
        int i14 = i12 | ((b10 & 127) << 21);
        int i15 = i5 + 4;
        byte b11 = bArr[i13];
        if (b11 >= 0) {
            p1.f9658a = i14 | (b11 << 28);
            return i15;
        }
        int i16 = i14 | ((b11 & 127) << 28);
        while (true) {
            int i17 = i15 + 1;
            if (bArr[i15] >= 0) {
                p1.f9658a = i16;
                return i17;
            }
            i15 = i17;
        }
    }

    public static void f(int i) {
        if (2 > i || i >= 37) {
            StringBuilder sbO = AbstractC0844a.o(i, "radix ", " was not in valid range ");
            sbO.append(new U6.c(2, 36, 1));
            throw new IllegalArgumentException(sbO.toString());
        }
    }

    public static int f0(int i, byte[] bArr, int i5, int i8, InterfaceC0639g2 interfaceC0639g2, P1 p1) {
        C0614b2 c0614b2 = (C0614b2) interfaceC0639g2;
        int iD0 = d0(bArr, i5, p1);
        c0614b2.f(p1.f9658a);
        while (iD0 < i8) {
            int iD02 = d0(bArr, iD0, p1);
            if (i != p1.f9658a) {
                break;
            }
            iD0 = d0(bArr, iD02, p1);
            c0614b2.f(p1.f9658a);
        }
        return iD0;
    }

    public static int g0(byte[] bArr, int i, P1 p1) {
        long j8 = bArr[i];
        int i5 = i + 1;
        if (j8 >= 0) {
            p1.f9659b = j8;
            return i5;
        }
        int i8 = i + 2;
        byte b8 = bArr[i5];
        long j9 = (j8 & 127) | (((long) (b8 & 127)) << 7);
        int i9 = 7;
        while (b8 < 0) {
            int i10 = i8 + 1;
            byte b9 = bArr[i8];
            i9 += 7;
            j9 |= ((long) (b9 & 127)) << i9;
            b8 = b9;
            i8 = i10;
        }
        p1.f9659b = j9;
        return i8;
    }

    public static int h0(Object obj, A2 a22, byte[] bArr, int i, int i5, int i8, P1 p1) throws C0654j2 {
        C0703t2 c0703t2 = (C0703t2) a22;
        int i9 = p1.f9661d + 1;
        p1.f9661d = i9;
        if (i9 >= 100) {
            throw new C0654j2("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
        }
        int iT = c0703t2.t(obj, bArr, i, i5, i8, p1);
        p1.f9661d--;
        p1.f9660c = obj;
        return iT;
    }

    public static int i(Comparable comparable, Comparable comparable2) {
        if (comparable == comparable2) {
            return 0;
        }
        if (comparable == null) {
            return -1;
        }
        if (comparable2 == null) {
            return 1;
        }
        return comparable.compareTo(comparable2);
    }

    public static int i0(Object obj, A2 a22, byte[] bArr, int i, int i5, P1 p1) throws C0654j2 {
        int iE0 = i + 1;
        int i8 = bArr[i];
        if (i8 < 0) {
            iE0 = e0(i8, bArr, iE0, p1);
            i8 = p1.f9658a;
        }
        int i9 = iE0;
        if (i8 < 0 || i8 > i5 - i9) {
            throw new C0654j2("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
        }
        int i10 = p1.f9661d + 1;
        p1.f9661d = i10;
        if (i10 >= 100) {
            throw new C0654j2("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
        }
        int i11 = i9 + i8;
        a22.e(obj, bArr, i9, i11, p1);
        p1.f9661d--;
        p1.f9660c = obj;
        return i11;
    }

    /* JADX WARN: Code restructure failed: missing block: B:23:0x0055, code lost:
    
        if (v0.AbstractC1664c.k(r9, r1, P6.g.a(r7, r2) ? r0.getWidth() : u2.f.e(r7.f16240a, r8), P6.g.a(r7, r2) ? r0.getHeight() : u2.f.e(r7.f16241b, r8), r8) == 1.0d) goto L24;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static Bitmap j(Drawable drawable, Bitmap.Config config, q2.h hVar, q2.g gVar, boolean z8) {
        Bitmap bitmap;
        Bitmap bitmap2;
        if (drawable instanceof BitmapDrawable) {
            Bitmap bitmap3 = ((BitmapDrawable) drawable).getBitmap();
            if (bitmap3.getConfig() == ((config == null || AbstractC0386a.s(config)) ? Bitmap.Config.ARGB_8888 : config)) {
                if (!z8) {
                    int width = bitmap3.getWidth();
                    int height = bitmap3.getHeight();
                    q2.h hVar2 = q2.h.f16239c;
                }
                return bitmap3;
            }
        }
        Drawable drawableMutate = drawable.mutate();
        Bitmap.Config[] configArr = u2.f.f17441a;
        boolean z9 = drawableMutate instanceof BitmapDrawable;
        BitmapDrawable bitmapDrawable = z9 ? (BitmapDrawable) drawableMutate : null;
        int intrinsicWidth = (bitmapDrawable == null || (bitmap2 = bitmapDrawable.getBitmap()) == null) ? drawableMutate.getIntrinsicWidth() : bitmap2.getWidth();
        if (intrinsicWidth <= 0) {
            intrinsicWidth = 512;
        }
        BitmapDrawable bitmapDrawable2 = z9 ? (BitmapDrawable) drawableMutate : null;
        int intrinsicHeight = (bitmapDrawable2 == null || (bitmap = bitmapDrawable2.getBitmap()) == null) ? drawableMutate.getIntrinsicHeight() : bitmap.getHeight();
        int i = intrinsicHeight > 0 ? intrinsicHeight : 512;
        q2.h hVar3 = q2.h.f16239c;
        double dK = AbstractC1664c.k(intrinsicWidth, i, P6.g.a(hVar, hVar3) ? intrinsicWidth : u2.f.e(hVar.f16240a, gVar), P6.g.a(hVar, hVar3) ? i : u2.f.e(hVar.f16241b, gVar), gVar);
        int iS = android.support.v4.media.session.a.s(((double) intrinsicWidth) * dK);
        int iS2 = android.support.v4.media.session.a.s(dK * ((double) i));
        if (config == null || AbstractC0386a.s(config)) {
            config = Bitmap.Config.ARGB_8888;
        }
        Bitmap bitmapCreateBitmap = Bitmap.createBitmap(iS, iS2, config);
        Rect bounds = drawableMutate.getBounds();
        int i5 = bounds.left;
        int i8 = bounds.top;
        int i9 = bounds.right;
        int i10 = bounds.bottom;
        drawableMutate.setBounds(0, 0, iS, iS2);
        drawableMutate.draw(new Canvas(bitmapCreateBitmap));
        drawableMutate.setBounds(i5, i8, i9, i10);
        return bitmapCreateBitmap;
    }

    public static long j0(int i, byte[] bArr) {
        return (((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) & 255) << 8) | ((((long) bArr[i + 2]) & 255) << 16) | ((((long) bArr[i + 3]) & 255) << 24) | ((((long) bArr[i + 4]) & 255) << 32) | ((((long) bArr[i + 5]) & 255) << 40) | ((((long) bArr[i + 6]) & 255) << 48) | ((((long) bArr[i + 7]) & 255) << 56);
    }

    public static final boolean k(char c3, char c8, boolean z8) {
        if (c3 == c8) {
            return true;
        }
        if (!z8) {
            return false;
        }
        char upperCase = Character.toUpperCase(c3);
        char upperCase2 = Character.toUpperCase(c8);
        return upperCase == upperCase2 || Character.toLowerCase(upperCase) == Character.toLowerCase(upperCase2);
    }

    public static final Class m(V6.b bVar) {
        P6.g.e(bVar, "<this>");
        Class clsA = ((P6.c) bVar).a();
        P6.g.c(clsA, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-java>>");
        return clsA;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    public static final Class n(V6.b bVar) {
        P6.g.e(bVar, "<this>");
        Class clsA = ((P6.c) bVar).a();
        if (clsA.isPrimitive()) {
            String name = clsA.getName();
            switch (name.hashCode()) {
                case -1325958191:
                    if (name.equals("double")) {
                        return Double.class;
                    }
                    break;
                case 104431:
                    if (name.equals("int")) {
                        return Integer.class;
                    }
                    break;
                case 3039496:
                    if (name.equals("byte")) {
                        return Byte.class;
                    }
                    break;
                case 3052374:
                    if (name.equals("char")) {
                        return Character.class;
                    }
                    break;
                case 3327612:
                    if (name.equals("long")) {
                        return Long.class;
                    }
                    break;
                case 3625364:
                    if (name.equals("void")) {
                        return Void.class;
                    }
                    break;
                case 64711720:
                    if (name.equals("boolean")) {
                        return Boolean.class;
                    }
                    break;
                case 97526364:
                    if (name.equals("float")) {
                        return Float.class;
                    }
                    break;
                case 109413500:
                    if (name.equals("short")) {
                        return Short.class;
                    }
                    break;
            }
        }
        return clsA;
    }

    public static Intent o(Context context, ComponentName componentName) throws PackageManager.NameNotFoundException {
        String strP = p(context, componentName);
        if (strP == null) {
            return null;
        }
        ComponentName componentName2 = new ComponentName(componentName.getPackageName(), strP);
        return p(context, componentName2) == null ? Intent.makeMainActivity(componentName2) : new Intent().setComponent(componentName2);
    }

    public static String p(Context context, ComponentName componentName) throws PackageManager.NameNotFoundException {
        String string;
        PackageManager packageManager = context.getPackageManager();
        int i = Build.VERSION.SDK_INT;
        ActivityInfo activityInfo = packageManager.getActivityInfo(componentName, i >= 29 ? 269222528 : i >= 24 ? 787072 : 640);
        String str = activityInfo.parentActivityName;
        if (str != null) {
            return str;
        }
        Bundle bundle = activityInfo.metaData;
        if (bundle == null || (string = bundle.getString("android.support.PARENT_ACTIVITY")) == null) {
            return null;
        }
        if (string.charAt(0) != '.') {
            return string;
        }
        return context.getPackageName() + string;
    }

    public static final boolean s(char c3) {
        return Character.isWhitespace(c3) || Character.isSpaceChar(c3);
    }

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

    public abstract void B(int i);

    public abstract void C(View view, int i, int i5);

    public abstract void D(View view, float f3, float f7);

    public abstract void E(s.g gVar, s.g gVar2);

    public abstract void F(s.g gVar, Thread thread);

    public abstract void I(boolean z8);

    public abstract void J(boolean z8);

    public abstract void L();

    public abstract void M();

    public abstract boolean N(View view, int i);

    public boolean a() {
        return false;
    }

    public abstract boolean b(s.h hVar, s.d dVar, s.d dVar2);

    public abstract boolean c(s.h hVar, Object obj, Object obj2);

    public abstract boolean d(s.h hVar, s.g gVar, s.g gVar2);

    public abstract int g(View view, int i);

    public abstract int h(View view, int i);

    public abstract InputFilter[] l(InputFilter[] inputFilterArr);

    public int q(View view) {
        return 0;
    }

    public int r() {
        return 0;
    }

    public abstract void w(androidx.leanback.widget.F f3);

    public void H() {
    }

    public void t() {
    }

    public void v() {
    }

    public void u(androidx.leanback.widget.F f3) {
    }

    public void y(androidx.leanback.widget.F f3) {
    }

    public void z(androidx.leanback.widget.F f3) {
    }

    public void A(View view, int i) {
    }
}
