Searched refs:selEnd (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java90 int selStart, selEnd;
102 selEnd = Math.max(a, b);
116 if (activeStart == selStart && activeEnd == selEnd &&
117 selEnd - selStart == 1 &&
123 content.replace(selStart, selEnd,
131 content.replace(selStart, selEnd,
148 content.replace(selStart, selEnd, val, ix, ix + 1);
164 Selection.setSelection(content, selEnd, selEnd);
165 selStart = selEnd;
[all...]
H A DQwertyKeyListener.java91 int selStart, selEnd;
103 selEnd = Math.max(a, b);
105 if (selStart < 0 || selEnd < 0) {
106 selStart = selEnd = 0;
120 if (count > 0 && selStart == selEnd && selStart > 0) {
144 if (selStart == selEnd) {
145 start = selEnd;
147 while (start > 0 && selEnd - start < 4 &&
157 String hex = TextUtils.substring(content, start, selEnd);
163 Selection.setSelection(content, selStart, selEnd);
[all...]
H A DLinkMovementMethod.java120 int selEnd = Math.max(a, b);
124 selStart = selEnd = buffer.length();
129 selStart = selEnd = Integer.MAX_VALUE;
130 if (selEnd < first)
131 selStart = selEnd = -1;
135 if (selStart == selEnd) {
139 ClickableSpan[] links = buffer.getSpans(selStart, selEnd, ClickableSpan.class);
162 if (end < selEnd || selStart == selEnd) {
184 if (start > selStart || selStart == selEnd) {
[all...]
H A DNumberKeyListener.java108 int selStart, selEnd;
115 selEnd = Math.max(a, b);
118 if (selStart < 0 || selEnd < 0) {
119 selStart = selEnd = 0;
127 if (selStart != selEnd) {
128 Selection.setSelection(content, selEnd);
131 content.replace(selStart, selEnd, String.valueOf((char) i));
139 if (selStart == selEnd && selEnd > 0 &&
141 content.replace(selStart - 1, selEnd, Strin
[all...]
H A DCharacterPickerDialog.java95 int selEnd = Selection.getSelectionEnd(mText);
96 if (mInsert || selEnd == 0) {
97 mText.insert(selEnd, replace);
99 mText.replace(selEnd - 1, selEnd, replace);
/frameworks/base/core/java/android/inputmethodservice/
H A DExtractEditText.java87 @Override protected void onSelectionChanged(int selStart, int selEnd) { argument
88 if (mSettingExtractedText == 0 && mIME != null && selStart >= 0 && selEnd >= 0) {
89 mIME.onExtractedSelectionChanged(selStart, selEnd);
/frameworks/base/core/java/android/widget/
H A DTextView.java5354 ss.selEnd = end;
5399 if (ss.selStart >= 0 && ss.selEnd >= 0) {
5403 if (ss.selStart > len || ss.selEnd > len) {
5410 Log.e(LOG_TAG, "Saved cursor position " + ss.selStart + "/" + ss.selEnd
5413 Selection.setSelection(mSpannable, ss.selStart, ss.selEnd);
7034 final int selEnd = getSelectionEnd();
7036 if (selStart == selEnd) {
7055 mLayout.getSelectionPath(selStart, selEnd, mHighlightPath);
7250 int selEnd = getSelectionEnd();
7251 if (selEnd <
9663 onSelectionChanged(int selStart, int selEnd) argument
12175 int selEnd = -1; field in class:TextView.SavedState
[all...]
H A DEditor.java1242 int selEnd = mTextView.getSelectionEnd();
1247 && selEnd == mTextView.getText().length();
1252 if (!mFrozenWithFocus || (selStart < 0 || selEnd < 0)) {
1272 && selStart >= 0 && selEnd >= 0) {
1282 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodManager.java1627 public void updateSelection(View view, int selStart, int selEnd, argument
1637 if (mCursorSelStart != selStart || mCursorSelEnd != selEnd
1650 mCursorSelEnd = selEnd;
1654 selStart, selEnd, candidatesStart, candidatesEnd);
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java770 int selEnd = getSelectionEnd();
771 if (whatEnd != selEnd) {
1793 int selEnd = getSelectionEnd();
1794 if (chipText != null && start > -1 && selEnd > -1) {
1795 editable.replace(start, selEnd, chipText);

Completed in 185 milliseconds