Home
last modified time | relevance | path

Searched refs:Downloads (Results 1 – 25 of 31) sorted by relevance

12

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java20 import static android.provider.Downloads.Impl.COLUMN_DESTINATION;
21 import static android.provider.Downloads.Impl.COLUMN_IS_VISIBLE_IN_DOWNLOADS_UI;
22 import static android.provider.Downloads.Impl.COLUMN_MEDIASTORE_URI;
23 import static android.provider.Downloads.Impl.COLUMN_MEDIA_SCANNED;
24 import static android.provider.Downloads.Impl.COLUMN_OTHER_UID;
25 import static android.provider.Downloads.Impl.DESTINATION_FILE_URI;
26 import static android.provider.Downloads.Impl.DESTINATION_NON_DOWNLOADMANAGER_DOWNLOAD;
27 import static android.provider.Downloads.Impl.MEDIA_NOT_SCANNABLE;
28 import static android.provider.Downloads.Impl.MEDIA_NOT_SCANNED;
29 import static android.provider.Downloads.Impl.MEDIA_SCANNED;
[all …]
DDownloadInfo.java19 import static android.provider.Downloads.Impl.VISIBILITY_VISIBLE;
20 import static android.provider.Downloads.Impl.VISIBILITY_VISIBLE_NOTIFY_COMPLETED;
33 import android.provider.Downloads;
66 info.mId = getLong(Downloads.Impl._ID); in updateFromDatabase()
67 info.mUri = getString(Downloads.Impl.COLUMN_URI); in updateFromDatabase()
68 info.mNoIntegrity = getInt(Downloads.Impl.COLUMN_NO_INTEGRITY) == 1; in updateFromDatabase()
69 info.mHint = getString(Downloads.Impl.COLUMN_FILE_NAME_HINT); in updateFromDatabase()
70 info.mFileName = getString(Downloads.Impl._DATA); in updateFromDatabase()
71 info.mMimeType = Intent.normalizeMimeType(getString(Downloads.Impl.COLUMN_MIME_TYPE)); in updateFromDatabase()
72 info.mDestination = getInt(Downloads.Impl.COLUMN_DESTINATION); in updateFromDatabase()
[all …]
DDownloadThread.java21 import static android.provider.Downloads.Impl.COLUMN_CONTROL;
22 import static android.provider.Downloads.Impl.COLUMN_DELETED;
23 import static android.provider.Downloads.Impl.COLUMN_STATUS;
24 import static android.provider.Downloads.Impl.CONTROL_PAUSED;
25 import static android.provider.Downloads.Impl.STATUS_BAD_REQUEST;
26 import static android.provider.Downloads.Impl.STATUS_CANCELED;
27 import static android.provider.Downloads.Impl.STATUS_CANNOT_RESUME;
28 import static android.provider.Downloads.Impl.STATUS_FILE_ERROR;
29 import static android.provider.Downloads.Impl.STATUS_HTTP_DATA_ERROR;
30 import static android.provider.Downloads.Impl.STATUS_INSUFFICIENT_SPACE_ERROR;
[all …]
DDownloadIdleService.java34 import android.provider.Downloads;
101 Downloads.Impl._ID,
102 Downloads.Impl.COLUMN_STATUS,
103 Downloads.Impl.COLUMN_LAST_MODIFICATION,
104 Downloads.Impl.COLUMN_IS_VISIBLE_IN_DOWNLOADS_UI };
118 final Cursor cursor = resolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in cleanStale()
119 StaleQuery.PROJECTION, Downloads.Impl.COLUMN_STATUS + " >= '200' AND " in cleanStale()
120 + Downloads.Impl.COLUMN_LAST_MODIFICATION + " <= '" + modifiedBefore in cleanStale()
121 + "' AND " + Downloads.Impl.COLUMN_IS_VISIBLE_IN_DOWNLOADS_UI + " == '0'", in cleanStale()
129 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id), null, null); in cleanStale()
[all …]
DMediaScanTriggerJob.java19 import static android.provider.Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI;
20 import static android.provider.Downloads.Impl.COLUMN_DESTINATION;
21 import static android.provider.Downloads.Impl.COLUMN_IS_VISIBLE_IN_DOWNLOADS_UI;
22 import static android.provider.Downloads.Impl.COLUMN_MEDIASTORE_URI;
23 import static android.provider.Downloads.Impl.COLUMN_MEDIA_SCANNED;
24 import static android.provider.Downloads.Impl.DESTINATION_EXTERNAL;
25 import static android.provider.Downloads.Impl.DESTINATION_FILE_URI;
26 import static android.provider.Downloads.Impl.DESTINATION_NON_DOWNLOADMANAGER_DOWNLOAD;
27 import static android.provider.Downloads.Impl.MEDIA_SCANNED;
28 import static android.provider.Downloads.Impl._DATA;
[all …]
DDownloadReceiver.java21 import static android.provider.Downloads.Impl.AUTHORITY;
43 import android.provider.Downloads;
123 try (Cursor cursor = resolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, null, null, in handleBootCompleted()
186 final Uri uri = ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id); in hideNotification()
190 status = getInt(cursor, Downloads.Impl.COLUMN_STATUS); in hideNotification()
191 visibility = getInt(cursor, Downloads.Impl.COLUMN_VISIBILITY); in hideNotification()
200 if (Downloads.Impl.isStatusCompleted(status) && in hideNotification()
204 values.put(Downloads.Impl.COLUMN_VISIBILITY, in hideNotification()
205 Downloads.Impl.VISIBILITY_VISIBLE); in hideNotification()
230 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, ids[0]); in sendNotificationClickedIntent()
[all …]
DDownloadNotifier.java22 import static android.provider.Downloads.Impl.STATUS_QUEUED_FOR_WIFI;
23 import static android.provider.Downloads.Impl.STATUS_RUNNING;
39 import android.provider.Downloads;
141 Downloads.Impl._ID,
142 Downloads.Impl.COLUMN_STATUS,
143 Downloads.Impl.COLUMN_VISIBILITY,
144 Downloads.Impl.COLUMN_NOTIFICATION_PACKAGE,
145 Downloads.Impl.COLUMN_CURRENT_BYTES,
146 Downloads.Impl.COLUMN_TOTAL_BYTES,
147 Downloads.Impl.COLUMN_DESTINATION,
[all …]
DHelpers.java25 import static android.provider.Downloads.Impl.COLUMN_DESTINATION;
26 import static android.provider.Downloads.Impl.DESTINATION_EXTERNAL;
27 import static android.provider.Downloads.Impl.DESTINATION_FILE_URI;
28 import static android.provider.Downloads.Impl.DESTINATION_NON_DOWNLOADMANAGER_DOWNLOAD;
29 import static android.provider.Downloads.Impl.FLAG_REQUIRES_CHARGING;
30 import static android.provider.Downloads.Impl.FLAG_REQUIRES_DEVICE_IDLE;
31 import static android.provider.Downloads.Impl._DATA;
55 import android.provider.Downloads;
244 if (destination == Downloads.Impl.DESTINATION_FILE_URI) { in generateSaveFile()
273 if (destination == Downloads.Impl.DESTINATION_FILE_URI) { in generateSaveFile()
[all …]
DOpenHelper.java22 import static android.provider.Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI;
37 import android.provider.Downloads.Impl.RequestHeaders;
74 MediaStore.Downloads.EXTERNAL_CONTENT_URI, mediaStoreId); in buildViewIntentForMediaStoreDownload()
79 cursor.getColumnIndex(MediaStore.Downloads.MIME_TYPE)); in buildViewIntentForMediaStoreDownload()
89 getCursorUri(cursor, MediaStore.Downloads.DOWNLOAD_URI)); in buildViewIntentForMediaStoreDownload()
91 getCursorUri(cursor, MediaStore.Downloads.REFERER_URI)); in buildViewIntentForMediaStoreDownload()
93 MediaStore.Downloads.OWNER_PACKAGE_NAME); in buildViewIntentForMediaStoreDownload()
DDownloadScanner.java31 import android.provider.Downloads;
170 values.put(Downloads.Impl.COLUMN_MEDIA_SCANNED, 1); in onScanCompleted()
171 values.put(Downloads.Impl.COLUMN_MEDIAPROVIDER_URI, uri.toString()); in onScanCompleted()
175 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, req.id); in onScanCompleted()
DStopRequestException.java18 import static android.provider.Downloads.Impl.STATUS_UNHANDLED_HTTP_CODE;
19 import static android.provider.Downloads.Impl.STATUS_UNHANDLED_REDIRECT;
DDownloadStorageProvider.java49 import android.provider.Downloads;
828 MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL), id); in getRelativePathAndDisplayNameForDownload()
888 final Uri uriInner = MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL); in includeDownloadsFromMediaStore()
912 notificationUris.add(MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL)); in includeDownloadsFromMediaStore()
1178 mResolver.notifyChange(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, null, false); in onEvent()
1179 mResolver.notifyChange(Downloads.Impl.CONTENT_URI, null, false); in onEvent()
DMediaStoreDownloadsHelper.java62 return MediaStore.Downloads.getContentUri(volume, getMediaStoreId(docId)); in getMediaStoreUri()
DDownloadJobService.java19 import static android.provider.Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI;
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/
DPublicApiAccessTest.java30 import android.provider.Downloads;
51 Downloads.Impl.COLUMN_COOKIE_DATA,
52 Downloads.Impl.COLUMN_REFERER,
53 Downloads.Impl.COLUMN_USER_AGENT,
54 Downloads.Impl.COLUMN_NO_INTEGRITY,
55 Downloads.Impl.COLUMN_NOTIFICATION_CLASS,
56 Downloads.Impl.COLUMN_NOTIFICATION_EXTRAS,
57 Downloads.Impl.COLUMN_OTHER_UID,
58 Downloads.Impl.COLUMN_APP_DATA,
59 Downloads.Impl.COLUMN_CONTROL,
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadProviderFunctionalTest.java30 import android.provider.Downloads;
60 assertEquals(Downloads.Impl.STATUS_PENDING, getDownloadStatus(downloadUri)); in testDownloadTextFile()
62 runUntilStatus(downloadUri, Downloads.Impl.STATUS_SUCCESS); in testDownloadTextFile()
75 updateDownload(downloadUri, Downloads.Impl.COLUMN_DESTINATION, in testDownloadToCache()
76 Integer.toString(Downloads.Impl.DESTINATION_CACHE_PARTITION)); in testDownloadToCache()
77 runUntilStatus(downloadUri, Downloads.Impl.STATUS_SUCCESS); in testDownloadToCache()
92 runUntilStatus(downloadUri, Downloads.Impl.STATUS_SUCCESS); in testRoaming()
96 updateDownload(downloadUri, Downloads.Impl.COLUMN_DESTINATION, in testRoaming()
97 Integer.toString(Downloads.Impl.DESTINATION_CACHE_PARTITION_NOROAMING)); in testRoaming()
98 runUntilStatus(downloadUri, Downloads.Impl.STATUS_WAITING_FOR_NETWORK); in testRoaming()
[all …]
DHelpersTest.java19 import static android.provider.Downloads.Impl.COLUMN_DESTINATION;
20 import static android.provider.Downloads.Impl.DESTINATION_CACHE_PARTITION_PURGEABLE;
21 import static android.provider.Downloads.Impl.DESTINATION_EXTERNAL;
22 import static android.provider.Downloads.Impl.DESTINATION_FILE_URI;
23 import static android.provider.Downloads.Impl.DESTINATION_NON_DOWNLOADMANAGER_DOWNLOAD;
24 import static android.provider.Downloads.Impl._DATA;
25 import static android.provider.Downloads.Impl._ID;
45 import android.provider.Downloads;
92 "video/mp4", Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFile()
99 null, null, null, null, Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFileDupes()
[all …]
DAbstractDownloadProviderFunctionalTest.java38 import android.provider.Downloads;
235 try (Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in assertDatabaseEmpty()
242 try (Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, null, in assertDatabaseSecureAgainstBadSelection()
256 String[] columns = new String[] {Downloads.Impl._DATA}; in cleanUpDownloads()
257 Cursor cursor = mResolver.query(Downloads.Impl.CONTENT_URI, columns, null, null, null); in cleanUpDownloads()
268 mResolver.delete(Downloads.Impl.CONTENT_URI, null, null); in cleanUpDownloads()
DPublicApiFunctionalTest.java50 import android.provider.Downloads;
551 intent.setData(Uri.parse(Downloads.Impl.CONTENT_URI + "/" + download.mId)); in testNotificationClickedBroadcast()
573 intent.setData(Uri.parse(Downloads.Impl.CONTENT_URI + "/" + download.mId)); in testNotificationCancelDownloadClicked()
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DDrmConvertSession.java24 import com.android.messaging.mmslib.Downloads;
128 int result = Downloads.Impl.STATUS_UNKNOWN_ERROR; in close()
135 result = Downloads.Impl.STATUS_NOT_ACCEPTABLE; in close()
142 result = Downloads.Impl.STATUS_SUCCESS; in close()
144 result = Downloads.Impl.STATUS_FILE_ERROR; in close()
147 result = Downloads.Impl.STATUS_FILE_ERROR; in close()
150 result = Downloads.Impl.STATUS_FILE_ERROR; in close()
160 result = Downloads.Impl.STATUS_FILE_ERROR; in close()
/packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/
DDownloadProviderPermissionsTest.java25 import android.provider.Downloads;
91 values.put(Downloads.Impl.COLUMN_URI, "foo"); in testWriteDownloadProvider()
92 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values); in testWriteDownloadProvider()
/packages/apps/Messaging/src/com/android/messaging/mmslib/
DDownloads.java29 public final class Downloads { class
30 private Downloads() {} in Downloads() method in Downloads
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java180 insertUri = contentResolver.insert(MediaStore.Downloads.EXTERNAL_CONTENT_URI, in generateFileInfo()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java152 MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), values); in testForwardLock_130680734()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java685 final Uri uri = MediaStore.Downloads in testBuildData_Downloads()
1388 assertNull(mp.getRedactedUri(MediaStore.Downloads.getContentUri(volumeName))); in testRedactionForInvalidUris()

12