Home
last modified time | relevance | path

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

12

/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/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/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java1255 float fract = animation.getAnimatedFraction(); in onAnimationUpdate() local
1257 (mEndMagnificationSpec.scale - mStartMagnificationSpec.scale) * fract; in onAnimationUpdate()
1260 * fract; in onAnimationUpdate()
1263 * fract; in onAnimationUpdate()
/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/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript722 f = fract(f, (float *)&f);
723 f2 = fract(f2, (float2 *)&f2);
724 f3 = fract(f3, (float3 *)&f3);
725 f4 = fract(f4, (float4 *)&f4);
726 f = fract(f);
727 f2 = fract(f2);
728 f3 = fract(f3);
729 f4 = fract(f4);
Dmath.rscript280 TEST_FN_FUNC_FN_PFN(fract);
/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/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);
Dmath.rs.orig280 TEST_FN_FUNC_FN_PFN(fract);
Dmath.rscript280 TEST_FN_FUNC_FN_PFN(fract);
/frameworks/compile/slang/tests/P_all_api_14/
Dall14.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);
/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);
/frameworks/compile/slang/tests/P_all_api_11/
Dall11.rscript2688 *(float*)buf726 = fract(*(float*)buf727, (float*) buf728);
2689 *(float2*)buf729 = fract(*(float2*)buf730, (float2*) buf731);
2690 *(float3*)buf732 = fract(*(float3*)buf733, (float3*) buf734);
2691 *(float4*)buf735 = fract(*(float4*)buf736, (float4*) buf737);
2692 *(float*)buf738 = fract(*(float*)buf739);
2693 *(float2*)buf740 = fract(*(float2*)buf741);
2694 *(float3*)buf742 = fract(*(float3*)buf743);
2695 *(float4*)buf744 = fract(*(float4*)buf745);
/frameworks/compile/slang/tests/P_all_api_12/
Dall12.rscript2688 *(float*)buf726 = fract(*(float*)buf727, (float*) buf728);
2689 *(float2*)buf729 = fract(*(float2*)buf730, (float2*) buf731);
2690 *(float3*)buf732 = fract(*(float3*)buf733, (float3*) buf734);
2691 *(float4*)buf735 = fract(*(float4*)buf736, (float4*) buf737);
2692 *(float*)buf738 = fract(*(float*)buf739);
2693 *(float2*)buf740 = fract(*(float2*)buf741);
2694 *(float3*)buf742 = fract(*(float3*)buf743);
2695 *(float4*)buf744 = fract(*(float4*)buf745);
/frameworks/compile/slang/tests/P_all_api_13/
Dall13.rscript2688 *(float*)buf726 = fract(*(float*)buf727, (float*) buf728);
2689 *(float2*)buf729 = fract(*(float2*)buf730, (float2*) buf731);
2690 *(float3*)buf732 = fract(*(float3*)buf733, (float3*) buf734);
2691 *(float4*)buf735 = fract(*(float4*)buf736, (float4*) buf737);
2692 *(float*)buf738 = fract(*(float*)buf739);
2693 *(float2*)buf740 = fract(*(float2*)buf741);
2694 *(float3*)buf742 = fract(*(float3*)buf743);
2695 *(float4*)buf744 = fract(*(float4*)buf745);
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript280 TEST_FN_FUNC_FN_PFN(fract);
/frameworks/compile/slang/tests/P_all_api_16/
Dall16.rscript2850 *(float*)buf726 = fract(*(float*)buf727, (float*) buf728);
2851 *(float2*)buf729 = fract(*(float2*)buf730, (float2*) buf731);
2852 *(float3*)buf732 = fract(*(float3*)buf733, (float3*) buf734);
2853 *(float4*)buf735 = fract(*(float4*)buf736, (float4*) buf737);
2854 *(float*)buf738 = fract(*(float*)buf739);
2855 *(float2*)buf740 = fract(*(float2*)buf741);
2856 *(float3*)buf742 = fract(*(float3*)buf743);
2857 *(float4*)buf744 = fract(*(float4*)buf745);

12