Home
last modified time | relevance | path

Searched refs:indexOf (Results 1 – 25 of 259) sorted by relevance

1234567891011

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DLruListTest.java76 assertEquals(i, mLruList.indexOf(TEST_MAX_SIZE - i - 1)); in getIndex()
79 assertEquals(-1, mLruList.indexOf(3)); in getIndex()
82 assertEquals(0, mLruList.indexOf(3)); in getIndex()
83 assertEquals(-1, mLruList.indexOf(0)); in getIndex()
86 assertEquals(0, mLruList.indexOf(1)); in getIndex()
87 assertEquals(1, mLruList.indexOf(3)); in getIndex()
88 assertEquals(2, mLruList.indexOf(2)); in getIndex()
91 assertEquals(-1, mLruList.indexOf(1)); in getIndex()
92 assertEquals(0, mLruList.indexOf(3)); in getIndex()
93 assertEquals(1, mLruList.indexOf(2)); in getIndex()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupUtil.java322 groupId = list.indexOf(Groups._ID); in GroupsProjection()
323 title = list.indexOf(Groups.TITLE); in GroupsProjection()
324 summaryCount = list.indexOf(Groups.SUMMARY_COUNT); in GroupsProjection()
325 systemId = list.indexOf(Groups.SYSTEM_ID); in GroupsProjection()
326 accountName = list.indexOf(Groups.ACCOUNT_NAME); in GroupsProjection()
327 accountType = list.indexOf(Groups.ACCOUNT_TYPE); in GroupsProjection()
328 dataSet = list.indexOf(Groups.DATA_SET); in GroupsProjection()
329 autoAdd = list.indexOf(Groups.AUTO_ADD); in GroupsProjection()
330 favorites = list.indexOf(Groups.FAVORITES); in GroupsProjection()
331 isReadOnly = list.indexOf(Groups.GROUP_IS_READ_ONLY); in GroupsProjection()
[all …]
/packages/providers/TvProvider/src/com/android/providers/tv/util/
DSqliteTokenFinder.java49 return set.indexOf(ch) >= 0; in isAnyOf()
100 pos = sql.indexOf(ch, pos); in findTokens()
116 if (token.indexOf(ch) >= 0) { in findTokens()
139 pos = sql.indexOf(']', pos); in findTokens()
155 pos = sql.indexOf('\n', pos); in findTokens()
166 pos = sql.indexOf("*/", pos); in findTokens()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSQLiteTokenizer.java53 return set.indexOf(ch) >= 0; in isAnyOf()
119 pos = sql.indexOf(ch, pos); in tokenize()
139 if (tokenUnquoted.indexOf(ch) >= 0) { in tokenize()
158 pos = sql.indexOf(']', pos); in tokenize()
177 pos = sql.indexOf('\n', pos); in tokenize()
188 pos = sql.indexOf("*/", pos); in tokenize()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSQLiteTokenizer.java53 return set.indexOf(ch) >= 0; in isAnyOf()
119 pos = sql.indexOf(ch, pos); in tokenize()
139 if (tokenUnquoted.indexOf(ch) >= 0) { in tokenize()
158 pos = sql.indexOf(']', pos); in tokenize()
177 pos = sql.indexOf('\n', pos); in tokenize()
188 pos = sql.indexOf("*/", pos); in tokenize()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DSqlChecker.java69 return set.indexOf(ch) >= 0; in isAnyOf()
170 pos = sql.indexOf(ch, pos); in findTokens()
190 if (tokenUnquoted.indexOf(ch) >= 0) { in findTokens()
209 pos = sql.indexOf(']', pos); in findTokens()
228 pos = sql.indexOf('\n', pos); in findTokens()
239 pos = sql.indexOf("*/", pos); in findTokens()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java274 int separatorPos = versionStr.indexOf('.'); in retrieveConfigurationsFromBackupData()
623 configuration.SSID = mParsedSSIDLine.substring(mParsedSSIDLine.indexOf('=') + 1); in createWifiConfiguration()
629 mParsedHiddenLine.indexOf('=') + 1)) != 0; in createWifiConfiguration()
639 mParsedKeyMgmtLine.substring(mParsedKeyMgmtLine.indexOf('=') + 1); in createWifiConfiguration()
680 mParsedPskLine.substring(mParsedPskLine.indexOf('=') + 1); in createWifiConfiguration()
684 mParsedWepKeyLines[0].substring(mParsedWepKeyLines[0].indexOf('=') + 1); in createWifiConfiguration()
688 mParsedWepKeyLines[1].substring(mParsedWepKeyLines[1].indexOf('=') + 1); in createWifiConfiguration()
692 mParsedWepKeyLines[2].substring(mParsedWepKeyLines[2].indexOf('=') + 1); in createWifiConfiguration()
696 mParsedWepKeyLines[3].substring(mParsedWepKeyLines[3].indexOf('=') + 1); in createWifiConfiguration()
701 mParsedWepTxKeyIdxLine.indexOf('=') + 1)); in createWifiConfiguration()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DLruList.java54 int index = mLinkedList.indexOf(entry); in add()
71 int index = mLinkedList.indexOf(entry); in remove()
98 public int indexOf(E entry) { in indexOf() method in LruList
99 return mLinkedList.indexOf(entry); in indexOf()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DVendorCommandResponseProcessor.java87 int indexOfSemicolon = atCommand.indexOf(';'); in sendCommand()
95 int indexOfEqual = atCommand.indexOf('='); in sendCommand()
96 int indexOfQuestionMark = atCommand.indexOf('?'); in sendCommand()
133 int indexOfEqual = atString.indexOf('='); in processEvent()
134 int indexOfColon = atString.indexOf(':'); in processEvent()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DAddress.java101 int atSign = address.indexOf('@'); in getSimplifiedName()
107 int end = personal.indexOf(' '); in getSimplifiedName()
453 if ((addressList.indexOf(LIST_DELIMITER_PERSONAL) == -1) in fromHeader()
454 && (addressList.indexOf(LIST_DELIMITER_EMAIL) == -1)) { in fromHeader()
468 int addressEndIndex = addressList.indexOf(LIST_DELIMITER_PERSONAL); in fromHeader()
471 pairEndIndex = addressList.indexOf(LIST_DELIMITER_EMAIL, pairStartIndex); in fromHeader()
486 addressEndIndex = addressList.indexOf(LIST_DELIMITER_PERSONAL, pairEndIndex + 1); in fromHeader()
DPackedString.java89 int tagEndIndex = packed.indexOf(DELIMITER_TAG); in explode()
92 elementEndIndex = packed.indexOf(DELIMITER_ELEMENT, elementStartIndex); in explode()
107 tagEndIndex = packed.indexOf(DELIMITER_TAG, elementEndIndex + 1); in explode()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java136 final int firstDot = host.indexOf('.'); in isValidInternal()
144 if (host.indexOf("..") >= 0) { in isValidInternal()
153 final int secondDot = host.indexOf(".", firstDot + 1); in isValidInternal()
178 if (user.indexOf("..") >= 0) { in isValidInternal()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DMediaDb.java649 int index = mAudios.indexOf(audio); in updateAudio()
658 int index = mArtists.indexOf(artist); in updateArtist()
667 int index = mAlbums.indexOf(album); in updateAlbum()
676 int index = mGenres.indexOf(genre); in updateGenre()
685 int index = mPlaylists.indexOf(playlist); in updatePlaylist()
694 int index = mMovies.indexOf(movie); in updateMovie()
703 int index = mSeries.indexOf(series); in updateSeries()
712 int index = mEpisodes.indexOf(episode); in updateEpisode()
721 int index = mOthers.indexOf(other); in updateOther()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DBpf2Apf.java57 if (line.indexOf("(") != 0 || line.indexOf(")") != 4 || line.indexOf(" ") != 5) { in convertLine()
208 int jt_offset = line.indexOf("jt"); in convertLine()
209 int jf_offset = line.indexOf("jf"); in convertLine()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/service/
DLeanbackImeService.java244 int indexOf = editorText.indexOf('@'); in getAmpersandLocation() local
245 if (indexOf < 0) { in getAmpersandLocation()
246 indexOf = editorText.length(); in getAmpersandLocation()
249 return indexOf; in getAmpersandLocation()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveId.java29 assert(archiveUri.toString().indexOf(DELIMITER) == -1); in ArchiveId()
38 final int delimiterPosition = documentId.indexOf(DELIMITER); in fromDocumentId()
41 final int secondDelimiterPosition = documentId.indexOf(DELIMITER, delimiterPosition + 1); in fromDocumentId()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DSmsMmsContacts.java52 Arrays.asList(ADDRESS_PROJECTION).indexOf(CanonicalAddressesColumns._ID);
54 Arrays.asList(ADDRESS_PROJECTION).indexOf(CanonicalAddressesColumns.ADDRESS);
59 Arrays.asList(CONTACT_PROJECTION).indexOf(Contacts._ID);
61 Arrays.asList(CONTACT_PROJECTION).indexOf(Contacts.DISPLAY_NAME);
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DLongArrayTest.java54 assertEquals(5, a.indexOf(20)); in testLongArray()
57 assertEquals(-1, a.indexOf(99)); in testLongArray()
70 assertEquals(2, a.indexOf(30)); in testLongArray()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DDvrHistoryRowAdapter.java196 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingRemoved()
210 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingRemoved()
226 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingUpdated()
237 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingUpdated()
344 replace(indexOf(headerRow), headerRow); in removeScheduleRow()
DScheduleRowAdapter.java252 replace(indexOf(headerRow), headerRow); in removeScheduleRow()
289 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingRemoved()
322 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingUpdated()
339 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingUpdated()
367 int index = indexOf(row); in executePendingUpdate()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java121 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in setSelectedOption()
123 mAdapter.notifyItemChanged(mOptions.indexOf(lastSelectedOption)); in setSelectedOption()
146 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in setAppliedOption()
148 mAdapter.notifyItemChanged(mOptions.indexOf(lastAppliedOption)); in setAppliedOption()
153 int index = mOptions.indexOf(option); in updateActivatedStatus()
192 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in optionChanged()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DJarUtils.java46 final String jarPath = path.substring("file:".length(), path.indexOf('!')); in getJarFile()
96 final int localePos = parentName.indexOf('-');
102 final int regionPos = localeStr.indexOf("-r");
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java178 public int indexOf(int value) { in indexOf() method in IntArray
189 return indexOf(value) >= 0; in contains()
209 int index = indexOf(value); in removeValue()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporter.java92 index = currentEntries.indexOf(orgRowEntry); in process()
101 index = orgRowEntry != null ? currentEntries.indexOf(orgRowEntry) in process()
119 index = currentEntries.indexOf(orgRowEntry); in process()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsManager.java218 if (TextUtils.isEmpty(name) || name.indexOf(Constants.CODE_COMMERCIAL_AT) != -1) { in isValidName()
221 final boolean hasSpace = name.indexOf(Constants.CODE_SPACE) != -1; in isValidName()
225 return name.indexOf(Constants.CODE_DASH) == -1; in isValidName()

1234567891011