Searched refs:needle (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/util/src/android/util/cts/ |
D | RangeTest.java | 132 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { in assertInRange() argument 133 assertAction("in-range", object, needle, true, object.contains(needle)); in assertInRange() 137 T needle) { in assertOutOfRange() argument 138 assertAction("out-of-range", object, needle, false, object.contains(needle)); in assertOutOfRange() 155 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, in assertAction() argument 158 assertEquals("Expected " + needle + " to be " + expectedMessage + " of " + object, in assertAction()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ExtendedCameraCharacteristicsTest.java | 1385 private static boolean arrayContains(int[] arr, int needle) { in arrayContains() argument 1391 if (elem == needle) { in arrayContains() 1399 private static <T> boolean arrayContains(T[] arr, T needle) { in arrayContains() argument 1405 if (elem.equals(needle)) { in arrayContains() 1414 for (int needle : needles) { in arrayContainsAnyOf() 1415 if (arrayContains(arr, needle)) { in arrayContainsAnyOf()
|