/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/ |
RoundedBgTextView.kt | 55 canvas.withTranslation(totalPaddingLeft.toFloat(), totalPaddingTop.toFloat()) {
|
/developers/build/prebuilts/gradle/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/ |
CardViewFragment.kt | 61 cardView.radius = progress.toFloat() 73 cardView.elevation = progress.toFloat()
|
/developers/samples/android/ui/views/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/ |
CardViewFragment.kt | 61 cardView.radius = progress.toFloat() 73 cardView.elevation = progress.toFloat()
|
/cts/tests/tests/util/src/android/util/cts/ |
HalfTest.java | 72 assertEquals(0.0f, toFloat(toHalf(0.0f)), 1e-6f); 73 assertEquals(-0.0f, toFloat(toHalf(-0.0f)), 1e-6f); 74 assertEquals(Float.NaN, toFloat(toHalf(Float.NaN)), 1e-6f); 75 assertEquals(Float.POSITIVE_INFINITY, toFloat(toHalf(Float.POSITIVE_INFINITY)), 1e-6f); 76 assertEquals(Float.NEGATIVE_INFINITY, toFloat(toHalf(Float.NEGATIVE_INFINITY)), 1e-6f); 78 assertEquals(1.0009765625f, toFloat(toHalf(1.0009765625f)), 1e-6f); 79 assertEquals(-2.0f, toFloat(toHalf(-2.0f)), 1e-6f); 80 assertEquals(6.1035156e-5f, toFloat(toHalf(6.10352e-5f)), 1e-6f); // Inexact 81 assertEquals(65504.0f, toFloat(toHalf(65504.0f)), 1e-6f); 82 assertEquals(0.33325195f, toFloat(toHalf(1.0f / 3.0f)), 1e-6f); // Inexac [all...] |
/developers/build/prebuilts/gradle/DownloadableFonts/kotlinApp/app/src/main/kotlin/com/example/android/downloadablefonts/ |
MainActivity.kt | 158 val widthValue = (100 * WIDTH_DEFAULT.toFloat() / WIDTH_MAX.toFloat()).toInt() 173 val weightValue = WEIGHT_DEFAULT.toFloat() / WEIGHT_MAX.toFloat() * 100 215 return (if (progress == 0) 1 else progress * WIDTH_MAX / 100).toFloat() 241 return progress.toFloat() / 100f
|
/developers/samples/android/ui/fonts/DownloadableFonts/kotlinApp/app/src/main/kotlin/com/example/android/downloadablefonts/ |
MainActivity.kt | 158 val widthValue = (100 * WIDTH_DEFAULT.toFloat() / WIDTH_MAX.toFloat()).toInt() 173 val weightValue = WEIGHT_DEFAULT.toFloat() / WEIGHT_MAX.toFloat() * 100 215 return (if (progress == 0) 1 else progress * WIDTH_MAX / 100).toFloat() 241 return progress.toFloat() / 100f
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
format_types.h | 543 static float toFloat() { return 0.0; } 554 static float toFloat() { return 0.0; } 565 static float toFloat() { return 0.0; } 576 static float toFloat() { return 0.0; } 587 static float toFloat() { return 0.0; } 598 static float toFloat() { return 0.0; } 609 static float toFloat() { return 0.0; } 620 static float toFloat() { return 1.0f / 31.0f; } 631 static float toFloat() { return 1.0f / 63.0f; } 642 static float toFloat() { return 1.0f / 255.0f; [all...] |
format_conversion.h | 65 vComp = _simd_mul_ps(vComp, _simd_set1_ps(FormatTraits<SrcFormat>::toFloat(comp))); 235 vComp = _simd16_mul_ps(vComp, _simd16_set1_ps(FormatTraits<SrcFormat>::toFloat(comp)));
|
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/ |
CustomVirtualView.kt | 57 textSize = textHeight.toFloat() 120 var y = (topMargin + lineLength).toFloat() 123 x = leftMargin.toFloat() 137 y += lineLength.toFloat()
|
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/ |
CustomVirtualView.kt | 57 textSize = textHeight.toFloat() 120 var y = (topMargin + lineLength).toFloat() 123 x = leftMargin.toFloat() 137 y += lineLength.toFloat()
|
/developers/build/prebuilts/gradle/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/ |
Camera2BasicFragment.kt | 557 val viewRect = RectF(0f, 0f, viewWidth.toFloat(), viewHeight.toFloat()) 558 val bufferRect = RectF(0f, 0f, previewSize.height.toFloat(), previewSize.width.toFloat()) 565 viewHeight.toFloat() / previewSize.height, 566 viewWidth.toFloat() / previewSize.width) 570 postRotate((90 * (rotation - 2)).toFloat(), centerX, centerY)
|
/developers/build/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/ |
Camera2VideoFragment.kt | 452 val viewRect = RectF(0f, 0f, viewWidth.toFloat(), viewHeight.toFloat()) 453 val bufferRect = RectF(0f, 0f, previewSize.height.toFloat(), previewSize.width.toFloat()) 461 viewHeight.toFloat() / previewSize.height, 462 viewWidth.toFloat() / previewSize.width) 465 postRotate((90 * (rotation - 2)).toFloat(), centerX, centerY)
|
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/ |
Camera2BasicFragment.kt | 557 val viewRect = RectF(0f, 0f, viewWidth.toFloat(), viewHeight.toFloat()) 558 val bufferRect = RectF(0f, 0f, previewSize.height.toFloat(), previewSize.width.toFloat()) 565 viewHeight.toFloat() / previewSize.height, 566 viewWidth.toFloat() / previewSize.width) 570 postRotate((90 * (rotation - 2)).toFloat(), centerX, centerY)
|
/developers/samples/android/media/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/ |
Camera2VideoFragment.kt | 452 val viewRect = RectF(0f, 0f, viewWidth.toFloat(), viewHeight.toFloat()) 453 val bufferRect = RectF(0f, 0f, previewSize.height.toFloat(), previewSize.width.toFloat()) 461 viewHeight.toFloat() / previewSize.height, 462 viewWidth.toFloat() / previewSize.width) 465 postRotate((90 * (rotation - 2)).toFloat(), centerX, centerY)
|
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/ |
NotificationHelper.kt | 190 drawOval(0f, 0f, width.toFloat(), height.toFloat(), paint)
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
GLWorld.java | 86 static public float toFloat(int x) {
|
/external/deqp/modules/gles2/scripts/ |
gen-conversions.py | 81 # print x[ndx].toFloat().getScalars() , 82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 102 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 296 genConversionCases([inFloat, inInt, inBool], [toFloat, toInt, toBool]))) 304 genConversionCases([inVec2, inVec3, inVec4, inIVec2, inIVec3, inIVec4, inBVec2, inBVec3, inBVec4], [toFloat, toInt, toBool])))
|
genutil.py | 115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] 118 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] 119 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] 120 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] 233 def toFloat(self): return Scalar(float(self.x)) 347 def toFloat(self): return Vec2(float(self.x), float(self.y)) 433 def toFloat(self): return Vec3(float(self.x), float(self.y), float(self.z)) 526 def toFloat(self): return Vec4(float(self.x), float(self.y), float(self.z), float(self.w))
|
/external/deqp/modules/gles31/scripts/ |
gen-implicit-conversions.py | 241 "float": [Scalar(x).toFloat() for x in IN_ISCALAR], 242 "vec2": [Vec2(x[0], x[1]).toFloat() for x in IN_IVECTOR], 243 "vec3": [Vec3(x[0], x[1], x[2]).toFloat() for x in IN_IVECTOR], 244 "vec4": [Vec4(x[0], x[1], x[2], x[3]).toFloat() for x in IN_IVECTOR], 520 return a.toFloat() * Scalar(2.0) 606 return out[0].toFloat() 610 return Vec2(out[0], out[1]).toFloat() 614 return Vec3(out[0], out[1], out[2]).toFloat() 618 return Vec4(out[0], out[1], out[2], out[3]).toFloat()
|
genutil.py | 115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] 119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] 120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] 121 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] 255 def toFloat(self): return Scalar(float(self.x)) 416 def toFloat(self): return Vec2(float(self.x), float(self.y)) 527 def toFloat(self): return Vec3(float(self.x), float(self.y), float(self.z)) 647 def toFloat(self): return Vec4(float(self.x), float(self.y), float(self.z), float(self.w))
|
/external/deqp/modules/gles3/scripts/ |
gen-conversions.py | 81 # print x[ndx].toFloat().getScalars() , 82 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 105 scalars = reduce(operator.add, [x[ndx].toFloat().getScalars() for x in comps]) 322 genConversionCases([inFloat, inInt, inUint, inBool], [toFloat, toInt, toBool]) +\ 332 genConversionCases([inVec2, inVec3, inVec4, inIVec2, inIVec3, inIVec4, inUVec2, inUVec3, inUVec4, inBVec2, inBVec3, inBVec4], [toFloat, toInt, toBool]) +\
|
genutil.py | 115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] 119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] 120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] 121 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] 255 def toFloat(self): return Scalar(float(self.x)) 414 def toFloat(self): return Vec2(float(self.x), float(self.y)) 525 def toFloat(self): return Vec3(float(self.x), float(self.y), float(self.z)) 645 def toFloat(self): return Vec4(float(self.x), float(self.y), float(self.z), float(self.w))
|
/developers/build/prebuilts/gradle/PictureInPicture/kotlinApp/app/src/main/java/com/example/android/pictureinpicture/widget/ |
MovieView.kt | 185 val aspectRatio = videoHeight.toFloat() / videoWidth 206 val viewRatio = height.toFloat() / width
|
/developers/samples/android/media/PictureInPicture/kotlinApp/app/src/main/java/com/example/android/pictureinpicture/widget/ |
MovieView.kt | 185 val aspectRatio = videoHeight.toFloat() / videoWidth 206 val viewRatio = height.toFloat() / width
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/ |
formats.h | 250 float toFloat[4];
|