Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 12 of 12) 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/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTracingTest.java171 private static boolean containsBytes(byte[] haystack, int haystackLength, byte[] needle) { in containsBytes() argument
173 Preconditions.checkArgument(needle.length > 0); in containsBytes()
175 outer: for (int i = 0; i <= haystackLength - needle.length; i++) { in containsBytes()
176 for (int j = 0; j < needle.length; j++) { in containsBytes()
177 if (haystack[i + j] != needle[j]) { in containsBytes()
/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/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerSettingsTests.java473 private static void assertContains(int[] haystack, int needle) { in assertContains() argument
477 if (!list.contains(needle)) { in assertContains()
479 TextUtils.join(",", list), needle)); in assertContains()
483 private static void assertDoesNotContain(int[] haystack, int needle) { in assertDoesNotContain() argument
487 if (list.contains(needle)) { in assertDoesNotContain()
489 TextUtils.join(",", list), needle)); in assertDoesNotContain()
/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.cpp638 bool isInProductList(const String16& needle, const String16& haystack) { in isInProductList() argument
639 const char16_t *needle2 = needle.string(); in isInProductList()
641 size_t needlesize = needle.size(); in isInProductList()
/frameworks/base/core/java/android/text/
DTextUtils.java269 public static int indexOf(CharSequence s, CharSequence needle) { in indexOf() argument
270 return indexOf(s, needle, 0, s.length()); in indexOf()
273 public static int indexOf(CharSequence s, CharSequence needle, int start) { in indexOf() argument
274 return indexOf(s, needle, start, s.length()); in indexOf()
277 public static int indexOf(CharSequence s, CharSequence needle, in indexOf() argument
279 int nlen = needle.length(); in indexOf()
283 char c = needle.charAt(0); in indexOf()
295 if (regionMatches(s, start, needle, 0, nlen)) { in indexOf()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java799 String needle = "Connected to iorapd native service"; in startIorapd() local
802 if (logcatLines.contains(needle)) { in startIorapd()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java1007 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument
1008 return (haystack & needle) != 0; in containsFlag()