Home
last modified time | relevance | path

Searched refs:documentId (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportStorageProvider.java67 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
70 if (DOC_ID_ROOT.equals(documentId)) { in queryDocument()
72 row.add(Document.COLUMN_DOCUMENT_ID, documentId); in queryDocument()
78 addFileRow(result, getFileForDocId(documentId)); in queryDocument()
101 String documentId, String mode, CancellationSignal signal) in openDocument() argument
104 throw new FileNotFoundException("Failed to open: " + documentId + ", mode = " + mode); in openDocument()
106 return ParcelFileDescriptor.open(getFileForDocId(documentId), in openDocument()
111 public void deleteDocument(String documentId) throws FileNotFoundException { in deleteDocument() argument
112 if (!getFileForDocId(documentId).delete()) { in deleteDocument()
113 throw new FileNotFoundException("Failed to delete: " + documentId); in deleteDocument()
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java186 public boolean isChildDocument(String parentDocumentId, String documentId) { in isChildDocument() argument
240 public String renameDocument(String documentId, String displayName) in renameDocument() argument
257 public void deleteDocument(String documentId) throws FileNotFoundException { in deleteDocument() argument
308 public abstract Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
404 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
405 final Cursor cursor = queryDocument(documentId, null); in getDocumentType()
440 String documentId, String mode, CancellationSignal signal) throws FileNotFoundException; in openDocument() argument
461 String documentId, Point sizeHint, CancellationSignal signal) in openDocumentThumbnail() argument
632 final String documentId = DocumentsContract.getDocumentId(documentUri); in call() local
647 final String newDocumentId = createDocument(documentId, mimeType, displayName); in call()
[all …]
DDocumentsContract.java597 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri() argument
599 .appendPath(PATH_TREE).appendPath(documentId).build(); in buildTreeDocumentUri()
610 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri() argument
612 .authority(authority).appendPath(PATH_DOCUMENT).appendPath(documentId).build(); in buildDocumentUri()
638 public static Uri buildDocumentUriUsingTree(Uri treeUri, String documentId) { in buildDocumentUriUsingTree() argument
642 .appendPath(documentId).build(); in buildDocumentUriUsingTree()
646 public static Uri buildDocumentUriMaybeUsingTree(Uri baseUri, String documentId) { in buildDocumentUriMaybeUsingTree() argument
648 return buildDocumentUriUsingTree(baseUri, documentId); in buildDocumentUriMaybeUsingTree()
650 return buildDocumentUri(baseUri.getAuthority(), documentId); in buildDocumentUriMaybeUsingTree()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DStubProvider.java130 row.add(Root.COLUMN_DOCUMENT_ID, info.rootDocument.documentId); in queryRoots()
137 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
141 final StubDocument file = mStorage.get(documentId); in queryDocument()
181 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in createDocument()
184 return document.documentId; in createDocument()
188 public void deleteDocument(String documentId) in deleteDocument() argument
190 final StubDocument document = mStorage.get(documentId); in deleteDocument()
199 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in deleteDocument()
317 DocumentsContract.buildDocumentUri(mAuthority, document.documentId), in startWrite()
364 row.add(Document.COLUMN_DOCUMENT_ID, document.documentId); in includeDocument()
[all …]
DCopyTest.java251 final Uri dst = DocumentsContract.buildDocumentUri(AUTHORITY, mRoots.get(1).documentId); in copyToDestination()
266 mRoots.get(1).documentId); in assertDstFileCountEquals()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DDocumentInfo.java58 public String documentId; field in DocumentInfo
77 documentId = null; in reset()
97 documentId = DurableUtils.readNullableString(in); in read()
116 DurableUtils.writeNullableString(out, documentId); in write()
163 this.documentId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID); in updateFromCursor()
209 derivedUri = DocumentsContract.buildDocumentUri(authority, documentId); in deriveFields()
214 return "Document{docId=" + documentId + ", name=" + displayName + "}"; in toString()
DRootInfo.java53 public String documentId; field in RootInfo
73 documentId = null; in reset()
92 documentId = DurableUtils.readNullableString(in); in read()
111 DurableUtils.writeNullableString(out, documentId); in write()
148 root.documentId = getCursorString(cursor, Root.COLUMN_DOCUMENT_ID); in fromRootsCursor()
DDocumentStack.java90 builder.append(doc.documentId).append('#'); in buildKey()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java103 public static Uri buildState(String authority, String rootId, String documentId) { in buildState() argument
105 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) in buildState()
183 final String documentId = uri.getPathSegments().get(3); in query() local
186 new String[] { authority, rootId, documentId }, null, null, sortOrder); in query()
215 final String documentId = uri.getPathSegments().get(3); in insert() local
219 key.put(StateColumns.DOCUMENT_ID, documentId); in insert()
225 new String[] { authority, rootId, documentId }); in insert()
DDirectoryLoader.java112 mRoot.authority, mRoot.documentId); in loadInBackground()
126 mRoot.authority, mRoot.rootId, mDoc.documentId); in loadInBackground()
DDirectoryFragment.java187 builder.append(doc != null ? doc.documentId : "null"); in buildStateKey()
280 doc.authority, doc.documentId); in onActivityCreated()
416 root.authority, root.rootId, doc.documentId); in onUserModeChanged()
DBaseActivity.java516 mRoot.authority, mRoot.documentId); in doInBackground()
DDocumentsActivity.java671 pickTarget.authority, pickTarget.documentId); in onPickRequested()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java392 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
395 includeFile(result, documentId, null); in queryDocument()
439 public String getDocumentType(String documentId) throws FileNotFoundException { in getDocumentType() argument
440 final File file = getFileForDocId(documentId); in getDocumentType()
446 String documentId, String mode, CancellationSignal signal) in openDocument() argument
448 final File file = getFileForDocId(documentId); in openDocument()
449 final File visibleFile = getFileForDocId(documentId, true); in openDocument()
474 String documentId, Point sizeHint, CancellationSignal signal)
476 final File file = getFileForDocId(documentId);
DTestDocumentsProvider.java145 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
151 includeFile(result, documentId, 0); in queryDocument()
/frameworks/support/v4/api21/android/support/v4/provider/
DDocumentsContractApi21.java57 final String documentId = c.getString(0); in listFiles() local
59 documentId); in listFiles()
/frameworks/base/docs/html/guide/topics/providers/
Ddocument-provider.jd824 public Cursor queryDocument(String documentId, String[] projection) throws
830 includeFile(result, documentId, null);
846 public ParcelFileDescriptor openDocument(final String documentId,
856 final File file = getFileForDocId(documentId);
871 documentId + " has been closed!
879 + documentId + " and mode " + mode);