Searched refs:fract (Results 1 - 10 of 10) sorted by relevance

/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dmath_24.rs37 TEST_FN_FUNC_FN(fract);
H A Dmath_fp16.rs155 TEST_HN_FUNC_HN(fract);
156 TEST_HN_FUNC_HN_PHN(fract);
H A Dmath.rs303 TEST_FN_FUNC_FN_PFN(fract);
/frameworks/base/core/java/com/android/internal/colorextraction/types/
H A DTonal.java280 mTmpHSL[0] = fract(h[fitIndex]) * 360.0f;
374 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) {
379 if (candidate.minHue < 0.0f && h >= fract(candidate.minHue) && h <= 1.0f) {
390 } else if (candidate.maxHue > 1.0f && h >= fract(candidate.maxHue)
391 && h - fract(candidate.maxHue) < error) {
393 error = h - fract(candidate.maxHue);
394 } else if (candidate.minHue < 0.0f && h <= fract(candidate.minHue)
395 && fract(candidate.minHue) - h < error) {
397 error = fract(candidate.minHue) - h;
404 private static float fract(floa method in class:Tonal
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMagnificationController.java928 float fract = animation.getAnimatedFraction();
930 (mEndMagnificationSpec.scale - mStartMagnificationSpec.scale) * fract;
933 * fract;
936 * fract;
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A Dbugdroid.rs43 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/
H A Dapitest.rs740 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/
H A Drs_cl.c509 extern float __attribute__((overloadable)) fract(float v, float *iptr) { function
516 FN_FUNC_FN_PFN(fract)
518 extern float __attribute__((const, overloadable)) fract(float v) { function
520 return fract(v, &unused);
522 FN_FUNC_FN(fract)
1941 extern half __attribute__((overloadable)) fract(half v, half *iptr) { function
1954 SCALARIZE_HN_FUNC_HN_PHN(fract); variable
1956 extern half __attribute__((const, overloadable)) fract(half v) { function
1958 return fract(v, &unused);
1961 extern half2 __attribute__((const, overloadable)) fract(half function
1966 extern half3 __attribute__((const, overloadable)) fract(half3 v) { function
1971 extern half4 __attribute__((const, overloadable)) fract(half4 v) { function
[all...]
/frameworks/rs/script_api/include/
H A 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(float
[all...]
/frameworks/rs/script_api/
H A 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.

Completed in 211 milliseconds