/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/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/ |
D | AuthenticationFlags.kt | 74 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/ |
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 | 389 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/ |
D | Package.cpp | 397 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()
|
D | ResourceTable.cpp | 640 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/ |
D | OverlayManagerSettingsTests.java | 434 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/ |
D | ServerFlags.java | 254 @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/ |
D | LockSettingsStrongAuthTest.java | 276 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/ |
D | KeyguardUpdateMonitor.java | 1590 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/ |
D | NotificationManagerService.java | 2216 private boolean containsFlag(int haystack, int needle) { in containsFlag() argument 2217 return (haystack & needle) != 0; in containsFlag()
|