/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | RangeTest.java | 139 private static <T extends Comparable<? super T>> void assertInRange(Range<T> object, T needle) { in assertInRange() argument 140 assertAction("in-range", object, needle, true, object.contains(needle)); in assertInRange() 144 T needle) { in assertOutOfRange() argument 145 assertAction("out-of-range", object, needle, false, object.contains(needle)); in assertOutOfRange() 162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, in assertAction() argument 165 assertEquals("Expected " + needle + " to be " + expectedMessage + " of " + object, in assertAction()
|
D | CameraMetadataTest.java | 312 private static <T, T2> void assertArrayContains(T needle, T2 array) { in assertArrayContains() argument 322 if (needle.equals(actualElement)) { in assertArrayContains() 330 needle, in assertArrayContains()
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | ArrayUtils.java | 34 public static <T> int getArrayIndex(T[] array, T needle) { in getArrayIndex() argument 41 if (Objects.equals(elem, needle)) { in getArrayIndex() 51 public static int getArrayIndex(int[] array, int needle) { in getArrayIndex() argument 56 if (array[i] == needle) { in getArrayIndex()
|
D | ListUtils.java | 30 public static <T> boolean listContains(List<T> list, T needle) { in listContains() argument 34 return list.contains(needle); in listContains()
|
/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 173 Preconditions.checkArgument(needle.length > 0); in containsBytes() 175 outer: for (int i = 0; i <= haystackLength - needle.length; i++) { in containsBytes() 176 for (int j = 0; j < needle.length; j++) { in containsBytes() 177 if (haystack[i + j] != needle[j]) { in containsBytes()
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | AUtils.h | 72 inline static bool isInRange(const T &hayStart, const U &haySize, const T &needle) { in isInRange() argument 74 …return (T)(hayStart + haySize) >= hayStart && needle >= hayStart && (U)(needle - hayStart) < haySi… in isInRange()
|
/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/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerSettingsTests.java | 433 private static void assertContains(int[] haystack, int needle) { in assertContains() argument 437 if (!list.contains(needle)) { in assertContains() 439 TextUtils.join(",", list), needle)); in assertContains() 443 private static void assertDoesNotContain(int[] haystack, int needle) { in assertDoesNotContain() argument 447 if (list.contains(needle)) { in assertDoesNotContain() 449 TextUtils.join(",", list), needle)); in assertDoesNotContain()
|
/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | CollectionUtils.java | 205 for (T needle : needles) { in containsAny() 206 if (haystack.contains(needle)) return true; in containsAny()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | Utils.java | 369 public static boolean listContains(int[] haystack, int needle) { in listContains() argument 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 398 size_t b = strlen(needle); 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 639 const char16_t *needle2 = needle.string(); in isInProductList() 641 size_t needlesize = needle.size(); in isInProductList()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | ServerFlags.java | 237 for (String needle : 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/core/java/android/text/ |
D | TextUtils.java | 270 public static int indexOf(CharSequence s, CharSequence needle) { in indexOf() argument 271 return indexOf(s, needle, 0, s.length()); in indexOf() 274 public static int indexOf(CharSequence s, CharSequence needle, int start) { in indexOf() argument 275 return indexOf(s, needle, start, s.length()); in indexOf() 278 public static int indexOf(CharSequence s, CharSequence needle, in indexOf() argument 280 int nlen = needle.length(); in indexOf() 284 char c = needle.charAt(0); in indexOf() 296 if (regionMatches(s, start, needle, 0, nlen)) { in indexOf()
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 801 String needle = "Connected to iorapd native service"; in startIorapd() local 804 if (logcatLines.contains(needle)) { in startIorapd()
|
/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()
|