/frameworks/support/v4/java/android/support/v4/util/ |
SparseArrayCompat.java | 85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 172 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 189 i = ~ ContainerHelpers.binarySearch(mKeys, mSize, key); 280 return ContainerHelpers.binarySearch(mKeys, mSize, key);
|
/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);
|
PreferenceGroup.java | 150 int insertionIndex = Collections.binarySearch(mPreferenceList, preference);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
SortedListsTest.java | 102 SortedLists.binarySearch(LIST_WITHOUT_DUPS, key, presentBehavior, absentBehavior), 114 SortedLists.binarySearch(LIST_WITH_DUPS, key, presentBehavior, absentBehavior),
|
/external/jdiff/src/jdiff/ |
ClassDiff.java | 100 int idx = Collections.binarySearch(newClass.implements_, oldInterface); 113 int idx = Collections.binarySearch(oldClass.implements_, newInterface);
|
APIComparator.java | 59 int idx = Collections.binarySearch(newAPI.packages_, oldPkg); 88 int idx = Collections.binarySearch(oldAPI.packages_, newPkg); 166 int idx = Collections.binarySearch(newPkg.classes_, oldClass); 194 int idx = Collections.binarySearch(oldPkg.classes_, newClass); 374 int idx = Collections.binarySearch(newClass.ctors_, oldCtor); 423 int idx = Collections.binarySearch(oldClass.ctors_, newCtor); 474 // NOTE: there was a problem with the binarySearch for 479 // int idx = Collections.binarySearch(newClass.methods_, oldMethod); 497 // has changed, because the binarySearch did not find it. 534 // See note above about searching an array instead of binarySearch [all...] |
/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...] |
/external/chromium_org/tools/deep_memory_profiler/visualizer/static/ |
utility.js | 8 * This function must be called in the shape of binarySearch(array, target). 12 var binarySearch = function(target) {
|
/external/replicaisland/src/com/replica/replicaisland/ |
SpriteAnimation.java | 62 int index = Arrays.binarySearch(mFrameStartTimes, cycleTime);
|
FixedSizeArray.java | 202 index = Arrays.binarySearch(contents, object, comparator); 204 index = Arrays.binarySearch(contents, object); 206 // Arrays.binarySearch() returns a negative insertion index if the object isn't found,
|
/frameworks/volley/src/com/android/volley/toolbox/ |
ByteArrayPool.java | 115 int pos = Collections.binarySearch(mBuffersBySize, buf, BUF_COMPARATOR);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
ElementTypeTest.java | 63 assertTrue(Arrays.binarySearch(values, ElementType.METHOD) >= 0);
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/ |
AreaCodeMap.java | 160 currentIndex = binarySearch(0, currentIndex, phonePrefix); 179 private int binarySearch(int start, int end, long value) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactsSectionIndexer.java | 86 int index = Arrays.binarySearch(mPositions, position);
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
StdLibExtras.h | 229 inline ArrayElementType* binarySearch(ArrayType& array, size_t size, KeyType key, ExtractKey extractKey = ExtractKey()) 250 inline ArrayElementType* binarySearch(const ArrayType& array, size_t size, KeyType key, ExtractKey extractKey = ExtractKey()) 279 using WTF::binarySearch;
|
/frameworks/base/services/java/com/android/server/input/ |
PersistentDataStore.java | 302 int index = Collections.binarySearch(mKeyboardLayouts, keyboardLayout); 314 int index = Collections.binarySearch(mKeyboardLayouts, keyboardLayout); 343 int index = Collections.binarySearch(mKeyboardLayouts, mCurrentKeyboardLayout);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/ |
DB_Results.java | 406 return Arrays.binarySearch(BUILDS, name, Util.BUILD_DATE_COMPARATOR); 597 DEFAULT_DIM_INDEX = Arrays.binarySearch(DIMENSIONS, DEFAULT_DIM.getId()); 633 DEFAULT_DIM_INDEX = Arrays.binarySearch(DIMENSIONS, DEFAULT_DIM.getId()); 943 return Arrays.binarySearch(CONFIGS, config); [all...] |
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 207 int transition = Arrays.binarySearch(mTransitions, unix); 223 int transition = Arrays.binarySearch(mTransitions, unix);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
SectionedAlbumDataAdapter.java | 201 return (Arrays.binarySearch(sections, position) >= 0); 205 int offset = Arrays.binarySearch(sections, position);
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldCollectionsTest.java | 53 * java.util.Collections#binarySearch(java.util.List, 61 int index = Collections.binarySearch(lst, new Integer(2), null); 73 Collections.binarySearch(ll, new Integer(10), null); 81 * java.util.Collections#binarySearch(java.util.List, 88 assertEquals(-1, Collections.binarySearch(localList, new Object())); 91 Collections.binarySearch(localList, new Integer(1)); 106 Collections.binarySearch(ll, new Integer(10));
|
/libcore/luni/src/test/java/tests/java/sql/ |
DatabaseMetaDataTest.java | 358 assertTrue("Invalid table name", Arrays.binarySearch( 360 assertTrue("Invalid field name", Arrays.binarySearch(fields, rs 362 assertTrue("Invalid nullable value", Arrays.binarySearch( 364 assertTrue("Invalid nullable code", Arrays.binarySearch( 378 assertTrue("Wrong table name", Arrays.binarySearch(tablesName, 393 assertTrue("Wrong table name", Arrays.binarySearch(tablesName, [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
Collections2Test.java | 54 * @tests java.util.Collections#binarySearch(java.util.List, 62 int index = Collections.binarySearch(lst, new Integer(2), null); 67 * @tests java.util.Collections#binarySearch(java.util.List, 74 assertEquals(-1, Collections.binarySearch(localList, new Object())); 77 Collections.binarySearch(localList, new Integer(1));
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/ |
AnnotationDirectoryItem.java | 408 int index = Arrays.binarySearch(fieldAnnotations, fieldIdItem); 425 int index = Arrays.binarySearch(methodAnnotations, methodIdItem); 443 int index = Arrays.binarySearch(parameterAnnotations, methodIdItem);
|
/libcore/luni/src/main/java/libcore/icu/ |
TimeZoneNames.java | 120 int index = Arrays.binarySearch(zoneStrings, needle, ZONE_STRINGS_COMPARATOR);
|