/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 111 Arrays.binarySearch(byteArray, counter) == counter); in test_binarySearch$BB() 113 -1, Arrays.binarySearch(intArray, (byte) -1)); in test_binarySearch$BB() 116 Arrays.binarySearch(intArray, (byte) arraySize) == -(arraySize + 1)); in test_binarySearch$BB() 122 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter); in test_binarySearch$BB() 133 Arrays.binarySearch(charArray, (char) (counter + 1)) == counter); in test_binarySearch$CC() 135 -1, Arrays.binarySearch(charArray, '\u0000')); in test_binarySearch$CC() 138 Arrays.binarySearch(charArray, (char) (arraySize + 1)) == -(arraySize + 1)); in test_binarySearch$CC() 149 Arrays.binarySearch(doubleArray, (double) counter) == (double) counter); in test_binarySearch$DD() 151 -1, Arrays.binarySearch(doubleArray, (double) -1)); in test_binarySearch$DD() 154 Arrays.binarySearch(doubleArray, (double) arraySize) == -(arraySize + 1)); in test_binarySearch$DD() [all …]
|
D | Arrays2Test.java | 42 int result = Arrays.binarySearch(specials, specials[i]); in test_binarySearch$DD() 47 -4, Arrays.binarySearch(specials, -1d)); in test_binarySearch$DD() 49 -8, Arrays.binarySearch(specials, 1d)); in test_binarySearch$DD() 62 int result = Arrays.binarySearch(specials, specials[i]); in test_binarySearch$FF() 67 -4, Arrays.binarySearch(specials, -1f)); in test_binarySearch$FF() 69 -8, Arrays.binarySearch(specials, 1f)); in test_binarySearch$FF() 369 assertEquals(0, Arrays.binarySearch(strings, "a", in test_binarySearch$TTLjava_util_ComparatorsuperT() 371 assertEquals(0, Arrays.binarySearch(strings, "A", in test_binarySearch$TTLjava_util_ComparatorsuperT() 373 assertEquals(1, Arrays.binarySearch(strings, "b", in test_binarySearch$TTLjava_util_ComparatorsuperT() 375 assertEquals(1, Arrays.binarySearch(strings, "B", in test_binarySearch$TTLjava_util_ComparatorsuperT() [all …]
|
D | Collections2Test.java | 60 int index = Collections.binarySearch(lst, new Integer(2), null); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() 72 assertEquals(-1, Collections.binarySearch(localList, new Object())); in test_binarySearchLjava_util_ListLjava_lang_Object() 75 Collections.binarySearch(localList, new Integer(1)); in test_binarySearchLjava_util_ListLjava_lang_Object()
|
D | CollectionsTest.java | 265 Collections.binarySearch(null, new Object()); in test_binarySearchLjava_util_ListLjava_lang_Object() 272 .get(i), ll.get(Collections.binarySearch(ll, ll in test_binarySearchLjava_util_ListLjava_lang_Object() 287 Collections.binarySearch(null, new Object(), comp); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() 296 .get(Collections.binarySearch(myReversedLinkedList, in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() 2008 Object o = Collections.binarySearch(list, 1, new StringComparator()); in test_binarySearch_asymmetry_with_comparator() 2021 Object o = Collections.binarySearch(list, 1); in test_binarySearch_asymmetry()
|
D | RefSortedMap.java | 369 return Collections.binarySearch(entries, new MapEntry<K, V>((K) arg0, null), cmp);
|
D | FormatterTest.java | 1103 if (Arrays.binarySearch(chars, i) >= 0 || Character.isDigit(i) in test_formatLjava_lang_String$Ljava_lang_Object_Flag()
|
/libcore/luni/src/main/java/java/util/ |
D | Arrays.java | 168 public static int binarySearch(byte[] array, byte value) { in binarySearch() method in Arrays 169 return binarySearch(array, 0, array.length, value); in binarySearch() 188 public static int binarySearch(byte[] array, int startIndex, int endIndex, byte value) { in binarySearch() method in Arrays 218 public static int binarySearch(char[] array, char value) { in binarySearch() method in Arrays 219 return binarySearch(array, 0, array.length, value); in binarySearch() 238 public static int binarySearch(char[] array, int startIndex, int endIndex, char value) { in binarySearch() method in Arrays 268 public static int binarySearch(double[] array, double value) { in binarySearch() method in Arrays 269 return binarySearch(array, 0, array.length, value); in binarySearch() 288 public static int binarySearch(double[] array, int startIndex, int endIndex, double value) { in binarySearch() method in Arrays 329 public static int binarySearch(float[] array, float value) { in binarySearch() method in Arrays [all …]
|
D | Collections.java | 1413 public static <T> int binarySearch(List<? extends Comparable<? super T>> list, T object) { 1471 public static <T> int binarySearch(List<? extends T> list, T object, 1474 return Collections.binarySearch(
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Choice.java | 297 return Arrays.binarySearch(identifiers[0], identifier) >= 0; in checkTag() 301 int index = Arrays.binarySearch(identifiers[0], in.tag); in decode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | RetentionPolicyTest.java | 58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0); in test_values()
|
D | ElementTypeTest.java | 63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0); in test_values()
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | DatabaseMetaDataTest.java | 358 assertTrue("Invalid table name", Arrays.binarySearch( in test_getColumnsSpecific() 360 assertTrue("Invalid field name", Arrays.binarySearch(fields, rs in test_getColumnsSpecific() 362 assertTrue("Invalid nullable value", Arrays.binarySearch( in test_getColumnsSpecific() 364 assertTrue("Invalid nullable code", Arrays.binarySearch( in test_getColumnsSpecific() 378 assertTrue("Wrong table name", Arrays.binarySearch(tablesName, in test_getColumnsSpecific() 393 assertTrue("Wrong table name", Arrays.binarySearch(tablesName, in test_getColumnsSpecific() 1047 assertTrue("Wrong table type", Arrays.binarySearch(tableTypes, rs in test_getTableTypes() 1083 assertTrue("Wrong table name", Arrays.binarySearch(tablesName, rs in test_getTablesLjava_lang_StringLjava_lang_StringLjava_lang_String$Ljava_lang_String() 1087 assertTrue("Wrong table type", Arrays.binarySearch(tablesType, rs in test_getTablesLjava_lang_StringLjava_lang_StringLjava_lang_String$Ljava_lang_String() 1119 assertTrue("Wrong table name", Arrays.binarySearch(tablesName, rs in test_getTablesLjava_lang_StringLjava_lang_StringLjava_lang_String$Ljava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldCollectionsTest.java | 61 int index = Collections.binarySearch(lst, new Integer(2), null); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() 73 Collections.binarySearch(ll, new Integer(10), null); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() 88 assertEquals(-1, Collections.binarySearch(localList, new Object())); in test_binarySearchLjava_util_ListLjava_lang_Object() 91 Collections.binarySearch(localList, new Integer(1)); in test_binarySearchLjava_util_ListLjava_lang_Object() 106 Collections.binarySearch(ll, new Integer(10)); in test_binarySearchLjava_util_ListLjava_lang_Object()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 214 int transition = Arrays.binarySearch(mTransitions, unix); in getOffset() 230 int transition = Arrays.binarySearch(mTransitions, unix); in inDaylightTime() 841 int matchingRawTransition = Arrays.binarySearch(timeZone.mTransitions, timeSeconds);
|
D | ZoneInfoDB.java | 80 int index = Arrays.binarySearch(ids, id);
|
/libcore/luni/src/main/java/libcore/icu/ |
D | TimeZoneNames.java | 115 int index = Arrays.binarySearch(zoneStrings, needle, ZONE_STRINGS_COMPARATOR); in getDisplayName()
|
/libcore/dex/src/main/java/com/android/dex/ |
D | Dex.java | 345 return Collections.binarySearch(strings, s); in findStringIndex() 349 return Collections.binarySearch(typeNames, descriptor); in findTypeIndex() 353 return Collections.binarySearch(fieldIds, fieldId); in findFieldIndex() 357 return Collections.binarySearch(methodIds, methodId); in findMethodIndex()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 630 int pos = Arrays.binarySearch(data, (byte) 0); in engineGenerateCertificate()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 1808 int index = Arrays.binarySearch(MathUtils.LONG_POWERS_OF_TEN, Math.abs(value)); in decimalDigitsInLong()
|
/libcore/benchmarks/libs/ |
D | caliper.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |