/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | DragAndDropManagerTests.java | 154 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData() 155 TestEnv.FILE_JPG.derivedUri), in testStartDrag_SetsCorrectClipData() 169 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData_NullParent() 170 TestEnv.FILE_JPG.derivedUri), in testStartDrag_SetsCorrectClipData_NullParent() 184 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri), in testStartDrag_BuildsCorrectShadow_SingleDoc() 199 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_BuildsCorrectShadow_MultipleDocs() 200 TestEnv.FILE_JPG.derivedUri), in testStartDrag_BuildsCorrectShadow_MultipleDocs() 216 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FOLDER_1.derivedUri, in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate() 217 TestEnv.FILE_JPG.derivedUri), in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate() 232 Arrays.asList(TestEnv.FILE_ARCHIVE.derivedUri, TestEnv.FILE_IN_ARCHIVE.derivedUri), in testInArchiveUris_HasCorrectFlagPermission() [all …]
|
D | AbstractActionHandlerTest.java | 212 assertTrue(mHandler.launchToDocument(TestEnv.FILE_GIF.derivedUri)); in testLaunchToDocuments() 247 mEnv.docs.lastUri.assertLastArgument(TestEnv.FILE_GIF.derivedUri); in testLaunchToDocuments_convertsTreeUriToDocumentUri()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 220 "Copying " + srcInfo.displayName + " (" + srcInfo.derivedUri + ")" in start() 221 + " to " + mDstInfo.displayName + " (" + mDstInfo.derivedUri + ")"); in start() 227 Log.e(TAG, "Skipping recursive copy of " + srcInfo.derivedUri); in start() 233 Log.e(TAG, "Failed to copy " + srcInfo.derivedUri, e); in start() 330 if (DocumentsContract.copyDocument(wrap(getClient(src)), src.derivedUri, in processDocument() 331 dstDirInfo.derivedUri) != null) { in processDocument() 336 Log.e(TAG, "Provider side copy failed for: " + src.derivedUri in processDocument() 339 appContext, MetricConsts.SUBFILEOP_QUICK_COPY, src.derivedUri); in processDocument() 344 Log.d(TAG, "Fallback to byte-by-byte copy for: " + src.derivedUri); in processDocument() 371 streamTypes = getContentResolver().getStreamTypes(src.derivedUri, "*/*"); in byteCopyDocument() [all …]
|
D | MoveJob.java | 126 size += calculateFileSizesRecursively(getClient(src), src.derivedUri); in checkSpace() 128 Log.w(TAG, "Failed to obtain client for %s" + src.derivedUri + ".", e); in checkSpace() 152 if (DocumentsContract.moveDocument(wrap(getClient(src)), src.derivedUri, in processDocument() 153 srcParent != null ? srcParent.derivedUri : mSrcParent.derivedUri, in processDocument() 154 dest.derivedUri) != null) { in processDocument() 160 appContext, MetricConsts.SUBFILEOP_QUICK_MOVE, src.derivedUri); in processDocument() 161 Log.e(TAG, "Provider side move failed for: " + src.derivedUri in processDocument() 166 Log.d(TAG, "Fallback to byte-by-byte move for: " + src.derivedUri); in processDocument() 176 src.derivedUri); in processDocument()
|
D | Job.java | 211 return getClient(doc.derivedUri); in getClient() 264 DocumentsContract.removeDocument(wrap(getClient(doc)), doc.derivedUri, in deleteDocument() 265 parent.derivedUri); in deleteDocument() 267 DocumentsContract.deleteDocument(wrap(getClient(doc)), doc.derivedUri); in deleteDocument() 270 + "File is not deletable or removable: %s.", doc.derivedUri); in deleteDocument() 274 doc.derivedUri, e); in deleteDocument()
|
D | DeleteJob.java | 116 Log.d(TAG, "Deleting document @ " + doc.derivedUri); in start() 122 appContext, MetricConsts.SUBFILEOP_DELETE_DOCUMENT, doc.derivedUri); in start() 123 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/inspector/ |
D | InspectorControllerTest.java | 134 mController.loadInfo(TestEnv.FILE_JPG.derivedUri); // actual URI doesn't matter :) in testHideDebugByDefault() 146 mController.loadInfo(TestEnv.FILE_JPG.derivedUri); // actual URI doesn't matter :) in testShowDebugUpdatesView() 158 mController.loadInfo(TestEnv.FILE_JPG.derivedUri); // actual URI doesn't matter :) in testExtraTitleOverridesDisplayName() 191 mController.loadInfo(TestEnv.FILE_JPG.derivedUri); // actual URI doesn't matter :) in testUpdateViewWithValidInput() 205 doc.derivedUri = in testShowInProvider_visible() 209 mController.loadInfo(doc.derivedUri); // actual URI doesn't matter :) in testShowInProvider_visible() 220 mController.loadInfo(TestEnv.FILE_JPG.derivedUri); // actual URI doesn't matter :) in testShowInProvider_invisible() 233 mController.loadInfo(TestEnv.FILE_JPG.derivedUri); // actual URI doesn't matter :) in testUpdateView_withNullValue() 245 mController.loadInfo(doc.derivedUri); // actual URI doesn't matter :) in testMetadata_GeoHandlerInstalled() 255 mController.loadInfo(doc.derivedUri); // actual URI doesn't matter :) in testMetadata_notDisplayedWhenNotReturned() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 189 intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, TestEnv.FILE_GIF.derivedUri); in testInitLocation_LaunchToDocuments() 248 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri); in testIncreasePickCountRecordCalled() 253 mActivity.getApplicationContext(), TestEnv.FILE_JPG.derivedUri); in testIncreasePickCountRecordCalled() 281 assertContent(result, TestEnv.FOLDER_2.derivedUri); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination() 377 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 389 assertContent(result, TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent() 404 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri, TestEnv.FILE_GIF.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 416 assertContent(result, TestEnv.FILE_JPG.derivedUri, TestEnv.FILE_GIF.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 429 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen() 441 assertContent(result, TestEnv.FILE_JPG.derivedUri); in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | DocumentInfo.java | 69 public Uri derivedUri; field in DocumentInfo 86 derivedUri = null; in reset() 188 updateFromUri(resolver, derivedUri); in updateSelf() 212 derivedUri = DocumentsContract.buildDocumentUri(authority, documentId); in deriveFields() 233 + derivedUri; in toString() 307 return derivedUri.hashCode() + mimeType.hashCode(); in hashCode() 323 return Objects.equals(derivedUri, other.derivedUri) in equals() 408 if (doc.derivedUri == null) { in debugString() 411 return doc.derivedUri.toString(); in debugString()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 179 resolver, document.derivedUri.getAuthority()); in renameDocument() 181 wrap(client), document.derivedUri, name); in renameDocument() 289 intent.setData(doc.derivedUri); in viewInOwner() 293 Log.e(TAG, "Failed to view settings in application for " + doc.derivedUri, e); in viewInOwner() 340 .withSrcParent(srcParent == null ? null : srcParent.derivedUri) in deleteSelectedDocuments() 368 intent.putExtra(Intent.EXTRA_STREAM, doc.derivedUri); in shareSelectedDocuments() 377 uris.add(doc.derivedUri); in shareSelectedDocuments() 678 manage.setData(doc.derivedUri); in manageDocument() 723 intent.setDataAndType(doc.derivedUri, doc.mimeType); in buildViewIntent() 743 intent.setData(doc.derivedUri); in showInspector()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | RefreshTask.java | 78 if (mDoc.derivedUri == null) { in run() 83 if (!mDoc.derivedUri.equals(mState.stack.peek().derivedUri)) { in run() 103 refreshSupported = client.refresh(mDoc.derivedUri, null, mSignal); in run()
|
D | DragAndDropManager.java | 242 uris.add(doc.derivedUri); in startDrag() 299 return isValidDestination(root, doc.derivedUri); in canSpringOpen() 328 if (!destDoc.isCreateSupported() || mInvalidDest.contains(destDoc.derivedUri)) { in updateState() 491 return isValidDestination(root, dst.derivedUri); in canCopyTo()
|
D | AbstractActionHandler.java | 345 doc.derivedUri, in openContainerDocument() 377 stack.push(mDocs.getArchiveDocument(top.derivedUri)); in openFolderInSearchResult() 405 currentDoc = mDocs.getArchiveDocument(doc.derivedUri); in openChildContainer() 409 mActivity.notifyDirectoryNavigated(currentDoc.derivedUri); in openChildContainer()
|
D | DocumentsAccess.java | 138 resolver, parentDoc.derivedUri.getAuthority())) { in createDocument() 140 wrap(client), parentDoc.derivedUri, mimeType, displayName); in createDocument()
|
D | CreateDirectoryFragment.java | 150 resolver, mCwd.derivedUri.getAuthority()); in doInBackground() 152 wrap(client), mCwd.derivedUri, Document.MIME_TYPE_DIR, mDisplayName); in doInBackground()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/ |
D | AbstractCopyJobTest.java | 122 mDocs.assertChildCount(dir1Copy.derivedUri, 2); in runCopyDirRecursivelyTest() 123 mDocs.assertHasDirectory(dir1Copy.derivedUri, "dir2"); in runCopyDirRecursivelyTest() 124 mDocs.assertHasFile(dir1Copy.derivedUri, "test1.txt"); in runCopyDirRecursivelyTest() 127 mDocs.assertChildCount(dir2Copy.derivedUri, 1); in runCopyDirRecursivelyTest() 128 mDocs.assertHasFile(dir2Copy.derivedUri, "test2.txt"); in runCopyDirRecursivelyTest()
|
D | FileOperationServiceTest.java | 332 uris.add(file.derivedUri); in createCopyIntent() 346 uris.add(file.derivedUri); in createDeleteIntent() 396 destDoc.derivedUri = destination; in createDoc()
|
/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()
|
D | TestEnv.java | 215 b.derivedUri = a.derivedUri; in clone()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | HeaderView.java | 90 final ThumbnailLoader task = new ThumbnailLoader(doc.derivedUri, mThumbnail, in loadHeaderImage() 92 task.executeOnExecutor(ProviderExecutor.forAuthority(doc.derivedUri.getAuthority()), in loadHeaderImage() 93 doc.derivedUri); in loadHeaderImage()
|
D | DebugView.java | 75 put(R.string.debug_content_uri, info.derivedUri.toString()); in accept() 97 Executor executor = mExecutors.lookup(info.derivedUri.getAuthority()); in accept() 102 return mContext.getContentResolver().getStreamTypes(info.derivedUri, "*/*"); in accept()
|
D | InspectorController.java | 175 showInProvider(docInfo.derivedUri); in updateView() 187 docInfo.derivedUri, in updateView()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 114 SRC_PARENT_KEY, parent.derivedUri.toString()); in getClipDataForDocuments() 206 assert(parent.derivedUri != null); in clipDocumentsForCut() 213 bundle.putString(SRC_PARENT_KEY, parent.derivedUri.toString()); in clipDocumentsForCut()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DragStartListener.java | 128 invalidDest.add(doc.derivedUri); in startDrag() 134 invalidDest.add(parent.derivedUri); in startDrag()
|