/frameworks/base/core/java/android/hardware/camera2/utils/ |
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);
|
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) {
|
/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/av/media/libstagefright/foundation/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/av/media/libstagefright/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/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/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 | 638 * Returns true if needle is one of the elements in the comma-separated list 641 bool isInProductList(const String16& needle, const String16& haystack) { argument 642 const char16_t *needle2 = needle.string(); 644 size_t needlesize = needle.size();
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
H A D | LoopbackAnalyzer.h | 98 const float *needle, int needleSize, 105 double correlation = calculateCorrelation(&haystack[ic], needle, needleSize); 118 const float *needle, int needleSize, double threshold ) 129 double correlation = calculateCorrelation(&haystack[ic], needle, needleSize); 156 const float *needle, int needleSize, 163 needle, 167 // Use first echo as the needle for the other echos because 169 needle = &haystack[first]; 172 needle, 188 needle, needleSiz 97 calculateCorrelations(const float *haystack, int haystackSize, const float *needle, int needleSize, float *results, int resultSize) argument 117 findFirstMatch(const float *haystack, int haystackSize, const float *needle, int needleSize, double threshold ) argument 155 measureLatencyFromEchos(const float *haystack, int haystackSize, const float *needle, int needleSize, LatencyReport *report) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 215 public static int indexOf(CharSequence s, CharSequence needle) { argument 216 return indexOf(s, needle, 0, s.length()); 219 public static int indexOf(CharSequence s, CharSequence needle, int start) { argument 220 return indexOf(s, needle, start, s.length()); 223 public static int indexOf(CharSequence s, CharSequence needle, argument 225 int nlen = needle.length(); 229 char c = needle.charAt(0); 241 if (regionMatches(s, start, needle, 0, nlen)) {
|