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/
DMetrics.java43 import com.android.documentsui.services.FileOperationService;
44 import com.android.documentsui.services.FileOperationService.OpType;
134 case FileOperationService.OPERATION_COPY: in logFileOperated()
138 case FileOperationService.OPERATION_MOVE: in logFileOperated()
180 case FileOperationService.OPERATION_COPY: in logFileOperationErrors()
183 case FileOperationService.OPERATION_COMPRESS: in logFileOperationErrors()
186 case FileOperationService.OPERATION_EXTRACT: in logFileOperationErrors()
189 case FileOperationService.OPERATION_DELETE: in logFileOperationErrors()
192 case FileOperationService.OPERATION_MOVE: in logFileOperationErrors()
281 if (operationType == FileOperationService.OPERATION_DELETE) { in logInterProviderFileOps()
[all …]
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()
DDragAndDropManager.java38 import com.android.documentsui.services.FileOperationService;
39 import com.android.documentsui.services.FileOperationService.OpType;
245 ? mClipper.getClipDataForDocuments(uris, FileOperationService.OPERATION_UNKNOWN) in startDrag()
247 uris, FileOperationService.OPERATION_UNKNOWN, parent); in startDrag()
336 case FileOperationService.OPERATION_COPY: in updateState()
339 case FileOperationService.OPERATION_MOVE: in updateState()
468 return FileOperationService.OPERATION_COPY; in calculateOpType()
479 ? FileOperationService.OPERATION_COPY in calculateOpType()
480 : FileOperationService.OPERATION_MOVE; in calculateOpType()
483 ? FileOperationService.OPERATION_MOVE in calculateOpType()
[all …]
DAbstractDragHost.java22 import com.android.documentsui.services.FileOperationService;
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
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()
DDialogController.java32 import com.android.documentsui.services.FileOperationService;
33 import com.android.documentsui.services.FileOperationService.OpType;
135 case FileOperationService.OPERATION_MOVE: in showFileOperationStatus()
138 case FileOperationService.OPERATION_COPY: in showFileOperationStatus()
141 case FileOperationService.OPERATION_COMPRESS: in showFileOperationStatus()
144 case FileOperationService.OPERATION_EXTRACT: in showFileOperationStatus()
147 case FileOperationService.OPERATION_DELETE: in showFileOperationStatus()
157 if (opType == FileOperationService.OPERATION_DELETE) { in shouldShowProgressDialogForOperation()
166 assert(operation.getOpType() != FileOperationService.OPERATION_UNKNOWN); in showProgressDialog()
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;
57 import com.android.documentsui.services.FileOperationService.OpType;
334 ? new Notification.Builder(service, FileOperationService.NOTIFICATION_CHANNEL_ID) in createNotificationBuilder()
351 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.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;
40 import com.android.documentsui.services.FileOperationService.OpType;
DCopyJob.java29 import static com.android.documentsui.services.FileOperationService.EXTRA_DIALOG_TYPE;
30 import static com.android.documentsui.services.FileOperationService.EXTRA_FAILED_DOCS;
31 import static com.android.documentsui.services.FileOperationService.EXTRA_OPERATION_TYPE;
32 import static com.android.documentsui.services.FileOperationService.MESSAGE_FINISH;
33 import static com.android.documentsui.services.FileOperationService.MESSAGE_PROGRESS;
34 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
75 import com.android.documentsui.services.FileOperationService.OpType;
/packages/apps/DocumentsUI/tests/unit/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;
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickFragment.java19 import static com.android.documentsui.services.FileOperationService.OPERATION_DELETE;
20 import static com.android.documentsui.services.FileOperationService.OPERATION_COPY;
21 import static com.android.documentsui.services.FileOperationService.OPERATION_COMPRESS;
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;
44 import com.android.documentsui.services.FileOperationService.OpType;
DPickActivity.java60 import com.android.documentsui.services.FileOperationService;
249 FileOperationService.EXTRA_OPERATION_TYPE, in includeState()
250 FileOperationService.OPERATION_COPY); in includeState()
DActionHandler.java63 import com.android.documentsui.services.FileOperationService;
461 intent.putExtra(FileOperationService.EXTRA_OPERATION_TYPE, mState.copyOperationSubType); in onPickFinished()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java99 import com.android.documentsui.services.FileOperationService;
100 import com.android.documentsui.services.FileOperationService.OpType;
677 transferDocuments(selection, null, FileOperationService.OPERATION_COPY); in handleMenuItemClick()
685 FileOperationService.OPERATION_COMPRESS); in handleMenuItemClick()
693 transferDocuments(selection, null, FileOperationService.OPERATION_EXTRACT); in handleMenuItemClick()
706 transferDocuments(selection, null, FileOperationService.OPERATION_MOVE); in handleMenuItemClick()
827 case FileOperationService.OPERATION_COPY: in transferDocuments()
830 case FileOperationService.OPERATION_COMPRESS: in transferDocuments()
833 case FileOperationService.OPERATION_EXTRACT: in transferDocuments()
836 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/src/com/android/documentsui/files/
DFilesActivity.java57 import com.android.documentsui.services.FileOperationService;
207 FileOperationService.EXTRA_DIALOG_TYPE, DIALOG_TYPE_UNKNOWN); in presentFileErrors()
212 FileOperationService.EXTRA_OPERATION_TYPE, in presentFileErrors()
213 FileOperationService.OPERATION_COPY); in presentFileErrors()
215 intent.getParcelableArrayListExtra(FileOperationService.EXTRA_FAILED_DOCS); in presentFileErrors()
217 intent.getParcelableArrayListExtra(FileOperationService.EXTRA_FAILED_URIS); in presentFileErrors()
DActionHandler.java75 import com.android.documentsui.services.FileOperationService;
331 FileOperationService.OPERATION_DELETE, in deleteSelectedDocuments()
337 .withOpType(FileOperationService.OPERATION_DELETE) in deleteSelectedDocuments()
/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/base/
DState.java26 import com.android.documentsui.services.FileOperationService;
27 import com.android.documentsui.services.FileOperationService.OpType;
100 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) {
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/
DTestForegroundManager.java24 class TestForegroundManager implements FileOperationService.ForegroundManager {

12