Home
last modified time | relevance | path

Searched refs:selEnd (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/text/method/
DQwertyKeyListener.java91 int selStart, selEnd; in onKeyDown() local
103 selEnd = Math.max(a, b); in onKeyDown()
105 if (selStart < 0 || selEnd < 0) { in onKeyDown()
106 selStart = selEnd = 0; in onKeyDown()
120 if (count > 0 && selStart == selEnd && selStart > 0) { in onKeyDown()
144 if (selStart == selEnd) { in onKeyDown()
145 start = selEnd; in onKeyDown()
147 while (start > 0 && selEnd - start < 4 && in onKeyDown()
157 String hex = TextUtils.substring(content, start, selEnd); in onKeyDown()
163 Selection.setSelection(content, selStart, selEnd); in onKeyDown()
[all …]
DMultiTapKeyListener.java90 int selStart, selEnd; in onKeyDown() local
102 selEnd = Math.max(a, b); in onKeyDown()
116 if (activeStart == selStart && activeEnd == selEnd && in onKeyDown()
117 selEnd - selStart == 1 && in onKeyDown()
123 content.replace(selStart, selEnd, in onKeyDown()
131 content.replace(selStart, selEnd, in onKeyDown()
148 content.replace(selStart, selEnd, val, ix, ix + 1); in onKeyDown()
164 Selection.setSelection(content, selEnd, selEnd); in onKeyDown()
165 selStart = selEnd; in onKeyDown()
189 if (selStart != selEnd) { in onKeyDown()
[all …]
DNumberKeyListener.java106 int selStart, selEnd; in onKeyDown() local
113 selEnd = Math.max(a, b); in onKeyDown()
116 if (selStart < 0 || selEnd < 0) { in onKeyDown()
117 selStart = selEnd = 0; in onKeyDown()
125 if (selStart != selEnd) { in onKeyDown()
126 Selection.setSelection(content, selEnd); in onKeyDown()
129 content.replace(selStart, selEnd, String.valueOf((char) i)); in onKeyDown()
137 if (selStart == selEnd && selEnd > 0 && in onKeyDown()
139 content.replace(selStart - 1, selEnd, String.valueOf('+')); in onKeyDown()
DLinkMovementMethod.java121 int selEnd = Math.max(a, b); in action() local
125 selStart = selEnd = buffer.length(); in action()
130 selStart = selEnd = Integer.MAX_VALUE; in action()
131 if (selEnd < first) in action()
132 selStart = selEnd = -1; in action()
136 if (selStart == selEnd) { in action()
140 ClickableSpan[] links = buffer.getSpans(selStart, selEnd, ClickableSpan.class); in action()
163 if (end < selEnd || selStart == selEnd) { in action()
185 if (start > selStart || selStart == selEnd) { in action()
DCharacterPickerDialog.java95 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose() local
96 if (mInsert || selEnd == 0) { in replaceCharacterAndClose()
97 mText.insert(selEnd, replace); in replaceCharacterAndClose()
99 mText.replace(selEnd - 1, selEnd, replace); in replaceCharacterAndClose()
/frameworks/base/core/java/android/view/inputmethod/
DEditorInfo.java657 private void trimLongSurroundingText(CharSequence subText, int selStart, int selEnd, in trimLongSurroundingText() argument
659 final int sourceSelLength = selEnd - selStart; in trimLongSurroundingText()
666 final int subTextAfterCursorLength = subText.length() - selEnd; in trimLongSurroundingText()
685 selEnd + newAfterCursorLength - 1, TrimPolicy.TAIL)) { in trimLongSurroundingText()
695 final CharSequence afterCursor = subText.subSequence(selEnd, in trimLongSurroundingText()
696 selEnd + newAfterCursorLength); in trimLongSurroundingText()
767 int selEnd = mInitialSurroundingText.getSelectionEnd(); in getInitialSelectedText() local
768 if (selStart > selEnd) { in getInitialSelectedText()
770 selStart = selEnd; in getInitialSelectedText()
771 selEnd = tmp; in getInitialSelectedText()
[all …]
DInputMethodSessionWrapper.java135 void updateSelection(int oldSelStart, int oldSelEnd, int selStart, int selEnd, in updateSelection() argument
139 oldSelStart, oldSelEnd, selStart, selEnd, candidatesStart, candidatesEnd); in updateSelection()
DBaseInputConnection.java631 int selEnd = Selection.getSelectionEnd(content); in getSurroundingText() local
634 if (selStart < 0 || selEnd < 0) { in getSurroundingText()
638 if (selStart > selEnd) { in getSurroundingText()
640 selStart = selEnd; in getSurroundingText()
641 selEnd = tmp; in getSurroundingText()
646 int endPos = selEnd + afterLength; in getSurroundingText()
659 surroundingText, selStart - startPos, selEnd - startPos, startPos); in getSurroundingText()
DInputMethodManager.java2212 public void updateSelection(View view, int selStart, int selEnd, in updateSelection() argument
2217 fallbackImm.updateSelection(view, selStart, selEnd, candidatesStart, candidatesEnd); in updateSelection()
2228 if (mCursorSelStart != selStart || mCursorSelEnd != selEnd in updateSelection()
2242 mCursorSelEnd = selEnd; in updateSelection()
2246 oldSelStart, oldSelEnd, selStart, selEnd, candidatesStart, candidatesEnd); in updateSelection()
/frameworks/base/core/java/android/inputmethodservice/
DExtractEditText.java87 @Override protected void onSelectionChanged(int selStart, int selEnd) { in onSelectionChanged() argument
88 if (mSettingExtractedText == 0 && mIME != null && selStart >= 0 && selEnd >= 0) { in onSelectionChanged()
89 mIME.onExtractedSelectionChanged(selStart, selEnd); in onSelectionChanged()
/frameworks/base/core/java/android/widget/
DTextViewOnReceiveContentListener.java119 final int selEnd = Selection.getSelectionEnd(editable); in replaceSelection() local
120 final int start = Math.max(0, Math.min(selStart, selEnd)); in replaceSelection()
121 final int end = Math.max(0, Math.max(selStart, selEnd)); in replaceSelection()
DTextView.java6004 ss.selEnd = end; in onSaveInstanceState()
6049 if (ss.selStart >= 0 && ss.selEnd >= 0) { in onRestoreInstanceState()
6053 if (ss.selStart > len || ss.selEnd > len) { in onRestoreInstanceState()
6060 Log.e(LOG_TAG, "Saved cursor position " + ss.selStart + "/" + ss.selEnd in onRestoreInstanceState()
6063 Selection.setSelection(mSpannable, ss.selStart, ss.selEnd); in onRestoreInstanceState()
7923 final int selEnd = getSelectionEnd(); in getUpdatedHighlightPath() local
7925 if (selStart == selEnd) { in getUpdatedHighlightPath()
7944 mLayout.getSelectionPath(selStart, selEnd, mHighlightPath); in getUpdatedHighlightPath()
8139 int selEnd = getSelectionEnd(); in getFocusedRect() local
8140 if (selEnd < 0) { in getFocusedRect()
[all …]
DEditor.java1490 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged() local
1495 && selEnd == mTextView.getText().length(); in onFocusChanged()
1500 if (!mFrozenWithFocus || (selStart < 0 || selEnd < 0)) { in onFocusChanged()
1523 && selStart >= 0 && selEnd >= 0) { in onFocusChanged()
1533 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged() local
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java773 int selEnd = getSelectionEnd(); in shrink() local
774 if (whatEnd != selEnd) { in shrink()
1796 int selEnd = getSelectionEnd(); in handleEdit() local
1797 if (chipText != null && start > -1 && selEnd > -1) { in handleEdit()
1798 editable.replace(start, selEnd, chipText); in handleEdit()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt73707 Landroid/widget/TextView$SavedState;->selEnd:I