package X6FRs_4.Xgtqvk_8.KQgRr5e_0;

import X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.IFxWkV_5;
import X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.Mqv2r_3;
import X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.X6FRs_4;
import X6FRs_4.IMuAHx_6.EuDEkJe_12.SI64pbG_23;
import X6FRs_4.IMuAHx_6.EuDEkJe_12.ZzDuCHW_20;
import X6FRs_4.Mqv2r_3.FSaI4_7;
import X6FRs_4.Xgtqvk_8.KQgRr5e_0.QxJ9d_1;
import android.graphics.Rect;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewParent;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityManager;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.List;
/* compiled from: ExploreByTouchHelper.java */
/* loaded from: classes.dex */
public abstract class KQgRr5e_0 extends X6FRs_4.IMuAHx_6.EuDEkJe_12.KQgRr5e_0 {
    public static final String DEFAULT_CLASS_NAME = "android.view.View";
    public static final int HOST_ID = -1;
    public static final int INVALID_ID = Integer.MIN_VALUE;
    public static final Rect INVALID_PARENT_BOUNDS = new Rect(Integer.MAX_VALUE, Integer.MAX_VALUE, INVALID_ID, INVALID_ID);
    public static final QxJ9d_1.KQgRr5e_0<Mqv2r_3> NODE_ADAPTER = new C0067KQgRr5e_0();
    public static final QxJ9d_1.InterfaceC0069QxJ9d_1<FSaI4_7<Mqv2r_3>, Mqv2r_3> SPARSE_VALUES_ADAPTER = new QxJ9d_1();
    public final View mHost;
    public final AccessibilityManager mManager;
    public PGPF6hQ_2 mNodeProvider;
    public final Rect mTempScreenRect = new Rect();
    public final Rect mTempParentRect = new Rect();
    public final Rect mTempVisibleRect = new Rect();
    public final int[] mTempGlobalRect = new int[2];
    public int mAccessibilityFocusedVirtualViewId = INVALID_ID;
    public int mKeyboardFocusedVirtualViewId = INVALID_ID;
    public int mHoveredVirtualViewId = INVALID_ID;

