Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DFluidResizeTaskPositionerTest.kt152 STARTING_BOUNDS.left.toFloat(), in <lambda>()
153 STARTING_BOUNDS.top.toFloat() in <lambda>()
157 STARTING_BOUNDS.left.toFloat() + 10, in <lambda>()
158 STARTING_BOUNDS.top.toFloat() + 10 in <lambda>()
173 STARTING_BOUNDS.left.toFloat(), in <lambda>()
174 STARTING_BOUNDS.top.toFloat() in <lambda>()
178 STARTING_BOUNDS.left.toFloat(), in <lambda>()
179 STARTING_BOUNDS.top.toFloat() in <lambda>()
190 STARTING_BOUNDS.left.toFloat() + 10, in <lambda>()
191 STARTING_BOUNDS.top.toFloat() + 10 in <lambda>()
[all …]
DVeiledResizeTaskPositionerTest.kt152 STARTING_BOUNDS.left.toFloat(), in <lambda>()
153 STARTING_BOUNDS.top.toFloat() in <lambda>()
158 STARTING_BOUNDS.left.toFloat(), in <lambda>()
159 STARTING_BOUNDS.top.toFloat() in <lambda>()
174 STARTING_BOUNDS.left.toFloat(), in <lambda>()
175 STARTING_BOUNDS.top.toFloat() in <lambda>()
179 STARTING_BOUNDS.left.toFloat() + 60, in <lambda>()
180 STARTING_BOUNDS.top.toFloat() + 100 in <lambda>()
187 verify(mockTransaction).setPosition(any(), eq(rectAfterMove.left.toFloat()), in <lambda>()
188 eq(rectAfterMove.top.toFloat())) in <lambda>()
[all …]
DDragPositioningCallbackUtilityTest.kt96 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>()
100 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>()
101 val newY = STARTING_BOUNDS.top.toFloat() + 95 in <lambda>()
116 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>()
120 val newX = STARTING_BOUNDS.right.toFloat() - 95 in <lambda>()
121 val newY = STARTING_BOUNDS.top.toFloat() + 5 in <lambda>()
136 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>()
140 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>()
141 val newY = STARTING_BOUNDS.top.toFloat() + 105 in <lambda>()
156 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/ui/util/
DSpaceVectorConverter.kt24 fun Offset.toFloat(): Float in toFloat() method
25 fun Velocity.toFloat(): Float in toFloat() method
38 override fun Offset.toFloat() = x in toFloat() method
39 override fun Velocity.toFloat() = x in toFloat() method
46 override fun Offset.toFloat() = y in toFloat() method
47 override fun Velocity.toFloat() = y in toFloat() method
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffect.kt52 val time = frameTimeNanos.toFloat() * NANOS_TO_SECONDS in resize()
64 val variationBgd0 = 0.156f * sin((scaledElapsedTime + Math.PI.toFloat() / 2.0f)) in resize()
66 0.0156f * sin((scaledElapsedTime + Math.PI.toFloat() / 3.0f)) * sin(scaledElapsedTime) in resize()
100 fogConfig.foreground.width.toFloat(), in adjustCropping()
101 fogConfig.foreground.height.toFloat() in adjustCropping()
117 fogConfig.background.width.toFloat(), in adjustCropping()
118 fogConfig.background.height.toFloat() in adjustCropping()
155 fogConfig.cloudsTexture.width.toFloat(), in updateTextureUniforms()
156 fogConfig.cloudsTexture.height.toFloat() in updateTextureUniforms()
166 fogConfig.fogTexture.width.toFloat(), in updateTextureUniforms()
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/transformation/
DEdgeTranslate.kt50 Offset(value.x, -elementSize.height.toFloat()) in transform()
56 Offset(-elementSize.width.toFloat(), value.y) in transform()
62 Offset(value.x, sceneSize.height.toFloat()) in transform()
64 Offset(value.x, (sceneSize.height - elementSize.height).toFloat()) in transform()
68 Offset(sceneSize.width.toFloat(), value.y) in transform()
70 Offset((sceneSize.width - elementSize.width).toFloat(), value.y) in transform()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/common/
DHDRIndicator.kt38 val rect = RectF(0f, 0f, width.toFloat(), height.toFloat()) in onDraw()
39 paint.textSize = height.toFloat() in onDraw()
46 canvas.drawText("D", rect.left + height.toFloat(), rect.bottom, paint) in onDraw()
48 canvas.drawText("R", rect.left + height.toFloat() * 2, rect.bottom, paint) in onDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DMediaProjectionTaskView.kt97 width.toFloat(), in onDraw()
98 (height - 1).toFloat(), in onDraw()
99 cornerRadius.toFloat(), in onDraw()
100 cornerRadius.toFloat(), in onDraw()
113 width.toFloat(), in onDraw()
114 height.toFloat(), in onDraw()
115 cornerRadius.toFloat(), in onDraw()
116 cornerRadius.toFloat(), in onDraw()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/
DPriorityNestedScrollConnection.kt182 canStartPreScroll(offsetAvailable.toFloat(), offsetBeforeStart.toFloat()) in PriorityNestedScrollConnection()
185 canStartPostScroll(offsetAvailable.toFloat(), offsetBeforeStart.toFloat()) in PriorityNestedScrollConnection()
188 canStartPostFling(velocityAvailable.toFloat()) in PriorityNestedScrollConnection()
192 onStart = { offsetAvailable -> onStart(offsetAvailable.toFloat()) }, in PriorityNestedScrollConnection()
194 onScroll(offsetAvailable.toFloat()).toOffset() in PriorityNestedScrollConnection()
197 onStop(velocityAvailable.toFloat()).toVelocity() in PriorityNestedScrollConnection()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DBitmapTransitionView.kt84 matrixA.postScale(width.toFloat() / mImageA.width, height.toFloat() / mImageA.height) in <lambda>()
85 matrixB.postScale(width.toFloat() / mImageB.width, height.toFloat() / mImageB.height) in <lambda>()
100 canvas.drawRect(0f, 0f, width.toFloat(), height.toFloat(), mPaint) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthRippleView.kt82 rippleShader.setCenter(value.x.toFloat(), value.y.toFloat()) in <lambda>()
103 radius = maxOf(location.x, location.y, width - location.x, height - location.y).toFloat() in <lambda>()
108 radius = maxOf(location.x, location.y, width - location.x, height - location.y).toFloat() in <lambda>()
129 dwellShader.time = now.toFloat() in <lambda>()
217 dwellShader.time = now.toFloat() in <lambda>()
230 dwellShader.time = now.toFloat() in <lambda>()
268 rippleShader.time = now.toFloat() in <lambda>()
337 canvas?.drawCircle(dwellOrigin.x.toFloat(), dwellOrigin.y.toFloat(), in <lambda>()
342 canvas?.drawCircle(origin.x.toFloat(), origin.y.toFloat(), in <lambda>()
/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()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/none/
DNoEffect.kt39 SizeF(background.width.toFloat(), background.height.toFloat()) in draw()
48 SizeF(foreground.width.toFloat(), foreground.height.toFloat()) in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DCornerDrawable.kt44 updatePath(RectF(l.toFloat(), t.toFloat(), r.toFloat(), b.toFloat())) in setBounds()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextClock.kt87 keyShadowBlur.toFloat(), in initializeAttributes()
88 keyShadowOffsetX.toFloat(), in initializeAttributes()
89 keyShadowOffsetY.toFloat(), in initializeAttributes()
111 ambientShadowBlur.toFloat(), in initializeAttributes()
112 ambientShadowOffsetX.toFloat(), in initializeAttributes()
113 ambientShadowOffsetY.toFloat(), in initializeAttributes()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DGainmapTransformsTest.kt78 m.setRotate(90.0f, (width / 2).toFloat(), (height / 2).toFloat()) in <lambda>()
89 m.setRotate(90.0f, (width / 2).toFloat(), (height / 2).toFloat()) in <lambda>()
110 m.setRotate(200.0f, (width / 2).toFloat(), (height / 2).toFloat()) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DToggleResizeDesktopTaskTransitionHandler.kt83 startBounds.left.toFloat(), in <lambda>()
84 startBounds.top.toFloat() in <lambda>()
98 endBounds.left.toFloat(), in <lambda>()
99 endBounds.top.toFloat() in <lambda>()
110 tx.setPosition(leash, rect.left.toFloat(), rect.top.toFloat()) in <lambda>()
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DPipAppHelper.kt71 initWindowRect.centerX().toFloat(), in <lambda>()
72 initWindowRect.centerY().toFloat() in <lambda>()
83 val finalCoord = GestureHelper.Tuple(endX.toFloat(), initWindowRect.centerY().toFloat()) in <lambda>()
157 val initLeftX = (windowRect.centerX() - windowRect.width() / 4).toFloat() in <lambda>()
159 val initRightX = (windowRect.centerX() + windowRect.width() / 4).toFloat() in <lambda>()
169 val yCoord = windowRect.centerY().toFloat() in <lambda>()
205 val initLeftX = (windowRect.centerX() - windowRect.width() / 4).toFloat() in <lambda>()
207 val initRightX = (windowRect.centerX() + windowRect.width() / 4).toFloat() in <lambda>()
213 val finalLeftX = Math.min(initLeftX + (distDecrease / 2), windowRect.centerX().toFloat()) in <lambda>()
214 val finalRightX = Math.max(initRightX - (distDecrease / 2), windowRect.centerX().toFloat()) in <lambda>()
[all …]
/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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
DFloatProperties.kt46 return rect?.left?.toFloat() ?: -Float.MAX_VALUE in getValue()
65 return rect?.top?.toFloat() ?: -Float.MAX_VALUE in getValue()
78 return rect.width().toFloat() in getValue()
95 return rect.height().toFloat() in getValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryAttributionDrawable.kt51 val hScale = bounds.width().toFloat() / dr.intrinsicWidth.toFloat() in updateBoundsInner()
52 val vScale = bounds.height().toFloat() / dr.intrinsicHeight.toFloat() in updateBoundsInner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverRippleController.kt103 val height = windowBounds.height().toFloat() in <lambda>()
104 val width = windowBounds.width().toFloat() in <lambda>()
121 val height = windowBounds.height().toFloat() in <lambda>()
122 val width = windowBounds.width().toFloat() in <lambda>()
123 val radius = getReceiverIconSize().toFloat() in <lambda>()
/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/
DRotationQuaternion.kt40 val direction = Vector3(x.toFloat(), y.toFloat(), z.toFloat()).toNormalized() in fromQuaternion()
137 (angleX * RAD_TO_DEG).toFloat(), in toEulerAngles()
138 (angleY * RAD_TO_DEG).toFloat(), in toEulerAngles()
139 (angleZ * RAD_TO_DEG).toFloat() in toEulerAngles()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DSplitScreenUtils.kt251 MotionEvent.obtain(downTime, eventTime, action, point.x.toFloat(), point.y.toFloat(), 0) in <lambda>()
268 var currentX = from.x.toFloat() in <lambda>()
269 var currentY = from.y.toFloat() in <lambda>()
270 val stepX = (to.x.toFloat() - from.x.toFloat()) / steps.toFloat() in <lambda>()
271 val stepY = (to.y.toFloat() - from.y.toFloat()) / steps.toFloat() in <lambda>()
289 currentX = to.x.toFloat() in <lambda>()
290 currentY = to.y.toFloat() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DTooltipManager.kt88 arrowLp.width.toFloat(), arrowLp.height.toFloat(), below)) in <lambda>()
92 arrowPaint.pathEffect = CornerPathEffect(arrowRadius.toFloat()) in <lambda>()
122 layout.translationX = (x - p[0] - layout.width / 2).toFloat() in <lambda>()
123 layout.translationY = (y - p[1]).toFloat() - if (!below) layout.height else 0 in <lambda>()

1234567891011