package d.r;

import android.graphics.Rect;
import android.os.Build;
import android.util.Property;
import android.view.View;
import d.h.j.y;
import java.util.concurrent.atomic.AtomicInteger;

/* JADX INFO: loaded from: classes.dex */
public class s {
    public static final y a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final Property<View, Float> f3418b;

    public static class a extends Property<View, Float> {
        public a(Class cls, String str) {
            super(cls, str);
        }

        @Override // android.util.Property
        public Float get(View view) {
            return Float.valueOf(s.a(view));
        }

        @Override // android.util.Property
        public void set(View view, Float f2) {
            float fFloatValue = f2.floatValue();
            s.a.e(view, fFloatValue);
        }
    }

    public static class b extends Property<View, Rect> {
        public b(Class cls, String str) {
            super(cls, str);
        }

        @Override // android.util.Property
        public Rect get(View view) {
            AtomicInteger atomicInteger = d.h.j.y.a;
            return y.e.a(view);
        }

        @Override // android.util.Property
        public void set(View view, Rect rect) {
            AtomicInteger atomicInteger = d.h.j.y.a;
            y.e.c(view, rect);
        }
    }

    static {
        a = Build.VERSION.SDK_INT >= 29 ? new x() : new w();
        f3418b = new a(Float.class, "translationAlpha");
        new b(Rect.class, "clipBounds");
    }

    public static float a(View view) {
        return a.b(view);
    }

    public static void b(View view, int i2, int i3, int i4, int i5) {
        a.d(view, i2, i3, i4, i5);
    }
}
