/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 93 Function<String, Uri> uriBuilder, Selection<String> selection, @OpType int opType) { in getClipDataForDocuments() argument 106 return getClipDataForDocuments(uris, opType); in getClipDataForDocuments() 111 List<Uri> uris, @OpType int opType, DocumentInfo parent) { in getClipDataForDocuments() argument 112 ClipData clipData = getClipDataForDocuments(uris, opType); in getClipDataForDocuments() 119 public ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType) { in getClipDataForDocuments() argument 121 ? createJumboClipData(uris, opType) in getClipDataForDocuments() 122 : createStandardClipData(uris, opType); in getClipDataForDocuments() 128 private ClipData createStandardClipData(List<Uri> uris, @OpType int opType) { in createStandardClipData() argument 138 bundle.putInt(OP_TYPE_KEY, opType); in createStandardClipData() 156 private ClipData createJumboClipData(List<Uri> uris, @OpType int opType) { in createJumboClipData() argument [all …]
|
D | DocumentClipper.java | 50 @OpType int opType); in getClipDataForDocuments() argument 55 ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType, DocumentInfo parent); in getClipDataForDocuments() argument 60 ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType); in getClipDataForDocuments() argument 125 @OpType int opType, in copyFromClipData() argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentClipper.java | 45 public final TestEventListener<Integer> opType = new TestEventListener<>(); field in TestDocumentClipper 54 Function<String, Uri> uriBuilder, Selection<String> selection, int opType) { in getClipDataForDocuments() argument 60 @FileOperationService.OpType int opType) { in getClipDataForDocuments() argument 66 @FileOperationService.OpType int opType, DocumentInfo parent) { in getClipDataForDocuments() argument 104 @OpType int opType, Callback callback) { in copyFromClipData() argument 106 this.opType.accept(opType); in copyFromClipData()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DragAndDropManager.java | 334 final @OpType int opType = calculateOpType(mClipData, destRoot); in updateState() local 335 switch (opType) { in updateState() 344 throw new IllegalStateException("Unknown opType: " + opType); in updateState() 385 final @OpType int opType = calculateOpType(clipData, destRoot); in drop() local 390 dropOnRootDocument(clipData, localState, destRoot, doc, opType, callback); in drop() 401 @OpType int opType, in dropOnRootDocument() argument 406 opType, in dropOnRootDocument() 413 opType, in dropOnRootDocument() 436 @OpType int opType, FileOperations.Callback callback) { in dropChecked() argument 447 mClipper.copyFromClipData(dstStack, clipData, opType, callback); in dropChecked()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | DialogController.java | 46 void showFileOperationStatus(int status, int opType, int docCount); in showFileOperationStatus() argument 113 public void showFileOperationStatus(@Status int status, @OpType int opType, int docCount) { in showFileOperationStatus() argument 128 if (shouldShowProgressDialogForOperation(opType)) { in showFileOperationStatus() 134 switch (opType) { in showFileOperationStatus() 151 throw new UnsupportedOperationException("Unsupported Operation: " + opType); in showFileOperationStatus() 155 private boolean shouldShowProgressDialogForOperation(@OpType int opType) { in shouldShowProgressDialogForOperation() argument 157 if (opType == FileOperationService.OPERATION_DELETE) { in shouldShowProgressDialogForOperation()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | FileOperation.java | 60 FileOperation(@OpType int opType, UrisSupplier srcs, DocumentStack destination) { in FileOperation() argument 61 checkArgument(opType != OPERATION_UNKNOWN); in FileOperation() 64 mOpType = opType; in FileOperation() 248 private MoveDeleteOperation(@OpType int opType, UrisSupplier srcs, in MoveDeleteOperation() argument 250 super(opType, srcs, destination); in MoveDeleteOperation() 315 public Builder withOpType(@OpType int opType) { in withOpType() argument 316 mOpType = opType; in withOpType()
|
D | Job.java | 128 @OpType int opType, DocumentStack stack, UrisSupplier srcs, Features features) { in Job() argument 130 assert(opType != OPERATION_UNKNOWN); in Job() 135 this.operationType = opType; in Job()
|
D | ResolvedResourcesJob.java | 49 ResolvedResourcesJob(Context service, Listener listener, String id, @OpType int opType, in ResolvedResourcesJob() argument 51 super(service, listener, id, opType, destination, srcs, features); in ResolvedResourcesJob()
|
D | FileOperations.java | 146 void onOperationResult(@Status int status, @OpType int opType, int docCount); in onOperationResult() argument
|
D | CopyJob.java | 114 CopyJob(Context service, Listener listener, String id, @OpType int opType, in CopyJob() argument 116 super(service, listener, id, opType, destination, srcs, features); in CopyJob()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/ |
D | AbstractJobTest.java | 98 FileOperation createOperation(@OpType int opType, List<Uri> srcs, Uri srcParent, in createOperation() argument 105 .withOpType(opType) in createOperation() 122 final T createJob(@OpType int opType, List<Uri> srcs, Uri srcParent, Uri destination) in createJob() argument 129 .withOpType(opType) in createJob()
|
D | FileOperationServiceTest.java | 417 @OpType int opType, UrisSupplier srcs, DocumentStack destination) { in TestFileOperation() 418 super(opType, srcs, destination); in TestFileOperation() 419 mOpType = opType; in TestFileOperation()
|
D | AbstractCopyJobTest.java | 42 AbstractCopyJobTest(@OpType int opType) { in AbstractCopyJobTest() argument 43 mOpType = opType; in AbstractCopyJobTest()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | DragAndDropManagerTests.java | 89 @FileOperationService.OpType int opType, int docCount) { 668 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_DifferentRoot_DropOnRoot() 694 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_MOVE); in testDrop_Moves_SameRoot_DropOnRoot() 727 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument() 768 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_DifferentRoot_DropOnDocument() 790 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_MOVE); in testDrop_Moves_SameRoot_DropOnDocument() 812 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_SameRoot_ReadOnlyFile_DropOnDocument()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/ |
D | TestJob.java | 42 TestJob(Context service, Listener listener, String id, @OpType int opType, DocumentStack stack, in TestJob() argument 44 super(service, listener, id, opType, stack, srcs, features); in TestJob()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | FilesActivity.java | 211 final int opType = intent.getIntExtra( in presentFileErrors() local 224 opType); in presentFileErrors() local
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ui/ |
D | TestDialogController.java | 52 public void showFileOperationStatus(int status, int opType, int docCount) { in showFileOperationStatus() argument
|