Home
last modified time | relevance | path

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

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java134 public Path findDocumentPath(String parentDocId, String docId) throws FileNotFoundException { in findDocumentPath() argument
142 final File doc = getFileForDocId(docId); in findDocumentPath()
175 public void deleteDocument(String docId) throws FileNotFoundException { in deleteDocument() argument
179 if (RawDocumentsHelper.isRawDocId(docId)) { in deleteDocument()
180 super.deleteDocument(docId); in deleteDocument()
183 if (mDm.remove(Long.parseLong(docId)) != 1) { in deleteDocument()
184 throw new IllegalStateException("Failed to delete " + docId); in deleteDocument()
192 public String renameDocument(String docId, String displayName) in renameDocument() argument
197 if (RawDocumentsHelper.isRawDocId(docId)) { in renameDocument()
198 return super.renameDocument(docId, displayName); in renameDocument()
[all …]
DRawDocumentsHelper.java37 public static boolean isRawDocId(String docId) { in isRawDocId() argument
38 return docId != null && docId.startsWith(RAW_PREFIX); in isRawDocId()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java165 private static Ident getIdentForDocId(String docId) { in getIdentForDocId() argument
167 final int split = docId.indexOf(':'); in getIdentForDocId()
169 ident.type = docId; in getIdentForDocId()
172 ident.type = docId.substring(0, split); in getIdentForDocId()
173 ident.id = Long.parseLong(docId.substring(split + 1)); in getIdentForDocId()
190 private Uri getUriForDocumentId(String docId) { in getUriForDocumentId() argument
191 final Ident ident = getIdentForDocId(docId); in getUriForDocumentId()
202 throw new UnsupportedOperationException("Unsupported document " + docId); in getUriForDocumentId()
207 public void deleteDocument(String docId) throws FileNotFoundException { in deleteDocument() argument
208 final Uri target = getUriForDocumentId(docId); in deleteDocument()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java180 public boolean isChildDocument(String parentDocId, String docId) { in isChildDocument() argument
182 final StubDocument childDocument = mStorage.get(docId); in isChildDocument()
335 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) in openDocument() argument
338 final StubDocument document = mStorage.get(docId); in openDocument()
347 if (mSimulateReadErrorIds.contains(docId)) { in openDocument()
372 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException { in openDocumentThumbnail() argument
378 String docId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedDocument() argument
380 final StubDocument document = mStorage.get(docId); in openTypedDocument()
390 if (mSimulateReadErrorIds.contains(docId)) { in openTypedDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DOpenExternalDirectoryActivity.java311 final String docId = bundle == null ? null : bundle.getString("DOC_ID"); in getGrantedUriPermission() local
312 if (docId == null) { in getGrantedUriPermission()
317 if (DEBUG) Log.d(TAG, "doc id for " + file + ": " + docId); in getGrantedUriPermission()
319 final Uri uri = DocumentsContract.buildTreeDocumentUri(Providers.AUTHORITY_STORAGE, docId); in getGrantedUriPermission()
321 Log.e(TAG, "Could not get URI for doc id " + docId); in getGrantedUriPermission()
DLoadDocStackTask.java69 final String docId = DocumentsContract.getDocumentId(uris[0]); in run() local
70 docUri = DocumentsContract.buildDocumentUri(uris[0].getAuthority(), docId); in run()
DDocumentsAccess.java95 for (String docId : docIds) { in getDocuments()
96 final Uri uri = DocumentsContract.buildDocumentUri(authority, docId); in getDocuments()
DIconUtils.java43 Context context, String mimeType, String authority, String docId, int mode) { in loadMimeIcon() argument
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java135 String docId = DocumentInfo.getCursorString(cOut, Document.COLUMN_DOCUMENT_ID); in testModelIdIsUnique() local
139 b0.set(Integer.parseInt(docId)); in testModelIdIsUnique()
142 b1.set(Integer.parseInt(docId)); in testModelIdIsUnique()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentStackTest.java57 private static DocumentInfo createDir(String docId) { in createDir() argument
60 info.documentId = docId; in createDir()
61 info.displayName = docId; in createDir()
DDocumentInfoTest.java56 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { in createDocInfo() argument
59 doc.documentId = docId; in createDocInfo()
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DStressProvider.java164 public AssetFileDescriptor openDocumentThumbnail(String docId, Point sizeHint, in openDocumentThumbnail() argument
167 final StubDocument document = mDocuments.get(docId); in openDocumentThumbnail()
172 public ParcelFileDescriptor openDocument(String docId, String mode, in openDocument() argument
/packages/apps/Settings/src/com/android/settings/search2/
DCursorToSearchResultConverter.java124 final String docId = cursor.getString(COLUMN_INDEX_ID); in buildSingleSearchResultFromCursor() local
129 if (mKeys.contains(docId)) { in buildSingleSearchResultFromCursor()
132 mKeys.add(docId); in buildSingleSearchResultFromCursor()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DResourcesProvider.java122 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) in openDocument() argument
124 final Integer resourceId = RESOURCES.get(docId); in openDocument()