/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/services/tests/servicestests/src/com/android/server/wm/ |
H A D | WindowTracingTest.java | 166 /** Return true if {@code needle} appears anywhere in {@code haystack[0..length]} */ 167 boolean containsBytes(byte[] haystack, int haystackLenght, byte[] needle) { argument 169 Preconditions.checkArgument(needle.length > 0); 171 outer: for (int i = 0; i <= haystackLenght - needle.length; i++) { 172 for (int j = 0; j < needle.length; j++) { 173 if (haystack[i+j] != needle[j]) {
|
/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 | 105 const float *needle, int needleSize, 112 double correlation = calculateCorrelation(&haystack[ic], needle, needleSize); 125 const float *needle, int needleSize, double threshold ) 136 double correlation = calculateCorrelation(&haystack[ic], needle, needleSize); 163 const float *needle, int needleSize, 172 needle, 176 // Use first echo as the needle for the other echos because 178 needle = &haystack[first]; 181 needle, 197 needle, needleSiz 104 calculateCorrelations(const float *haystack, int haystackSize, const float *needle, int needleSize, float *results, int resultSize) argument 124 findFirstMatch(const float *haystack, int haystackSize, const float *needle, int needleSize, double threshold ) argument 162 measureLatencyFromEchos(const float *haystack, int haystackSize, const float *needle, int needleSize, LatencyReport *report) argument 485 const float *needle = s_Impulse; variable [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 224 public static int indexOf(CharSequence s, CharSequence needle) { argument 225 return indexOf(s, needle, 0, s.length()); 228 public static int indexOf(CharSequence s, CharSequence needle, int start) { argument 229 return indexOf(s, needle, start, s.length()); 232 public static int indexOf(CharSequence s, CharSequence needle, argument 234 int nlen = needle.length(); 238 char c = needle.charAt(0); 250 if (regionMatches(s, start, needle, 0, nlen)) {
|