Home
last modified time | relevance | path

Searched refs:docId (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java93 public String docId; field in ExternalStorageProvider.RootInfo
252 root.docId = getDocIdForFile(root.path); in updateVolumesLocked()
283 root.docId = getDocIdForFile(root.path); in updateVolumesLocked()
369 protected File getFileForDocId(String docId, boolean visible) throws FileNotFoundException { in getFileForDocId() argument
370 return getFileForDocId(docId, visible, true); in getFileForDocId()
373 private File getFileForDocId(String docId, boolean visible, boolean mustExist) in getFileForDocId() argument
375 RootInfo root = getRootFromDocId(docId); in getFileForDocId()
376 return buildFile(root, docId, visible, mustExist); in getFileForDocId()
379 private Pair<RootInfo, File> resolveDocId(String docId, boolean visible) in resolveDocId() argument
381 RootInfo root = getRootFromDocId(docId); in resolveDocId()
[all …]
DTestDocumentsProvider.java311 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) in openDocument() argument
319 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException { in openDocumentThumbnail() argument
393 private static void includeFile(MatrixCursor result, String docId, int flags) { in includeFile() argument
395 row.add(Document.COLUMN_DOCUMENT_ID, docId); in includeFile()
396 row.add(Document.COLUMN_DISPLAY_NAME, docId); in includeFile()
400 if (MY_DOC_ID.equals(docId)) { in includeFile()
403 } else if (MY_DOC_NULL.equals(docId)) { in includeFile()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java96 protected abstract File getFileForDocId(String docId, boolean visible) in getFileForDocId() argument
101 protected abstract Uri buildNotificationUri(String docId); in buildNotificationUri() argument
107 protected void onDocIdChanged(String docId) { in onDocIdChanged() argument
124 public boolean isChildDocument(String parentDocId, String docId) { in isChildDocument() argument
127 final File doc = getFileForDocId(docId).getCanonicalFile(); in isChildDocument()
131 "Failed to determine if " + docId + " is child of " + parentDocId + ": " + e); in isChildDocument()
233 public String createDocument(String docId, String mimeType, String displayName) in createDocument() argument
237 final File parent = getFileForDocId(docId); in createDocument()
267 public String renameDocument(String docId, String displayName) throws FileNotFoundException { in renameDocument() argument
272 final File before = getFileForDocId(docId); in renameDocument()
[all …]
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportStorageProvider.java107 protected Uri buildNotificationUri(String docId) { in buildNotificationUri() argument
108 return DocumentsContract.buildChildDocumentsUri(AUTHORITY, docId); in buildNotificationUri()
145 protected RowBuilder includeFile(MatrixCursor result, String docId, File file) in includeFile() argument
147 RowBuilder row = super.includeFile(result, docId, file); in includeFile()
/frameworks/base/core/tests/coretests/src/android/provider/
DDocumentsProviderTest.java118 private static Uri buildTreeDocumentUri(String authority, String parentDocId, String docId) { in buildTreeDocumentUri() argument
120 return DocumentsContract.buildDocumentUriUsingTree(treeUri, docId); in buildTreeDocumentUri()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsProvider.java556 public @Nullable Bundle getDocumentMetadata(String docId) throws FileNotFoundException { in getDocumentMetadata() argument
557 String mimeType = getDocumentType(docId); in getDocumentMetadata()
566 openDocument(docId, "r", null)); in getDocumentMetadata()