Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java181 wordIterator.setCharSequence(text, text.indexOf('n'), text.length()); in testWindowWidth()
182 final int expectedWindowStart = text.indexOf('n') - 50; in testWindowWidth()
209 assertEquals(BreakIterator.DONE, wordIterator.preceding(text.indexOf('a'))); in testPreceding()
210 assertEquals(text.indexOf('a'), wordIterator.preceding(text.indexOf('c'))); in testPreceding()
211 assertEquals(text.indexOf('a'), wordIterator.preceding(text.indexOf('d'))); in testPreceding()
212 assertEquals(text.indexOf('d'), wordIterator.preceding(text.indexOf('e'))); in testPreceding()
213 assertEquals(text.indexOf('d'), wordIterator.preceding(text.indexOf('g'))); in testPreceding()
214 assertEquals(text.indexOf('g'), wordIterator.preceding(text.indexOf('h'))); in testPreceding()
215 assertEquals(text.indexOf('g'), wordIterator.preceding(text.indexOf('j'))); in testPreceding()
216 assertEquals(text.indexOf('j'), wordIterator.preceding(text.indexOf('l'))); in testPreceding()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityMouseTest.java92 mouseDragOnText(helloWorld.indexOf("llo"), helloWorld.indexOf("ld!"))); in testSelectTextByDrag()
101 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w"))); in testSelectTextByDrag()
113 mouseDragOnText( helloWorld.indexOf("ld!"), helloWorld.indexOf("llo"))); in testSelectTextByDrag_reverse()
127 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
140 mouseClickOnTextAtIndex(text.indexOf("."))); in testContextMenu()
144 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
156 mouseDragOnText(text.indexOf("c"), text.indexOf("h"))); in testContextMenu()
158 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
171 mouseClickOnTextAtIndex(text.indexOf("i"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
181 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(text.indexOf("i"))); in testContextMenu()
[all …]
DTextViewActivityTest.java133 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); in testPositionCursorAtTextAtIndex()
181 longPressOnTextAtIndex(helloWorld.indexOf("Kirk"))); in testLongPressToSelect()
191 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("big"))); in testLongPressEmptySpace()
205 longPressAndDragOnText(helloWorld.indexOf("little"), helloWorld.indexOf(" boy!"))); in testLongPressAndDragToSelect()
228 onView(withId(R.id.textview)).perform(longPressOnTextAtIndex(text.indexOf("e"))); in testDragAndDrop()
231 longPressAndDragOnText(text.indexOf("e"), text.length())); in testDragAndDrop()
250 doubleClickOnTextAtIndex(helloWorld.indexOf("SuetYi"))); in testDoubleTapToSelect()
259 onView(withId(R.id.textview)).perform(doubleTapAndDragOnText(helloWorld.indexOf("young"), in testDoubleTapAndDragToSelect()
260 helloWorld.indexOf(" person!"))); in testDoubleTapAndDragToSelect()
270 doubleTapAndDragOnText(helloWorld.indexOf("m"), helloWorld.indexOf("a"))); in testDoubleTapAndDragToSelect_multiLine()
[all …]
DSuggestionsPopupWindowTest.java98 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testOnTextContextMenuItem()
116 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testSelectionActionMode()
118 onView(withId(R.id.textview)).perform(longPressOnTextAtIndex(text.indexOf('e'))); in testSelectionActionMode()
138 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testInsertionActionMode()
140 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(text.indexOf('e'))); in testInsertionActionMode()
167 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testSuggestionItems()
205 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testMisspelled()
233 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testEasyCorrect()
235 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(text.indexOf('e'))); in testEasyCorrect()
248 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(text.indexOf('e'))); in testEasyCorrect()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteArguments.java268 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
276 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
284 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
289 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
296 mSeInfo = arg.substring(arg.indexOf('=') + 1); in parseArgs()
303 String capString = arg.substring(arg.indexOf('=') + 1); in parseArgs()
316 String[] limitStrings = arg.substring(arg.indexOf('=') + 1).split(","); in parseArgs()
339 String[] params = arg.substring(arg.indexOf('=') + 1).split(","); in parseArgs()
362 mNiceName = arg.substring(arg.indexOf('=') + 1); in parseArgs()
382 mInstructionSet = arg.substring(arg.indexOf('=') + 1); in parseArgs()
[all …]
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java189 int firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween()
191 int secondStart = mEditable.toString().indexOf(second); in testSanitizeBetween()
197 assertEquals(editableString.indexOf(extra), -1); in testSanitizeBetween()
198 assertEquals(editableString.indexOf(first), firstStart); in testSanitizeBetween()
199 assertEquals(editableString.indexOf(second), secondStart - extra.length()); in testSanitizeBetween()
207 firstStart = mEditable.toString().indexOf(first); in testSanitizeBetween()
226 int firstStart = mEditable.toString().indexOf(first); in testSanitizeEnd()
228 int secondStart = mEditable.toString().indexOf(second); in testSanitizeEnd()
234 assertEquals(editableString.indexOf(extra), -1); in testSanitizeEnd()
235 assertEquals(editableString.indexOf(first), firstStart); in testSanitizeEnd()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java51 assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A)); in testIndexOf()
52 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B)); in testIndexOf()
53 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, B, C }, C)); in testIndexOf()
54 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, D)); in testIndexOf()
56 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, null)); in testIndexOf()
57 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, A)); in testIndexOf()
58 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, null)); in testIndexOf()
60 assertEquals(0, ArrayUtils.indexOf(new Object[] { null, null }, null)); in testIndexOf()
61 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, null, B }, null)); in testIndexOf()
62 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, null, B }, B)); in testIndexOf()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackContainersTests.java74 final int stack1Pos = taskStackContainer.mChildren.indexOf(stack1); in testStackPositionChildAt()
75 final int stack2Pos = taskStackContainer.mChildren.indexOf(stack2); in testStackPositionChildAt()
76 final int pinnedStackPos = taskStackContainer.mChildren.indexOf(mPinnedStack); in testStackPositionChildAt()
98 final int stackPos = taskStackContainer.mChildren.indexOf(stack1); in testStackPositionBelowPinnedStack()
99 final int pinnedStackPos = taskStackContainer.mChildren.indexOf(mPinnedStack); in testStackPositionBelowPinnedStack()
123 final int indexOfDisplayWithPinnedStack = mWm.mRoot.mChildren.indexOf(mDisplayContent); in testDisplayPositionWithPinnedStack()
/frameworks/base/core/java/android/database/sqlite/
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()
/frameworks/base/core/java/com/android/internal/util/
DRingBuffer.java60 mBuffer[indexOf(mCursor++)] = t; in append()
69 final int nextSlotIdx = indexOf(mCursor++); in getNextSlot()
94 out[outIdx--] = (T) mBuffer[indexOf(inCursor--)]; in toArray()
99 private int indexOf(long cursor) { in indexOf() method in RingBuffer
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DRenameClassAdapter.java47 int pos = mOldName.indexOf('$'); in RenameClassAdapter()
51 pos = mNewName.indexOf('$'); in RenameClassAdapter()
80 int pos = type.indexOf('$'); in renameInternalType()
/frameworks/base/core/java/android/webkit/
DURLUtil.java82 if (webAddress.getHost().indexOf('.') == -1) { in guessUrl()
91 int placeHolderIndex = template.indexOf(queryPlaceHolder); in composeSearchUrl()
150 int index = url.indexOf('%'); in verifyURLEncoding()
162 index = url.indexOf('%', index + 1); in verifyURLEncoding()
288 int anchorIndex = url.indexOf('#'); in stripAnchor()
327 int queryIndex = decodedUrl.indexOf('?'); in guessFileName()
348 int dotIndex = filename.indexOf('.'); in guessFileName()
/frameworks/base/core/tests/utiltests/src/android/util/
DLongArrayTest.java55 assertEquals(5, a.indexOf(20)); in testLongArray()
58 assertEquals(-1, a.indexOf(99)); in testLongArray()
71 assertEquals(2, a.indexOf(30)); in testLongArray()
DIntArrayTest.java55 assertEquals(5, a.indexOf(20)); in testIntArray()
58 assertEquals(-1, a.indexOf(99)); in testIntArray()
71 assertEquals(2, a.indexOf(30)); in testIntArray()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSimpleSessionDescription.java68 address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address; in SimpleSessionDescription()
410 int slash = parts[2].indexOf('/'); in getAddress()
420 address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + in setAddress()
434 int colon = encryption.indexOf(':'); in getEncryptionMethod()
446 int colon = encryption.indexOf(':'); in getEncryptionKey()
529 if (mOrder.indexOf(type) == -1) { in parse()
538 int i = line.indexOf(delimiter); in parse()
554 int i = line.indexOf(delimiter); in cut()
/frameworks/base/services/core/java/com/android/server/rollback/
DAppDataRollbackHelper.java106 if (pendingBackups != null && pendingBackups.indexOf(userId) != -1) { in restoreAppData()
107 pendingBackups.remove(pendingBackups.indexOf(userId)); in restoreAppData()
175 final int idx = pendingBackupUsers.indexOf(userId); in computePendingBackups()
178 if (rollbacksWithPendingBackups.indexOf(rollback) == -1) { in computePendingBackups()
206 if (rollbacksWithPendingRestores.indexOf(rollback) == -1) { in computePendingRestores()
254 final int idx = pendingBackupUsers.indexOf(userId); in commitPendingBackupAndRestoreForUser()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java248 int separatorPos = versionStr.indexOf('.'); in retrieveConfigurationsFromBackupData()
586 configuration.SSID = mParsedSSIDLine.substring(mParsedSSIDLine.indexOf('=') + 1); in createWifiConfiguration()
592 mParsedHiddenLine.indexOf('=') + 1)) != 0; in createWifiConfiguration()
602 mParsedKeyMgmtLine.substring(mParsedKeyMgmtLine.indexOf('=') + 1); in createWifiConfiguration()
627 mParsedPskLine.substring(mParsedPskLine.indexOf('=') + 1); in createWifiConfiguration()
631 mParsedWepKeyLines[0].substring(mParsedWepKeyLines[0].indexOf('=') + 1); in createWifiConfiguration()
635 mParsedWepKeyLines[1].substring(mParsedWepKeyLines[1].indexOf('=') + 1); in createWifiConfiguration()
639 mParsedWepKeyLines[2].substring(mParsedWepKeyLines[2].indexOf('=') + 1); in createWifiConfiguration()
643 mParsedWepKeyLines[3].substring(mParsedWepKeyLines[3].indexOf('=') + 1); in createWifiConfiguration()
648 mParsedWepTxKeyIdxLine.indexOf('=') + 1)); in createWifiConfiguration()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierUtilsTest.java41 start = text.indexOf("任侠団体"); in testGetSubString()
55 start = text.indexOf("all"); in testGetSubString()
62 start = text.indexOf("themselves"); in testGetSubString()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockFindingClassVisitor.java239 if (!(instructions.indexOf(handler.start) <= instructions.indexOf(start) in updateCatchHandler()
240 && instructions.indexOf(end) <= instructions.indexOf(handler.end))) { in updateCatchHandler()
244 for (int i = instructions.indexOf(start); i <= instructions.indexOf(end); i++) { in updateCatchHandler()
251 for (int i = instructions.indexOf(start); i <= instructions.indexOf(end); i++) { in updateCatchHandler()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DVisualVoicemailSmsParser.java62 int eventTypeEnd = smsBody.indexOf(":", prefixEnd + 1); in parse()
101 int separatorIndex = entry.indexOf("="); in parseSmsBody()
127 int eventTypeEnd = smsBody.indexOf("?"); in parseAlternativeFormat()
/frameworks/native/libs/binder/
DPermissionCache.cpp43 ssize_t index = mCache.indexOf(e); in check()
55 ssize_t index = mPermissionNamesPool.indexOf(permission); in cache()
66 index = mCache.indexOf(e); in cache()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java350 sizeStr.substring(0, sizeStr.indexOf(WEIGHT_SUFFIX))); in applySize()
354 Float.parseFloat(sizeStr.substring(0, sizeStr.indexOf(ABSOLUTE_SUFFIX)))); in applySize()
406 int index = uri.indexOf('/'); in createView()
420 final int start = buttonSpec.indexOf(KEY_IMAGE_DELIM); in extractImage()
421 String subStr = buttonSpec.substring(start + 1, buttonSpec.indexOf(KEY_CODE_END)); in extractImage()
429 final int start = buttonSpec.indexOf(KEY_CODE_START); in extractKeycode()
430 String subStr = buttonSpec.substring(start + 1, buttonSpec.indexOf(KEY_IMAGE_DELIM)); in extractKeycode()
438 final int sizeStart = buttonSpec.indexOf(SIZE_MOD_START); in extractSize()
439 return buttonSpec.substring(sizeStart + 1, buttonSpec.indexOf(SIZE_MOD_END)); in extractSize()
446 return buttonSpec.substring(0, buttonSpec.indexOf(SIZE_MOD_START)); in extractButton()
/frameworks/base/core/java/com/android/internal/alsa/
DLineTokenizer.java36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) { in nextToken()
49 if (mDelimiters.indexOf(line.charAt(offset)) != -1) { in nextDelimiter()
/frameworks/base/core/java/android/view/
DWindowInsets.java31 import static android.view.WindowInsets.Type.indexOf;
186 Insets insets = typeInsetsMap[indexOf(i)]; in getInsets()
207 typeInsetsMap[indexOf(i)] = insets; in setInsets()
235 typeInsetMap[indexOf(TOP_BAR)] = Insets.of(0, insets.top, 0, 0); in assignCompatInsets()
236 typeInsetMap[indexOf(SIDE_BARS)] = Insets.of(insets.left, 0, insets.right, insets.bottom); in assignCompatInsets()
245 int index = indexOf(i); in createCompatVisibilityMap()
338 if (!mTypeVisibilityMap[indexOf(i)]) { in isVisible()
1080 mTypeVisibilityMap[indexOf(i)] = visible; in setVisible()
1165 static int indexOf(@InsetType int type) { in indexOf() method in WindowInsets.Type
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java226 assertTrue(mHelper.indexOf(notificationList, critical) == 0); in testSortShouldRespectCritical()
227 assertTrue(mHelper.indexOf(notificationList, critical_ish) == 1); in testSortShouldRespectCritical()
228 assertTrue(mHelper.indexOf(notificationList, critical_notAtAll) == 6); in testSortShouldRespectCritical()
252 assertTrue(mHelper.indexOf(notificationList, mRecordGroupGSortA) >= 0); in testFindAfterRankingWithASplitGroup()
253 assertTrue(mHelper.indexOf(notificationList, mRecordGroupGSortB) >= 0); in testFindAfterRankingWithASplitGroup()
254 assertTrue(mHelper.indexOf(notificationList, mRecordNoGroup) >= 0); in testFindAfterRankingWithASplitGroup()
255 assertTrue(mHelper.indexOf(notificationList, mRecordNoGroupSortA) >= 0); in testFindAfterRankingWithASplitGroup()

12345678910>>...15