Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java65 assertEquals(BreakIterator.DONE, wordIterator.preceding(text.indexOf('a'))); in testPreceding()
66 assertEquals(text.indexOf('a'), wordIterator.preceding(text.indexOf('c'))); in testPreceding()
67 assertEquals(text.indexOf('a'), wordIterator.preceding(text.indexOf('d'))); in testPreceding()
68 assertEquals(text.indexOf('d'), wordIterator.preceding(text.indexOf('e'))); in testPreceding()
69 assertEquals(text.indexOf('d'), wordIterator.preceding(text.indexOf('g'))); in testPreceding()
70 assertEquals(text.indexOf('g'), wordIterator.preceding(text.indexOf('h'))); in testPreceding()
71 assertEquals(text.indexOf('g'), wordIterator.preceding(text.indexOf('j'))); in testPreceding()
72 assertEquals(text.indexOf('j'), wordIterator.preceding(text.indexOf('l'))); in testPreceding()
91 assertEquals(text.indexOf('c') + 1, wordIterator.following(text.indexOf('a'))); in testFollowing()
92 assertEquals(text.indexOf('c') + 1, wordIterator.following(text.indexOf('c'))); in testFollowing()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityMouseTest.java76 mouseDragOnText(helloWorld.indexOf("llo"), helloWorld.indexOf("ld!"))); in testSelectTextByDrag()
85 onView(withId(R.id.textview)).perform(mouseClickOnTextAtIndex(helloWorld.indexOf("w"))); in testSelectTextByDrag()
97 mouseDragOnText( helloWorld.indexOf("ld!"), helloWorld.indexOf("llo"))); in testSelectTextByDrag_reverse()
111 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
123 mouseDragOnText(text.indexOf("c"), text.indexOf("h"))); in testContextMenu()
125 mouseClickOnTextAtIndex(text.indexOf("d"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
138 mouseClickOnTextAtIndex(text.indexOf("i"), MotionEvent.BUTTON_SECONDARY)); in testContextMenu()
148 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(text.indexOf("i"))); in testContextMenu()
159 mouseDragOnText(text.indexOf("d"), text.indexOf("f") + 1)); in testDragAndDrop()
162 mouseDragOnText(text.indexOf("e"), text.length())); in testDragAndDrop()
[all …]
DTextViewActivityTest.java89 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); in testPositionCursorAtTextAtIndex()
139 longPressOnTextAtIndex(helloWorld.indexOf("Kirk"))); in testLongPressToSelect()
150 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("big"))); in testLongPressEmptySpace()
163 longPressAndDragOnText(helloWorld.indexOf("little"), helloWorld.indexOf(" boy!"))); in testLongPressAndDragToSelect()
173 onView(withId(R.id.textview)).perform(longPressOnTextAtIndex(text.indexOf("e"))); in testDragAndDrop()
176 longPressAndDragOnText(text.indexOf("e"), text.length())); in testDragAndDrop()
196 doubleClickOnTextAtIndex(helloWorld.indexOf("SuetYi"))); in testDoubleTapToSelect()
207 doubleTapAndDragOnText(helloWorld.indexOf("young"), helloWorld.indexOf(" girl!"))); in testDoubleTapAndDragToSelect()
218 doubleTapAndDragOnText(helloWorld.indexOf(" Jungle!"), helloWorld.indexOf("king"))); in testSelectBackwordsByTouch()
230 longPressOnTextAtIndex(text.indexOf("appears"))); in testToolbarAppearsAfterSelection()
[all …]
DSuggestionsPopupWindowTest.java93 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testOnTextContextMenuItem()
111 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testSelectionActionMode()
113 onView(withId(R.id.textview)).perform(longPressOnTextAtIndex(text.indexOf('e'))); in testSelectionActionMode()
133 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testInsertionActionMode()
135 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(text.indexOf('e'))); in testInsertionActionMode()
162 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testSuggestionItems()
200 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testMisspelled()
228 setSuggestionSpan(suggestionSpan, text.indexOf('d'), text.indexOf('f') + 1); in testEasyCorrect()
230 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(text.indexOf('e'))); in testEasyCorrect()
243 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(text.indexOf('e'))); in testEasyCorrect()
[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.java50 assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A)); in testIndexOf()
51 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B)); in testIndexOf()
52 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, B, C }, C)); in testIndexOf()
53 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, D)); in testIndexOf()
55 assertEquals(-1, ArrayUtils.indexOf(new Object[] { A, B, C }, null)); in testIndexOf()
56 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, A)); in testIndexOf()
57 assertEquals(-1, ArrayUtils.indexOf(new Object[] { }, null)); in testIndexOf()
59 assertEquals(0, ArrayUtils.indexOf(new Object[] { null, null }, null)); in testIndexOf()
60 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, null, B }, null)); in testIndexOf()
61 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, null, B }, B)); in testIndexOf()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
DScopedException.java107 int msgStart = output.indexOf(MSG_KEY); in createFromOutput()
111 int fileStart = output.indexOf(FILE_KEY, msgStart + MSG_KEY.length()); in createFromOutput()
116 int locStart = output.indexOf(LOCATION_KEY, fileStart + FILE_KEY.length()); in createFromOutput()
123 nextLoc = output.indexOf(LOCATION_KEY, locStart + LOCATION_KEY.length()); in createFromOutput()
146 int index = output.indexOf(ERROR_LOG_PREFIX); in extractErrors()
149 int end = output.indexOf(ERROR_LOG_SUFFIX, index + ERROR_LOG_PREFIX.length()); in extractErrors()
156 index = output.indexOf(ERROR_LOG_PREFIX, end + ERROR_LOG_SUFFIX.length()); in extractErrors()
/frameworks/base/tools/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.java80 if (webAddress.getHost().indexOf('.') == -1) { in guessUrl()
89 int placeHolderIndex = template.indexOf(queryPlaceHolder); in composeSearchUrl()
147 int index = url.indexOf('%'); in verifyURLEncoding()
159 index = url.indexOf('%', index + 1); in verifyURLEncoding()
284 int anchorIndex = url.indexOf('#'); in stripAnchor()
323 int queryIndex = decodedUrl.indexOf('?'); in guessFileName()
344 int dotIndex = filename.indexOf('.'); in guessFileName()
/frameworks/base/docs/html/sdk/
Ddownload.jd14 if (location.indexOf('?v=') != -1) {
15 var filename = location.substring(location.indexOf('=')+1,location.length);
55 if (loc.indexOf('?v=') != -1) {
56 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
82 var filename = loc.substring(loc.indexOf('=')+1,loc.length);
83 version = filename.substring(filename.indexOf('.')-1,filename.lastIndexOf('.'));
/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/test-runner/src/junit/runner/
DSimpleTestCollector.java18 classFileName.indexOf('$') < 0 && in isTestClass()
19 classFileName.indexOf("Test") > 0; in isTestClass()
/frameworks/base/core/java/com/android/internal/os/
DZygoteConnection.java412 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
420 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
428 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
453 seInfo = arg.substring(arg.indexOf('=') + 1); in parseArgs()
460 String capString = arg.substring(arg.indexOf('=')+1); in parseArgs()
474 = arg.substring(arg.indexOf('=')+1).split(","); in parseArgs()
498 = arg.substring(arg.indexOf('=') + 1).split(","); in parseArgs()
521 niceName = arg.substring(arg.indexOf('=') + 1); in parseArgs()
531 instructionSet = arg.substring(arg.indexOf('=') + 1); in parseArgs()
533 appDataDir = arg.substring(arg.indexOf('=') + 1); in parseArgs()
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DRankingHelperTest.java102 assertTrue(mHelper.indexOf(notificationList, mRecordGroupGSortA) >= 0); in testFindAfterRankingWithASplitGroup()
103 assertTrue(mHelper.indexOf(notificationList, mRecordGroupGSortB) >= 0); in testFindAfterRankingWithASplitGroup()
104 assertTrue(mHelper.indexOf(notificationList, mRecordNoGroup) >= 0); in testFindAfterRankingWithASplitGroup()
105 assertTrue(mHelper.indexOf(notificationList, mRecordNoGroupSortA) >= 0); in testFindAfterRankingWithASplitGroup()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DArrayObjectAdapter.java67 public int indexOf(Object item) { in indexOf() method in ArrayObjectAdapter
68 return mItems.indexOf(item); in indexOf()
126 int index = mItems.indexOf(item); in remove()
/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/recents/model/
DTaskGrouping.java49 int i = indexOf(t); in getNextTaskInGroup()
58 int i = indexOf(t); in getPrevTaskInGroup()
71 public int indexOf(Task t) { in indexOf() method in TaskGrouping
/frameworks/base/services/tests/servicestests/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()
/frameworks/support/documents-archive/src/android/support/provider/
DParsedDocumentId.java32 final int delimiterPosition = documentId.indexOf(idDelimiter); in fromDocumentId()
42 return documentId.indexOf(idDelimiter) != -1; in hasPath()
/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/util/
DArraySet.java78 private int indexOf(Object key, int hash) { in indexOf() method in ArraySet
304 return indexOf(key) >= 0; in contains()
313 public int indexOf(Object key) { in indexOf() method in ArraySet
315 : indexOf(key, mIdentityHashCode ? System.identityHashCode(key) : key.hashCode()); in indexOf()
353 index = indexOf(value, hash); in add()
449 final int index = indexOf(object); in remove()
659 return indexOf(key); in getCollection()
664 return indexOf(value); in getCollection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java276 final int start = buttonSpec.indexOf(KEY_IMAGE_DELIM); in extractImage()
277 String subStr = buttonSpec.substring(start + 1, buttonSpec.indexOf(KEY_CODE_END)); in extractImage()
285 final int start = buttonSpec.indexOf(KEY_CODE_START); in extractKeycode()
286 String subStr = buttonSpec.substring(start + 1, buttonSpec.indexOf(KEY_IMAGE_DELIM)); in extractKeycode()
294 final int sizeStart = buttonSpec.indexOf(SIZE_MOD_START); in extractSize()
295 String sizeStr = buttonSpec.substring(sizeStart + 1, buttonSpec.indexOf(SIZE_MOD_END)); in extractSize()
303 return buttonSpec.substring(0, buttonSpec.indexOf(SIZE_MOD_START)); in extractButton()
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
DCompilationResult.java38 return resultCode == 0 && output.indexOf(text) > 0; in resultContainsText()
42 return resultCode != 0 && error.indexOf(text) > 0; in errorContainsText()
/frameworks/base/core/java/android/net/
DUri.java500 ? cachedSsi = uriString.indexOf(':') in findSchemeSeparator()
510 ? cachedFsi = uriString.indexOf('#', findSchemeSeparator()) in findFragmentSeparator()
652 int qsi = uriString.indexOf('?', findSchemeSeparator()); in parseQuery()
1068 int end = authority.indexOf('@'); in parseUserInfo()
1092 int userInfoSeparator = authority.indexOf('@'); in parseHost()
1093 int portSeparator = authority.indexOf(':', userInfoSeparator); in parseHost()
1118 int userInfoSeparator = authority.indexOf('@'); in parsePort()
1119 int portSeparator = authority.indexOf(':', userInfoSeparator); in parsePort()
1578 int next = query.indexOf('&', start); in getQueryParameterNames()
1581 int separator = query.indexOf('=', start); in getQueryParameterNames()
[all …]
/frameworks/native/services/sensorservice/
DSensorRecord.cpp32 if (mConnections.indexOf(connection) < 0) { in addConnection()
42 ssize_t index = mConnections.indexOf(connection); in removeConnection()

12345678910>>...14