Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/lang/Math/
DClamp.java74 …kEquals("(int) Math.clamp(" + value + ", " + min + ", " + max + ")", Math.clamp(value, min, max), … in testIntClamp()
75 …t) StrictMath.clamp(" + value + ", " + min + ", " + max + ")", StrictMath.clamp(value, min, max), … in testIntClamp()
82 () -> Math.clamp(value, min, max)); in testIntClamp()
84 () -> StrictMath.clamp(value, min, max)); in testIntClamp()
114 …Equals("(long) Math.clamp(" + value + ", " + min + ", " + max + ")", Math.clamp(value, min, max), … in testLongClamp()
115 …g) StrictMath.clamp(" + value + ", " + min + ", " + max + ")", StrictMath.clamp(value, min, max), … in testLongClamp()
122 () -> Math.clamp(value, min, max)); in testLongClamp()
124 () -> StrictMath.clamp(value, min, max)); in testLongClamp()
178 …uals("(double) Math.clamp(" + value + ", " + min + ", " + max + ")", Math.clamp(value, min, max), … in testDoubleClamp()
179 …e) StrictMath.clamp(" + value + ", " + min + ", " + max + ")", StrictMath.clamp(value, min, max), … in testDoubleClamp()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DStrictMath.java1873 public static int clamp(long value, int min, int max) { in clamp() method in StrictMath
1874 return Math.clamp(value, min, max); in clamp()
1891 public static long clamp(long value, long min, long max) { in clamp() method in StrictMath
1892 return Math.clamp(value, min, max); in clamp()
1915 public static double clamp(double value, double min, double max) { in clamp() method in StrictMath
1916 return Math.clamp(value, min, max); in clamp()
1939 public static float clamp(float value, float min, float max) { in clamp() method in StrictMath
1940 return Math.clamp(value, min, max); in clamp()
DMath.java2360 public static int clamp(long value, int min, int max) { in clamp() method in Math
2381 public static long clamp(long value, long min, long max) { in clamp() method in Math
2408 public static double clamp(double value, double min, double max) { in clamp() method in Math
2449 public static float clamp(float value, float min, float max) { in clamp() method in Math
/libcore/ojluni/annotations/flagged_api/java/lang/
DStrictMath.annotated.java190 public static int clamp(long value, int min, int max) { throw new RuntimeException("Stub!"); } in clamp() method in StrictMath
193 public static long clamp(long value, long min, long max) { throw new RuntimeException("Stub!"); } in clamp() method in StrictMath
196 public static double clamp(double value, double min, double max) { throw new RuntimeException("Stub… in clamp() method in StrictMath
199 public static float clamp(float value, float min, float max) { throw new RuntimeException("Stub!");… in clamp() method in StrictMath
DMath.annotated.java191 public static int clamp(long value, int min, int max) { throw new RuntimeException("Stub!"); } in clamp() method in Math
194 public static long clamp(long value, long min, long max) { throw new RuntimeException("Stub!"); } in clamp() method in Math
197 public static double clamp(double value, double min, double max) { throw new RuntimeException("Stub… in clamp() method in Math
200 public static float clamp(float value, float min, float max) { throw new RuntimeException("Stub!");… in clamp() method in Math
/libcore/ojluni/src/main/java/java/util/
DHashSet.java325 loadFactor = Math.clamp(loadFactor, 0.25f, 4.0f); in readObject()
DHashMap.java1525 lf = Math.clamp(lf, 0.25f, 4.0f); in readObject()
/libcore/api/
Dcurrent.txt3579 method @FlaggedApi("com.android.libcore.v_apis") public static int clamp(long, int, int);
3580 method @FlaggedApi("com.android.libcore.v_apis") public static long clamp(long, long, long);
3581 …method @FlaggedApi("com.android.libcore.v_apis") public static double clamp(double, double, double…
3582 method @FlaggedApi("com.android.libcore.v_apis") public static float clamp(float, float, float);
4021 method @FlaggedApi("com.android.libcore.v_apis") public static int clamp(long, int, int);
4022 method @FlaggedApi("com.android.libcore.v_apis") public static long clamp(long, long, long);
4023 …method @FlaggedApi("com.android.libcore.v_apis") public static double clamp(double, double, double…
4024 method @FlaggedApi("com.android.libcore.v_apis") public static float clamp(float, float, float);