Home
last modified time | relevance | path

Searched refs:selEnd (Results 1 – 10 of 10) 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.java108 int selStart, selEnd; in onKeyDown() local
115 selEnd = Math.max(a, b); in onKeyDown()
118 if (selStart < 0 || selEnd < 0) { in onKeyDown()
119 selStart = selEnd = 0; in onKeyDown()
127 if (selStart != selEnd) { in onKeyDown()
128 Selection.setSelection(content, selEnd); in onKeyDown()
131 content.replace(selStart, selEnd, String.valueOf((char) i)); in onKeyDown()
139 if (selStart == selEnd && selEnd > 0 && in onKeyDown()
141 content.replace(selStart - 1, selEnd, String.valueOf('+')); in onKeyDown()
DLinkMovementMethod.java116 int selEnd = Math.max(a, b); in action() local
120 selStart = selEnd = buffer.length(); in action()
125 selStart = selEnd = Integer.MAX_VALUE; in action()
126 if (selEnd < first) in action()
127 selStart = selEnd = -1; in action()
131 if (selStart == selEnd) { in action()
135 ClickableSpan[] link = buffer.getSpans(selStart, selEnd, ClickableSpan.class); in action()
152 if (end < selEnd || selStart == selEnd) { in action()
174 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/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/
DTextView.java5038 ss.selEnd = end;
5083 if (ss.selStart >= 0 && ss.selEnd >= 0) {
5087 if (ss.selStart > len || ss.selEnd > len) {
5094 Log.e(LOG_TAG, "Saved cursor position " + ss.selStart + "/" + ss.selEnd
5097 Selection.setSelection((Spannable) mText, ss.selStart, ss.selEnd);
6683 final int selEnd = getSelectionEnd(); in getUpdatedHighlightPath() local
6685 if (selStart == selEnd) { in getUpdatedHighlightPath()
6706 mLayout.getSelectionPath(selStart, selEnd, mHighlightPath); in getUpdatedHighlightPath()
6901 int selEnd = getSelectionEnd(); in getFocusedRect() local
6902 if (selEnd < 0) { in getFocusedRect()
[all …]
DEditor.java1142 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged() local
1147 && selEnd == mTextView.getText().length(); in onFocusChanged()
1152 if (!mFrozenWithFocus || (selStart < 0 || selEnd < 0)) { in onFocusChanged()
1172 && selStart >= 0 && selEnd >= 0) { in onFocusChanged()
1182 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged() local
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodManager.java1590 public void updateSelection(View view, int selStart, int selEnd, in updateSelection() argument
1600 if (mCursorSelStart != selStart || mCursorSelEnd != selEnd in updateSelection()
1613 mCursorSelEnd = selEnd; in updateSelection()
1617 selStart, selEnd, candidatesStart, candidatesEnd); in updateSelection()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java770 int selEnd = getSelectionEnd(); in shrink() local
771 if (whatEnd != selEnd) { in shrink()
1793 int selEnd = getSelectionEnd(); in handleEdit() local
1794 if (chipText != null && start > -1 && selEnd > -1) { in handleEdit()
1795 editable.replace(start, selEnd, chipText); in handleEdit()