Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java145 int intPart = (int)Math.floor(pos); in getGradientColor() local
146 pos = pos - intPart; in getGradientColor()
151 if ((intPart % 2) == 1) { in getGradientColor()
171 int intPart = (int)Math.floor(pos); in getGradientColor() local
172 pos = pos - intPart; in getGradientColor()
177 if ((intPart % 2) == 1) { in getGradientColor()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dmath_fp16.rs296 half intPart[3]; \
297 intPart[0] = (half) 42.0f; \
298 intPart[2] = (half) 3.14f; \
299 half out = modf(((half) inp), &intPart[1]); \
301 _RS_ASSERT_EQU(intPart[1], ((half) refIntPart)); \
302 _RS_ASSERT_EQU(intPart[0], (half) 42.0f); \
303 _RS_ASSERT_EQU(intPart[2], (half) 3.14f); \