Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DHalf.java229 return (byte) toFloat(mValue); in byteValue()
241 return (short) toFloat(mValue); in shortValue()
253 return (int) toFloat(mValue); in intValue()
265 return (long) toFloat(mValue); in longValue()
277 return toFloat(mValue); in floatValue()
289 return toFloat(mValue); in doubleValue()
778 public static float toFloat(@HalfFloat short h) { in toFloat() method in Half
779 return FP16.toFloat(h); in toFloat()
871 return Float.toString(toFloat(h)); in toString()
DRational.java283 public float toFloat() { in toFloat() method in Rational
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt33 return Math.hypot(x.toDouble(), y.toDouble()).toFloat() in hypot()
178 return Math.pow(a.toDouble(), b.toDouble()).toFloat() in powf()
188 val newR = Math.max(1f, powf(adjustPressure(s.pressure), 2f).toFloat() * _brushWidth) in plot()
219 if (touchData.has("min")) devicePressureMin = touchData.getDouble("min").toFloat() in loadDevicePressureData()
220 if (touchData.has("max")) devicePressureMax = touchData.getDouble("max").toFloat() in loadDevicePressureData()
329 matrix.postTranslate(0f, bits.height.toFloat()) in setupBitmaps()
333 matrix.postTranslate(bits.width.toFloat(), 0f) in setupBitmaps()
337 bits.width.toFloat() / oldBits.height, in setupBitmaps()
338 bits.height.toFloat() / oldBits.width) in setupBitmaps()
DBrushPropertyDrawable.kt67 val w = bounds.width().toFloat() in draw()
68 val h = bounds.height().toFloat() in draw()
DPalette.kt39 val hsv = floatArrayOf((Math.random() * 360f).toFloat(), S, V) in randomize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DPulseExpansionHandler.kt120 mTouchSlop = ViewConfiguration.get(context).scaledTouchSlop.toFloat() in <lambda>()
241 expansionHeight = max(newHeight.toFloat(), expansionHeight) in <lambda>()
316 totalX += mTemp2[0].toFloat() in <lambda>()
317 totalY += mTemp2[1].toFloat() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/
DBurnInHelper.kt34 amplitude.toFloat(), in getBurnInOffset()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt191 levelRect.top = Math.floor(fillTop.toDouble()).toFloat() in <lambda>()
218 bounds.right.toFloat(), in <lambda>()
219 bounds.bottom.toFloat()) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt30 private var fontScale: Float = 0.toFloat()
/frameworks/base/graphics/java/android/graphics/
DColor.java724 return Half.toFloat((short) ((color >> 48) & 0xffff)); in red()
744 return Half.toFloat((short) ((color >> 32) & 0xffff)); in green()
764 return Half.toFloat((short) ((color >> 16) & 0xffff)); in blue()
DBitmap.java1897 float r = Half.toFloat((short) ((rgba >> 0) & 0xffff)); in getColor()
1898 float g = Half.toFloat((short) ((rgba >> 16) & 0xffff)); in getColor()
1899 float b = Half.toFloat((short) ((rgba >> 32) & 0xffff)); in getColor()
1900 float a = Half.toFloat((short) ((rgba >> 48) & 0xffff)); in getColor()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuare.kt39 var f = (data[i] ushr 24).toFloat() / s in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationWakeUpCoordinator.kt305 duration = (duration.toFloat() / 1.5F).toLong(); in startVisibilityAnimation()
/frameworks/base/non-updatable-api/
Dcurrent.txt49244 method public static float toFloat(@HalfFloat short);
/frameworks/base/api/
Dcurrent.txt49388 method public static float toFloat(@HalfFloat short);
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt72270 Landroid/util/Rational;->toFloat()F