Searched refs:cursorPos (Results 1 – 4 of 4) sorted by relevance
104 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockConnection154 public int cursorPos() { in cursorPos() method in RichInputConnectionAndTextRangeTests.MockInputMethodService155 return mMockConnection.cursorPos(); in cursorPos()304 private void helpTestGetSuggestionSpansAtWord(final int cursorPos) { in helpTestGetSuggestionSpansAtWord() argument317 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 …]
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()