Home
last modified time | relevance | path

Searched refs:binarySearch (Results 1 – 20 of 20) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java111 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 …]
DArrays2Test.java42 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 …]
DCollections2Test.java60 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()
DCollectionsTest.java265 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()
DRefSortedMap.java369 return Collections.binarySearch(entries, new MapEntry<K, V>((K) arg0, null), cmp);
DFormatterTest.java1103 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/
DArrays.java168 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 …]
DCollections.java1413 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/
DASN1Choice.java297 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/
DRetentionPolicyTest.java58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0); in test_values()
DElementTypeTest.java63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0); in test_values()
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java358 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/
DOldCollectionsTest.java61 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/
DZoneInfo.java214 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);
DZoneInfoDB.java80 int index = Arrays.binarySearch(ids, id);
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java115 int index = Arrays.binarySearch(zoneStrings, needle, ZONE_STRINGS_COMPARATOR); in getDisplayName()
/libcore/dex/src/main/java/com/android/dex/
DDex.java345 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/
DTestCertUtils.java630 int pos = Arrays.binarySearch(data, (byte) 0); in engineGenerateCertificate()
/libcore/luni/src/main/java/java/math/
DBigDecimal.java1808 int index = Arrays.binarySearch(MathUtils.LONG_POWERS_OF_TEN, Math.abs(value)); in decimalDigitsInLong()
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...