package androidx.leanback.widget;

import android.graphics.PointF;
import android.graphics.Rect;
import android.util.Property;
import android.view.View;
import v2.AbstractC3127z;
import v2.C3105d;

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

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

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

    @Override // android.util.Property
    public final Object get(Object obj) {
        switch (this.f12078a) {
            case 0:
                return Float.valueOf(((A) obj).f11781a);
            case 1:
                return Float.valueOf(((A) obj).f11785e);
            case 2:
                return Float.valueOf(((A) obj).f11783c);
            case 3:
                return Integer.valueOf(((U) obj).getStreamPosition());
            case 4:
                return null;
            case 5:
                return null;
            case 6:
                return null;
            case 7:
                return null;
            case 8:
                return null;
            case 9:
                return Float.valueOf(AbstractC3127z.f25394a.e((View) obj));
            default:
                return ((View) obj).getClipBounds();
        }
    }

    @Override // android.util.Property
    public final void set(Object obj, Object obj2) {
        switch (this.f12078a) {
            case 0:
                A a6 = (A) obj;
                a6.f11781a = ((Float) obj2).floatValue();
                a6.a();
                a6.f11790j.invalidate();
                break;
            case 1:
                A a7 = (A) obj;
                float fFloatValue = ((Float) obj2).floatValue();
                a7.f11785e = fFloatValue;
                float f6 = fFloatValue / 2.0f;
                a7.f11786f = f6;
                PagingIndicator pagingIndicator = a7.f11790j;
                a7.f11787g = f6 * pagingIndicator.f11865y;
                pagingIndicator.invalidate();
                break;
            case 2:
                A a8 = (A) obj;
                a8.f11783c = ((Float) obj2).floatValue() * a8.f11788h * a8.f11789i;
                a8.f11790j.invalidate();
                break;
            case 3:
                ((U) obj).setStreamPosition(((Integer) obj2).intValue());
                break;
            case 4:
                C3105d c3105d = (C3105d) obj;
                PointF pointF = (PointF) obj2;
                c3105d.getClass();
                c3105d.f25315a = Math.round(pointF.x);
                int iRound = Math.round(pointF.y);
                c3105d.f25316b = iRound;
                int i6 = c3105d.f25320f + 1;
                c3105d.f25320f = i6;
                if (i6 == c3105d.f25321g) {
                    AbstractC3127z.a(c3105d.f25319e, c3105d.f25315a, iRound, c3105d.f25317c, c3105d.f25318d);
                    c3105d.f25320f = 0;
                    c3105d.f25321g = 0;
                }
                break;
            case 5:
                C3105d c3105d2 = (C3105d) obj;
                PointF pointF2 = (PointF) obj2;
                c3105d2.getClass();
                c3105d2.f25317c = Math.round(pointF2.x);
                int iRound2 = Math.round(pointF2.y);
                c3105d2.f25318d = iRound2;
                int i7 = c3105d2.f25321g + 1;
                c3105d2.f25321g = i7;
                if (c3105d2.f25320f == i7) {
                    AbstractC3127z.a(c3105d2.f25319e, c3105d2.f25315a, c3105d2.f25316b, c3105d2.f25317c, iRound2);
                    c3105d2.f25320f = 0;
                    c3105d2.f25321g = 0;
                }
                break;
            case 6:
                View view = (View) obj;
                PointF pointF3 = (PointF) obj2;
                AbstractC3127z.a(view, view.getLeft(), view.getTop(), Math.round(pointF3.x), Math.round(pointF3.y));
                break;
            case 7:
                View view2 = (View) obj;
                PointF pointF4 = (PointF) obj2;
                AbstractC3127z.a(view2, Math.round(pointF4.x), Math.round(pointF4.y), view2.getRight(), view2.getBottom());
                break;
            case 8:
                View view3 = (View) obj;
                PointF pointF5 = (PointF) obj2;
                int iRound3 = Math.round(pointF5.x);
                int iRound4 = Math.round(pointF5.y);
                AbstractC3127z.a(view3, iRound3, iRound4, view3.getWidth() + iRound3, view3.getHeight() + iRound4);
                break;
            case 9:
                float fFloatValue2 = ((Float) obj2).floatValue();
                AbstractC3127z.f25394a.j((View) obj, fFloatValue2);
                break;
            default:
                ((View) obj).setClipBounds((Rect) obj2);
                break;
        }
    }
}
