/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ArrayUtils.java | 33 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */ 34 public static <T> int getArrayIndex(T[] array, T needle) { argument 41 if (Objects.equals(elem, needle)) { 50 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */ 51 public static int getArrayIndex(int[] array, int needle) { argument 56 if (array[i] == needle) {
|
H A D | ListUtils.java | 29 /** Return {@code} true if the {@code list} contains the {@code needle}. */ 30 public static <T> boolean listContains(List<T> list, T needle) { argument 34 return list.contains(needle);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | RangeTest.java | 139 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { argument 140 assertAction("in-range", object, needle, true, object.contains(needle)); 144 T needle) { 145 assertAction("out-of-range", object, needle, false, object.contains(needle)); 162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, argument 165 assertEquals("Expected " + needle + " to be " + expectedMessage + " of " + object, 143 assertOutOfRange(Range<T> object, T needle) argument
|
H A D | CameraMetadataTest.java | 312 private static <T, T2> void assertArrayContains(T needle, T2 array) { argument 322 if (needle.equals(actualElement)) { 328 "could not find element in array (needle %s). " 330 needle,
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AUtils.h | 69 // needle is in range [hayStart, hayStart + haySize) 72 inline static bool isInRange(const T &hayStart, const U &haySize, const T &needle) { argument 74 return (T)(hayStart + haySize) >= hayStart && needle >= hayStart && (U)(needle - hayStart) < haySize;
|
/frameworks/base/tools/aapt/ |
H A D | Package.cpp | 395 bool endsWith(const char* haystack, const char* needle) argument 398 size_t b = strlen(needle); 400 return strcasecmp(haystack+(a-b), needle) == 0;
|
H A D | ResourceTable.cpp | 627 * Returns true if needle is one of the elements in the comma-separated list 630 bool isInProductList(const String16& needle, const String16& haystack) { argument 631 const char16_t *needle2 = needle.string(); 633 size_t needlesize = needle.size();
|
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 204 public static int indexOf(CharSequence s, CharSequence needle) { argument 205 return indexOf(s, needle, 0, s.length()); 208 public static int indexOf(CharSequence s, CharSequence needle, int start) { argument 209 return indexOf(s, needle, start, s.length()); 212 public static int indexOf(CharSequence s, CharSequence needle, argument 214 int nlen = needle.length(); 218 char c = needle.charAt(0); 230 if (regionMatches(s, start, needle, 0, nlen)) {
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | StubProvider.java | 683 File needle = new File(root.file, path.substring(1)); 685 StubDocument found = mStorage.get(getDocumentIdForFile(needle));
|