Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java95 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockConnection
145 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockInputMethodService
146 return mMockConnection.cursorPos(); in cursorPos()
292 private void helpTestGetSuggestionSpansAtWord(final int cursorPos) { in helpTestGetSuggestionSpansAtWord() argument
305 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
320 mockInputMethodService.setInputConnection(new MockConnection(text, cursorPos)); in helpTestGetSuggestionSpansAtWord()
333 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()
[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()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAnimatedAdapter.java729 final int cursorPos = position - getPositionOffset(position); in getItemId() local
736 if (cursor != null && cursor.moveToPosition(cursorPos)) { in getItemId()
742 return super.getItemId(cursorPos); in getItemId()