Home
last modified time | relevance | path

Searched refs:mWordIterator (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/widget/
DSpellChecker.java94 private WordIterator mWordIterator; field in SpellChecker
154 mWordIterator = new WordIterator(locale); in setLocale()
563 mWordIterator.setCharSequence(editable, start, wordIteratorWindowEnd); in parse()
566 int wordStart = mWordIterator.preceding(start); in parse()
569 wordEnd = mWordIterator.following(start); in parse()
571 wordStart = mWordIterator.getBeginning(wordEnd); in parse()
574 wordEnd = mWordIterator.getEnd(wordStart); in parse()
602 int spellCheckEnd = mWordIterator.preceding(wordIteratorWindowEnd); in parse()
605 spellCheckEnd = mWordIterator.getEnd(spellCheckEnd); in parse()
717 wordEnd = mWordIterator.following(wordEnd); in parse()
[all …]
DEditor.java358 private WordIterator mWordIterator; field in Editor
1196 mWordIterator = null; in onLocaleChanged()
1201 if (mWordIterator == null) { in getWordIterator()
1202 mWordIterator = new WordIterator(mTextView.getTextServicesLocale()); in getWordIterator()
1204 return mWordIterator; in getWordIterator()
/frameworks/base/core/tests/coretests/src/android/text/method/
DWordIteratorTest.java41 private WordIterator mWordIterator = new WordIterator(); field in WordIteratorTest
46 assertEquals(beginning, mWordIterator.getBeginning(i)); in verifyIsWordWithSurrogate()
47 assertEquals(end, mWordIterator.getEnd(i)); in verifyIsWordWithSurrogate()
52 mWordIterator.setCharSequence(string, 0, string.length()); in setCharSequence()
61 assertEquals(BreakIterator.DONE, mWordIterator.getBeginning(i)); in verifyIsNotWord()
62 assertEquals(BreakIterator.DONE, mWordIterator.getEnd(i)); in verifyIsNotWord()
69 assertEquals(BreakIterator.DONE, mWordIterator.following(0)); in testEmptyString()
70 assertEquals(BreakIterator.DONE, mWordIterator.preceding(0)); in testEmptyString()
72 assertEquals(BreakIterator.DONE, mWordIterator.getBeginning(0)); in testEmptyString()
73 assertEquals(BreakIterator.DONE, mWordIterator.getEnd(0)); in testEmptyString()
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java388 private final WordIterator mWordIterator; field in SpellCheckerService.SentenceLevelAdapter
390 mWordIterator = new WordIterator(locale); in SentenceLevelAdapter()
394 final WordIterator wordIterator = mWordIterator; in getSplitWords()