Home
last modified time | relevance | path

Searched refs:cursorPos (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java104 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockConnection
154 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockInputMethodService
155 return mMockConnection.cursorPos(); in cursorPos()
304 private void helpTestGetSuggestionSpansAtWord(final int cursorPos) { in helpTestGetSuggestionSpansAtWord() argument
317 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
332 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
345 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
357 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
369 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
381 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
[all …]
DInputLogicTests.java708 int cursorPos = sendUpdateForCursorMoveToEndOfLine(); in testTypeWithinComposing() local
712 typeWordAndPutCursorInside(WORD_TO_TYPE, cursorPos + 1 /* startPos */); in testTypeWithinComposing()
725 int cursorPos = sendUpdateForCursorMoveToEndOfLine(); in testTypeWithinGestureComposing() local
728 typeWordAndPutCursorInside(WORD_TO_TYPE, cursorPos + 1 /* startPos */); in testTypeWithinGestureComposing()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DWordComposer.java236 int cursorPos = mCursorPositionWithinWord; in moveCursorByAndReturnIfInsideComposingWord() local
242 while (actualMoveAmount < expectedMoveAmount && cursorPos < codePoints.length) { in moveCursorByAndReturnIfInsideComposingWord()
243 actualMoveAmount += Character.charCount(codePoints[cursorPos]); in moveCursorByAndReturnIfInsideComposingWord()
244 ++cursorPos; in moveCursorByAndReturnIfInsideComposingWord()
249 while (actualMoveAmount > expectedMoveAmount && cursorPos > 0) { in moveCursorByAndReturnIfInsideComposingWord()
250 --cursorPos; in moveCursorByAndReturnIfInsideComposingWord()
251 actualMoveAmount -= Character.charCount(codePoints[cursorPos]); in moveCursorByAndReturnIfInsideComposingWord()
259 mCursorPositionWithinWord = cursorPos; in moveCursorByAndReturnIfInsideComposingWord()
261 mEvents, Event.createCursorMovedEvent(cursorPos))); in moveCursorByAndReturnIfInsideComposingWord()