    /* compiled from: ExploreByTouchHelper.java */
    /* renamed from: X6FRs_4.Xgtqvk_8.KQgRr5e_0.KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static class C0067KQgRr5e_0 implements QxJ9d_1.KQgRr5e_0<Mqv2r_3> {
        @Override // X6FRs_4.Xgtqvk_8.KQgRr5e_0.QxJ9d_1.KQgRr5e_0
        public void KQgRr5e_0(Mqv2r_3 mqv2r_3, Rect rect) {
            mqv2r_3.KQgRr5e_0(rect);
        }
    }

    public KQgRr5e_0(View view) {
        if (view != null) {
            this.mHost = view;
            this.mManager = (AccessibilityManager) view.getContext().getSystemService("accessibility");
            view.setFocusable(true);
            if (ZzDuCHW_20.m269QxJ9d_1(view) == 0) {
                ZzDuCHW_20.IMuAHx_6(view, 1);
                return;
            }
            return;
        }
        throw new IllegalArgumentException("View may not be null");
    }

    private boolean clearAccessibilityFocus(int i) {
        if (this.mAccessibilityFocusedVirtualViewId == i) {
            this.mAccessibilityFocusedVirtualViewId = INVALID_ID;
            this.mHost.invalidate();
            sendEventForVirtualView(i, 65536);
            return true;
        }
        return false;
    }

    private boolean clickKeyboardFocusedVirtualView() {
        int i = this.mKeyboardFocusedVirtualViewId;
        return i != Integer.MIN_VALUE && onPerformActionForVirtualView(i, 16, null);
    }

    private AccessibilityEvent createEvent(int i, int i2) {
        if (i != -1) {
            return createEventForChild(i, i2);
        }
        return createEventForHost(i2);
    }

    private AccessibilityEvent createEventForChild(int i, int i2) {
        AccessibilityEvent obtain = AccessibilityEvent.obtain(i2);
        Mqv2r_3 obtainAccessibilityNodeInfo = obtainAccessibilityNodeInfo(i);
        obtain.getText().add(obtainAccessibilityNodeInfo.Mqv2r_3());
        obtain.setContentDescription(obtainAccessibilityNodeInfo.m237QxJ9d_1());
        obtain.setScrollable(obtainAccessibilityNodeInfo.Nm6q_10());
        obtain.setPassword(obtainAccessibilityNodeInfo.XnFJ5_9());
        obtain.setEnabled(obtainAccessibilityNodeInfo.IFxWkV_5());
        obtain.setChecked(obtainAccessibilityNodeInfo.m234Mqv2r_3());
        onPopulateEventForVirtualView(i, obtain);
        if (obtain.getText().isEmpty() && obtain.getContentDescription() == null) {
            throw new RuntimeException("Callbacks must add text or a content description in populateEventForVirtualViewId()");
        }
        obtain.setClassName(obtainAccessibilityNodeInfo.m226KQgRr5e_0());
        IFxWkV_5.KQgRr5e_0(obtain, this.mHost, i);
        obtain.setPackageName(this.mHost.getContext().getPackageName());
        return obtain;
    }

    private AccessibilityEvent createEventForHost(int i) {
        AccessibilityEvent obtain = AccessibilityEvent.obtain(i);
        this.mHost.onInitializeAccessibilityEvent(obtain);
        return obtain;
    }

    private Mqv2r_3 createNodeForChild(int i) {
        Mqv2r_3 KQgRr5e_0 = Mqv2r_3.KQgRr5e_0();
        KQgRr5e_0.FSaI4_7(true);
        KQgRr5e_0.Xgtqvk_8(true);
        KQgRr5e_0.m231KQgRr5e_0(DEFAULT_CLASS_NAME);
        KQgRr5e_0.PGPF6hQ_2(INVALID_PARENT_BOUNDS);
        KQgRr5e_0.Mqv2r_3(INVALID_PARENT_BOUNDS);
        KQgRr5e_0.PGPF6hQ_2(this.mHost);
        onPopulateNodeForVirtualView(i, KQgRr5e_0);
        if (KQgRr5e_0.Mqv2r_3() == null && KQgRr5e_0.m237QxJ9d_1() == null) {
            throw new RuntimeException("Callbacks must add text or a content description in populateNodeForVirtualViewId()");
        }
        KQgRr5e_0.KQgRr5e_0(this.mTempParentRect);
        if (!this.mTempParentRect.equals(INVALID_PARENT_BOUNDS)) {
            int m222KQgRr5e_0 = KQgRr5e_0.m222KQgRr5e_0();
            if ((m222KQgRr5e_0 & 64) == 0) {
                if ((m222KQgRr5e_0 & RecyclerView.WGk6X_27.FLAG_IGNORE) == 0) {
                    KQgRr5e_0.X6FRs_4(this.mHost.getContext().getPackageName());
                    KQgRr5e_0.PGPF6hQ_2(this.mHost, i);
                    if (this.mAccessibilityFocusedVirtualViewId == i) {
                        KQgRr5e_0.KQgRr5e_0(true);
                        KQgRr5e_0.m229KQgRr5e_0(RecyclerView.WGk6X_27.FLAG_IGNORE);
                    } else {
                        KQgRr5e_0.KQgRr5e_0(false);
                        KQgRr5e_0.m229KQgRr5e_0(64);
                    }
                    boolean z = this.mKeyboardFocusedVirtualViewId == i;
                    if (z) {
                        KQgRr5e_0.m229KQgRr5e_0(2);
                    } else if (KQgRr5e_0.IMuAHx_6()) {
                        KQgRr5e_0.m229KQgRr5e_0(1);
                    }
                    KQgRr5e_0.XnFJ5_9(z);
                    this.mHost.getLocationOnScreen(this.mTempGlobalRect);
                    KQgRr5e_0.QxJ9d_1(this.mTempScreenRect);
                    if (this.mTempScreenRect.equals(INVALID_PARENT_BOUNDS)) {
                        KQgRr5e_0.KQgRr5e_0(this.mTempScreenRect);
                        if (KQgRr5e_0.KQgRr5e_0 != -1) {
                            Mqv2r_3 KQgRr5e_02 = Mqv2r_3.KQgRr5e_0();
                            for (int i2 = KQgRr5e_0.KQgRr5e_0; i2 != -1; i2 = KQgRr5e_02.KQgRr5e_0) {
                                KQgRr5e_02.QxJ9d_1(this.mHost, -1);
                                KQgRr5e_02.PGPF6hQ_2(INVALID_PARENT_BOUNDS);
                                onPopulateNodeForVirtualView(i2, KQgRr5e_02);
                                KQgRr5e_02.KQgRr5e_0(this.mTempParentRect);
                                Rect rect = this.mTempScreenRect;
                                Rect rect2 = this.mTempParentRect;
                                rect.offset(rect2.left, rect2.top);
                            }
                            KQgRr5e_02.m238QxJ9d_1();
                        }
                        this.mTempScreenRect.offset(this.mTempGlobalRect[0] - this.mHost.getScrollX(), this.mTempGlobalRect[1] - this.mHost.getScrollY());
                    }
                    if (this.mHost.getLocalVisibleRect(this.mTempVisibleRect)) {
                        this.mTempVisibleRect.offset(this.mTempGlobalRect[0] - this.mHost.getScrollX(), this.mTempGlobalRect[1] - this.mHost.getScrollY());
                        if (this.mTempScreenRect.intersect(this.mTempVisibleRect)) {
                            KQgRr5e_0.Mqv2r_3(this.mTempScreenRect);
                            if (isVisibleToUser(this.mTempScreenRect)) {
                                KQgRr5e_0.JZJr_16(true);
                            }
                        }
                    }
                    return KQgRr5e_0;
                }
                throw new RuntimeException("Callbacks must not add ACTION_CLEAR_ACCESSIBILITY_FOCUS in populateNodeForVirtualViewId()");
            }
            throw new RuntimeException("Callbacks must not add ACTION_ACCESSIBILITY_FOCUS in populateNodeForVirtualViewId()");
        }
        throw new RuntimeException("Callbacks must set parent bounds in populateNodeForVirtualViewId()");
    }

    private Mqv2r_3 createNodeForHost() {
        Mqv2r_3 KQgRr5e_0 = Mqv2r_3.KQgRr5e_0(this.mHost);
        ZzDuCHW_20.KQgRr5e_0(this.mHost, KQgRr5e_0);
        ArrayList arrayList = new ArrayList();
        getVisibleVirtualViews(arrayList);
        if (KQgRr5e_0.QxJ9d_1() > 0 && arrayList.size() > 0) {
            throw new RuntimeException("Views cannot have both real and virtual children");
        }
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            KQgRr5e_0.KQgRr5e_0(this.mHost, ((Integer) arrayList.get(i)).intValue());
        }
        return KQgRr5e_0;
    }

    private FSaI4_7<Mqv2r_3> getAllNodes() {
        ArrayList arrayList = new ArrayList();
        getVisibleVirtualViews(arrayList);
        FSaI4_7<Mqv2r_3> fSaI4_7 = new FSaI4_7<>();
        for (int i = 0; i < arrayList.size(); i++) {
            fSaI4_7.QxJ9d_1(i, createNodeForChild(i));
        }
        return fSaI4_7;
    }

    private void getBoundsInParent(int i, Rect rect) {
        obtainAccessibilityNodeInfo(i).KQgRr5e_0(rect);
    }

    public static Rect guessPreviouslyFocusedRect(View view, int i, Rect rect) {
        int width = view.getWidth();
        int height = view.getHeight();
        if (i == 17) {
            rect.set(width, 0, width, height);
        } else if (i == 33) {
            rect.set(0, height, width, height);
        } else if (i == 66) {
            rect.set(-1, 0, -1, height);
        } else if (i == 130) {
            rect.set(0, -1, width, -1);
        } else {
            throw new IllegalArgumentException("direction must be one of {FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
        }
        return rect;
    }

    private boolean isVisibleToUser(Rect rect) {
        if (rect == null || rect.isEmpty() || this.mHost.getWindowVisibility() != 0) {
            return false;
        }
        ViewParent parent = this.mHost.getParent();
        while (parent instanceof View) {
            View view = (View) parent;
            if (view.getAlpha() <= 0.0f || view.getVisibility() != 0) {
                return false;
            }
            parent = view.getParent();
        }
        return parent != null;
    }

    public static int keyToDirection(int i) {
        if (i != 19) {
            if (i != 21) {
                return i != 22 ? 130 : 66;
            }
            return 17;
        }
        return 33;
    }

    private boolean moveFocus(int i, Rect rect) {
        Mqv2r_3 mqv2r_3;
        FSaI4_7<Mqv2r_3> allNodes = getAllNodes();
        int i2 = this.mKeyboardFocusedVirtualViewId;
        int i3 = INVALID_ID;
        Mqv2r_3 m490KQgRr5e_0 = i2 == Integer.MIN_VALUE ? null : allNodes.m490KQgRr5e_0(i2);
        if (i == 1 || i == 2) {
            mqv2r_3 = (Mqv2r_3) X6FRs_4.Xgtqvk_8.KQgRr5e_0.QxJ9d_1.KQgRr5e_0(allNodes, SPARSE_VALUES_ADAPTER, NODE_ADAPTER, m490KQgRr5e_0, i, ZzDuCHW_20.Mqv2r_3(this.mHost) == 1, false);
        } else if (i != 17 && i != 33 && i != 66 && i != 130) {
            throw new IllegalArgumentException("direction must be one of {FOCUS_FORWARD, FOCUS_BACKWARD, FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT}.");
        } else {
            Rect rect2 = new Rect();
            int i4 = this.mKeyboardFocusedVirtualViewId;
            if (i4 != Integer.MIN_VALUE) {
                getBoundsInParent(i4, rect2);
            } else if (rect != null) {
                rect2.set(rect);
            } else {
                guessPreviouslyFocusedRect(this.mHost, i, rect2);
            }
            mqv2r_3 = (Mqv2r_3) X6FRs_4.Xgtqvk_8.KQgRr5e_0.QxJ9d_1.KQgRr5e_0(allNodes, SPARSE_VALUES_ADAPTER, NODE_ADAPTER, m490KQgRr5e_0, rect2, i);
        }
        if (mqv2r_3 != null) {
            i3 = allNodes.QxJ9d_1(allNodes.KQgRr5e_0((FSaI4_7<Mqv2r_3>) mqv2r_3));
        }
        return requestKeyboardFocusForVirtualView(i3);
    }

    private boolean performActionForChild(int i, int i2, Bundle bundle) {
        if (i2 != 1) {
            if (i2 != 2) {
                if (i2 != 64) {
                    if (i2 != 128) {
                        return onPerformActionForVirtualView(i, i2, bundle);
                    }
                    return clearAccessibilityFocus(i);
                }
                return requestAccessibilityFocus(i);
            }
            return clearKeyboardFocusForVirtualView(i);
        }
        return requestKeyboardFocusForVirtualView(i);
    }

    private boolean performActionForHost(int i, Bundle bundle) {
        return ZzDuCHW_20.KQgRr5e_0(this.mHost, i, bundle);
    }

    private boolean requestAccessibilityFocus(int i) {
        int i2;
        if (this.mManager.isEnabled() && this.mManager.isTouchExplorationEnabled() && (i2 = this.mAccessibilityFocusedVirtualViewId) != i) {
            if (i2 != Integer.MIN_VALUE) {
                clearAccessibilityFocus(i2);
            }
            this.mAccessibilityFocusedVirtualViewId = i;
            this.mHost.invalidate();
            sendEventForVirtualView(i, 32768);
            return true;
        }
        return false;
    }

    private void updateHoveredVirtualView(int i) {
        int i2 = this.mHoveredVirtualViewId;
        if (i2 == i) {
            return;
        }
        this.mHoveredVirtualViewId = i;
        sendEventForVirtualView(i, RecyclerView.WGk6X_27.FLAG_IGNORE);
        sendEventForVirtualView(i2, RecyclerView.WGk6X_27.FLAG_TMP_DETACHED);
    }

    public final boolean clearKeyboardFocusForVirtualView(int i) {
        if (this.mKeyboardFocusedVirtualViewId != i) {
            return false;
        }
        this.mKeyboardFocusedVirtualViewId = INVALID_ID;
        onVirtualViewKeyboardFocusChanged(i, false);
        sendEventForVirtualView(i, 8);
        return true;
    }

    public final boolean dispatchHoverEvent(MotionEvent motionEvent) {
        if (this.mManager.isEnabled() && this.mManager.isTouchExplorationEnabled()) {
            int action = motionEvent.getAction();
            if (action != 7 && action != 9) {
                if (action == 10 && this.mHoveredVirtualViewId != Integer.MIN_VALUE) {
                    updateHoveredVirtualView(INVALID_ID);
                    return true;
                }
                return false;
            }
            int virtualViewAt = getVirtualViewAt(motionEvent.getX(), motionEvent.getY());
            updateHoveredVirtualView(virtualViewAt);
            return virtualViewAt != Integer.MIN_VALUE;
        }
        return false;
    }

    public final boolean dispatchKeyEvent(KeyEvent keyEvent) {
        int i = 0;
        if (keyEvent.getAction() != 1) {
            int keyCode = keyEvent.getKeyCode();
            if (keyCode != 61) {
                if (keyCode != 66) {
                    switch (keyCode) {
                        case 19:
                        case 20:
                        case 21:
                        case 22:
                            if (keyEvent.hasNoModifiers()) {
                                int keyToDirection = keyToDirection(keyCode);
                                int repeatCount = keyEvent.getRepeatCount() + 1;
                                boolean z = false;
                                while (i < repeatCount && moveFocus(keyToDirection, null)) {
                                    i++;
                                    z = true;
                                }
                                return z;
                            }
                            return false;
                        case 23:
                            break;
                        default:
                            return false;
                    }
                }
                if (keyEvent.hasNoModifiers() && keyEvent.getRepeatCount() == 0) {
                    clickKeyboardFocusedVirtualView();
                    return true;
                }
                return false;
            } else if (keyEvent.hasNoModifiers()) {
                return moveFocus(2, null);
            } else {
                if (keyEvent.hasModifiers(1)) {
                    return moveFocus(1, null);
                }
                return false;
            }
        }
        return false;
    }

    public final int getAccessibilityFocusedVirtualViewId() {
        return this.mAccessibilityFocusedVirtualViewId;
    }

    @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.KQgRr5e_0
    public X6FRs_4 getAccessibilityNodeProvider(View view) {
        if (this.mNodeProvider == null) {
            this.mNodeProvider = new PGPF6hQ_2();
        }
        return this.mNodeProvider;
    }

    @Deprecated
    public int getFocusedVirtualView() {
        return getAccessibilityFocusedVirtualViewId();
    }

    public final int getKeyboardFocusedVirtualViewId() {
        return this.mKeyboardFocusedVirtualViewId;
    }

    public abstract int getVirtualViewAt(float f, float f2);

    public abstract void getVisibleVirtualViews(List<Integer> list);

    public final void invalidateRoot() {
        invalidateVirtualView(-1, 1);
    }

    public final void invalidateVirtualView(int i) {
        invalidateVirtualView(i, 0);
    }

    public Mqv2r_3 obtainAccessibilityNodeInfo(int i) {
        if (i == -1) {
            return createNodeForHost();
        }
        return createNodeForChild(i);
    }

    public final void onFocusChanged(boolean z, int i, Rect rect) {
        int i2 = this.mKeyboardFocusedVirtualViewId;
        if (i2 != Integer.MIN_VALUE) {
            clearKeyboardFocusForVirtualView(i2);
        }
        if (z) {
            moveFocus(i, rect);
        }
    }

    @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.KQgRr5e_0
    public void onInitializeAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) {
        super.onInitializeAccessibilityEvent(view, accessibilityEvent);
        onPopulateEventForHost(accessibilityEvent);
    }

    @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.KQgRr5e_0
    public void onInitializeAccessibilityNodeInfo(View view, Mqv2r_3 mqv2r_3) {
        super.onInitializeAccessibilityNodeInfo(view, mqv2r_3);
        onPopulateNodeForHost(mqv2r_3);
    }

    public abstract boolean onPerformActionForVirtualView(int i, int i2, Bundle bundle);

    public void onPopulateEventForHost(AccessibilityEvent accessibilityEvent) {
    }

    public void onPopulateEventForVirtualView(int i, AccessibilityEvent accessibilityEvent) {
    }

    public void onPopulateNodeForHost(Mqv2r_3 mqv2r_3) {
    }

    public abstract void onPopulateNodeForVirtualView(int i, Mqv2r_3 mqv2r_3);

    public void onVirtualViewKeyboardFocusChanged(int i, boolean z) {
    }

    public boolean performAction(int i, int i2, Bundle bundle) {
        if (i != -1) {
            return performActionForChild(i, i2, bundle);
        }
        return performActionForHost(i2, bundle);
    }

    public final boolean requestKeyboardFocusForVirtualView(int i) {
        int i2;
        if ((this.mHost.isFocused() || this.mHost.requestFocus()) && (i2 = this.mKeyboardFocusedVirtualViewId) != i) {
            if (i2 != Integer.MIN_VALUE) {
                clearKeyboardFocusForVirtualView(i2);
            }
            this.mKeyboardFocusedVirtualViewId = i;
            onVirtualViewKeyboardFocusChanged(i, true);
            sendEventForVirtualView(i, 8);
            return true;
        }
        return false;
    }

    public final boolean sendEventForVirtualView(int i, int i2) {
        ViewParent parent;
        if (i == Integer.MIN_VALUE || !this.mManager.isEnabled() || (parent = this.mHost.getParent()) == null) {
            return false;
        }
        return SI64pbG_23.KQgRr5e_0(parent, this.mHost, createEvent(i, i2));
    }

    /* compiled from: ExploreByTouchHelper.java */
    /* loaded from: classes.dex */
    public static class QxJ9d_1 implements QxJ9d_1.InterfaceC0069QxJ9d_1<FSaI4_7<Mqv2r_3>, Mqv2r_3> {
        @Override // X6FRs_4.Xgtqvk_8.KQgRr5e_0.QxJ9d_1.InterfaceC0069QxJ9d_1
        public Mqv2r_3 KQgRr5e_0(FSaI4_7<Mqv2r_3> fSaI4_7, int i) {
            return fSaI4_7.m494QxJ9d_1(i);
        }

