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.java46 assertEquals(beginning, mWordIterator.getBeginning(i)); in verifyIsWordWithSurrogate()
61 assertEquals(BreakIterator.DONE, mWordIterator.getBeginning(i)); in verifyIsNotWord()
72 assertEquals(BreakIterator.DONE, mWordIterator.getBeginning(0)); in testEmptyString()
400 wordIterator.getBeginning(-1); in testGetBeginning()
405 wordIterator.getBeginning(text.length() + 1); in testGetBeginning()
428 assertEquals(text.indexOf('a'), wordIterator.getBeginning(text.indexOf('a'))); in testGetBeginning()
429 assertEquals(text.indexOf('a'), wordIterator.getBeginning(text.indexOf('c'))); in testGetBeginning()
430 assertEquals(text.indexOf('a'), wordIterator.getBeginning(text.indexOf('c') + 1)); in testGetBeginning()
431 assertEquals(text.indexOf('d'), wordIterator.getBeginning(text.indexOf('d'))); in testGetBeginning()
432 assertEquals(text.indexOf('d'), wordIterator.getBeginning(text.indexOf('-'))); in testGetBeginning()
[all …]
/frameworks/base/core/java/android/text/method/
DWordIterator.java143 public int getBeginning(int offset) { in getBeginning() method in WordIterator
146 return getBeginning(offset, false); in getBeginning()
185 return getBeginning(offset, true); in getPrevWordBeginningOnTwoWordsBoundary()
223 private int getBeginning(int offset, boolean getPrevWordBeginningOnTwoWordsBoundary) { in getBeginning() method in WordIterator
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java402 int wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
422 wordStart = wordIterator.getBeginning(wordEnd); in getSplitWords()
/frameworks/base/core/java/android/widget/
DSpellChecker.java571 wordStart = mWordIterator.getBeginning(wordEnd); in parse()
727 wordStart = mWordIterator.getBeginning(wordEnd); in parse()
DEditor.java984 selectionStart = wordIterator.getBeginning(minOffset); in selectCurrentWord()