Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java96 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0; in isWordSeparator()
100 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0; in isWordConnector()
108 return Arrays.binarySearch(mSortedSymbolsPrecededBySpace, code) >= 0; in isUsuallyPrecededBySpace()
112 return Arrays.binarySearch(mSortedSymbolsFollowedBySpace, code) >= 0; in isUsuallyFollowedBySpace()
116 return Arrays.binarySearch(mSortedSymbolsClusteringTogether, code) >= 0; in isClusteringSymbol()
120 return Arrays.binarySearch(mSortedSentenceTerminators, code) >= 0; in isSentenceTerminator()
/packages/apps/TV/common/src/com/android/tv/common/util/
DCollectionUtils.java61 if (Collections.binarySearch(result, toAdd, comparator) < 0) { in union()
75 int index = Collections.binarySearch(result, toSubtract, comparator); in subtract()
89 if (Collections.binarySearch(contains, iterate, comparator) >= 0) { in containsAny()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DSeries.java29 import static com.android.pump.util.Collections.binarySearch;
99 int seriesLocation = binarySearch(mSeasons, episode.getSeason(), in addEpisode()
103 int episodeLocation = binarySearch(series, episode.getEpisode(), Episode::getEpisode); in addEpisode()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/packed/read/
DPackedTableReader.java184 return binarySearch(lower, upper, entryMatcher); in findLongValueEntry()
187 private Entry binarySearch(int lower, int upper, LongValueEntryMatcher entryMatcher) { in binarySearch() method in PackedTableReader
309 return binarySearch(lower, upper, entryMatcher); in findNearbyEntry()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntSet.java31 int index = Arrays.binarySearch(mArray.mValues, 0, mArray.mSize, value); in add()
38 return Arrays.binarySearch(mArray.mValues, 0, mArray.mSize, value) >= 0; in contains()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DCollections.java36 int index = binarySearch(list, key, keyRetriever); in find()
43 public static <T> int binarySearch(@NonNull List<T> list, long key, in binarySearch() method in Collections
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseArray.java45 final int index = Collections.binarySearch(mKeys, key); in put()
60 final int index = Collections.binarySearch(mKeys, key); in get()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DTemperatureColorStore.java103 int index = binarySearch(temperature); in getColorForTemperature()
176 private int binarySearch(float temperature) { in binarySearch() method in TemperatureColorStore
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSectionedAlbumDataAdapter.java201 return (Arrays.binarySearch(sections, position) >= 0); in isHeader()
205 int offset = Arrays.binarySearch(sections, position); in internalPosition()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java308 if (Arrays.binarySearch(track.getSyncSamples(), currentSample + 1) >= 0) { in correctTimeToSyncSample()
311 timeOfSyncSamples[Arrays.binarySearch( in correctTimeToSyncSample()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsSectionIndexer.java92 int index = Arrays.binarySearch(mPositions, position); in getSectionForPosition()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java1397 return (Arrays.binarySearch(allowed2gFreq, apChannelMHz) >= 0 in isApChannelMHzValid()
1398 || Arrays.binarySearch(allowed5gFreq, apChannelMHz) >= 0 in isApChannelMHzValid()
1399 || Arrays.binarySearch(allowed5gDfsFreq, apChannelMHz) >= 0) in isApChannelMHzValid()
1400 || Arrays.binarySearch(allowed6gFreq, apChannelMHz) >= 0 in isApChannelMHzValid()
1401 || Arrays.binarySearch(allowed60gFreq, apChannelMHz) >= 0; in isApChannelMHzValid()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java396 needsCapsNext = (Arrays.binarySearch(sortedSeparators, codePoint) >= 0); in isIdenticalAfterCapitalizeEachWord()
417 needsCapsNext = (Arrays.binarySearch(sortedSeparators, nextChar.codePointAt(0)) >= 0); in capitalizeEachWord()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DKeyboardLayoutPickerController.java147 entry.getKey().setChecked(Arrays.binarySearch(enabledKeyboardLayouts, in updateCheckedState()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsStore.java92 int index = Arrays.binarySearch(mApps, mTempInfo, COMPONENT_KEY_COMPARATOR); in getApp()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioContext.java233 Preconditions.checkArgument(Arrays.binarySearch(CONTEXTS, audioContext) >= 0, in preconditionCheckAudioContext()
DCarAudioZonesHelper.java108 return Arrays.binarySearch(LEGACY_CONTEXTS, audioContext) >= 0; in isLegacyContext()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java191 int insertionIndex = Arrays.binarySearch(mBucketBoundaries, value); in getBucketKey()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java235 return Collections.binarySearch(contacts, new SimContact(-1, name, phone, null), in findByPhoneAndName()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java346 if (!changed && Arrays.binarySearch(mSuggestedContactIds, contactId) < 0) { in updateSuggestedContactIds()
/packages/apps/Contacts/src/com/android/contacts/
DSimImportFragment.java192 Arrays.binarySearch(ids, mListView.getItemIdAtPosition(i)) >= 0); in showSelectionsForCurrentAccount()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java483 int result = Collections.binarySearch(data, reference, PTNODE_COMPARATOR); in findInsertionIndex()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/datamanager/
DChannelDataManager.java441 Collections.binarySearch( in handleEvents()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java715 if (Arrays.binarySearch(tagTechs, tech) < 0) { in filterMatch()
/packages/apps/TV/src/com/android/tv/data/
DProgramDataManager.java431 int index = Collections.binarySearch(programs, key); in getProgramIndexAt()

12