/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/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerSettingsTests.java | 473 private static void assertContains(int[] haystack, int needle) { in assertContains() argument 477 if (!list.contains(needle)) { in assertContains() 479 TextUtils.join(",", list), needle)); in assertContains() 483 private static void assertDoesNotContain(int[] haystack, int needle) { in assertDoesNotContain() argument 487 if (list.contains(needle)) { in assertDoesNotContain() 489 TextUtils.join(",", list), needle)); in assertDoesNotContain()
|
/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/tools/apilint/ |
D | apilint.py | 668 def _skip_to_matching_class(classes, needle): argument 674 if clazz.pkg.name < needle.pkg.name: 677 if clazz.pkg.name == needle.pkg.name and clazz.fullname < needle.fullname: 680 if clazz.fullname == needle.fullname: 686 def _yield_until_matching_class(classes, needle): argument 692 if needle is None: 694 elif clazz.pkg.name < needle.pkg.name: 697 elif clazz.pkg.name == needle.pkg.name and clazz.fullname < needle.fullname: 700 elif clazz.fullname == needle.fullname:
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/ |
D | importer_unittest.cc | 66 #define EXPECT_SUBSTRING(needle, haystack) \ argument 67 EXPECT_PRED_FORMAT2(testing::IsSubstring, (needle), (haystack))
|
/frameworks/base/core/java/android/text/ |
D | TextUtils.java | 269 public static int indexOf(CharSequence s, CharSequence needle) { in indexOf() argument 270 return indexOf(s, needle, 0, s.length()); in indexOf() 273 public static int indexOf(CharSequence s, CharSequence needle, int start) { in indexOf() argument 274 return indexOf(s, needle, start, s.length()); in indexOf() 277 public static int indexOf(CharSequence s, CharSequence needle, in indexOf() argument 279 int nlen = needle.length(); in indexOf() 283 char c = needle.charAt(0); in indexOf() 295 if (regionMatches(s, start, needle, 0, nlen)) { in indexOf()
|