package c3;

import com.google.android.gms.common.api.Api;

/* loaded from: classes.dex */
public interface d extends l {
    default float L0(float f10) {
        return f10 * getDensity();
    }

    default long V(long j10) {
        return (j10 > 9205357640488583168L ? 1 : (j10 == 9205357640488583168L ? 0 : -1)) != 0 ? i.b(y0(r1.m.i(j10)), y0(r1.m.g(j10))) : k.f7419b.a();
    }

    default int Z0(float f10) {
        float L0 = L0(f10);
        return Float.isInfinite(L0) ? Api.BaseClientBuilder.API_PRIORITY_OTHER : Math.round(L0);
    }

    float getDensity();

    default long l1(long j10) {
        return (j10 > 9205357640488583168L ? 1 : (j10 == 9205357640488583168L ? 0 : -1)) != 0 ? r1.n.a(L0(k.h(j10)), L0(k.g(j10))) : r1.m.f34339b.a();
    }

    default float s1(long j10) {
        if (x.g(v.g(j10), x.f7440b.b())) {
            return L0(a0(j10));
        }
        throw new IllegalStateException("Only Sp can convert to Px".toString());
    }

    default long t0(float f10) {
        return U(y0(f10));
    }

    default float w(int i10) {
        return h.t(i10 / getDensity());
    }

    default float y0(float f10) {
        return h.t(f10 / getDensity());
    }
}
