Searched refs:getNthPrevWord (Results 1 – 4 of 4) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | NgramContextTests.java | 72 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testGetNextNgramContext() 73 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testGetNextNgramContext() 77 assertEquals("b", ngramContext_bos_b.getNthPrevWord(2)); in testGetNextNgramContext() 80 assertEquals("c", ngramContext_c_bos.getNthPrevWord(1)); in testGetNextNgramContext() 91 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testExtractPrevWordsContextTest() 92 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testExtractPrevWordsContextTest() 98 assertEquals("b", ngramContext_bos_b.getNthPrevWord(2)); in testExtractPrevWordsContextTest() 105 assertEquals("a", ngramContext_a_empty.getNthPrevWord(1)); in testExtractPrevWordsContextTest() 119 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testExtractPrevWordsContextArray() 120 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testExtractPrevWordsContextArray() [all …]
|
D | RichInputConnectionAndTextRangeTests.java | 172 "abc def", mSpacingAndPunctuations, 2).getNthPrevWord(1), "abc"); in testGetPreviousWord() 185 "abc def", mSpacingAndPunctuations, 1).getNthPrevWord(1), "def"); in testGetPreviousWord() 187 "abc def", mSpacingAndPunctuations, 1).getNthPrevWord(2), "abc"); in testGetPreviousWord() 199 "abc def ", mSpacingAndPunctuations, 2).getNthPrevWord(1), "abc"); in testGetPreviousWord() 201 "abc def.", mSpacingAndPunctuations, 2).getNthPrevWord(1), "abc"); in testGetPreviousWord() 203 "abc def .", mSpacingAndPunctuations, 2).getNthPrevWord(1), "def"); in testGetPreviousWord() 208 "abc def", mSpacingAndPunctuations, 1).getNthPrevWord(1), "def"); in testGetPreviousWord() 210 "abc def ", mSpacingAndPunctuations, 1).getNthPrevWord(1), "def"); in testGetPreviousWord() 212 "abc 'def", mSpacingAndPunctuations, 1).getNthPrevWord(1), "'def"); in testGetPreviousWord()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CombinedFormatUtils.java | 80 + ngramProperty.mNgramContext.getNthPrevWord(i + 1)); in formatWordProperty()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | NgramContext.java | 192 public CharSequence getNthPrevWord(final int n) { in getNthPrevWord() method in NgramContext
|