/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 71 ClipData clipData = mClipboard.getPrimaryClip(); in hasItemsToPaste() local 73 int count = clipData.getItemCount(); in hasItemsToPaste() 76 ClipData.Item item = clipData.getItemAt(i); in hasItemsToPaste() 112 ClipData clipData = getClipDataForDocuments(uris, opType); in getClipDataForDocuments() local 113 clipData.getDescription().getExtras().putString( in getClipDataForDocuments() 115 return clipData; in getClipDataForDocuments() 240 @Nullable ClipData clipData, in copyFromClipData() argument 244 copyFromClipData(dstStack, clipData, callback); in copyFromClipData() 250 ClipData clipData, in copyFromClipData() argument 254 clipData.getDescription().getExtras().putInt(OP_TYPE_KEY, opType); in copyFromClipData() [all …]
|
D | UrisSupplier.java | 73 public static UrisSupplier create(ClipData clipData, ClipStore storage) throws IOException { in create() argument 75 PersistableBundle bundle = clipData.getDescription().getExtras(); in create() 77 uris = new JumboUrisSupplier(clipData, storage); in create() 79 uris = new StandardUrisSupplier(clipData); in create() 119 private JumboUrisSupplier(ClipData clipData, ClipStore storage) throws IOException { in JumboUrisSupplier() argument 120 PersistableBundle bundle = clipData.getDescription().getExtras(); in JumboUrisSupplier() 218 private StandardUrisSupplier(ClipData clipData) { in StandardUrisSupplier() argument 219 mDocs = listDocs(clipData); in StandardUrisSupplier() 227 private List<Uri> listDocs(ClipData clipData) { in listDocs() argument 228 ArrayList<Uri> docs = new ArrayList<>(clipData.getItemCount()); in listDocs() [all …]
|
D | DocumentClipper.java | 110 ClipData clipData, in copyFromClipData() argument 124 ClipData clipData, in copyFromClipData() argument 138 ClipData clipData, in copyFromClipData() argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DragAndDropManager.java | 138 boolean drop(ClipData clipData, Object localState, RootInfo destRoot, ActionHandler actions, in drop() argument 150 boolean drop(ClipData clipData, Object localState, DocumentStack dstStack, in drop() argument 301 void startDragAndDrop(View v, ClipData clipData, DragShadowBuilder builder, in startDragAndDrop() argument 303 v.startDragAndDrop(clipData, builder, localState, flags); in startDragAndDrop() 388 public boolean drop(ClipData clipData, Object localState, RootInfo destRoot, in drop() argument 399 final @OpType int opType = calculateOpType(clipData, destRoot); in drop() 404 dropOnRootDocument(clipData, localState, destRoot, doc, opType, callback); in drop() 411 ClipData clipData, in dropOnRootDocument() argument 424 clipData, in dropOnRootDocument() 433 public boolean drop(ClipData clipData, Object localState, DocumentStack dstStack, in drop() argument [all …]
|
D | ItemDragListener.java | 118 ClipData clipData = event.getClipData(); in handleDropEvent() local 119 if (clipData == null) { in handleDropEvent()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentClipper.java | 98 ClipData clipData, Callback callback) { in copyFromClipData() argument 99 copyFromClip.accept(Pair.create(new DocumentStack(docStack, destination), clipData)); in copyFromClipData() 103 public void copyFromClipData(DocumentStack dstStack, ClipData clipData, in copyFromClipData() argument 105 copyFromClip.accept(Pair.create(dstStack, clipData)); in copyFromClipData() 110 public void copyFromClipData(DocumentStack docStack, ClipData clipData, Callback callback) { in copyFromClipData() argument 111 copyFromClip.accept(Pair.create(docStack, clipData)); in copyFromClipData()
|
D | TestDragAndDropManager.java | 77 public boolean drop(ClipData clipData, Object localState, RootInfo root, ActionHandler actions, in drop() argument 79 return dropOnRootHandler.accept(Pair.create(clipData, root)); in drop() 83 public boolean drop(ClipData clipData, Object localState, DocumentStack dstStack, in drop() argument 85 return dropOnDocumentHandler.accept(Pair.create(clipData, dstStack)); in drop()
|
D | DragEvents.java | 43 public static DragEvent createTestDropEvent(ClipData clipData) { in createTestDropEvent() argument 45 Mockito.when(dropEvent.getClipData()).thenReturn(clipData); in createTestDropEvent()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | QuickViewIntentBuilder.java | 128 ClipData clipData = null; in build() local 137 if (clipData == null) { in build() 138 clipData = new ClipData( in build() 142 clipData.addItem(item); in build() 150 intent.setClipData(clipData); in build()
|
D | ActionHandler.java | 132 final ClipData clipData = event.getClipData(); in dropOn() local 136 clipData, localState, root, this, mDialogs::showFileOperationStatus); in dropOn()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | BeamShareActivity.java | 157 ClipData clipData = intent.getClipData(); in parseShareIntentAndFinish() 158 if (clipData != null && clipData.getItemCount() > 0) { in parseShareIntentAndFinish() 159 for (int i = 0; i < clipData.getItemCount(); i++) { in parseShareIntentAndFinish() 160 ClipData.Item item = clipData.getItemAt(i); in parseShareIntentAndFinish()
|
/packages/apps/Dialer/java/com/android/dialer/clipboard/ |
D | ClipboardUtils.java | 46 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text); in copyText() local 47 clipboardManager.setPrimaryClip(clipData); in copyText()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ClipboardUtils.java | 44 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text); in copyText() local 45 clipboardManager.setPrimaryClip(clipData); in copyText()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | UIIntentsImpl.java | 109 ClipData clipData = null; in getConversationActivityIntent() local 113 if (clipData == null) { in getConversationActivityIntent() 114 clipData = ClipData.newRawUri("Attachments", uri); in getConversationActivityIntent() 116 clipData.addItem(new ClipData.Item(uri)); in getConversationActivityIntent() 120 if (clipData != null) { in getConversationActivityIntent() 121 intent.setClipData(clipData); in getConversationActivityIntent()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | PhotoPickerActivity.java | 101 ClipData clipData = new ClipData(clipDescription, new ClipData.Item(contentUri)); in respondPhoto() local 102 response.setClipData(clipData); in respondPhoto()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarDragController.java | 118 ClipData clipData = new ClipData(clipDescription, new ClipData.Item(intent)); in startSystemDragOnLongClick() local 120 return view.startDragAndDrop(clipData, shadowBuilder, null /* localState */, in startSystemDragOnLongClick()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DragHost.java | 132 ClipData clipData = event.getClipData(); in handleDropEvent() local 133 assert (clipData != null); in handleDropEvent()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | ImportVCardActivity.java | 680 final ClipData clipData = intent.getClipData(); in onActivityResult() local 681 if (clipData != null) { in onActivityResult() 684 for (int i = 0; i < clipData.getItemCount(); i++) { in onActivityResult() 685 ClipData.Item item = clipData.getItemAt(i); in onActivityResult()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | ActionHandler.java | 413 final ClipData clipData = new ClipData( in onPickFinished() local 416 clipData.addItem(new ClipData.Item(uris[i])); in onPickFinished() 418 intent.setClipData(clipData); in onPickFinished()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 697 ClipData clipData = intent.getClipData(); in assertContent() local 699 assertNotNull(clipData); in assertContent() 701 assertEquals(mEnv.state.acceptMimes[i], clipData.getDescription().getMimeType(i)); in assertContent() 704 assertEquals(contents[i], clipData.getItemAt(i).getUri()); in assertContent()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | ActionHandlerTest.java | 537 ClipData clipData = ClipDatas.createTestClipData(); in testDragAndDrop_DropsOnWritableRoot() local 539 clipData, null, null, true); in testDragAndDrop_DropsOnWritableRoot() 545 assertSame(clipData, actual.first); in testDragAndDrop_DropsOnWritableRoot()
|
/packages/providers/MediaProvider/apex/framework/java/android/provider/ |
D | MediaStore.java | 983 final ClipData clipData = ClipData.newRawUri(null, it.next()); in createRequest() local 985 clipData.addItem(new ClipData.Item(it.next())); in createRequest() 989 extras.putParcelable(EXTRA_CLIP_DATA, clipData); in createRequest()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | DragAndDropManagerTests.java | 129 void startDragAndDrop(View v, ClipData clipData, DragShadowBuilder builder, in setUp() 136 mStartDragListener.accept(clipData); in setUp()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 5803 static List<Uri> collectUris(ClipData clipData) { 5805 for (int i = 0; i < clipData.getItemCount(); i++) { 5806 res.add(clipData.getItemAt(i).getUri()); 5837 final ClipData clipData = extras.getParcelable(MediaStore.EXTRA_CLIP_DATA); 5838 final List<Uri> uris = collectUris(clipData);
|