Home
last modified time | relevance | path

Searched refs:FileOperationService (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/DocumentsUI/src/com/android/documentsui/
DOperationDialogFragment.java32 import com.android.documentsui.services.FileOperationService;
33 import com.android.documentsui.services.FileOperationService.OpType;
71 args.putInt(FileOperationService.EXTRA_DIALOG_TYPE, dialogType); in show()
72 args.putInt(FileOperationService.EXTRA_OPERATION_TYPE, operationType); in show()
73 args.putParcelableArrayList(FileOperationService.EXTRA_FAILED_DOCS, failedSrcList); in show()
74 args.putParcelableArrayList(FileOperationService.EXTRA_FAILED_URIS, uriList); in show()
89 getArguments().getInt(FileOperationService.EXTRA_DIALOG_TYPE); in onCreateDialog()
91 getArguments().getInt(FileOperationService.EXTRA_OPERATION_TYPE); in onCreateDialog()
93 FileOperationService.EXTRA_FAILED_URIS); in onCreateDialog()
95 FileOperationService.EXTRA_FAILED_DOCS); in onCreateDialog()
DMetrics.java46 import com.android.documentsui.services.FileOperationService;
47 import com.android.documentsui.services.FileOperationService.OpType;
156 case FileOperationService.OPERATION_COPY: in logFileOperated()
160 case FileOperationService.OPERATION_MOVE: in logFileOperated()
202 case FileOperationService.OPERATION_COPY: in logFileOperationErrors()
205 case FileOperationService.OPERATION_COMPRESS: in logFileOperationErrors()
208 case FileOperationService.OPERATION_EXTRACT: in logFileOperationErrors()
211 case FileOperationService.OPERATION_DELETE: in logFileOperationErrors()
214 case FileOperationService.OPERATION_MOVE: in logFileOperationErrors()
303 if (operationType == FileOperationService.OPERATION_DELETE) { in logInterProviderFileOps()
[all …]
DDragAndDropManager.java39 import com.android.documentsui.services.FileOperationService;
40 import com.android.documentsui.services.FileOperationService.OpType;
254 ? mClipper.getClipDataForDocuments(uris, FileOperationService.OPERATION_UNKNOWN) in startDrag()
256 uris, FileOperationService.OPERATION_UNKNOWN, parent); in startDrag()
345 case FileOperationService.OPERATION_COPY: in updateState()
348 case FileOperationService.OPERATION_MOVE: in updateState()
483 return FileOperationService.OPERATION_COPY; in calculateOpType()
494 ? FileOperationService.OPERATION_COPY in calculateOpType()
495 : FileOperationService.OPERATION_MOVE; in calculateOpType()
498 ? FileOperationService.OPERATION_MOVE in calculateOpType()
[all …]
DAbstractDragHost.java22 import com.android.documentsui.services.FileOperationService;
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDialogController.java27 import com.android.documentsui.services.FileOperationService;
28 import com.android.documentsui.services.FileOperationService.OpType;
94 case FileOperationService.OPERATION_MOVE: in showFileOperationStatus()
97 case FileOperationService.OPERATION_COPY: in showFileOperationStatus()
100 case FileOperationService.OPERATION_COMPRESS: in showFileOperationStatus()
103 case FileOperationService.OPERATION_EXTRACT: in showFileOperationStatus()
106 case FileOperationService.OPERATION_DELETE: in showFileOperationStatus()
116 if (opType == FileOperationService.OPERATION_DELETE) { in shouldShowProgressDialogForOperation()
125 assert(operation.getOpType() != FileOperationService.OPERATION_UNKNOWN); in showProgressDialog()
DOperationProgressDialog.java29 import com.android.documentsui.services.FileOperationService;
67 case FileOperationService.MESSAGE_PROGRESS: in OperationProgressDialog()
77 case FileOperationService.MESSAGE_FINISH: in OperationProgressDialog()
92 case FileOperationService.OPERATION_COPY: in create()
96 case FileOperationService.OPERATION_COMPRESS: in create()
100 case FileOperationService.OPERATION_EXTRACT: in create()
104 case FileOperationService.OPERATION_MOVE: in create()
108 case FileOperationService.OPERATION_DELETE: in create()
DMessageBuilder.java28 import com.android.documentsui.services.FileOperationService;
29 import com.android.documentsui.services.FileOperationService.OpType;
94 case FileOperationService.OPERATION_COPY: in generateListMessage()
97 case FileOperationService.OPERATION_COMPRESS: in generateListMessage()
100 case FileOperationService.OPERATION_EXTRACT: in generateListMessage()
103 case FileOperationService.OPERATION_DELETE: in generateListMessage()
106 case FileOperationService.OPERATION_MOVE: in generateListMessage()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DJob.java22 import static com.android.documentsui.services.FileOperationService.EXTRA_CANCEL;
23 import static com.android.documentsui.services.FileOperationService.EXTRA_DIALOG_TYPE;
24 import static com.android.documentsui.services.FileOperationService.EXTRA_FAILED_DOCS;
25 import static com.android.documentsui.services.FileOperationService.EXTRA_FAILED_URIS;
26 import static com.android.documentsui.services.FileOperationService.EXTRA_JOB_ID;
27 import static com.android.documentsui.services.FileOperationService.EXTRA_OPERATION_TYPE;
28 import static com.android.documentsui.services.FileOperationService.OPERATION_UNKNOWN;
59 import com.android.documentsui.services.FileOperationService.OpType;
351 ? new Notification.Builder(service, FileOperationService.NOTIFICATION_CHANNEL_ID) in createNotificationBuilder()
368 final Intent cancelIntent = new Intent(service, FileOperationService.class); in createCancelIntent()
DFileOperations.java21 import static com.android.documentsui.services.FileOperationService.EXTRA_CANCEL;
22 import static com.android.documentsui.services.FileOperationService.EXTRA_JOB_ID;
23 import static com.android.documentsui.services.FileOperationService.EXTRA_OPERATION;
32 import com.android.documentsui.services.FileOperationService.OpType;
83 Intent intent = new Intent(activity, FileOperationService.class); in cancel()
100 Intent intent = new Intent(context, FileOperationService.class); in createBaseIntent()
DFileOperation.java21 import static com.android.documentsui.services.FileOperationService.OPERATION_COMPRESS;
22 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
23 import static com.android.documentsui.services.FileOperationService.OPERATION_DELETE;
24 import static com.android.documentsui.services.FileOperationService.OPERATION_EXTRACT;
25 import static com.android.documentsui.services.FileOperationService.OPERATION_MOVE;
26 import static com.android.documentsui.services.FileOperationService.OPERATION_UNKNOWN;
42 import com.android.documentsui.services.FileOperationService.OpType;
DCopyJob.java32 import static com.android.documentsui.services.FileOperationService.EXTRA_DIALOG_TYPE;
33 import static com.android.documentsui.services.FileOperationService.EXTRA_FAILED_DOCS;
34 import static com.android.documentsui.services.FileOperationService.EXTRA_OPERATION_TYPE;
35 import static com.android.documentsui.services.FileOperationService.MESSAGE_FINISH;
36 import static com.android.documentsui.services.FileOperationService.MESSAGE_PROGRESS;
37 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
86 import com.android.documentsui.services.FileOperationService.OpType;
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DFileOperationServiceTest.java19 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
20 import static com.android.documentsui.services.FileOperationService.OPERATION_DELETE;
41 import com.android.documentsui.services.FileOperationService.OpType;
52 public class FileOperationServiceTest extends ServiceTestCase<FileOperationService> {
64 private FileOperationService mService;
72 super(FileOperationService.class); in FileOperationServiceTest()
307 FileOperationService.NOTIFICATION_ID_PROGRESS, null); in testNotificationUpdateAfterForegroundJobSwitch()
311 FileOperationService.NOTIFICATION_ID_PROGRESS, job2.id); in testNotificationUpdateAfterForegroundJobSwitch()
316 FileOperationService.NOTIFICATION_ID_PROGRESS, null); in testNotificationUpdateAfterForegroundJobSwitch()
318 FileOperationService.NOTIFICATION_ID_PROGRESS, job2.id); in testNotificationUpdateAfterForegroundJobSwitch()
DCopyJobTest.java19 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
DDeleteJobTest.java19 import static com.android.documentsui.services.FileOperationService.OPERATION_DELETE;
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickFragment.java19 import static com.android.documentsui.services.FileOperationService.OPERATION_COMPRESS;
20 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
21 import static com.android.documentsui.services.FileOperationService.OPERATION_DELETE;
22 import static com.android.documentsui.services.FileOperationService.OPERATION_EXTRACT;
23 import static com.android.documentsui.services.FileOperationService.OPERATION_MOVE;
24 import static com.android.documentsui.services.FileOperationService.OPERATION_UNKNOWN;
42 import com.android.documentsui.services.FileOperationService.OpType;
DPickActivity.java63 import com.android.documentsui.services.FileOperationService;
266 FileOperationService.EXTRA_OPERATION_TYPE, in includeState()
267 FileOperationService.OPERATION_COPY); in includeState()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java108 import com.android.documentsui.services.FileOperationService;
109 import com.android.documentsui.services.FileOperationService.OpType;
857 transferDocuments(selection, null, FileOperationService.OPERATION_COPY); in handleMenuItemClick()
865 FileOperationService.OPERATION_COMPRESS); in handleMenuItemClick()
873 transferDocuments(selection, null, FileOperationService.OPERATION_EXTRACT); in handleMenuItemClick()
886 transferDocuments(selection, null, FileOperationService.OPERATION_MOVE); in handleMenuItemClick()
1021 case FileOperationService.OPERATION_COPY: in transferDocuments()
1024 case FileOperationService.OPERATION_COMPRESS: in transferDocuments()
1027 case FileOperationService.OPERATION_EXTRACT: in transferDocuments()
1030 case FileOperationService.OPERATION_MOVE: in transferDocuments()
[all …]
DDirectoryState.java24 import com.android.documentsui.services.FileOperationService;
54 mPendingOperation = bundle.getParcelable(FileOperationService.EXTRA_OPERATION); in restore()
63 bundle.putParcelable(FileOperationService.EXTRA_OPERATION, mPendingOperation); in save()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDocumentClipper.java28 import com.android.documentsui.services.FileOperationService;
29 import com.android.documentsui.services.FileOperationService.OpType;
60 @FileOperationService.OpType int opType) { in getClipDataForDocuments()
66 @FileOperationService.OpType int opType, DocumentInfo parent) { in getClipDataForDocuments()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java60 import com.android.documentsui.services.FileOperationService;
220 FileOperationService.EXTRA_DIALOG_TYPE, DIALOG_TYPE_UNKNOWN); in presentFileErrors()
225 FileOperationService.EXTRA_OPERATION_TYPE, in presentFileErrors()
226 FileOperationService.OPERATION_COPY); in presentFileErrors()
228 intent.getParcelableArrayListExtra(FileOperationService.EXTRA_FAILED_DOCS); in presentFileErrors()
230 intent.getParcelableArrayListExtra(FileOperationService.EXTRA_FAILED_URIS); in presentFileErrors()
DActionHandler.java73 import com.android.documentsui.services.FileOperationService;
334 FileOperationService.OPERATION_DELETE, in deleteSelectedDocuments()
340 .withOpType(FileOperationService.OPERATION_DELETE) in deleteSelectedDocuments()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DState.java26 import com.android.documentsui.services.FileOperationService;
27 import com.android.documentsui.services.FileOperationService.OpType;
113 public @OpType int copyOperationSubType = FileOperationService.OPERATION_UNKNOWN;
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java37 import com.android.documentsui.services.FileOperationService;
38 import com.android.documentsui.services.FileOperationService.OpType;
196 getClipDataForDocuments(uriBuilder, selection, FileOperationService.OPERATION_COPY); in clipDocumentsForCopy()
209 FileOperationService.OPERATION_MOVE); in clipDocumentsForCut()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java40 import com.android.documentsui.services.FileOperationService;
89 @FileOperationService.OpType int opType, int docCount) {
706 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_DifferentRoot_DropOnRoot()
732 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_MOVE); in testDrop_Moves_SameRoot_DropOnRoot()
765 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument()
806 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_DifferentRoot_DropOnDocument()
828 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_MOVE); in testDrop_Moves_SameRoot_DropOnDocument()
850 mClipper.opType.assertLastArgument(FileOperationService.OPERATION_COPY); in testDrop_Copies_SameRoot_ReadOnlyFile_DropOnDocument()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestForegroundManager.java24 class TestForegroundManager implements FileOperationService.ForegroundManager {

12