/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTracingTest.java | 171 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/ |
D | CollectionUtils.java | 204 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/ |
D | ParentalControlsUtilsInternal.java | 106 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/ |
D | Utils.java | 369 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/ |
D | Package.cpp | 395 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()
|
D | ResourceTable.cpp | 638 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/ |
D | OverlayManagerSettingsTests.java | 433 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/ |
D | ServerFlags.java | 236 @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/ |
D | LockSettingsStrongAuthTest.java | 271 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/ |
D | KeyguardUpdateMonitor.java | 1522 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/ |
D | NotificationManagerService.java | 1977 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument 1978 return (haystack & needle) != 0; in containsFlag()
|