Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 11 of 11) 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/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DAuthenticationFlags.kt74 private fun containsFlag(haystack: Int, needle: Int): Boolean { in containsFlag()
75 return haystack and needle != 0 in containsFlag()
/frameworks/base/core/java/android/hardware/biometrics/
DParentalControlsUtilsInternal.java106 private static boolean containsFlag(int haystack, int needle) { in containsFlag() argument
107 return (haystack & needle) != 0; in containsFlag()
/frameworks/base/services/core/java/com/android/server/biometrics/
DUtils.java389 public static boolean listContains(int[] haystack, int needle) { in listContains() argument
390 for (int i = 0; i < haystack.length; i++) { in listContains()
391 if (haystack[i] == needle) { in listContains()
511 private static boolean containsFlag(int haystack, int needle) { in containsFlag() argument
512 return (haystack & needle) != 0; in containsFlag()
/frameworks/base/tools/aapt/
DPackage.cpp397 bool endsWith(const char* haystack, const char* needle) in endsWith() argument
399 size_t a = strlen(haystack); in endsWith()
402 return strcasecmp(haystack+(a-b), needle) == 0; in endsWith()
DResourceTable.cpp640 bool isInProductList(const String16& needle, const String16& haystack) { in isInProductList() argument
642 const char16_t *haystack2 = haystack.c_str(); in isInProductList()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerSettingsTests.java434 private static void assertContains(int[] haystack, int needle) { in assertContains() argument
435 List<Integer> list = IntStream.of(haystack) in assertContains()
444 private static void assertDoesNotContain(int[] haystack, int needle) { in assertDoesNotContain() argument
445 List<Integer> list = IntStream.of(haystack) in assertDoesNotContain()
/frameworks/base/services/core/java/com/android/server/timedetector/
DServerFlags.java254 @NonNull Set<String> haystack, @NonNull Iterable<String> needles) { in containsAny()
256 if (haystack.contains(needle)) { in containsAny()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStrongAuthTest.java276 private static boolean containsFlag(int haystack, int needle) { in containsFlag() argument
277 return (haystack & needle) != 0; in containsFlag()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java1590 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument
1591 return (haystack & needle) != 0; in containsFlag()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java2216 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument
2217 return (haystack & needle) != 0; in containsFlag()