Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DColorUtils.java55 (int) constrain((int) Math.round(r * 255), 0, 255), in xyzToColor()
56 (int) constrain((int) Math.round(g * 255), 0, 255), in xyzToColor()
57 (int) constrain((int) Math.round(b * 255), 0, 255)); in xyzToColor()
60 private static float constrain(float amount, float low, float high) { in constrain() method in ColorUtils