Searched refs:wordIterator (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | WordIteratorTest.java | 155 WordIterator wordIterator = new WordIterator(Locale.ENGLISH); in testSetCharSequence() local 158 wordIterator.setCharSequence(text, 100, 100); in testSetCharSequence() 164 wordIterator.setCharSequence(text, -100, -100); in testSetCharSequence() 170 wordIterator.setCharSequence(text, 0, text.length()); in testSetCharSequence() 171 wordIterator.setCharSequence(text, 0, 0); in testSetCharSequence() 172 wordIterator.setCharSequence(text, text.length(), text.length()); in testSetCharSequence() 178 WordIterator wordIterator = new WordIterator(Locale.ENGLISH); in testWindowWidth() local 181 wordIterator.setCharSequence(text, text.indexOf('n'), text.length()); in testWindowWidth() 183 assertEquals(expectedWindowStart, wordIterator.preceding(expectedWindowStart + 1)); in testWindowWidth() 184 assertEquals(BreakIterator.DONE, wordIterator.preceding(expectedWindowStart)); in testWindowWidth() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | BaseKeyListener.java | 390 WordIterator wordIterator = null; in deleteUntilWordBoundary() local 392 wordIterator = ((TextView)view).getWordIterator(); in deleteUntilWordBoundary() 395 if (wordIterator == null) { in deleteUntilWordBoundary() 399 wordIterator = new WordIterator(); in deleteUntilWordBoundary() 407 wordIterator.setCharSequence(content, deleteFrom, content.length()); in deleteUntilWordBoundary() 408 deleteTo = wordIterator.following(currentCursorOffset); in deleteUntilWordBoundary() 414 wordIterator.setCharSequence(content, 0, deleteTo); in deleteUntilWordBoundary() 415 deleteFrom = wordIterator.preceding(currentCursorOffset); in deleteUntilWordBoundary()
|
D | ArrowKeyMovementMethod.java | 200 final WordIterator wordIterator = widget.getWordIterator(); in leftWord() local 201 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd); in leftWord() 202 return Selection.moveToPreceding(buffer, wordIterator, isSelecting(buffer)); in leftWord() 209 final WordIterator wordIterator = widget.getWordIterator(); in rightWord() local 210 wordIterator.setCharSequence(buffer, selectionEnd, selectionEnd); in rightWord() 211 return Selection.moveToFollowing(buffer, wordIterator, isSelecting(buffer)); in rightWord()
|
/frameworks/base/core/java/android/service/textservice/ |
D | SpellCheckerService.java | 394 final WordIterator wordIterator = mWordIterator; in getSplitWords() local 400 wordIterator.setCharSequence(originalText, 0, originalText.length()); in getSplitWords() 401 int wordEnd = wordIterator.following(start); in getSplitWords() 402 int wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords() 418 wordEnd = wordIterator.following(wordEnd); in getSplitWords() 422 wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 981 final WordIterator wordIterator = getWordIterator(); in selectCurrentWord() local 982 wordIterator.setCharSequence(mTextView.getText(), minOffset, maxOffset); in selectCurrentWord() 984 selectionStart = wordIterator.getBeginning(minOffset); in selectCurrentWord() 985 selectionEnd = wordIterator.getEnd(maxOffset); in selectCurrentWord()
|