Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRangeTest.java139 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { in assertInRange() argument
140 assertAction("in-range", object, needle, true, object.contains(needle)); in assertInRange()
144 T needle) { in assertOutOfRange() argument
145 assertAction("out-of-range", object, needle, false, object.contains(needle)); in assertOutOfRange()
162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, in assertAction() argument
165 assertEquals("Expected " + needle + " to be " + expectedMessage + " of " + object, in assertAction()
DCameraMetadataTest.java312 private static <T, T2> void assertArrayContains(T needle, T2 array) { in assertArrayContains() argument
322 if (needle.equals(actualElement)) { in assertArrayContains()
330 needle, in assertArrayContains()
/frameworks/base/core/java/android/hardware/camera2/utils/
DArrayUtils.java34 public static <T> int getArrayIndex(T[] array, T needle) { in getArrayIndex() argument
41 if (Objects.equals(elem, needle)) { in getArrayIndex()
51 public static int getArrayIndex(int[] array, int needle) { in getArrayIndex() argument
56 if (array[i] == needle) { in getArrayIndex()
DListUtils.java30 public static <T> boolean listContains(List<T> list, T needle) { in listContains() argument
34 return list.contains(needle); in listContains()
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h98 const float *needle, int needleSize, in calculateCorrelations() argument
105 double correlation = calculateCorrelation(&haystack[ic], needle, needleSize); in calculateCorrelations()
118 const float *needle, int needleSize, double threshold ) in findFirstMatch() argument
129 double correlation = calculateCorrelation(&haystack[ic], needle, needleSize); in findFirstMatch()
156 const float *needle, int needleSize, in measureLatencyFromEchos() argument
163 needle, in measureLatencyFromEchos()
169 needle = &haystack[first]; in measureLatencyFromEchos()
172 needle, in measureLatencyFromEchos()
188 needle, needleSize, in measureLatencyFromEchos()
431 const float *needle = s_Impulse; in report() local
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAUtils.h72 inline static bool isInRange(const T &hayStart, const U &haySize, const T &needle) { in isInRange() argument
74 …return (T)(hayStart + haySize) >= hayStart && needle >= hayStart && (U)(needle - hayStart) < haySi… in isInRange()
/frameworks/base/tools/aapt/
DPackage.cpp395 bool endsWith(const char* haystack, const char* needle) in endsWith() argument
398 size_t b = strlen(needle); in endsWith()
400 return strcasecmp(haystack+(a-b), needle) == 0; in endsWith()
DResourceTable.cpp641 bool isInProductList(const String16& needle, const String16& haystack) { in isInProductList() argument
642 const char16_t *needle2 = needle.string(); in isInProductList()
644 size_t needlesize = needle.size(); in isInProductList()
/frameworks/base/core/java/android/text/
DTextUtils.java215 public static int indexOf(CharSequence s, CharSequence needle) { in indexOf() argument
216 return indexOf(s, needle, 0, s.length()); in indexOf()
219 public static int indexOf(CharSequence s, CharSequence needle, int start) { in indexOf() argument
220 return indexOf(s, needle, start, s.length()); in indexOf()
223 public static int indexOf(CharSequence s, CharSequence needle, in indexOf() argument
225 int nlen = needle.length(); in indexOf()
229 char c = needle.charAt(0); in indexOf()
241 if (regionMatches(s, start, needle, 0, nlen)) { in indexOf()