Home
last modified time | relevance | path

Searched refs:selEnd (Results 1 – 11 of 11) 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.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/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.java5874 ss.selEnd = end; in onSaveInstanceState()
5919 if (ss.selStart >= 0 && ss.selEnd >= 0) { in onRestoreInstanceState()
5923 if (ss.selStart > len || ss.selEnd > len) { in onRestoreInstanceState()
5930 Log.e(LOG_TAG, "Saved cursor position " + ss.selStart + "/" + ss.selEnd in onRestoreInstanceState()
5933 Selection.setSelection(mSpannable, ss.selStart, ss.selEnd); in onRestoreInstanceState()
7779 final int selEnd = getSelectionEnd(); in getUpdatedHighlightPath() local
7781 if (selStart == selEnd) { in getUpdatedHighlightPath()
7800 mLayout.getSelectionPath(selStart, selEnd, mHighlightPath); in getUpdatedHighlightPath()
7995 int selEnd = getSelectionEnd(); in getFocusedRect() local
7996 if (selEnd < 0) { in getFocusedRect()
[all …]
DEditor.java1260 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged() local
1265 && selEnd == mTextView.getText().length(); in onFocusChanged()
1270 if (!mFrozenWithFocus || (selStart < 0 || selEnd < 0)) { in onFocusChanged()
1290 && selStart >= 0 && selEnd >= 0) { in onFocusChanged()
1300 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged() local
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodManager.java2074 public void updateSelection(View view, int selStart, int selEnd, in updateSelection() argument
2079 fallbackImm.updateSelection(view, selStart, selEnd, candidatesStart, candidatesEnd); in updateSelection()
2091 if (mCursorSelStart != selStart || mCursorSelEnd != selEnd in updateSelection()
2104 mCursorSelEnd = selEnd; in updateSelection()
2108 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()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...