package z;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.SparseIntArray;
import io.flutter.embedding.android.AndroidTouchProcessor;
import io.flutter.plugin.editing.FlutterTextUtils;

/* JADX INFO: loaded from: classes.dex */
public final class m {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public static final SparseIntArray f10941n;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public float f10942a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public float f10943b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public float f10944c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public float f10945d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public float f10946e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public float f10947f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public float f10948g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f10949h;
    public float i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public float f10950j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public float f10951k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public boolean f10952l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public float f10953m;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        f10941n = sparseIntArray;
        sparseIntArray.append(6, 1);
        sparseIntArray.append(7, 2);
        sparseIntArray.append(8, 3);
        sparseIntArray.append(4, 4);
        sparseIntArray.append(5, 5);
        sparseIntArray.append(0, 6);
        sparseIntArray.append(1, 7);
        sparseIntArray.append(2, 8);
        sparseIntArray.append(3, 9);
        sparseIntArray.append(9, 10);
        sparseIntArray.append(10, 11);
        sparseIntArray.append(11, 12);
    }

    public final void a(Context context, AttributeSet attributeSet) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, r.i);
        int indexCount = typedArrayObtainStyledAttributes.getIndexCount();
        for (int i = 0; i < indexCount; i++) {
            int index = typedArrayObtainStyledAttributes.getIndex(i);
            switch (f10941n.get(index)) {
                case 1:
                    this.f10942a = typedArrayObtainStyledAttributes.getFloat(index, this.f10942a);
                    break;
                case 2:
                    this.f10943b = typedArrayObtainStyledAttributes.getFloat(index, this.f10943b);
                    break;
                case 3:
                    this.f10944c = typedArrayObtainStyledAttributes.getFloat(index, this.f10944c);
                    break;
                case 4:
                    this.f10945d = typedArrayObtainStyledAttributes.getFloat(index, this.f10945d);
                    break;
                case 5:
                    this.f10946e = typedArrayObtainStyledAttributes.getFloat(index, this.f10946e);
                    break;
                case 6:
                    this.f10947f = typedArrayObtainStyledAttributes.getDimension(index, this.f10947f);
                    break;
                case 7:
                    this.f10948g = typedArrayObtainStyledAttributes.getDimension(index, this.f10948g);
                    break;
                case 8:
                    this.i = typedArrayObtainStyledAttributes.getDimension(index, this.i);
                    break;
                case AndroidTouchProcessor.PointerChange.PAN_ZOOM_END /* 9 */:
                    this.f10950j = typedArrayObtainStyledAttributes.getDimension(index, this.f10950j);
                    break;
                case FlutterTextUtils.LINE_FEED /* 10 */:
                    this.f10951k = typedArrayObtainStyledAttributes.getDimension(index, this.f10951k);
                    break;
                case 11:
                    this.f10952l = true;
                    this.f10953m = typedArrayObtainStyledAttributes.getDimension(index, this.f10953m);
                    break;
                case 12:
                    this.f10949h = n.f(typedArrayObtainStyledAttributes, index, this.f10949h);
                    break;
            }
        }
        typedArrayObtainStyledAttributes.recycle();
    }
}
