Home
last modified time | relevance | path

Searched refs:documentUri (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/provider/
DDocumentsContract.java907 public static String getDocumentId(Uri documentUri) { in getDocumentId() argument
908 final List<String> paths = documentUri.getPathSegments(); in getDocumentId()
916 throw new IllegalArgumentException("Invalid URI: " + documentUri); in getDocumentId()
922 public static String getTreeDocumentId(Uri documentUri) { in getTreeDocumentId() argument
923 final List<String> paths = documentUri.getPathSegments(); in getTreeDocumentId()
927 throw new IllegalArgumentException("Invalid URI: " + documentUri); in getTreeDocumentId()
964 ContentResolver resolver, Uri documentUri, Point size, CancellationSignal signal) { in getDocumentThumbnail() argument
966 documentUri.getAuthority()); in getDocumentThumbnail()
968 return getDocumentThumbnail(client, documentUri, size, signal); in getDocumentThumbnail()
971 Log.w(TAG, "Failed to load thumbnail for " + documentUri + ": " + e); in getDocumentThumbnail()
[all …]
DDocumentsProvider.java196 private void enforceTree(Uri documentUri) { in enforceTree() argument
197 if (isTreeUri(documentUri)) { in enforceTree()
198 final String parent = getTreeDocumentId(documentUri); in enforceTree()
199 final String child = getDocumentId(documentUri); in enforceTree()
726 final Uri documentUri = extras.getParcelable(DocumentsContract.EXTRA_URI); in callUnchecked() local
727 final String authority = documentUri.getAuthority(); in callUnchecked()
728 final String documentId = DocumentsContract.getDocumentId(documentUri); in callUnchecked()
738 enforceTree(documentUri); in callUnchecked()
741 enforceReadPermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
753 enforceWritePermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DTestContentProvider.java39 final Uri documentUri = extras.getParcelable(DocumentsContract.EXTRA_URI); in call() local
40 mDeleted.add(documentUri); in call()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DDocumentsProviderHelper.java137 public void writeDocument(Uri documentUri, byte[] contents) in writeDocument() argument
139 ParcelFileDescriptor file = mClient.openFile(documentUri, "w", null); in writeDocument()
145 public byte[] readDocument(Uri documentUri) throws RemoteException, IOException { in readDocument() argument
146 ParcelFileDescriptor file = mClient.openFile(documentUri, "r", null); in readDocument()
272 public void assertFileContents(Uri documentUri, byte[] expected) throws Exception { in assertFileContents() argument
275 expected, readDocument(documentUri)); in assertFileContents()
/frameworks/support/core-utils/api21/android/support/v4/provider/
DDocumentsContractApi21.java58 final Uri documentUri = DocumentsContract.buildDocumentUriUsingTree(self, in listFiles() local
60 results.add(documentUri); in listFiles()