Home
last modified time | relevance | path

Searched refs:fract (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/transitions/
DClockSizeTransition.kt146 fun lerp(start: Int, end: Int, fract: Float): Int = in <lambda>()
147 MathUtils.lerp(start.toFloat(), end.toFloat(), fract).toInt() in <lambda>()
148 fun computeBounds(fract: Float): Rect = in <lambda>()
150 lerp(fromBounds.left, toBounds.left, fract), in <lambda>()
151 lerp(fromBounds.top, toBounds.top, fract), in <lambda>()
152 lerp(fromBounds.right, toBounds.right, fract), in <lambda>()
153 lerp(fromBounds.bottom, toBounds.bottom, fract) in <lambda>()
156 fun assignAnimValues(src: String, fract: Float, vis: Int? = null) { in <lambda>()
157 val bounds = computeBounds(fract) in <lambda>()
158 val alpha = MathUtils.lerp(fromAlpha, toAlpha, fract) in <lambda>()
[all …]
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dutils.agsl19 vec2 p = fract(point * vec2(723.123, 236.209));
21 return fract(p.x * p.y);
30 n = fract(n * vec2(5.3987, 5.4421));
34 return fract(xy * 95.4307) + fract(xy * 75.04961) - 1.0;
41 vec2 f = fract(fragCoord * scale);
Dglass_rain.agsl70 vec2 cellUv = fract(gridUv) - 0.5;
124 trailDropsPos.y = (fract(trailDropsPos.y * 4.) - 0.5) / 4.;
173 vec2 cellUv = fract(gridUv) - 0.5;
Dsnow_accumulation.agsl25 return fract(sin(dot(uv, vec2(14.53898, 56.233))) * 45312.644263742);
Dsimplex2d.agsl22 return fract(sin(p) * 877.343) * 2. -1.; // [-1, 1]
26 return fract(sin(dot(p, vec2(343.0, 49.0)))) * 2. -1.; // [-1, 1]
Dsnow.agsl88 vec2 cellUv = fract(gridUv) - 0.5;
154 (fract((cellId + 0.03521) * 34.21) * 2. - 1.)); // random B based on cell ID
Dcolor_grading_lut.agsl78 fract(colorTmp)
Drain_shower.agsl63 vec2 cellUv = fract(gridUv) - 0.5;
Drain_shower_layer.agsl55 vec2 cellUv = fract(gridUv) - 0.5;
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java278 mTmpHSL[0] = fract(h[fitIndex]) * 360.0f; in getColorInt()
364 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) { in findTonalPalette()
369 if (candidate.minHue < 0.0f && h >= fract(candidate.minHue) && h <= 1.0f) { in findTonalPalette()
380 } else if (candidate.maxHue > 1.0f && h >= fract(candidate.maxHue) in findTonalPalette()
381 && h - fract(candidate.maxHue) < error) { in findTonalPalette()
383 error = h - fract(candidate.maxHue); in findTonalPalette()
384 } else if (candidate.minHue < 0.0f && h <= fract(candidate.minHue) in findTonalPalette()
385 && fract(candidate.minHue) - h < error) { in findTonalPalette()
387 error = fract(candidate.minHue) - h; in findTonalPalette()
394 private static float fract(float v) { in fract() method in Tonal
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationController.java355 final float fract = animation.getAnimatedFraction(); in onAnimationUpdate() local
356 final float sentScale = mStartSpec.mScale + (mEndSpec.mScale - mStartSpec.mScale) * fract; in onAnimationUpdate()
358 mStartSpec.mCenterX + (mEndSpec.mCenterX - mStartSpec.mCenterX) * fract; in onAnimationUpdate()
360 mStartSpec.mCenterY + (mEndSpec.mCenterY - mStartSpec.mCenterY) * fract; in onAnimationUpdate()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_24.rscript37 TEST_FN_FUNC_FN(fract);
Dmath_fp16.rscript155 TEST_HN_FUNC_HN(fract);
156 TEST_HN_FUNC_HN_PHN(fract);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dmath_24.rscript39 TEST_FN_FUNC_FN(fract);
Dapitest.rscript742 f = fract(f, (float *)&f);
743 f2 = fract(f2, (float2 *)&f2);
744 f3 = fract(f3, (float3 *)&f3);
745 f4 = fract(f4, (float4 *)&f4);
746 f = fract(f);
747 f2 = fract(f2);
748 f3 = fract(f3);
749 f4 = fract(f4);
1210 f = fract(f);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rscript43 float angle = fabs(2 * fract(atan2pi(vec.z, vec.y) * 5) - 1);
63 float angle = fabs(2 * fract(atan2pi(vec.y, vec.x) * 6) - 1);
106 float angle = fabs(2 * fract(atan2pi(vec.y, vec.x) * 20) - 1);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript740 f = fract(f, (float *)&f);
741 f2 = fract(f2, (float2 *)&f2);
742 f3 = fract(f3, (float3 *)&f3);
743 f4 = fract(f4, (float4 *)&f4);
744 f = fract(f);
745 f2 = fract(f2);
746 f3 = fract(f3);
747 f4 = fract(f4);
1208 f = fract(f);
/frameworks/rs/driver/runtime/
Drs_cl.c509 extern float __attribute__((overloadable)) fract(float v, float *iptr) { in FN_FUNC_FN_FN()
516 FN_FUNC_FN_PFN(fract) in FN_FUNC_FN_PFN() argument
518 extern float __attribute__((const, overloadable)) fract(float v) { in FN_FUNC_FN_PFN()
520 return fract(v, &unused); in FN_FUNC_FN_PFN()
522 FN_FUNC_FN(fract)
1941 extern half __attribute__((overloadable)) fract(half v, half *iptr) { in fract() function
1954 SCALARIZE_HN_FUNC_HN_PHN(fract);
1956 extern half __attribute__((const, overloadable)) fract(half v) { in fract() function
1958 return fract(v, &unused); in fract()
1961 extern half2 __attribute__((const, overloadable)) fract(half2 v) { in fract() function
[all …]
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript107 TEST_FUNC_2P(fract);
/frameworks/rs/script_api/
Drs_math.spec1054 function: fract
1065 For example, <code>fract(1.3f, &amp;val)</code> returns 0.3f and sets val to 1.f.
1066 <code>fract(-1.3f, &amp;val)</code> returns 0.7f and sets val to -2.f.
1069 function: fract
1078 return fract(v, &unused);
1081 function: fract
1089 function: fract
1098 function: fract
3389 deprecated: 22, Use @fract() instead.
/frameworks/rs/script_api/include/
Drs_math.rsh1910 * fract: Positive fractional part
1914 * For example, fract(1.3f, &val) returns 0.3f and sets val to 1.f.
1915 * fract(-1.3f, &val) returns 0.7f and sets val to -2.f.
1922 fract(float v, float* floor);
1925 fract(float2 v, float2* floor);
1928 fract(float3 v, float3* floor);
1931 fract(float4 v, float4* floor);
1935 fract(float v) {
1937 return fract(v, &unused);
1943 fract(float2 v) {
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java2021 float fract = animation.getAnimatedFraction(); in onAnimationUpdate() local
2024 + (mEndMagnificationSpec.scale - mStartMagnificationSpec.scale) * fract; in onAnimationUpdate()
2027 * fract; in onAnimationUpdate()
2030 * fract; in onAnimationUpdate()
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rscript147 TEST_FN_FUNC_FN_PFN(fract);
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak266 TEST_FN_FUNC_FN_PFN(fract);
/frameworks/compile/slang/tests/P_all_api_15/
Dall15.rscript2758 *(float*)buf726 = fract(*(float*)buf727, (float*) buf728);
2759 *(float2*)buf729 = fract(*(float2*)buf730, (float2*) buf731);
2760 *(float3*)buf732 = fract(*(float3*)buf733, (float3*) buf734);
2761 *(float4*)buf735 = fract(*(float4*)buf736, (float4*) buf737);
2762 *(float*)buf738 = fract(*(float*)buf739);
2763 *(float2*)buf740 = fract(*(float2*)buf741);
2764 *(float3*)buf742 = fract(*(float3*)buf743);
2765 *(float4*)buf744 = fract(*(float4*)buf745);

12