Loading api/current.txt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -4622,8 +4622,8 @@ package android.app { } } public class DownloadManager { public class DownloadManager { method public long addCompletedDownload(String, String, boolean, String, String, long, boolean); method @Deprecated public long addCompletedDownload(String, String, boolean, String, String, long, boolean); method public long addCompletedDownload(String, String, boolean, String, String, long, boolean, android.net.Uri, android.net.Uri); method @Deprecated public long addCompletedDownload(String, String, boolean, String, String, long, boolean, android.net.Uri, android.net.Uri); method public long enqueue(android.app.DownloadManager.Request); method public long enqueue(android.app.DownloadManager.Request); method public static Long getMaxBytesOverMobile(android.content.Context); method public static Long getMaxBytesOverMobile(android.content.Context); method public String getMimeTypeForDownloadedFile(long); method public String getMimeTypeForDownloadedFile(long); core/java/android/app/DownloadManager.java +20 −0 Original line number Original line Diff line number Diff line Loading @@ -1370,7 +1370,12 @@ public class DownloadManager { * @param showNotification true if a notification is to be sent, false otherwise * @param showNotification true if a notification is to be sent, false otherwise * @return an ID for the download entry added to the downloads app, unique across the system * @return an ID for the download entry added to the downloads app, unique across the system * This ID is used to make future calls related to this download. * This ID is used to make future calls related to this download. * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification) { boolean showNotification) { Loading Loading @@ -1411,7 +1416,12 @@ public class DownloadManager { * @param referer the HTTP Referer for the download * @param referer the HTTP Referer for the download * @return an ID for the download entry added to the downloads app, unique across the system * @return an ID for the download entry added to the downloads app, unique across the system * This ID is used to make future calls related to this download. * This ID is used to make future calls related to this download. * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, Uri uri, Uri referer) { boolean showNotification, Uri uri, Uri referer) { Loading @@ -1430,8 +1440,13 @@ public class DownloadManager { * {@link Environment#getExternalStoragePublicDirectory(String)} with * {@link Environment#getExternalStoragePublicDirectory(String)} with * {@link Environment#DIRECTORY_DOWNLOADS}). * {@link Environment#DIRECTORY_DOWNLOADS}). * * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. * * {@hide} * {@hide} */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, boolean allowWrite) { boolean showNotification, boolean allowWrite) { Loading @@ -1451,7 +1466,12 @@ public class DownloadManager { * {@link Environment#DIRECTORY_DOWNLOADS}). * {@link Environment#DIRECTORY_DOWNLOADS}). * * * {@hide} * {@hide} * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, boolean allowWrite, Uri uri, Uri referer) { boolean showNotification, boolean allowWrite, Uri uri, Uri referer) { Loading Loading
api/current.txt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -4622,8 +4622,8 @@ package android.app { } } public class DownloadManager { public class DownloadManager { method public long addCompletedDownload(String, String, boolean, String, String, long, boolean); method @Deprecated public long addCompletedDownload(String, String, boolean, String, String, long, boolean); method public long addCompletedDownload(String, String, boolean, String, String, long, boolean, android.net.Uri, android.net.Uri); method @Deprecated public long addCompletedDownload(String, String, boolean, String, String, long, boolean, android.net.Uri, android.net.Uri); method public long enqueue(android.app.DownloadManager.Request); method public long enqueue(android.app.DownloadManager.Request); method public static Long getMaxBytesOverMobile(android.content.Context); method public static Long getMaxBytesOverMobile(android.content.Context); method public String getMimeTypeForDownloadedFile(long); method public String getMimeTypeForDownloadedFile(long);
core/java/android/app/DownloadManager.java +20 −0 Original line number Original line Diff line number Diff line Loading @@ -1370,7 +1370,12 @@ public class DownloadManager { * @param showNotification true if a notification is to be sent, false otherwise * @param showNotification true if a notification is to be sent, false otherwise * @return an ID for the download entry added to the downloads app, unique across the system * @return an ID for the download entry added to the downloads app, unique across the system * This ID is used to make future calls related to this download. * This ID is used to make future calls related to this download. * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification) { boolean showNotification) { Loading Loading @@ -1411,7 +1416,12 @@ public class DownloadManager { * @param referer the HTTP Referer for the download * @param referer the HTTP Referer for the download * @return an ID for the download entry added to the downloads app, unique across the system * @return an ID for the download entry added to the downloads app, unique across the system * This ID is used to make future calls related to this download. * This ID is used to make future calls related to this download. * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, Uri uri, Uri referer) { boolean showNotification, Uri uri, Uri referer) { Loading @@ -1430,8 +1440,13 @@ public class DownloadManager { * {@link Environment#getExternalStoragePublicDirectory(String)} with * {@link Environment#getExternalStoragePublicDirectory(String)} with * {@link Environment#DIRECTORY_DOWNLOADS}). * {@link Environment#DIRECTORY_DOWNLOADS}). * * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. * * {@hide} * {@hide} */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, boolean allowWrite) { boolean showNotification, boolean allowWrite) { Loading @@ -1451,7 +1466,12 @@ public class DownloadManager { * {@link Environment#DIRECTORY_DOWNLOADS}). * {@link Environment#DIRECTORY_DOWNLOADS}). * * * {@hide} * {@hide} * * @deprecated Apps should instead contribute files to * {@link android.provider.MediaStore.Downloads} collection to make them available to user * as part of Downloads. */ */ @Deprecated public long addCompletedDownload(String title, String description, public long addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, boolean allowWrite, Uri uri, Uri referer) { boolean showNotification, boolean allowWrite, Uri uri, Uri referer) { Loading