/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
D | MultiSelectManager_SelectionTest.java | 22 import com.android.documentsui.dirlist.MultiSelectManager.Selection; 31 private Selection selection; 41 selection = new Selection(); in setUp() 68 assertTrue(new Selection().isEmpty()); in testIsEmpty() 74 Selection other = new Selection(); in testSize() 86 Selection other = new Selection(); in testEqualsOther() 95 Selection other = new Selection(); in testEqualsCopy() 102 Selection other = new Selection(); in testNotEquals() 108 Selection testSelection = new Selection(); in testIntersection_empty0() 114 Selection testSelection = new Selection(); in testIntersection_empty1() [all …]
|
D | MultiSelectManagerTest.java | 25 import com.android.documentsui.dirlist.MultiSelectManager.Selection; 241 Selection s = mManager.getSelection(); in testProvisionalSelection() 252 Selection s = mManager.getSelection(); in testProvisionalSelection_Replace() 267 Selection s = mManager.getSelection(); in testProvisionalSelection_IntersectsExistingProvisionalSelection() 281 Selection s = mManager.getSelection(); in testProvisionalSelection_Apply() 294 Selection s = mManager.getSelection(); in testProvisionalSelection_Cancel() 309 Selection s = mManager.getSelection(); in testProvisionalSelection_IntersectsAppliedSelection() 351 Selection selection = mManager.getSelection(); in assertSelected() 375 Selection selection = mManager.getSelection(); in assertSelectionSize()
|
D | ModelTest.java | 34 import com.android.documentsui.dirlist.MultiSelectManager.Selection; 323 private Selection positionToSelection(int... positions) { in positionToSelection() 325 Selection s = new Selection(); in positionToSelection()
|
/frameworks/base/core/java/android/text/method/ |
D | ArrowKeyMovementMethod.java | 21 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 …]
|
D | MultiTapKeyListener.java | 95 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()
|
D | LinkMovementMethod.java | 21 import android.text.Selection; 112 int a = Selection.getSelectionStart(buffer); in action() 113 int b = Selection.getSelectionEnd(buffer); in action() 161 Selection.setSelection(buffer, bestend, beststart); in action() 183 Selection.setSelection(buffer, beststart, bestend); in action() 219 Selection.setSelection(buffer, in onTouchEvent() 226 Selection.removeSelection(buffer); in onTouchEvent() 235 Selection.removeSelection(text); in initialize() 241 Selection.removeSelection(text); in onTakeFocus()
|
D | NumberKeyListener.java | 23 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()
|
D | BaseKeyListener.java | 328 final int start = Selection.getSelectionEnd(content); in backspaceOrForwardDelete() 354 int currentCursorOffset = Selection.getSelectionStart(content); in deleteUntilWordBoundary() 357 if (currentCursorOffset != Selection.getSelectionEnd(content)) { in deleteUntilWordBoundary() 402 int selectionStart = Selection.getSelectionStart(content); in deleteSelection() 403 int selectionEnd = Selection.getSelectionEnd(content); in deleteSelection() 420 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); in deleteLine() 485 int selectionStart = Selection.getSelectionStart(content); in onKeyOther() 486 int selectionEnd = Selection.getSelectionEnd(content); in onKeyOther()
|
D | QwertyKeyListener.java | 94 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() 188 Selection.setSelection(content, selEnd); in onKeyDown() 218 Selection.setSelection(content, selEnd); in onKeyDown() 226 selEnd = Selection.getSelectionEnd(content); in onKeyDown() 234 Selection.setSelection(content, oldStart, selEnd); in onKeyDown() 280 selEnd = Selection.getSelectionEnd(content); in onKeyDown()
|
D | WordIterator.java | 20 import android.text.Selection; 34 public class WordIterator implements Selection.PositionIterator {
|
D | CharacterPickerDialog.java | 94 int selEnd = Selection.getSelectionEnd(mText); in replaceCharacterAndClose()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberWatcherTest.java | 22 import android.text.Selection; 38 Selection.setSelection(number, number.length()); in testAppendChars() 42 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); in testAppendChars() 49 Selection.setSelection(number, number.length()); in testAppendChars() 53 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); in testAppendChars() 66 Selection.setSelection(number, number.length()); in testRemoveLastChars() 70 assertEquals(result1.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 75 Selection.setSelection(number, number.length()); in testRemoveLastChars() 79 assertEquals(result2.length(), Selection.getSelectionEnd(number)); in testRemoveLastChars() 92 Selection.setSelection(number, 4); // make the cursor at right of 1 in testInsertChars() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | EditText.java | 22 import android.text.Selection; 96 Selection.setSelection(getText(), start, stop); in setSelection() 103 Selection.setSelection(getText(), index); in setSelection() 110 Selection.selectAll(getText()); in selectAll() 117 Selection.extendSelection(getText(), index); in extendSelection()
|
D | DialerFilter.java | 23 import android.text.Selection; 283 Selection.setSelection(lettersText, lettersText.length()); in swapPrimaryAndHint() 288 Selection.setSelection(digitsText, digitsText.length()); in swapPrimaryAndHint()
|
D | Editor.java | 57 import android.text.Selection; 362 Selection.setSelection((Spannable) mTextView.getText(), middle); in replace() 865 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in selectCurrentWord() 890 Selection.setSelection((Spannable) mTextView.getText(), start, end); in selectCurrentParagraph() 994 Selection.setSelection((Spannable) mTextView.getText(), selectionStart, selectionEnd); in touchPositionIsInSelection() 1106 Selection.setSelection((Spannable) mTextView.getText(), offset); in performLongClick() 1158 Selection.setSelection((Spannable) mTextView.getText(), lastTapPosition); in onFocusChanged() 1183 Selection.setSelection((Spannable) mTextView.getText(), selStart, selEnd); in onFocusChanged() 2114 Selection.setSelection((Spannable) text, offset); in onTouchUpEvent() 2433 Selection.setSelection((Spannable) mTextView.getText(), max); in onDrop() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 27 import android.text.Selection; 138 Selection.setSelection(mEditable, 0); in getEditable() 224 int a = Selection.getSelectionStart(content); in deleteSurroundingText() 225 int b = Selection.getSelectionEnd(content); in deleteSurroundingText() 381 int a = Selection.getSelectionStart(content); in deleteSurroundingTextInCodePoints() 382 int b = Selection.getSelectionEnd(content); in deleteSurroundingTextInCodePoints() 459 int a = Selection.getSelectionStart(content); in getCursorCapsMode() 460 int b = Selection.getSelectionEnd(content); in getCursorCapsMode() 486 int a = Selection.getSelectionStart(content); in getTextBeforeCursor() 487 int b = Selection.getSelectionEnd(content); in getTextBeforeCursor() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 24 import android.text.Selection; 73 Selection.setSelection((Spannable) tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultNonEditable() 98 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultEditable() 115 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityResultCancel() 132 Selection.setSelection(tv.getText(), 0, tv.getText().length()); in testProcessTextActivityNoData()
|
D | TextViewActivityTest.java | 52 import android.text.Selection; 625 textView.post(() -> Selection.setSelection((Spannable) textView.getText(), 0, 3)); in testSetSelectionAndActionMode() 636 textView.post(() -> Selection.setSelection((Spannable) textView.getText(), 0, 3)); in testSetSelectionAndActionMode() 645 () -> Selection.setSelection((Spannable) textView.getText(), 0, text.length())); in testSetSelectionAndActionMode() 653 textView.post(() -> Selection.setSelection((Spannable) textView.getText(), 0)); in testSetSelectionAndActionMode() 664 textView.post(() -> Selection.setSelection((Spannable) textView.getText(), 0)); in testSetSelectionAndActionMode() 673 () -> Selection.setSelection((Spannable) textView.getText(), 1, text.length())); in testSetSelectionAndActionMode() 697 () -> Selection.setSelection((Spannable) textView.getText(), 0, text.length())); in testTransientState()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | MultiSelectManager.java | 73 private final Selection mSelection = new Selection(); 93 @Nullable Selection initialSelection) { in MultiSelectManager() 132 @Nullable Selection initialSelection) { in MultiSelectManager() 215 public Selection getSelection() { in getSelection() 225 public Selection getSelection(Selection dest) { in getSelection() 233 public void updateSelection(Selection selection) { in updateSelection() 283 Selection oldSelection = getSelection(new Selection()); in clearSelectionQuietly() 654 public static final class Selection implements Parcelable { class in MultiSelectManager 671 public Selection() { in Selection() method in MultiSelectManager.Selection 679 private Selection(String directoryKey, Set<String> selection) { in Selection() method in MultiSelectManager.Selection [all …]
|
D | DirectoryFragment.java | 103 import com.android.documentsui.dirlist.MultiSelectManager.Selection; 178 private Selection mSelection = null; 238 final Selection selection = args.getParcelable(Shared.EXTRA_SELECTION); in onActivityCreated() 239 mSelection = selection != null ? selection : new Selection(); in onActivityCreated() 502 private Selection mSelected = new Selection(); 682 Selection selection = mSelectionManager.getSelection(new Selection()); in onActionItemClicked() 753 private void openDocuments(final Selection selected) { in openDocuments() 762 private void shareDocuments(final Selection selected) { in shareDocuments() 846 private void deleteDocuments(final Selection selected) { in deleteDocuments() 899 private void transferDocuments(final Selection selected, final @OpType int mode) { in transferDocuments() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberFormattingTextWatcher.java | 24 import android.text.Selection; 108 String formatted = reformat(s, Selection.getSelectionEnd(s)); in afterTextChanged() 116 Selection.setSelection(s, rememberedPos); in afterTextChanged()
|
/frameworks/base/core/java/android/webkit/ |
D | FindActionModeCallback.java | 25 import android.text.Selection; 83 Selection.setSelection(span, length, length); in setText() 211 Selection.setSelection(edit, edit.length()); in onCreateActionMode()
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
D | EditStyledText.java | 54 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/ |
D | Selection.java | 26 public class Selection { class 27 private Selection() { /* cannot be instantiated */ } in Selection() method in Selection
|
/frameworks/base/docs/html/training/secure-file-sharing/ |
D | share-file.jd | 13 <li><a href="#CreateFileSelection">Create a File Selection Activity</a></li> 14 <li><a href="#RespondToRequest">Respond to a File Selection</a></li> 64 <h2 id="CreateFileSelection">Create a File Selection Activity</h2> 135 <h2 id="RespondToRequest">Respond to a File Selection</h2>
|