Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/provider/
DDocumentsContract.java908 public static String getDocumentId(Uri documentUri) { in getDocumentId() argument
909 final List<String> paths = documentUri.getPathSegments(); in getDocumentId()
917 throw new IllegalArgumentException("Invalid URI: " + documentUri); in getDocumentId()
923 public static String getTreeDocumentId(Uri documentUri) { in getTreeDocumentId() argument
924 final List<String> paths = documentUri.getPathSegments(); in getTreeDocumentId()
928 throw new IllegalArgumentException("Invalid URI: " + documentUri); in getTreeDocumentId()
965 ContentResolver resolver, Uri documentUri, Point size, CancellationSignal signal) { in getDocumentThumbnail() argument
967 documentUri.getAuthority()); in getDocumentThumbnail()
969 return getDocumentThumbnail(client, documentUri, size, signal); in getDocumentThumbnail()
972 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/v4/api21/android/support/v4/provider/
DDocumentsContractApi21.java58 final Uri documentUri = DocumentsContract.buildDocumentUriUsingTree(self, in listFiles() local
60 results.add(documentUri); in listFiles()