/frameworks/base/core/java/android/text/method/ |
D | QwertyKeyListener.java | 86 int selStart, selEnd; in onKeyDown() local 98 selEnd = Math.max(a, b); in onKeyDown() 100 if (selStart < 0 || selEnd < 0) { in onKeyDown() 101 selStart = selEnd = 0; in onKeyDown() 115 if (count > 0 && selStart == selEnd && selStart > 0) { in onKeyDown() 139 if (selStart == selEnd) { in onKeyDown() 140 start = selEnd; in onKeyDown() 142 while (start > 0 && selEnd - start < 4 && in onKeyDown() 152 String hex = TextUtils.substring(content, start, selEnd); in onKeyDown() 158 Selection.setSelection(content, selStart, selEnd); in onKeyDown() [all …]
|
D | NumberKeyListener.java | 98 int selStart, selEnd; in onKeyDown() local 105 selEnd = Math.max(a, b); in onKeyDown() 108 if (selStart < 0 || selEnd < 0) { in onKeyDown() 109 selStart = selEnd = 0; in onKeyDown() 117 if (selStart != selEnd) { in onKeyDown() 118 Selection.setSelection(content, selEnd); in onKeyDown() 121 content.replace(selStart, selEnd, String.valueOf((char) i)); in onKeyDown() 129 if (selStart == selEnd && selEnd > 0 && in onKeyDown() 131 content.replace(selStart - 1, selEnd, String.valueOf('+')); in onKeyDown()
|
D | MultiTapKeyListener.java | 87 int selStart, selEnd; in onKeyDown() local 99 selEnd = Math.max(a, b); in onKeyDown() 113 if (activeStart == selStart && activeEnd == selEnd && in onKeyDown() 114 selEnd - selStart == 1 && in onKeyDown() 120 content.replace(selStart, selEnd, in onKeyDown() 128 content.replace(selStart, selEnd, in onKeyDown() 145 content.replace(selStart, selEnd, val, ix, ix + 1); in onKeyDown() 161 Selection.setSelection(content, selEnd, selEnd); in onKeyDown() 162 selStart = selEnd; in onKeyDown() 186 if (selStart != selEnd) { in onKeyDown() [all …]
|
D | LinkMovementMethod.java | 111 int selEnd = Math.max(a, b); in action() local 115 selStart = selEnd = buffer.length(); in action() 120 selStart = selEnd = Integer.MAX_VALUE; in action() 121 if (selEnd < first) in action() 122 selStart = selEnd = -1; in action() 126 if (selStart == selEnd) { in action() 130 ClickableSpan[] link = buffer.getSpans(selStart, selEnd, ClickableSpan.class); in action() 147 if (end < selEnd || selStart == selEnd) { in action() 169 if (start > selStart || selStart == selEnd) { in action()
|
D | CharacterPickerDialog.java | 94 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose() local 95 if (mInsert || selEnd == 0) { in replaceCharacterAndClose() 96 mText.insert(selEnd, replace); in replaceCharacterAndClose() 98 mText.replace(selEnd - 1, selEnd, replace); in replaceCharacterAndClose()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | ExtractEditText.java | 83 @Override protected void onSelectionChanged(int selStart, int selEnd) { in onSelectionChanged() argument 84 if (mSettingExtractedText == 0 && mIME != null && selStart >= 0 && selEnd >= 0) { in onSelectionChanged() 85 mIME.onExtractedSelectionChanged(selStart, selEnd); in onSelectionChanged()
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 3434 ss.selEnd = end; in onSaveInstanceState() 3500 if (ss.selStart >= 0 && ss.selEnd >= 0) { in onRestoreInstanceState() 3504 if (ss.selStart > len || ss.selEnd > len) { in onRestoreInstanceState() 3512 "/" + ss.selEnd + " out of range for " + restored + in onRestoreInstanceState() 3515 Selection.setSelection((Spannable) mText, ss.selStart, ss.selEnd); in onRestoreInstanceState() 4890 final int selEnd = getSelectionEnd(); in getUpdatedHighlightPath() local 4892 if (selStart == selEnd) { in getUpdatedHighlightPath() 4913 mLayout.getSelectionPath(selStart, selEnd, mHighlightPath); in getUpdatedHighlightPath() 5110 int selEnd = getSelectionEnd(); in getFocusedRect() local 5111 if (selEnd < 0) { in getFocusedRect() [all …]
|
D | Editor.java | 859 int selEnd = mTextView.getSelectionEnd(); in onFocusChanged() local 864 selEnd == mTextView.getText().length(); in onFocusChanged() 869 if (!mFrozenWithFocus || (selStart < 0 || selEnd < 0)) { in onFocusChanged() 889 selStart >= 0 && selEnd >= 0) { in onFocusChanged() 899 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged() local 928 final int selEnd = mTextView.getSelectionEnd(); in onFocusChanged() local 930 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged() local
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodManager.java | 1397 public void updateSelection(View view, int selStart, int selEnd, in updateSelection() argument 1407 if (mCursorSelStart != selStart || mCursorSelEnd != selEnd in updateSelection() 1415 selStart, selEnd, candidatesStart, candidatesEnd); in updateSelection() 1417 mCursorSelEnd = selEnd; in updateSelection()
|
/frameworks/ex/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 495 int selEnd = getSelectionEnd(); in shrink() local 496 if (whatEnd != selEnd) { in shrink() 1295 int selEnd = getSelectionEnd(); in handleEdit() local 1296 if (chipText != null && start > -1 && selEnd > -1) { in handleEdit() 1297 editable.replace(start, selEnd, chipText); in handleEdit()
|