package m;

import android.graphics.PointF;
import android.graphics.Rect;
import android.util.Property;
import android.view.View;
import androidx.appcompat.widget.SwitchCompat;
import java.lang.reflect.Field;
import z0.C1136e;

/* JADX INFO: loaded from: classes.dex */
public final class J0 extends Property {

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ J0(Class cls, String str, int i) {
        super(cls, str);
        this.f9047a = i;
    }

    @Override // android.util.Property
    public final Object get(Object obj) {
        switch (this.f9047a) {
            case 0:
                return Float.valueOf(((SwitchCompat) obj).J);
            case 1:
                return null;
            case 2:
                return null;
            case 3:
                return null;
            case 4:
                return null;
            case 5:
                return null;
            case 6:
                return Float.valueOf(z0.x.f11054a.q((View) obj));
            default:
                Field field = P.Q.f2392a;
                return ((View) obj).getClipBounds();
        }
    }

    @Override // android.util.Property
    public final void set(Object obj, Object obj2) {
        switch (this.f9047a) {
            case 0:
                ((SwitchCompat) obj).setThumbPosition(((Float) obj2).floatValue());
                break;
            case 1:
                C1136e c1136e = (C1136e) obj;
                PointF pointF = (PointF) obj2;
                c1136e.getClass();
                c1136e.f10992a = Math.round(pointF.x);
                int iRound = Math.round(pointF.y);
                c1136e.f10993b = iRound;
                int i = c1136e.f10997f + 1;
                c1136e.f10997f = i;
                if (i == c1136e.f10998g) {
                    z0.x.a(c1136e.f10996e, c1136e.f10992a, iRound, c1136e.f10994c, c1136e.f10995d);
                    c1136e.f10997f = 0;
                    c1136e.f10998g = 0;
                }
                break;
            case 2:
                C1136e c1136e2 = (C1136e) obj;
                PointF pointF2 = (PointF) obj2;
                c1136e2.getClass();
                c1136e2.f10994c = Math.round(pointF2.x);
                int iRound2 = Math.round(pointF2.y);
                c1136e2.f10995d = iRound2;
                int i5 = c1136e2.f10998g + 1;
                c1136e2.f10998g = i5;
                if (c1136e2.f10997f == i5) {
                    z0.x.a(c1136e2.f10996e, c1136e2.f10992a, c1136e2.f10993b, c1136e2.f10994c, iRound2);
                    c1136e2.f10997f = 0;
                    c1136e2.f10998g = 0;
                }
                break;
            case 3:
                View view = (View) obj;
                PointF pointF3 = (PointF) obj2;
                z0.x.a(view, view.getLeft(), view.getTop(), Math.round(pointF3.x), Math.round(pointF3.y));
                break;
            case 4:
                View view2 = (View) obj;
                PointF pointF4 = (PointF) obj2;
                z0.x.a(view2, Math.round(pointF4.x), Math.round(pointF4.y), view2.getRight(), view2.getBottom());
                break;
            case 5:
                View view3 = (View) obj;
                PointF pointF5 = (PointF) obj2;
                int iRound3 = Math.round(pointF5.x);
                int iRound4 = Math.round(pointF5.y);
                z0.x.a(view3, iRound3, iRound4, view3.getWidth() + iRound3, view3.getHeight() + iRound4);
                break;
            case 6:
                float fFloatValue = ((Float) obj2).floatValue();
                z0.x.f11054a.z((View) obj, fFloatValue);
                break;
            default:
                Field field = P.Q.f2392a;
                ((View) obj).setClipBounds((Rect) obj2);
                break;
        }
    }
}
