Home
last modified time | relevance | path

Searched refs:Selection (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java21 import android.text.Selection;
39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); in getCurrentLineTop()
72 return Selection.extendLeft(buffer, layout); in left()
74 return Selection.moveLeft(buffer, layout); in left()
82 return Selection.extendRight(buffer, layout); in right()
84 return Selection.moveRight(buffer, layout); in right()
92 return Selection.extendUp(buffer, layout); in up()
94 return Selection.moveUp(buffer, layout); in up()
102 return Selection.extendDown(buffer, layout); in down()
104 return Selection.moveDown(buffer, layout); in down()
[all …]
DMultiTapKeyListener.java95 int a = Selection.getSelectionStart(content); in onKeyDown()
96 int b = Selection.getSelectionEnd(content); in onKeyDown()
161 Selection.setSelection(content, selEnd, selEnd); in onKeyDown()
187 Selection.setSelection(content, selEnd); in onKeyDown()
196 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
199 Selection.setSelection(content, oldStart, selEnd); in onKeyDown()
236 if (what == Selection.SELECTION_END) { in onSpanChanged()
270 int st = Selection.getSelectionStart(buf); in run()
271 int en = Selection.getSelectionEnd(buf); in run()
277 Selection.setSelection(buf, Selection.getSelectionEnd(buf)); in run()
DLinkMovementMethod.java21 import android.text.Selection;
107 int a = Selection.getSelectionStart(buffer); in action()
108 int b = Selection.getSelectionEnd(buffer); in action()
156 Selection.setSelection(buffer, bestend, beststart); in action()
178 Selection.setSelection(buffer, beststart, bestend); in action()
214 Selection.setSelection(buffer, in onTouchEvent()
221 Selection.removeSelection(buffer); in onTouchEvent()
230 Selection.removeSelection(text); in initialize()
236 Selection.removeSelection(text); in onTakeFocus()
DNumberKeyListener.java23 import android.text.Selection;
101 int a = Selection.getSelectionStart(content); in onKeyDown()
102 int b = Selection.getSelectionEnd(content); in onKeyDown()
110 Selection.setSelection(content, 0); in onKeyDown()
118 Selection.setSelection(content, selEnd); in onKeyDown()
DBaseKeyListener.java85 final int start = Selection.getSelectionEnd(content); in backspaceOrForwardDelete()
101 int selectionStart = Selection.getSelectionStart(content); in deleteSelection()
102 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection()
119 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); in deleteLine()
183 int selectionStart = Selection.getSelectionStart(content); in onKeyOther()
184 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther()
DQwertyKeyListener.java94 int a = Selection.getSelectionStart(content); in onKeyDown()
95 int b = Selection.getSelectionEnd(content); in onKeyDown()
102 Selection.setSelection(content, 0, 0); in onKeyDown()
158 Selection.setSelection(content, selStart, selEnd); in onKeyDown()
187 Selection.setSelection(content, selEnd); in onKeyDown()
217 Selection.setSelection(content, selEnd); in onKeyDown()
225 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
233 Selection.setSelection(content, oldStart, selEnd); in onKeyDown()
279 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
DWordIterator.java20 import android.text.Selection;
34 public class WordIterator implements Selection.PositionIterator {
DCharacterPickerDialog.java94 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
DPasswordTransformationMethod.java28 import android.text.Selection;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java21 import android.text.Selection;
34 Selection.setSelection(number, number.length()); in testAppendChars()
38 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars()
45 Selection.setSelection(number, number.length()); in testAppendChars()
49 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars()
61 Selection.setSelection(number, number.length()); in testRemoveLastChars()
65 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
70 Selection.setSelection(number, number.length()); in testRemoveLastChars()
74 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars()
86 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars()
[all …]
/frameworks/base/core/java/android/widget/
DEditText.java21 import android.text.Selection;
87 Selection.setSelection(getText(), start, stop); in setSelection()
94 Selection.setSelection(getText(), index); in setSelection()
101 Selection.selectAll(getText()); in selectAll()
108 Selection.extendSelection(getText(), index); in extendSelection()
DDialerFilter.java23 import android.text.Selection;
285 Selection.setSelection(lettersText, lettersText.length()); in swapPrimaryAndHint()
290 Selection.setSelection(digitsText, digitsText.length()); in swapPrimaryAndHint()
DEditor.java48 import android.text.Selection;
665 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord()
721 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in touchPositionIsInSelection()
814 Selection.setSelection((Spannable) mTextView.getText(), offset); in performLongClick()
873 Selection.setSelection((Spannable) mTextView.getText(), lastTapPosition); in onFocusChanged()
898 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged()
929 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged()
1575 Selection.setSelection((Spannable) text, offset); in onTouchUpEvent()
1825 Selection.setSelection((Spannable) mTextView.getText(), max); in onDrop()
2619 Selection.setSelection(editable, spanEnd); in onItemClick()
[all …]
DSpellChecker.java21 import android.text.Selection;
269 final int selectionStart = Selection.getSelectionStart(editable); in spellCheck()
270 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck()
DTextView.java53 import android.text.Selection;
3447 Selection.setSelection((Spannable) mText, ss.selStart, ss.selEnd); in onRestoreInstanceState()
3760 Selection.setSelection((Spannable) mText, in setTextKeepState()
5658 Selection.setSelection(sp, start, end); in setExtractedText()
6774 Selection.setSelection((Spannable)mText, newStart); in moveCursorToVisibleOffset()
6852 return Selection.getSelectionStart(getText()); in getSelectionStart()
6860 return Selection.getSelectionEnd(getText()); in getSelectionEnd()
7307 if (what == Selection.SELECTION_END) { in spanChange()
7312 invalidateCursor(Selection.getSelectionStart(buf), oldStart, newStart); in spanChange()
7319 if (what == Selection.SELECTION_START) { in spanChange()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java25 import android.text.Selection;
135 Selection.setSelection(mEditable, 0); in getEditable()
215 int a = Selection.getSelectionStart(content); in deleteSurroundingText()
216 int b = Selection.getSelectionEnd(content); in deleteSurroundingText()
288 int a = Selection.getSelectionStart(content); in getCursorCapsMode()
289 int b = Selection.getSelectionEnd(content); in getCursorCapsMode()
315 int a = Selection.getSelectionStart(content); in getTextBeforeCursor()
316 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor()
346 int a = Selection.getSelectionStart(content); in getSelectedText()
347 int b = Selection.getSelectionEnd(content); in getSelectedText()
[all …]
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberFormattingTextWatcher.java24 import android.text.Selection;
110 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged()
118 Selection.setSelection(s, rememberedPos); in afterTextChanged()
/frameworks/base/docs/html/design/building-blocks/
Dtext-fields.jd43 <h2 id="text-selection">Text Selection</h2>
47 Selection mode includes:</p>
64 <h4>Selection handles</h4>
65 <p>Selection handles can be dragged to select more or less text while remaining in selection mode.<…
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java24 import android.text.Selection;
79 Selection.setSelection(span, length, length); in setText()
199 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewWordLimitsTest.java22 import android.text.Selection;
95 Selection.setSelection((Spannable)mTv.getText(), selectionStart, selectionEnd); in verifySelectCurrentWord()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java54 import android.text.Selection;
227 int oldSelStart = Selection.getSelectionStart(getText()); in onTouchEvent()
228 int oldSelEnd = Selection.getSelectionEnd(getText()); in onTouchEvent()
235 mManager.showSoftKey(Selection.getSelectionStart(getText()), in onTouchEvent()
236 Selection.getSelectionEnd(getText())); in onTouchEvent()
1522 Selection.setSelection(mEST.getText(), max); in pasteFromClipboard()
1558 Selection.selectAll(mEST.getText()); in selectAll()
1675 Selection.setSelection(mEST.getText(), max); in setStyledTextSpan()
1690 Selection.setSelection(mEST.getText(), current); in setLineStyledTextSpan()
1803 mSkr.mNewStart = Selection.getSelectionStart(mEST.getText()); in showSoftKey()
[all …]
/frameworks/base/core/java/android/text/
DSelection.java26 public class Selection { class
27 private Selection() { /* cannot be instantiated */ } in Selection() method in Selection
DSpannableStringBuilder.java473 selectionStart = Selection.getSelectionStart(this); in replace()
474 selectionEnd = Selection.getSelectionEnd(this); in replace()
484 setSpan(false, Selection.SELECTION_START, selectionStart, selectionStart, in replace()
491 setSpan(false, Selection.SELECTION_END, selectionEnd, selectionEnd, in replace()
/frameworks/native/opengl/specs/
DEGL_ANDROID_framebuffer_target.txt73 Attribute Default Selection Sort Sort
/frameworks/base/docs/html/design/
Ddesign_toc.cs36 <li><a href="<?cs var:toroot ?>design/patterns/selection.html">Selection</a></li>

12