Home
last modified time | relevance | path

Searched refs:intPart (Results 1 – 2 of 2) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java161 int intPart = (int)Math.floor(pos); in getGradientColor() local
162 pos = pos - intPart; in getGradientColor()
167 if ((intPart % 2) == 1) { in getGradientColor()
187 int intPart = (int)Math.floor(pos); in getGradientColor() local
188 pos = pos - intPart; in getGradientColor()
193 if ((intPart % 2) == 1) { in getGradientColor()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript308 // Place sentinel values around the *intPart paramter to modf to ensure that
312 half intPart[3]; \
313 intPart[0] = (half) 42.0f; \
314 intPart[2] = (half) 3.14f; \
315 half out = modf(((half) inp), &intPart[1]); \
317 _RS_ASSERT_EQU(intPart[1], ((half) refIntPart)); \
318 _RS_ASSERT_EQU(intPart[0], (half) 42.0f); \
319 _RS_ASSERT_EQU(intPart[2], (half) 3.14f); \