/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | DragAndDropManagerTests.java | 153 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData() 154 TestEnv.FILE_JPG.derivedUri), in testStartDrag_SetsCorrectClipData() 168 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData_NullParent() 169 TestEnv.FILE_JPG.derivedUri), in testStartDrag_SetsCorrectClipData_NullParent() 183 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri), in testStartDrag_BuildsCorrectShadow_SingleDoc() 198 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_BuildsCorrectShadow_MultipleDocs() 199 TestEnv.FILE_JPG.derivedUri), in testStartDrag_BuildsCorrectShadow_MultipleDocs() 215 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FOLDER_1.derivedUri, in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate() 216 TestEnv.FILE_JPG.derivedUri), in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate() 231 Arrays.asList(TestEnv.FILE_ARCHIVE.derivedUri, TestEnv.FILE_IN_ARCHIVE.derivedUri), in testInArchiveUris_HasCorrectFlagPermission() [all …]
|
D | AbstractActionHandlerTest.java | 176 assertTrue(mHandler.launchToDocument(TestEnv.FILE_GIF.derivedUri)); in testLaunchToDocuments() 211 mEnv.docs.lastUri.assertLastArgument(TestEnv.FILE_GIF.derivedUri); in testLaunchToDocuments_convertsTreeUriToDocumentUri()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 276 "Copying " + srcInfo.displayName + " (" + srcInfo.derivedUri + ")" in start() 277 + " to " + mDstInfo.displayName + " (" + mDstInfo.derivedUri + ")"); in start() 282 Log.e(TAG, "Skipping recursive copy of " + srcInfo.derivedUri); in start() 288 Log.e(TAG, "Failed to copy " + srcInfo.derivedUri, e); in start() 378 if (DocumentsContract.copyDocument(getClient(src), src.derivedUri, in processDocument() 379 dstDirInfo.derivedUri) != null) { in processDocument() 385 Log.e(TAG, "Provider side copy failed for: " + src.derivedUri in processDocument() 388 appContext, Metrics.SUBFILEOP_QUICK_COPY, src.derivedUri); in processDocument() 392 if (DEBUG) Log.d(TAG, "Fallback to byte-by-byte copy for: " + src.derivedUri); in processDocument() 410 streamTypes = getContentResolver().getStreamTypes(src.derivedUri, "*/*"); in byteCopyDocument() [all …]
|
D | MoveJob.java | 123 size += calculateFileSizesRecursively(getClient(src), src.derivedUri); in checkSpace() 125 Log.w(TAG, "Failed to obtain client for %s" + src.derivedUri + ".", e); in checkSpace() 149 if (DocumentsContract.moveDocument(getClient(src), src.derivedUri, in processDocument() 150 srcParent != null ? srcParent.derivedUri : mSrcParent.derivedUri, in processDocument() 151 dest.derivedUri) != null) { in processDocument() 158 appContext, Metrics.SUBFILEOP_QUICK_MOVE, src.derivedUri); in processDocument() 159 Log.e(TAG, "Provider side move failed for: " + src.derivedUri in processDocument() 163 if (DEBUG) Log.d(TAG, "Fallback to byte-by-byte move for: " + src.derivedUri); in processDocument() 172 src.derivedUri); in processDocument()
|
D | Job.java | 205 return getClient(doc.derivedUri); in getClient() 257 DocumentsContract.removeDocument(getClient(doc), doc.derivedUri, parent.derivedUri); in deleteDocument() 259 DocumentsContract.deleteDocument(getClient(doc), doc.derivedUri); in deleteDocument() 262 + "File is not deletable or removable: %s.", doc.derivedUri); in deleteDocument() 266 doc.derivedUri, e); in deleteDocument()
|
D | DeleteJob.java | 113 if (DEBUG) Log.d(TAG, "Deleting document @ " + doc.derivedUri); in start() 118 appContext, Metrics.SUBFILEOP_DELETE_DOCUMENT, doc.derivedUri); in start() 119 Log.e(TAG, "Failed to delete document @ " + doc.derivedUri, e); in start()
|
D | CompressJob.java | 109 resolver, mDstInfo.derivedUri, "application/zip", displayName); in setUp() 117 ArchivesProvider.acquireArchive(getClient(mDstInfo), mDstInfo.derivedUri); in setUp() 134 ArchivesProvider.releaseArchive(getClient(mDstInfo), mDstInfo.derivedUri); in finish()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 150 intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, TestEnv.FILE_GIF.derivedUri); in testInitLocation_LaunchToDocuments() 232 assertContent(result, TestEnv.FOLDER_2.derivedUri); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination() 316 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 328 assertContent(result, TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 343 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri, TestEnv.FILE_GIF.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 355 assertContent(result, TestEnv.FILE_JPG.derivedUri, TestEnv.FILE_GIF.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 368 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen() 380 assertContent(result, TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen() 395 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri, TestEnv.FILE_GIF.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection() 407 assertContent(result, TestEnv.FILE_JPG.derivedUri, TestEnv.FILE_GIF.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | DocumentInfo.java | 65 public Uri derivedUri; field in DocumentInfo 82 derivedUri = null; in reset() 184 updateFromUri(resolver, derivedUri); in updateSelf() 208 derivedUri = DocumentsContract.buildDocumentUri(authority, documentId); in deriveFields() 227 + derivedUri; in toString() 297 return derivedUri.hashCode() + mimeType.hashCode(); in hashCode() 313 return Objects.equals(derivedUri, other.derivedUri) in equals() 380 if (doc.derivedUri == null) { in debugString() 382 assert(doc.derivedUri != null); in debugString() 384 return doc.derivedUri.toString(); in debugString()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 171 resolver, document.derivedUri.getAuthority()); in renameDocument() 173 client, document.derivedUri, name); in renameDocument() 280 intent.setData(doc.derivedUri); in viewInOwner() 284 Log.e(TAG, "Failed to view settings in application for " + doc.derivedUri, e); in viewInOwner() 331 .withSrcParent(srcParent == null ? null : srcParent.derivedUri) in deleteSelectedDocuments() 359 intent.putExtra(Intent.EXTRA_STREAM, doc.derivedUri); in shareSelectedDocuments() 368 uris.add(doc.derivedUri); in shareSelectedDocuments() 615 manage.setData(doc.derivedUri); in manageDocument() 661 intent.setDataAndType(doc.derivedUri, doc.mimeType); in buildViewIntent() 685 intent.setData(doc.derivedUri); in showInspector()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/ |
D | AbstractCopyJobTest.java | 107 mDocs.assertChildCount(dir1Copy.derivedUri, 2); in runCopyDirRecursivelyTest() 108 mDocs.assertHasDirectory(dir1Copy.derivedUri, "dir2"); in runCopyDirRecursivelyTest() 109 mDocs.assertHasFile(dir1Copy.derivedUri, "test1.txt"); in runCopyDirRecursivelyTest() 112 mDocs.assertChildCount(dir2Copy.derivedUri, 1); in runCopyDirRecursivelyTest() 113 mDocs.assertHasFile(dir2Copy.derivedUri, "test2.txt"); in runCopyDirRecursivelyTest()
|
D | FileOperationServiceTest.java | 303 uris.add(file.derivedUri); in createCopyIntent() 317 uris.add(file.derivedUri); in createDeleteIntent() 366 destDoc.derivedUri = destination; in createDoc()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | InspectorControllerTest.java | 194 doc.derivedUri = in testShowInProvider_visible() 210 doc.derivedUri = in testShowInProvider_invisible() 228 doc.derivedUri = in testAppDefaults_visible() 244 doc.derivedUri = in testAppDefaults_invisible()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentsAccess.java | 69 child.derivedUri = DocumentsContract.buildDocumentUri(child.authority, displayName); in createDocument() 73 return child.derivedUri; in createDocument() 99 return mLastCreatedDoc.second.derivedUri; in getLastCreatedDocumentUri()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | RefreshTask.java | 76 if (!mDoc.derivedUri.equals(mState.stack.peek().derivedUri)) { in run() 96 refreshSupported = client.refresh(mDoc.derivedUri, null, mSignal); in run()
|
D | DragAndDropManager.java | 241 uris.add(doc.derivedUri); in startDrag() 298 return isValidDestination(root, doc.derivedUri); in canSpringOpen() 327 if (!destDoc.isCreateSupported() || mInvalidDest.contains(destDoc.derivedUri)) { in updateState() 490 return isValidDestination(root, dst.derivedUri); in canCopyTo()
|
D | DocumentsAccess.java | 135 resolver, parentDoc.derivedUri.getAuthority())) { in createDocument() 137 client, parentDoc.derivedUri, mimeType, displayName); in createDocument()
|
D | CreateDirectoryFragment.java | 141 resolver, mCwd.derivedUri.getAuthority()); in doInBackground() 143 client, mCwd.derivedUri, Document.MIME_TYPE_DIR, mDisplayName); in doInBackground()
|
D | AbstractActionHandler.java | 336 doc.derivedUri, in openContainerDocument() 384 currentDoc = mDocs.getArchiveDocument(doc.derivedUri); in openChildContainer() 388 mActivity.notifyDirectoryNavigated(currentDoc.derivedUri); in openChildContainer()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | HeaderView.java | 121 final ThumbnailLoader task = new ThumbnailLoader(info.derivedUri, mThumbnail, in loadHeaderImage() 123 task.executeOnExecutor(ProviderExecutor.forAuthority(info.derivedUri.getAuthority()), in loadHeaderImage() 124 info.derivedUri); in loadHeaderImage()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/actions/ |
D | ClearDefaultAppAction.java | 57 Intent intent = new Intent(Intent.ACTION_VIEW, mDoc.derivedUri); in canPerformAction() 78 Intent intent = new Intent(Intent.ACTION_VIEW, mDoc.derivedUri); in getPackageName()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 114 SRC_PARENT_KEY, parent.derivedUri.toString()); in getClipDataForDocuments() 205 assert(parent.derivedUri != null); in clipDocumentsForCut() 212 bundle.putString(SRC_PARENT_KEY, parent.derivedUri.toString()); in clipDocumentsForCut()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DragStartListener.java | 132 invalidDest.add(doc.derivedUri); in startDrag() 138 invalidDest.add(parent.derivedUri); in startDrag()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | ActionHandler.java | 275 result = pickTarget.derivedUri; in pickDocument() 310 finishPicking(replaceTarget.derivedUri); in saveDocument()
|
D | PickActivity.java | 303 mInjector.actions.finishPicking(doc.derivedUri); in onDocumentPicked() 316 uris[i] = docs.get(i).derivedUri; in onDocumentsPicked()
|