Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 5 of 5) sorted by relevance

/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
177 if (haystack[i + j] != needle[j]) { in containsBytes()
188 byte[] haystack = "hello_world".getBytes(StandardCharsets.UTF_8); in test_containsBytes()
189 assertTrue(containsBytes(haystack, haystack.length, in test_containsBytes()
191 assertTrue(containsBytes(haystack, haystack.length, in test_containsBytes()
193 assertFalse(containsBytes(haystack, 6, in test_containsBytes()
195 assertFalse(containsBytes(haystack, haystack.length, in test_containsBytes()
197 assertFalse(containsBytes(haystack, haystack.length, in test_containsBytes()
/frameworks/base/tools/aapt/
DPackage.cpp395 bool endsWith(const char* haystack, const char* needle) in endsWith() argument
397 size_t a = strlen(haystack); 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
640 const char16_t *haystack2 = haystack.string(); in isInProductList()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerSettingsTests.java473 private static void assertContains(int[] haystack, int needle) { in assertContains() argument
474 List<Integer> list = IntStream.of(haystack) in assertContains()
483 private static void assertDoesNotContain(int[] haystack, int needle) { in assertDoesNotContain() argument
484 List<Integer> list = IntStream.of(haystack) in assertDoesNotContain()
/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()