Searched refs:cursorPos (Results 1 – 4 of 4) sorted by relevance
95 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockConnection145 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockInputMethodService146 return mMockConnection.cursorPos(); in cursorPos()292 private void helpTestGetSuggestionSpansAtWord(final int cursorPos) { in helpTestGetSuggestionSpansAtWord() argument305 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 …]
708 int cursorPos = sendUpdateForCursorMoveToEndOfLine(); in testTypeWithinComposing() local712 typeWordAndPutCursorInside(WORD_TO_TYPE, cursorPos + 1 /* startPos */); in testTypeWithinComposing()725 int cursorPos = sendUpdateForCursorMoveToEndOfLine(); in testTypeWithinGestureComposing() local728 typeWordAndPutCursorInside(WORD_TO_TYPE, cursorPos + 1 /* startPos */); in testTypeWithinGestureComposing()
236 int cursorPos = mCursorPositionWithinWord; in moveCursorByAndReturnIfInsideComposingWord() local242 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()
729 final int cursorPos = position - getPositionOffset(position); in getItemId() local736 if (cursor != null && cursor.moveToPosition(cursorPos)) { in getItemId()742 return super.getItemId(cursorPos); in getItemId()