Home
last modified time | relevance | path

Searched refs:selectionStart (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/
DPlainTextEditText.java50 int selectionStart = getSelectionStart(); in onTextContextMenuItem() local
57 final int startIndex = selectionStart - 1; in onTextContextMenuItem()
58 final int pasteStringLength = selectionStart - selectionStartPrePaste; in onTextContextMenuItem()
68 sb.replace(selectionStartPrePaste, selectionStart, url); in onTextContextMenuItem()
70 selectionStart = selectionStartPrePaste + url.length(); in onTextContextMenuItem()
71 selectionEnd = selectionStart; in onTextContextMenuItem()
79 setSelection(selectionStart, selectionEnd); in onTextContextMenuItem()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java121 final int selectionStart = textView.getSelectionStart(); in extractFromTextViewInternal() local
122 builder.setSelectionRange(selectionStart, textView.getSelectionEnd()); in extractFromTextViewInternal()
234 if (0 <= selectionStart) { in extractFromTextViewInternal()
235 final int offset = selectionStart; in extractFromTextViewInternal()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadFragment.java1447 int selectionStart; in updateDialString() local
1454 selectionStart = Math.min(anchor, point); in updateDialString()
1457 if (selectionStart == -1) { in updateDialString()
1458 selectionStart = selectionEnd = this.digits.length(); in updateDialString()
1463 if (canAddDigit(digits, selectionStart, selectionEnd, newDigit)) { in updateDialString()
1464 digits.replace(selectionStart, selectionEnd, Character.toString(newDigit)); in updateDialString()
1466 if (selectionStart != selectionEnd) { in updateDialString()
1468 this.digits.setSelection(selectionStart + 1); in updateDialString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java179 if (et.selectionStart != mExpectedSelStart in checkConsistencyForDebug()
182 + "\nActual selection start = " + et.selectionStart in checkConsistencyForDebug()
188 Log.e(TAG, "Exp <> Actual : " + mExpectedSelStart + " <> " + et.selectionStart); in checkConsistencyForDebug()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java1395 final int selectionStart = mConnection.getExpectedSelectionStart(); in performRecapitalization() local
1397 final int numCharsSelected = selectionEnd - selectionStart; in performRecapitalization()
1405 || !mRecapitalizeStatus.isSetAt(selectionStart, selectionEnd)) { in performRecapitalization()
1409 mRecapitalizeStatus.start(selectionStart, selectionEnd, selectedText.toString(), in performRecapitalization()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java253 et.selectionStart = 7; in testGetWordRangeAtCursor()