Home
last modified time | relevance | path

Searched refs:setSelection (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/base/core/java/android/text/
DSelection.java77 public static void setSelection(Spannable text, int start, int stop) { in setSelection() method in Selection
78 setSelection(text, start, stop, -1); in setSelection()
85 private static void setSelection(Spannable text, int start, int stop, int memory) { in setSelection() method in Selection
152 public static final void setSelection(Spannable text, int index) { in setSelection() method in Selection
153 setSelection(text, index, index); in setSelection()
160 setSelection(text, 0, text.length()); in selectAll()
206 setSelection(text, min); in moveUp()
221 setSelection(text, 0); in moveUp()
259 setSelection(text, move, move, newMemory); in setSelectionAndMemory()
277 setSelection(text, max); in moveDown()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java40 Selection.setSelection(number, number.length()); in testAppendChars()
51 Selection.setSelection(number, number.length()); in testAppendChars()
68 Selection.setSelection(number, number.length()); in testRemoveLastChars()
77 Selection.setSelection(number, number.length()); in testRemoveLastChars()
94 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars()
105 Selection.setSelection(number, 9); // the cursor is at the right of '7'. in testInsertChars()
123 Selection.setSelection(number, number.length()); // make the cursor at right of 4 in testStopFormatting()
136 Selection.setSelection(number, 5); // make the cursor at right of 1 in testStopFormatting()
149 Selection.setSelection(number, 9); // make the cursor at right of - in testStopFormatting()
167 Selection.setSelection(number, number.length()); // make the cursor at right of 4 in testRestartFormatting()
[all …]
/frameworks/base/core/java/android/widget/
DEditText.java128 public void setSelection(int start, int stop) { in setSelection() method in EditText
129 Selection.setSelection(getText(), start, stop); in setSelection()
135 public void setSelection(int index) { in setSelection() method in EditText
136 Selection.setSelection(getText(), index); in setSelection()
DYearPickerView.java63 mAdapter.setSelection(year); in YearPickerView()
85 mAdapter.setSelection(year); in setYear()
135 public boolean setSelection(int year) { in setSelection() method in YearPickerView.YearAdapter
DAbsSpinner.java281 public void setSelection(int position, boolean animate) { in setSelection() method in AbsSpinner
289 public void setSelection(int position) { in setSelection() method in AbsSpinner
505 setSelection(value.getListValue()); in autofill()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListSetSelectionTest.java57 mListView.setSelection(i); in testSetSelection()
67 mListView.setSelection(0); in testClearSelection()
71 mListView.setSelection(ListView.INVALID_POSITION); in testClearSelection()
DListSetSelection.java49 getListView().setSelection(0); in onCreate()
66 getListView().setSelection(0); in dispatchKeyEvent()
/frameworks/base/core/java/android/transition/
DChangeText.java187 setSelection(((EditText) view), startSelectionStart, startSelectionEnd); in createAnimator()
201 setSelection(((EditText) view), endSelectionStart, endSelectionEnd); in createAnimator()
228 setSelection(((EditText) view), endSelectionStart, in createAnimator()
273 setSelection(((EditText) view), endSelectionStart, endSelectionEnd); in createAnimator()
287 setSelection(((EditText) view), startSelectionStart, startSelectionEnd); in createAnimator()
309 private void setSelection(EditText editText, int start, int end) { in setSelection() method in ChangeText
311 editText.setSelection(start, end); in setSelection()
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java161 Selection.setSelection(buffer, 0); in top()
171 Selection.setSelection(buffer, buffer.length()); in bottom()
273 Selection.setSelection(buffer, Math.min(startOffset, offset), in onTouchEvent()
291 Selection.setSelection(buffer, Math.min(startOffset, endOffset), in onTouchEvent()
312 Selection.setSelection(text, 0); in initialize()
320 Selection.setSelection(text, text.length()); in onTakeFocus()
323 Selection.setSelection(text, text.length()); in onTakeFocus()
DMultiTapKeyListener.java164 Selection.setSelection(content, selEnd, selEnd); in onKeyDown()
190 Selection.setSelection(content, selEnd); in onKeyDown()
202 Selection.setSelection(content, oldStart, selEnd); in onKeyDown()
280 Selection.setSelection(buf, Selection.getSelectionEnd(buf)); in run()
DQwertyKeyListener.java107 Selection.setSelection(content, 0, 0); in onKeyDown()
163 Selection.setSelection(content, selStart, selEnd); in onKeyDown()
193 Selection.setSelection(content, selEnd); in onKeyDown()
223 Selection.setSelection(content, selEnd); in onKeyDown()
239 Selection.setSelection(content, oldStart, selEnd); in onKeyDown()
DLinkMovementMethod.java172 Selection.setSelection(buffer, bestEnd, bestStart); in action()
194 Selection.setSelection(buffer, bestStart, bestEnd); in action()
241 Selection.setSelection(buffer, in onTouchEvent()
DNumberKeyListener.java120 Selection.setSelection(content, 0); in onKeyDown()
128 Selection.setSelection(content, selEnd); in onKeyDown()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java61 mGridView.setSelection(target); in testSetSelectionToTheEnd()
77 mGridView.setSelection(target); in testSetSelectionToMiddle()
92 mGridView.setSelection(0); in testSetSelectionToTheTop()
/frameworks/base/core/java/android/app/
DListActivity.java275 public void setSelection(int position) { in setSelection() method in ListActivity
276 mList.setSelection(position); in setSelection()
DListFragment.java260 public void setSelection(int position) { in setSelection() method in ListFragment
262 mList.setSelection(position); in setSelection()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListSetSelectionTest.java68 mListView.setSelection(targetPosition); in testSetSelection()
134 mListView.setSelection(0); in testSetSelection0()
/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionWrapper.java195 public boolean setSelection(int start, int end) { in setSelection() method in InputConnectionWrapper
196 return mTarget.setSelection(start, end); in setSelection()
DInputConnection.java630 boolean setSelection(int start, int end); in setSelection() method
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java111 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable()
135 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultEditable()
153 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel()
172 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityNoData()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java884 mMediaSizeSpinner.setSelection(i); in onAdvancedPrintOptionsActivityResult()
887 mOrientationSpinner.setSelection(0); in onAdvancedPrintOptionsActivityResult()
891 mOrientationSpinner.setSelection(1); in onAdvancedPrintOptionsActivityResult()
926 mColorModeSpinner.setSelection(i); in onAdvancedPrintOptionsActivityResult()
941 mDuplexModeSpinner.setSelection(i); in onAdvancedPrintOptionsActivityResult()
1038 mRangeOptionsSpinner.setSelection(0); in updateSelectedPages()
1044 mRangeOptionsSpinner.setSelection(1); in updateSelectedPages()
1162 mRangeOptionsSpinner.setSelection(0); in clearPageRanges()
1345 mCopiesEditText.setSelection(mCopiesEditText.getText().length()); in bindUi()
1727 mMediaSizeSpinner.setSelection(oldMediaSizeNewIndex); in updateOptionsUi()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DListUtil.java47 mListView.setSelection(pos); in setSelectedPosition()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchSetSelectionTest.java66 mGridView.setSelection(targetPosition); in testSetSelection()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithNoFadingEdgeTest.java71 mListView.setSelection(numItems - 1); in testScrollFromBottomToTop()
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java84 Selection.setSelection(span, length, length); in setText()
214 Selection.setSelection(edit, edit.length()); in onCreateActionMode()

1234