/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
ArraysCompatUtilsTests.java | 35 final int index = ArraysCompatUtils.binarySearch(mIntArray, 0, 0, 0); 43 final int index = ArraysCompatUtils.binarySearch(mIntArray, mid, mid, 1); 51 final int index = ArraysCompatUtils.binarySearch(mIntArray, 0, ARRAY_SIZE, counter); 67 final int index = ArraysCompatUtils.binarySearch( 79 final int index = ArraysCompatUtils.binarySearch(mIntArray, 0, ARRAY_SIZE, -1); 87 final int index = ArraysCompatUtils.binarySearch(mIntArray, 0, ARRAY_SIZE, ARRAY_SIZE); 97 final int index = ArraysCompatUtils.binarySearch(mIntArray, 0, ARRAY_SIZE, mid);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
ArraysTest.java | 110 * @tests java.util.Arrays#binarySearch(byte[], byte) 113 // Test for method int java.util.Arrays.binarySearch(byte [], byte) 116 Arrays.binarySearch(byteArray, counter) == counter); 118 -1, Arrays.binarySearch(intArray, (byte) -1)); 121 Arrays.binarySearch(intArray, (byte) arraySize) == -(arraySize + 1)); 127 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter); 131 * @tests java.util.Arrays#binarySearch(char[], char) 134 // Test for method int java.util.Arrays.binarySearch(char [], char) 138 Arrays.binarySearch(charArray, (char) (counter + 1)) == counter); 140 -1, Arrays.binarySearch(charArray, '\u0000')) [all...] |
Arrays2Test.java | 33 * @tests java.util.Arrays#binarySearch(double[], double) 42 int result = Arrays.binarySearch(specials, specials[i]); 47 -4, Arrays.binarySearch(specials, -1d)); 49 -8, Arrays.binarySearch(specials, 1d)); 53 * @tests java.util.Arrays#binarySearch(float[], float) 62 int result = Arrays.binarySearch(specials, specials[i]); 67 -4, Arrays.binarySearch(specials, -1f)); 69 -8, Arrays.binarySearch(specials, 1f)); 368 assertEquals(0, Arrays.binarySearch(strings, "a", 370 assertEquals(0, Arrays.binarySearch(strings, "A" [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
ArraysCompatUtils.java | 24 .getMethod(Arrays.class, "binarySearch", int[].class, int.class, int.class, int.class); 26 public static int binarySearch(int[] array, int startIndex, int endIndex, int value) { 43 final int index = Arrays.binarySearch(work, value);
|
/external/guava/src/com/google/common/collect/ |
ComparatorOrdering.java | 43 @Override public int binarySearch(List<? extends T> sortedList, T key) { 44 return Collections.binarySearch(sortedList, key, comparator);
|
NaturalOrdering.java | 51 @Override public int binarySearch( 53 return Collections.binarySearch((List) sortedList, key);
|
RegularImmutableSortedSet.java | 88 return binarySearch(o) >= 0; 130 private int binarySearch(Object key) { 236 int index = binarySearch(element); 260 position = binarySearch(target);
|
/frameworks/base/core/java/android/util/ |
SparseBooleanArray.java | 74 int i = binarySearch(mKeys, 0, mSize, key); 87 int i = binarySearch(mKeys, 0, mSize, key); 102 int i = binarySearch(mKeys, 0, mSize, key); 167 return binarySearch(mKeys, 0, mSize, key); 223 private static int binarySearch(int[] a, int start, int len, int key) {
|
SparseIntArray.java | 78 int i = binarySearch(mKeys, 0, mSize, key); 91 int i = binarySearch(mKeys, 0, mSize, key); 113 int i = binarySearch(mKeys, 0, mSize, key); 178 return binarySearch(mKeys, 0, mSize, key); 234 private static int binarySearch(int[] a, int start, int len, int key) {
|
LongSparseArray.java | 87 int i = binarySearch(mKeys, 0, mSize, key); 100 int i = binarySearch(mKeys, 0, mSize, key); 150 int i = binarySearch(mKeys, 0, mSize, key); 167 i = ~binarySearch(mKeys, 0, mSize, key); 257 return binarySearch(mKeys, 0, mSize, key); 329 private static int binarySearch(long[] a, int start, int len, long key) {
|
SparseArray.java | 82 int i = binarySearch(mKeys, 0, mSize, key); 95 int i = binarySearch(mKeys, 0, mSize, key); 156 int i = binarySearch(mKeys, 0, mSize, key); 173 i = ~binarySearch(mKeys, 0, mSize, key); 264 return binarySearch(mKeys, 0, mSize, key); 336 private static int binarySearch(int[] a, int start, int len, int key) {
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
Cache.java | 194 int idx = -1*Arrays.binarySearch(hashes_idx, prefix_hash)-1; 218 int idx = -1*Arrays.binarySearch(hashes_idx, hash)-1; 259 int idx = Arrays.binarySearch(hashes_idx, idx_hash); 267 int new_idx = Arrays.binarySearch(hashes_idx, new_hash_idx); 293 int idx = Arrays.binarySearch(hashes_idx, idx_hash);
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/util/ |
SparseIntArray.java | 59 int i = binarySearch(mKeys, 0, mSize, key); 72 int i = binarySearch(mKeys, 0, mSize, key); 94 int i = binarySearch(mKeys, 0, mSize, key); 159 return binarySearch(mKeys, 0, mSize, key); 215 private static int binarySearch(int[] a, int start, int len, int key) {
|
SparseArray.java | 63 int i = binarySearch(mKeys, 0, mSize, key); 76 int i = binarySearch(mKeys, 0, mSize, key); 126 int i = binarySearch(mKeys, 0, mSize, key); 143 i = ~binarySearch(mKeys, 0, mSize, key); 234 return binarySearch(mKeys, 0, mSize, key); 306 private static int binarySearch(int[] a, int start, int len, int key) {
|
/external/apache-harmony/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
RetentionPolicyTest.java | 58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0);
|
ElementTypeTest.java | 63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0);
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
RetentionPolicyTest.java | 42 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
SparseWeakArray.java | 81 int i = binarySearch(mKeys, 0, mSize, key); 94 int i = binarySearch(mKeys, 0, mSize, key); 164 int i = binarySearch(mKeys, 0, mSize, key); 181 i = ~binarySearch(mKeys, 0, mSize, key); 271 return binarySearch(mKeys, 0, mSize, key); 353 private static int binarySearch(int[] a, int start, int len, int key) {
|
/frameworks/support/v4/java/android/support/v4/app/ |
HCSparseArray.java | 60 int i = binarySearch(mKeys, 0, mSize, key); 73 int i = binarySearch(mKeys, 0, mSize, key); 133 int i = binarySearch(mKeys, 0, mSize, key); 150 i = ~binarySearch(mKeys, 0, mSize, key); 240 return binarySearch(mKeys, 0, mSize, key); 312 private static int binarySearch(int[] a, int start, int len, int key) {
|
/libcore/luni/src/main/java/java/util/ |
Arrays.java | 167 public static int binarySearch(byte[] array, byte value) { 168 return binarySearch(array, 0, array.length, value); 187 public static int binarySearch(byte[] array, int startIndex, int endIndex, byte value) { 217 public static int binarySearch(char[] array, char value) { 218 return binarySearch(array, 0, array.length, value); 237 public static int binarySearch(char[] array, int startIndex, int endIndex, char value) { 267 public static int binarySearch(double[] array, double value) { 268 return binarySearch(array, 0, array.length, value); 287 public static int binarySearch(double[] array, int startIndex, int endIndex, double value) { 328 public static int binarySearch(float[] array, float value) [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceGroupAdapter.java | 186 int insertPos = Collections.binarySearch(mPreferenceLayouts, pl); 217 if (Collections.binarySearch(mPreferenceLayouts, mTempPreferenceLayout) < 0) { 264 int viewType = Collections.binarySearch(mPreferenceLayouts, mTempPreferenceLayout);
|
/external/jdiff/src/jdiff/ |
ClassDiff.java | 100 int idx = Collections.binarySearch(newClass.implements_, oldInterface); 113 int idx = Collections.binarySearch(oldClass.implements_, newInterface);
|
/external/webkit/Source/JavaScriptCore/wtf/ |
StdLibExtras.h | 130 inline ArrayType* binarySearch(ArrayType* array, size_t size, KeyType key) 164 using WTF::binarySearch;
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Choice.java | 297 return Arrays.binarySearch(identifiers[0], identifier) >= 0; 301 int index = Arrays.binarySearch(identifiers[0], in.tag);
|
/libcore/luni/src/test/java/tests/api/java/util/ |
ArraysTest.java | 98 * java.util.Arrays#binarySearch(byte[], byte) 101 // Test for method int java.util.Arrays.binarySearch(byte [], byte) 104 Arrays.binarySearch(byteArray, counter) == counter); 106 -1, Arrays.binarySearch(intArray, (byte) -1)); 109 Arrays.binarySearch(intArray, (byte) arraySize) == -(arraySize + 1)); 115 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter); 119 * java.util.Arrays#binarySearch(char[], char) 122 // Test for method int java.util.Arrays.binarySearch(char [], char) 126 Arrays.binarySearch(charArray, (char) (counter + 1)) == counter); 128 -1, Arrays.binarySearch(charArray, '\u0000')) [all...] |