        @Override // X6FRs_4.Xgtqvk_8.KQgRr5e_0.QxJ9d_1.InterfaceC0069QxJ9d_1
        public int KQgRr5e_0(FSaI4_7<Mqv2r_3> fSaI4_7) {
            return fSaI4_7.KQgRr5e_0();
        }
    }

    public final void invalidateVirtualView(int i, int i2) {
        ViewParent parent;
        if (i == Integer.MIN_VALUE || !this.mManager.isEnabled() || (parent = this.mHost.getParent()) == null) {
            return;
        }
        AccessibilityEvent createEvent = createEvent(i, RecyclerView.WGk6X_27.FLAG_MOVED);
        X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.QxJ9d_1.KQgRr5e_0(createEvent, i2);
        SI64pbG_23.KQgRr5e_0(parent, this.mHost, createEvent);
    }

    /* compiled from: ExploreByTouchHelper.java */
    /* loaded from: classes.dex */
    public class PGPF6hQ_2 extends X6FRs_4 {
        public PGPF6hQ_2() {
        }

        @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.X6FRs_4
        public Mqv2r_3 KQgRr5e_0(int i) {
            return Mqv2r_3.KQgRr5e_0(KQgRr5e_0.this.obtainAccessibilityNodeInfo(i));
        }

        @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.X6FRs_4
        public Mqv2r_3 QxJ9d_1(int i) {
            int i2 = i == 2 ? KQgRr5e_0.this.mAccessibilityFocusedVirtualViewId : KQgRr5e_0.this.mKeyboardFocusedVirtualViewId;
            if (i2 == Integer.MIN_VALUE) {
                return null;
            }
            return KQgRr5e_0(i2);
        }

        @Override // X6FRs_4.IMuAHx_6.EuDEkJe_12.NzhupJ_29.X6FRs_4
        public boolean KQgRr5e_0(int i, int i2, Bundle bundle) {
            return KQgRr5e_0.this.performAction(i, i2, bundle);
        }
    }
}
