Home
last modified time | relevance | path

Searched refs:createComplex (Results 1 – 1 of 1) sorted by relevance

/aosp14/frameworks/base/core/java/android/util/
H A DTypedValue.java576 private static int createComplex(@IntRange(from = -0x800000, to = 0x7FFFFF) int mantissa, in createComplex() method in TypedValue
603 return createComplex(value, TypedValue.COMPLEX_RADIX_23p0); in intToComplex()
625 return createComplex((int) value, TypedValue.COMPLEX_RADIX_23p0); in floatToComplex()
630 return createComplex(Math.round(value * (1 << 23)), TypedValue.COMPLEX_RADIX_0p23); in floatToComplex()
634 return createComplex(Math.round(value * (1 << 15)), TypedValue.COMPLEX_RADIX_8p15); in floatToComplex()
638 return createComplex(Math.round(value * (1 << 7)), TypedValue.COMPLEX_RADIX_16p7); in floatToComplex()
641 return createComplex(Math.round(value), TypedValue.COMPLEX_RADIX_23p0); in floatToComplex()