Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DNgramContextTests.java59 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testGetNextNgramContext()
60 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testGetNextNgramContext()
64 assertEquals("b", ngramContext_bos_b.getNthPrevWord(2)); in testGetNextNgramContext()
67 assertEquals("c", ngramContext_c_bos.getNthPrevWord(1)); in testGetNextNgramContext()
77 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testExtractPrevWordsContextTest()
78 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testExtractPrevWordsContextTest()
84 assertEquals("b", ngramContext_bos_b.getNthPrevWord(2)); in testExtractPrevWordsContextTest()
91 assertEquals("a", ngramContext_a_empty.getNthPrevWord(1)); in testExtractPrevWordsContextTest()
104 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testExtractPrevWordsContextArray()
105 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testExtractPrevWordsContextArray()
[all …]
DRichInputConnectionAndTextRangeTests.java162 "abc def", mSpacingAndPunctuations, 2).getNthPrevWord(1), "abc"); in testGetPreviousWord()
175 "abc def", mSpacingAndPunctuations, 1).getNthPrevWord(1), "def"); in testGetPreviousWord()
177 "abc def", mSpacingAndPunctuations, 1).getNthPrevWord(2), "abc"); in testGetPreviousWord()
189 "abc def ", mSpacingAndPunctuations, 2).getNthPrevWord(1), "abc"); in testGetPreviousWord()
191 "abc def.", mSpacingAndPunctuations, 2).getNthPrevWord(1), "abc"); in testGetPreviousWord()
193 "abc def .", mSpacingAndPunctuations, 2).getNthPrevWord(1), "def"); in testGetPreviousWord()
198 "abc def", mSpacingAndPunctuations, 1).getNthPrevWord(1), "def"); in testGetPreviousWord()
200 "abc def ", mSpacingAndPunctuations, 1).getNthPrevWord(1), "def"); in testGetPreviousWord()
202 "abc 'def", mSpacingAndPunctuations, 1).getNthPrevWord(1), "'def"); in testGetPreviousWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java80 + ngramProperty.mNgramContext.getNthPrevWord(i + 1)); in formatWordProperty()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DNgramContext.java192 public CharSequence getNthPrevWord(final int n) { in getNthPrevWord() method in NgramContext