Home
last modified time | relevance | path

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

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
DSelectionTest.java26 import com.android.documentsui.selection.Selection;
41 private Selection selection;
51 selection = new Selection(); in setUp()
82 assertTrue(new Selection().isEmpty()); in testIsEmpty()
89 Selection other = new Selection(); in testSize()
103 Selection other = new Selection(); in testEqualsOther()
113 Selection other = new Selection(); in testEqualsCopy()
121 Selection other = new Selection(); in testNotEquals()
128 Selection testSelection = new Selection(); in testIntersection_empty0()
135 Selection testSelection = new Selection(); in testIntersection_empty1()
[all …]
DSelectionManagerTest.java26 import com.android.documentsui.selection.Selection;
237 Selection s = mManager.getSelection(); in testProvisionalSelection()
253 Selection s = mManager.getSelection(); in testProvisionalSelection_Replace()
277 Selection s = mManager.getSelection(); in testProvisionalSelection_IntersectsExistingProvisionalSelection()
299 Selection s = mManager.getSelection(); in testProvisionalSelection_Apply()
317 Selection s = mManager.getSelection(); in testProvisionalSelection_Cancel()
333 Selection s = mManager.getSelection(); in testProvisionalSelection_IntersectsAppliedSelection()
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
DSelection.java36 public final class Selection implements Iterable<String>, Parcelable { class
52 public Selection() { in Selection() method in Selection
60 private Selection(Set<String> selection) { in Selection() method in Selection
200 void copyFrom(Selection source) { in copyFrom()
235 if (!(that instanceof Selection)) { in equals()
239 return mSelection.equals(((Selection) that).mSelection) && in equals()
240 mProvisionalSelection.equals(((Selection) that).mProvisionalSelection); in equals()
255 public static final ClassLoaderCreator<Selection> CREATOR =
256 new ClassLoaderCreator<Selection>() {
258 public Selection createFromParcel(Parcel in) {
[all …]
DSelectionManager.java62 private final Selection mSelection = new Selection();
175 public Selection getSelection() { in getSelection()
185 public Selection getSelection(Selection dest) { in getSelection()
200 public void restoreSelection(Selection other) { in restoreSelection()
258 Selection oldSelection = getSelection(new Selection()); in clearSelectionQuietly()
DBandController.java76 private Selection mSelection;
186 void bindSelection(Selection selection) { in bindSelection()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDragStartListenerTest.java37 import com.android.documentsui.selection.Selection;
88 (Selection selection) -> { in setUp()
141 Selection selection = mListener.getSelectionToBeCopied("1234", in testDragStart_nonSelectedItem()
149 Selection selection = new Selection(); in testDragStart_selectedItem()
163 Selection selection = new Selection(); in testDragStart_newNonSelectedItem()
177 Selection selection = new Selection(); in testCtrlDragStart_newNonSelectedItem()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDragStartListener.java33 import com.android.documentsui.selection.Selection;
74 private final Function<Selection, List<DocumentInfo>> mDocsConverter;
86 Function<Selection, List<DocumentInfo>> docsConverter, in ActiveListener() argument
126 Selection selection = getSelectionToBeCopied(modelId, event); in startDrag()
152 Selection getSelectionToBeCopied(String modelId, InputEvent event) { in getSelectionToBeCopied()
153 Selection selection = new Selection(); in getSelectionToBeCopied()
DDirectoryFragment.java95 import com.android.documentsui.selection.Selection;
185 private @Nullable Selection mRestoredSelection = null;
431 state.selection = mSelectionMgr.getSelection(new Selection()); in retainState()
609 Selection selection = mSelectionMgr.getSelection(new Selection()); in handleMenuItemClick()
737 private void openDocuments(final Selection selected) { in openDocuments()
749 private void showChooserForDoc(final Selection selected) { in showChooserForDoc()
758 private void transferDocuments(final Selection selected, @Nullable DocumentStack destination, in transferDocuments()
869 private void renameDocuments(Selection selected) { in renameDocuments()
1023 args.putParcelable(Shared.EXTRA_SELECTION, new Selection()); in create()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java64 import com.android.documentsui.selection.Selection;
136 Selection selection = getStableSelection(); in openSelectedInNewWindow()
220 private Selection getSelectedOrFocused() { in getSelectedOrFocused()
221 final Selection selection = this.getStableSelection(); in getSelectedOrFocused()
235 Selection selection = getSelectedOrFocused(); in cutToClipboard()
256 Selection selection = getSelectedOrFocused(); in copyToClipboard()
271 Selection selection = getSelectedOrFocused(); in viewInOwner()
293 Selection selection = getSelectedOrFocused(); in deleteSelectedDocuments()
345 Selection selection = getStableSelection(); in shareSelectedDocuments()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DDocumentClipper.java28 import com.android.documentsui.selection.Selection;
50 ClipData getClipDataForDocuments(Function<String, Uri> uriBuilder, Selection selection, in getClipDataForDocuments()
66 void clipDocumentsForCopy(Function<String, Uri> uriBuilder, Selection selection); in clipDocumentsForCopy()
72 Function<String, Uri> uriBuilder, Selection selection, DocumentInfo parent); in clipDocumentsForCut()
DRuntimeDocumentClipper.java35 import com.android.documentsui.selection.Selection;
93 Function<String, Uri> uriBuilder, Selection selection, @OpType int opType) { in getClipDataForDocuments()
193 public void clipDocumentsForCopy(Function<String, Uri> uriBuilder, Selection selection) { in clipDocumentsForCopy()
203 Function<String, Uri> uriBuilder, Selection selection, DocumentInfo parent) { in clipDocumentsForCut()
DUrisSupplier.java33 import com.android.documentsui.selection.Selection;
85 Selection selection, Function<String, Uri> uriBuilder, ClipStore storage) in create()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/selection/
DSelectionProbe.java24 import com.android.documentsui.selection.Selection;
66 Selection selection = mMgr.getSelection(); in assertSelectionSize()
86 Selection sel = mMgr.getSelection(); in assertSelected()
96 Selection sel = mMgr.getSelection(); in assertNotSelected()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDocumentClipper.java26 import com.android.documentsui.selection.Selection;
52 public ClipData getClipDataForDocuments(Function<String, Uri> uriBuilder, Selection selection, in getClipDataForDocuments()
70 public void clipDocumentsForCopy(Function<String, Uri> uriBuilder, Selection selection) { in clipDocumentsForCopy()
74 public void clipDocumentsForCut(Function<String, Uri> uriBuilder, Selection selection, in clipDocumentsForCut()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java41 import com.android.documentsui.selection.Selection;
206 public List<DocumentInfo> getDocuments(Selection selection) { in getDocuments()
217 public List<DocumentInfo> loadDocuments(Selection selection, Predicate<Cursor> filter) { in loadDocuments()
231 public boolean hasDocuments(Selection selection, Predicate<Cursor> filter) { in hasDocuments()
DActionModeController.java37 import com.android.documentsui.selection.Selection;
58 private final Selection mSelected = new Selection();
DAbstractActionHandler.java61 import com.android.documentsui.selection.Selection;
527 protected Selection getStableSelection() { in getStableSelection()
528 return mSelectionMgr.getSelection(new Selection()); in getStableSelection()
DBaseActivity.java63 import com.android.documentsui.selection.Selection;
661 public @Nullable Selection selection;
DActionHandler.java33 import com.android.documentsui.selection.Selection;
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DAppsSearchContainerLayout.java25 import android.text.Selection;
88 Selection.setSelection(mSearchQueryBuilder, 0); in AppsSearchContainerLayout()
190 Selection.setSelection(mSearchQueryBuilder, 0); in clearSearchResult()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DShortcutNameActivity.java24 import android.text.Selection;
66 Selection.setSelection(editableText, editableText.length()); in onCreate()
/packages/apps/Settings/src/com/android/settings/
DProxySelector.java29 import android.text.Selection;
275 Selection.selectAll((Spannable) textView.getText());
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java24 import android.text.Selection;
100 Selection.setSelection(mSearchQueryBuilder, 0); in AllAppsContainerView()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DEditFdnContactScreen.java36 import android.text.Selection;
444 Selection.selectAll((Spannable) textView.getText());
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockPassword.java42 import android.text.Selection;
744 Selection.setSelection((Spannable) tmp, 0, tmp.length()); in handleNext()

12