/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 178 …public Path findDocumentPath(@Nullable String parentDocId, String docId) throws FileNotFoundExcept… in findDocumentPath() argument 190 final File doc = getFileForDocId(docId); in findDocumentPath() 222 public void deleteDocument(String docId) throws FileNotFoundException { in deleteDocument() argument 226 if (RawDocumentsHelper.isRawDocId(docId) || isMediaStoreDownload(docId)) { in deleteDocument() 227 super.deleteDocument(docId); in deleteDocument() 231 if (mDm.remove(Long.parseLong(docId)) != 1) { in deleteDocument() 232 throw new IllegalStateException("Failed to delete " + docId); in deleteDocument() 240 public String renameDocument(String docId, String displayName) in renameDocument() argument 245 if (RawDocumentsHelper.isRawDocId(docId) in renameDocument() 246 || isMediaStoreDownloadDir(docId)) { in renameDocument() [all …]
|
D | MediaStoreDownloadsHelper.java | 31 public static boolean isMediaStoreDownload(String docId) { in isMediaStoreDownload() argument 32 return docId != null && (docId.startsWith(MEDIASTORE_DOWNLOAD_FILE_PREFIX) in isMediaStoreDownload() 33 || docId.startsWith(MEDIASTORE_DOWNLOAD_DIR_PREFIX)); in isMediaStoreDownload() 36 public static long getMediaStoreId(String docId) { in getMediaStoreId() argument 37 return Long.parseLong(getMediaStoreIdString(docId)); in getMediaStoreId() 41 public static String getMediaStoreIdString(String docId) { in getMediaStoreIdString() argument 42 final int index = docId.indexOf(":"); in getMediaStoreIdString() 43 return docId.substring(index + 1); in getMediaStoreIdString() 46 public static boolean isMediaStoreDownloadDir(String docId) { in isMediaStoreDownloadDir() argument 47 return docId != null && docId.startsWith(MEDIASTORE_DOWNLOAD_DIR_PREFIX); in isMediaStoreDownloadDir() [all …]
|
D | RawDocumentsHelper.java | 37 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/ |
D | MediaDocumentsProvider.java | 271 private static Ident getIdentForDocId(String docId) { in getIdentForDocId() argument 273 final int split = docId.indexOf(':'); in getIdentForDocId() 275 ident.type = docId; in getIdentForDocId() 278 ident.type = docId.substring(0, split); in getIdentForDocId() 279 ident.id = Long.parseLong(docId.substring(split + 1)); in getIdentForDocId() 378 private Uri getUriForDocumentId(String docId) { in getUriForDocumentId() argument 379 final Ident ident = getIdentForDocId(docId); in getUriForDocumentId() 390 throw new UnsupportedOperationException("Unsupported document " + docId); in getUriForDocumentId() 395 public void deleteDocument(String docId) throws FileNotFoundException { in deleteDocument() argument 396 final Uri target = getUriForDocumentId(docId); in deleteDocument() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ModelId.java | 62 public static final String build(String authority, String docId) { in build() argument 63 if (authority == null || authority.isEmpty() || docId == null || docId.isEmpty()) { in build() 66 return authority + "|" + docId; in build()
|
D | LoadDocStackTask.java | 68 final String docId = DocumentsContract.getDocumentId(uris[0]); in run() local 69 docUri = DocumentsContract.buildDocumentUri(uris[0].getAuthority(), docId); in run()
|
D | DocumentsAccess.java | 98 for (String docId : docIds) { in getDocuments() 99 final Uri uri = DocumentsContract.buildDocumentUri(authority, docId); in getDocuments()
|
D | IconUtils.java | 44 Context context, String mimeType, String authority, String docId, int mode) { in loadMimeIcon() argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 183 public boolean isChildDocument(String parentDocId, String docId) { in isChildDocument() argument 185 final StubDocument childDocument = mStorage.get(docId); in isChildDocument() 338 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) in openDocument() argument 341 final StubDocument document = mStorage.get(docId); in openDocument() 350 if (mSimulateReadErrorIds.contains(docId)) { in openDocument() 379 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException { in openDocumentThumbnail() argument 385 String docId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedDocument() argument 387 final StubDocument document = mStorage.get(docId); in openTypedDocument() 397 if (mSimulateReadErrorIds.contains(docId)) { in openTypedDocument()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | DocumentStackTest.java | 59 private static DocumentInfo createDir(String docId) { in createDir() argument 62 info.documentId = docId; in createDir() 63 info.displayName = docId; in createDir()
|
D | DocumentInfoTest.java | 65 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { in createDocInfo() argument 68 doc.documentId = docId; in createDocInfo()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ModelTest.java | 146 String docId = DocumentInfo.getCursorString(cOut, Document.COLUMN_DOCUMENT_ID); in testModelIdIsUnique() local 150 b0.set(Integer.parseInt(docId)); in testModelIdIsUnique() 153 b1.set(Integer.parseInt(docId)); in testModelIdIsUnique()
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | StressProvider.java | 164 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/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestDocumentsAdapter.java | 118 public int getAdapterPosition(String docId) { in getAdapterPosition() argument 119 return mModelIds.indexOf(docId); in getAdapterPosition()
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | StorageProvider.java | 160 protected Uri buildNotificationUri(String docId) { in buildNotificationUri() argument 161 return DocumentsContract.buildChildDocumentsUri(AUTHORITY, docId); in buildNotificationUri()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | ResourcesProvider.java | 128 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) in openDocument() argument 130 final Integer resourceId = RESOURCES.get(docId); in openDocument()
|