Home
last modified time | relevance | path

Searched refs:derivedUri (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java153 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 …]
DAbstractActionHandlerTest.java176 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/
DCopyJob.java276 "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 …]
DMoveJob.java123 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()
DJob.java205 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()
DDeleteJob.java113 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()
DCompressJob.java109 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/
DActionHandlerTest.java150 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/
DDocumentInfo.java65 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/
DActionHandler.java171 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/
DAbstractCopyJobTest.java107 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()
DFileOperationServiceTest.java303 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/
DInspectorControllerTest.java194 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/
DTestDocumentsAccess.java69 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/
DRefreshTask.java76 if (!mDoc.derivedUri.equals(mState.stack.peek().derivedUri)) { in run()
96 refreshSupported = client.refresh(mDoc.derivedUri, null, mSignal); in run()
DDragAndDropManager.java241 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()
DDocumentsAccess.java135 resolver, parentDoc.derivedUri.getAuthority())) { in createDocument()
137 client, parentDoc.derivedUri, mimeType, displayName); in createDocument()
DCreateDirectoryFragment.java141 resolver, mCwd.derivedUri.getAuthority()); in doInBackground()
143 client, mCwd.derivedUri, Document.MIME_TYPE_DIR, mDisplayName); in doInBackground()
DAbstractActionHandler.java336 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/
DHeaderView.java121 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/
DClearDefaultAppAction.java57 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/
DRuntimeDocumentClipper.java114 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/
DDragStartListener.java132 invalidDest.add(doc.derivedUri); in startDrag()
138 invalidDest.add(parent.derivedUri); in startDrag()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DActionHandler.java275 result = pickTarget.derivedUri; in pickDocument()
310 finishPicking(replaceTarget.derivedUri); in saveDocument()
DPickActivity.java303 mInjector.actions.finishPicking(doc.derivedUri); in onDocumentPicked()
316 uris[i] = docs.get(i).derivedUri; in onDocumentsPicked()

12