package ῲ.ⁱ.K.ῲ;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import android.view.View;
import androidx.constraintlayout.motion.widget.MotionLayout;
import androidx.constraintlayout.widget.R$styleable;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.HashSet;
import ඓ.K.K.K.C1293;

/* renamed from: ῲ.ⁱ.K.ῲ.㑃  reason: contains not printable characters */
/* compiled from: KeyTrigger */
public class C2158 extends AbstractC2109 {

    /* renamed from: Ԕ  reason: contains not printable characters */
    public boolean f7500 = true;

    /* renamed from: Ԛ  reason: contains not printable characters */
    public boolean f7501 = false;

    /* renamed from: ؿ  reason: contains not printable characters */
    public float f7502 = Float.NaN;

    /* renamed from: ݜ  reason: contains not printable characters */
    public Method f7503;

    /* renamed from: ඓ  reason: contains not printable characters */
    public String f7504 = null;

    /* renamed from: ᓆ  reason: contains not printable characters */
    public RectF f7505 = new RectF();

    /* renamed from: ᓣ  reason: contains not printable characters */
    public Method f7506;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public View f7507 = null;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public int f7508 = -1;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public String f7509 = null;

    /* renamed from: 㑃  reason: contains not printable characters */
    public float f7510 = 0.1f;

    /* renamed from: 㗗  reason: contains not printable characters */
    public boolean f7511 = true;

    /* renamed from: 㗽  reason: contains not printable characters */
    public Method f7512;

    /* renamed from: 㳳  reason: contains not printable characters */
    public int f7513 = -1;

    /* renamed from: 㴹  reason: contains not printable characters */
    public int f7514 = -1;

    /* renamed from: 㶋  reason: contains not printable characters */
    public RectF f7515 = new RectF();

    /* renamed from: 㿎  reason: contains not printable characters */
    public String f7516 = null;

    /* renamed from: 䀟  reason: contains not printable characters */
    public float f7517;

    /* renamed from: 䁗  reason: contains not printable characters */
    public boolean f7518 = true;

    /* renamed from: ῲ.ⁱ.K.ῲ.㑃$K  reason: contains not printable characters */
    /* compiled from: KeyTrigger */
    public static class C2159 {

        /* renamed from: K  reason: contains not printable characters */
        public static SparseIntArray f7519 = new SparseIntArray();

        static {
            f7519.append(R$styleable.KeyTrigger_framePosition, 8);
            f7519.append(R$styleable.KeyTrigger_onCross, 4);
            f7519.append(R$styleable.KeyTrigger_onNegativeCross, 1);
            f7519.append(R$styleable.KeyTrigger_onPositiveCross, 2);
            f7519.append(R$styleable.KeyTrigger_motionTarget, 7);
            f7519.append(R$styleable.KeyTrigger_triggerId, 6);
            f7519.append(R$styleable.KeyTrigger_triggerSlack, 5);
            f7519.append(R$styleable.KeyTrigger_motion_triggerOnCollision, 9);
            f7519.append(R$styleable.KeyTrigger_motion_postLayoutCollision, 10);
            f7519.append(R$styleable.KeyTrigger_triggerReceiver, 11);
        }

        /* renamed from: K  reason: contains not printable characters */
        public static void m5679(C2158 r5, TypedArray typedArray) {
            int indexCount = typedArray.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = typedArray.getIndex(i);
                switch (f7519.get(index)) {
                    case 1:
                        r5.f7509 = typedArray.getString(index);
                        continue;
                    case 2:
                        r5.f7516 = typedArray.getString(index);
                        continue;
                    case 4:
                        r5.f7504 = typedArray.getString(index);
                        continue;
                    case 5:
                        r5.f7510 = typedArray.getFloat(index, r5.f7510);
                        continue;
                    case 6:
                        r5.f7508 = typedArray.getResourceId(index, r5.f7508);
                        continue;
                    case 7:
                        if (MotionLayout.f691) {
                            r5.f7330 = typedArray.getResourceId(index, r5.f7330);
                            if (r5.f7330 == -1) {
                                r5.f7329 = typedArray.getString(index);
                            } else {
                                continue;
                            }
                        } else if (typedArray.peekValue(index).type == 3) {
                            r5.f7329 = typedArray.getString(index);
                        } else {
                            r5.f7330 = typedArray.getResourceId(index, r5.f7330);
                        }
                    case 8:
                        r5.f7331 = typedArray.getInteger(index, r5.f7331);
                        r5.f7502 = (((float) r5.f7331) + 0.5f) / 100.0f;
                        continue;
                    case 9:
                        r5.f7513 = typedArray.getResourceId(index, r5.f7513);
                        continue;
                    case 10:
                        r5.f7501 = typedArray.getBoolean(index, r5.f7501);
                        continue;
                    case 11:
                        r5.f7514 = typedArray.getResourceId(index, r5.f7514);
                        break;
                }
                StringBuilder r3 = C1293.m3416("unused attribute 0x");
                r3.append(Integer.toHexString(index));
                r3.append("   ");
                r3.append(f7519.get(index));
                Log.e("KeyTrigger", r3.toString());
            }
        }
    }

    public C2158() {
        this.f7332 = new HashMap<>();
    }

    @Override // ῲ.ⁱ.K.ῲ.AbstractC2109
    /* renamed from: K  reason: contains not printable characters */
    public void m5675(Context context, AttributeSet attributeSet) {
        C2159.m5679(this, context.obtainStyledAttributes(attributeSet, R$styleable.KeyTrigger));
    }

    @Override // ῲ.ⁱ.K.ῲ.AbstractC2109
    /* renamed from: K  reason: contains not printable characters */
    public void m5677(HashMap<String, AbstractC2113> hashMap) {
    }

    @Override // ῲ.ⁱ.K.ῲ.AbstractC2109
    /* renamed from: K  reason: contains not printable characters */
    public void m5678(HashSet<String> hashSet) {
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m5676(RectF rectF, View view, boolean z) {
        rectF.top = (float) view.getTop();
        rectF.bottom = (float) view.getBottom();
        rectF.left = (float) view.getLeft();
        rectF.right = (float) view.getRight();
        if (z) {
            view.getMatrix().mapRect(rectF);
        }
    }
}
