Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/text/
DSelection.java78 public static void setSelection(Spannable text, int start, int stop) { in setSelection() method in Selection
79 setSelection(text, start, stop, -1); in setSelection()
86 private static void setSelection(Spannable text, int start, int stop, int memory) { in setSelection() method in Selection
153 public static final void setSelection(Spannable text, int index) { in setSelection() method in Selection
154 setSelection(text, index, index); in setSelection()
161 setSelection(text, 0, text.length()); in selectAll()
207 setSelection(text, min); in moveUp()
222 setSelection(text, 0); in moveUp()
260 setSelection(text, move, move, newMemory); in setSelectionAndMemory()
278 setSelection(text, max); in moveDown()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java42 Selection.setSelection(number, number.length()); in testAppendChars()
55 Selection.setSelection(number, number.length()); in testAppendChars()
79 Selection.setSelection(number, number.length()); in testRemoveLastChars()
90 Selection.setSelection(number, number.length()); in testRemoveLastChars()
108 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars()
120 Selection.setSelection(number, 9); // the cursor is at the right of '7'. in testInsertChars()
139 Selection.setSelection(number, number.length()); // make the cursor at right of 4 in testStopFormatting()
152 Selection.setSelection(number, 5); // make the cursor at right of 1 in testStopFormatting()
165 Selection.setSelection(number, 9); // make the cursor at right of - in testStopFormatting()
183 Selection.setSelection(number, number.length()); // make the cursor at right of 4 in testRestartFormatting()
[all …]
/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.java191 setSelection(((EditText) view), startSelectionStart, startSelectionEnd); in createAnimator()
205 setSelection(((EditText) view), endSelectionStart, endSelectionEnd); in createAnimator()
232 setSelection(((EditText) view), endSelectionStart, in createAnimator()
277 setSelection(((EditText) view), endSelectionStart, endSelectionEnd); in createAnimator()
291 setSelection(((EditText) view), startSelectionStart, startSelectionEnd); in createAnimator()
313 private void setSelection(EditText editText, int start, int end) { in setSelection() method in ChangeText
315 editText.setSelection(start, end); in setSelection()
/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/tests/InputMethodCoreTests/src/android/view/inputmethod/
DBaseInputConnectionTest.java466 assertThat(mBaseInputConnection.setSelection(0, 0)).isTrue(); in testSetSelection_toEditorWithoutComposing()
467 assertThat(mBaseInputConnection.setSelection(1, 1)).isTrue(); in testSetSelection_toEditorWithoutComposing()
468 assertThat(mBaseInputConnection.setSelection(-1, -1)).isTrue(); in testSetSelection_toEditorWithoutComposing()
473 assertThat(mBaseInputConnection.setSelection(1, 1)).isTrue(); in testSetSelection_toEditorWithoutComposing()
479 assertThat(mBaseInputConnection.setSelection(4, 2)).isTrue(); in testSetSelection_toEditorWithoutComposing()
485 assertThat(mBaseInputConnection.setSelection(0, 100)).isTrue(); in testSetSelection_toEditorWithoutComposing()
491 assertThat(mBaseInputConnection.setSelection(2, 2)).isTrue(); in testSetSelection_toEditorWithoutComposing()
497 assertThat(mBaseInputConnection.setSelection(-1, 2)).isTrue(); in testSetSelection_toEditorWithoutComposing()
508 assertThat(mBaseInputConnection.setSelection(1, 1)).isTrue(); in testSetSelection_toEditorWithComposing()
516 assertThat(mBaseInputConnection.setSelection(0, 6)).isTrue(); in testSetSelection_toEditorWithComposing()
[all …]
DTextAppearanceInfoTest.java110 mEditText.setSelection(0); in testCreateFromTextView_withSpan1()
117 mEditText.setSelection(1); in testCreateFromTextView_withSpan1()
124 mEditText.setSelection(2); in testCreateFromTextView_withSpan1()
131 mEditText.setSelection(2, mSpannableText.length()); in testCreateFromTextView_withSpan1()
138 mEditText.setSelection(5); in testCreateFromTextView_withSpan1()
166 mEditText.setSelection(3); in testCreateFromTextView_withSpan2()
192 mEditText.setSelection(3); in testCreateFromTextView_contradictorySpans()
/frameworks/base/core/java/android/text/method/
DArrowKeyMovementMethod.java180 Selection.setSelection(buffer, 0); in top()
190 Selection.setSelection(buffer, buffer.length()); in bottom()
324 Selection.setSelection(buffer, Math.min(startOffset, offset), in onTouchEvent()
342 Selection.setSelection(buffer, Math.min(startOffset, endOffset), in onTouchEvent()
363 Selection.setSelection(text, 0); in initialize()
371 Selection.setSelection(text, text.length()); in onTakeFocus()
374 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()
198 Selection.setSelection(content, selEnd); in onKeyDown()
228 Selection.setSelection(content, selEnd); in onKeyDown()
244 Selection.setSelection(content, oldStart, selEnd); in onKeyDown()
370 Selection.setSelection(content, selEnd); in onKeyDown()
DLinkMovementMethod.java176 Selection.setSelection(buffer, bestEnd, bestStart); in action()
198 Selection.setSelection(buffer, bestStart, bestEnd); in action()
253 Selection.setSelection(buffer, in onTouchEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewProcessTextTest.java65 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable()
85 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultCancel()
101 Selection.setSelection(((EditText) mTextView).getText(), 0, mTextView.getText().length()); in testProcessTextActivityNoData()
/frameworks/base/core/java/android/widget/
DEditText.java190 public void setSelection(int start, int stop) { in setSelection() method in EditText
191 Selection.setSelection(getText(), start, stop); in setSelection()
197 public void setSelection(int index) { in setSelection() method in EditText
198 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
/frameworks/base/core/java/android/app/
DListActivity.java279 public void setSelection(int position) { in setSelection() method in ListActivity
280 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/java/com/android/internal/inputmethod/
DRemoteAccessibilityInputConnection.java101 public void setSelection(int start, int end) { in setSelection() method in RemoteAccessibilityInputConnection
102 mInvoker.setSelection(start, end); in setSelection()
DIRemoteAccessibilityInputConnectionInvoker.java110 public void setSelection(int start, int end) { in setSelection() method in IRemoteAccessibilityInputConnectionInvoker
112 mConnection.setSelection(createHeader(), start, end); in setSelection()
DIRemoteAccessibilityInputConnection.aidl33 void setSelection(in InputConnectionCommandHeader header, int start, int end); in setSelection() method
/frameworks/base/packages/SettingsLib/SettingsSpinner/src/com/android/settingslib/widget/
DSettingsSpinnerPreference.java103 public void setSelection(int position) { in setSelection() method in SettingsSpinnerPreference
117 spinner.setSelection(mPosition); in onBindViewHolder()
/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/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/java/android/accessibilityservice/
DInputMethod.java264 public void setSelection(int start, int end) { in setSelection() method in InputMethod.AccessibilityInputConnection
266 mIc.setSelection(start, end); in setSelection()

12345