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/libs/net/common/framework/com/android/net/module/util/
DCollectionUtils.java204 public static <T> boolean containsAny(Collection<T> haystack, Collection<? extends T> needles) { in containsAny() argument
206 if (haystack.contains(needle)) return true; in containsAny()
218 public static <T> boolean containsAll(Collection<T> haystack, Collection<? extends T> needles) { in containsAll() argument
219 return haystack.containsAll(needles); in containsAll()
/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.java369 public static boolean listContains(int[] haystack, int needle) { in listContains() argument
370 for (int i = 0; i < haystack.length; i++) { in listContains()
371 if (haystack[i] == needle) { in listContains()
482 private static boolean containsFlag(int haystack, int needle) { in containsFlag() argument
483 return (haystack & needle) != 0; in containsFlag()
/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.java433 private static void assertContains(int[] haystack, int needle) { in assertContains() argument
434 List<Integer> list = IntStream.of(haystack) in assertContains()
443 private static void assertDoesNotContain(int[] haystack, int needle) { in assertDoesNotContain() argument
444 List<Integer> list = IntStream.of(haystack) in assertDoesNotContain()
/frameworks/base/services/core/java/com/android/server/timedetector/
DServerFlags.java236 @NonNull Set<String> haystack, @NonNull Iterable<String> needles) { in containsAny()
238 if (haystack.contains(needle)) { in containsAny()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStrongAuthTest.java271 private static boolean containsFlag(int haystack, int needle) { in containsFlag() argument
272 return (haystack & needle) != 0; in containsFlag()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java1522 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument
1523 return (haystack & needle) != 0; in containsFlag()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java1977 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument
1978 return (haystack & needle) != 0; in containsFlag()