Home
last modified time | relevance | path

Searched refs:getBeginning (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java225 wordIterator.getBeginning(-1); in testGetBeginning()
230 wordIterator.getBeginning(text.length() + 1); in testGetBeginning()
253 assertEquals(text.indexOf('a'), wordIterator.getBeginning(text.indexOf('a'))); in testGetBeginning()
254 assertEquals(text.indexOf('a'), wordIterator.getBeginning(text.indexOf('c'))); in testGetBeginning()
255 assertEquals(text.indexOf('a'), wordIterator.getBeginning(text.indexOf('c') + 1)); in testGetBeginning()
256 assertEquals(text.indexOf('d'), wordIterator.getBeginning(text.indexOf('d'))); in testGetBeginning()
257 assertEquals(text.indexOf('d'), wordIterator.getBeginning(text.indexOf('-'))); in testGetBeginning()
258 assertEquals(text.indexOf('g'), wordIterator.getBeginning(text.indexOf('g'))); in testGetBeginning()
259 assertEquals(text.indexOf('g'), wordIterator.getBeginning(text.indexOf('.'))); in testGetBeginning()
260 assertEquals(BreakIterator.DONE, wordIterator.getBeginning(text.indexOf('.') + 1)); in testGetBeginning()
[all …]
/frameworks/base/core/java/android/text/method/
DWordIterator.java149 public int getBeginning(int offset) { in getBeginning() method in WordIterator
152 return getBeginning(offset, false); in getBeginning()
189 return getBeginning(offset, true); in getPrevWordBeginningOnTwoWordsBoundary()
226 private int getBeginning(int offset, boolean getPrevWordBeginningOnTwoWordsBoundary) { in getBeginning() method in WordIterator
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java378 int wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
398 wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
/frameworks/base/core/java/android/widget/
DSpellChecker.java567 wordStart = mWordIterator.getBeginning(wordEnd); in parse()
723 wordStart = mWordIterator.getBeginning(wordEnd); in parse()
DEditor.java853 selectionStart = wordIterator.getBeginning(minOffset); in selectCurrentWord()