Searched defs:constrain (Results 1 - 7 of 7) sorted by relevance

/frameworks/support/design/base/android/support/design/widget/
H A DMathUtils.java21 static int constrain(int amount, int low, int high) { method in class:MathUtils
25 static float constrain(float amount, float low, float high) { method in class:MathUtils
/frameworks/base/wifi/java/android/net/wifi/
H A DBatchedScanSettings.java139 public void constrain() { method in class:BatchedScanSettings
/frameworks/support/v4/java/android/support/v4/graphics/
H A DColorUtils.java193 hsl[0] = constrain(h, 0f, 360f);
194 hsl[1] = constrain(s, 0f, 1f);
195 hsl[2] = constrain(l, 0f, 1f);
272 r = constrain(r, 0, 255);
273 g = constrain(g, 0, 255);
274 b = constrain(b, 0, 255);
289 private static float constrain(float amount, float low, float high) { method in class:ColorUtils
293 private static int constrain(int amount, int low, int high) { method in class:ColorUtils
/frameworks/base/core/java/android/util/
H A DMathUtils.java38 public static int constrain(int amount, int low, int high) { method in class:MathUtils
42 public static long constrain(long amount, long low, long high) { method in class:MathUtils
46 public static float constrain(float amount, float low, float high) { method in class:MathUtils
/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java60 * <li>Maximum size used to constrain relative size, see
74 * <li>Minimum velocity used to constrain relative velocity, see
78 * <li>Maximum velocity used to constrain relative velocity, see
361 * be used to constrain the calculated relative edge size.
382 * the maximum edge will be used to constrain the calculated relative edge
555 return constrain(value * targetVelocity, minimumVelocity, maximumVelocity);
557 return -constrain(-value * targetVelocity, minimumVelocity, maximumVelocity);
606 final float edgeSize = constrain(relativeValue * size, NO_MIN, maxValue);
619 return constrain(interpolated, -1, 1);
651 private static int constrain(in method in class:AutoScrollHelper
661 private static float constrain(float value, float min, float max) { method in class:AutoScrollHelper
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DAutoScrollHelper.java61 * <li>Maximum size used to constrain relative size, see
75 * <li>Minimum velocity used to constrain relative velocity, see
79 * <li>Maximum velocity used to constrain relative velocity, see
362 * be used to constrain the calculated relative edge size.
383 * the maximum edge will be used to constrain the calculated relative edge
556 return constrain(value * targetVelocity, minimumVelocity, maximumVelocity);
558 return -constrain(-value * targetVelocity, minimumVelocity, maximumVelocity);
607 final float edgeSize = constrain(relativeValue * size, NO_MIN, maxValue);
620 return constrain(interpolated, -1, 1);
652 private static int constrain(in method in class:AutoScrollHelper
662 private static float constrain(float value, float min, float max) { method in class:AutoScrollHelper
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java683 final float newPos = constrain(mThumbPosition + dPos, 0, 1);
1141 private static float constrain(float amount, float low, float high) { method in class:SwitchCompat

Completed in 9296 milliseconds