Home
last modified time | relevance | path

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

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/util/
DConditionsTest.java28 int maxIncl = 4; in checkStateInRange() local
29 int[] validValues = { minIncl, 3, maxIncl }; in checkStateInRange()
33 Conditions.checkStateInRange("foo", validValue, "min", minIncl, "max", maxIncl); in checkStateInRange()
38 maxIncl)); in checkStateInRange()
45 int maxIncl = 4; in checkArgInRange() local
46 int[] validValues = { minIncl, 3, maxIncl }; in checkArgInRange()
50 Conditions.checkArgInRange("foo", validValue, "min", minIncl, "max", maxIncl); in checkArgInRange()
51 Conditions.checkArgInRange("foo", validValue, minIncl, maxIncl); in checkArgInRange()
56 maxIncl)); in checkArgInRange()
58 () -> Conditions.checkArgInRange("foo", invalidValue, minIncl, maxIncl)); in checkArgInRange()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/util/
DConditions.java29 public static void checkArgInRange(String valueName, int value, int minIncl, int maxIncl) { in checkArgInRange() argument
30 if (minIncl > value || value > maxIncl) { in checkArgInRange()
32 valueName + "=" + value + " must be between " + minIncl + " and " + maxIncl); in checkArgInRange()
41 String valueName, int value, String minName, int minIncl, String maxName, int maxIncl) { in checkArgInRange() argument
42 if (minIncl > value || value > maxIncl) { in checkArgInRange()
44 + minName + "=" + minIncl + " and " + maxName + "=" + maxIncl); in checkArgInRange()
53 String valueName, int value, String minName, int minIncl, String maxName, int maxIncl) { in checkStateInRange() argument
54 if (minIncl > value || value > maxIncl) { in checkStateInRange()
56 + minName + "=" + minIncl + " and " + maxName + "=" + maxIncl); in checkStateInRange()