Home
last modified time | relevance | path

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

/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_MEDIA_SCANNED;
22 import static android.provider.Downloads.Impl.COLUMN_MIME_TYPE;
23 import static android.provider.Downloads.Impl.DESTINATION_NON_DOWNLOADMANAGER_DOWNLOAD;
24 import static android.provider.Downloads.Impl._DATA;
52 import android.provider.Downloads;
117 "my_downloads/#/" + Downloads.Impl.RequestHeaders.URI_SEGMENT,
120 "all_downloads/#/" + Downloads.Impl.RequestHeaders.URI_SEGMENT,
126 "download/#/" + Downloads.Impl.RequestHeaders.URI_SEGMENT,
129 Downloads.Impl.PUBLICLY_ACCESSIBLE_DOWNLOADS_URI_SEGMENT + "/#",
[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.java19 import static android.provider.Downloads.Impl.COLUMN_CONTROL;
20 import static android.provider.Downloads.Impl.COLUMN_DELETED;
21 import static android.provider.Downloads.Impl.COLUMN_STATUS;
22 import static android.provider.Downloads.Impl.CONTROL_PAUSED;
23 import static android.provider.Downloads.Impl.STATUS_BAD_REQUEST;
24 import static android.provider.Downloads.Impl.STATUS_CANCELED;
25 import static android.provider.Downloads.Impl.STATUS_CANNOT_RESUME;
26 import static android.provider.Downloads.Impl.STATUS_FILE_ERROR;
27 import static android.provider.Downloads.Impl.STATUS_HTTP_DATA_ERROR;
28 import static android.provider.Downloads.Impl.STATUS_PAUSED_BY_APP;
[all …]
DDownloadReceiver.java39 import android.provider.Downloads;
126 try (Cursor cursor = resolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, null, null, in handleBootCompleted()
147 final int disowned = resolver.update(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, values, in handleUidRemoved()
148 Constants.UID + "=" + uid + " AND " + Downloads.Impl.COLUMN_DESTINATION + " IN (" in handleUidRemoved()
149 + Downloads.Impl.DESTINATION_EXTERNAL + "," in handleUidRemoved()
150 + Downloads.Impl.DESTINATION_FILE_URI + ")", in handleUidRemoved()
154 final int deleted = resolver.delete(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in handleUidRemoved()
192 final Uri uri = ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id); in hideNotification()
196 status = getInt(cursor, Downloads.Impl.COLUMN_STATUS); in hideNotification()
197 visibility = getInt(cursor, Downloads.Impl.COLUMN_VISIBILITY); in hideNotification()
[all …]
DDownloadIdleService.java33 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 …]
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.java23 import static android.provider.Downloads.Impl.FLAG_REQUIRES_CHARGING;
24 import static android.provider.Downloads.Impl.FLAG_REQUIRES_DEVICE_IDLE;
43 import android.provider.Downloads;
208 if (destination == Downloads.Impl.DESTINATION_FILE_URI) { in generateSaveFile()
237 if (destination == Downloads.Impl.DESTINATION_FILE_URI) { in generateSaveFile()
550 case Downloads.Impl.DESTINATION_CACHE_PARTITION: in getDestinationDirectory()
551 case Downloads.Impl.DESTINATION_CACHE_PARTITION_PURGEABLE: in getDestinationDirectory()
552 case Downloads.Impl.DESTINATION_CACHE_PARTITION_NOROAMING: in getDestinationDirectory()
559 case Downloads.Impl.DESTINATION_SYSTEMCACHE_PARTITION: in getDestinationDirectory()
567 case Downloads.Impl.DESTINATION_EXTERNAL: in getDestinationDirectory()
DDownloadScanner.java31 import android.provider.Downloads;
162 values.put(Downloads.Impl.COLUMN_MEDIA_SCANNED, 1); in onScanCompleted()
164 values.put(Downloads.Impl.COLUMN_MEDIAPROVIDER_URI, uri.toString()); in onScanCompleted()
169 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;
DOpenHelper.java22 import static android.provider.Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI;
36 import android.provider.Downloads.Impl.RequestHeaders;
DStorageUtils.java20 import static android.provider.Downloads.Impl.STATUS_INSUFFICIENT_SPACE_ERROR;
32 import android.provider.Downloads;
DDownloadStorageProvider.java39 import android.provider.Downloads;
647 mResolver.notifyChange(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, null, false); in onEvent()
648 mResolver.notifyChange(Downloads.Impl.CONTENT_URI, null, false); in onEvent()
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.java23 import android.provider.Downloads;
35 Downloads.Impl.COLUMN_COOKIE_DATA,
36 Downloads.Impl.COLUMN_REFERER,
37 Downloads.Impl.COLUMN_USER_AGENT,
38 Downloads.Impl.COLUMN_NO_INTEGRITY,
39 Downloads.Impl.COLUMN_NOTIFICATION_CLASS,
40 Downloads.Impl.COLUMN_NOTIFICATION_EXTRAS,
41 Downloads.Impl.COLUMN_OTHER_UID,
42 Downloads.Impl.COLUMN_APP_DATA,
43 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.java20 import android.provider.Downloads;
46 "video/mp4", Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFile()
53 null, null, null, null, Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFileDupes()
57 null, null, null, null, Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFileDupes()
67 "video/mp4", Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFileNoExtension()
77 "dispo", "locat", "video/mp4", Downloads.Impl.DESTINATION_FILE_URI); in testGenerateSaveFileHint()
85 null, "video/mp4", Downloads.Impl.DESTINATION_CACHE_PARTITION); in testGenerateSaveFileDisposition()
DAbstractDownloadProviderFunctionalTest.java32 import android.provider.Downloads;
195 Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in isDatabaseEmpty()
207 cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, null, in isDatabaseSecureAgainstBadSelection()
228 String[] columns = new String[] {Downloads.Impl._DATA}; in cleanUpDownloads()
229 Cursor cursor = mResolver.query(Downloads.Impl.CONTENT_URI, columns, null, null, null); in cleanUpDownloads()
240 mResolver.delete(Downloads.Impl.CONTENT_URI, null, null); in cleanUpDownloads()
DStorageTest.java23 import static android.provider.Downloads.Impl.DESTINATION_CACHE_PARTITION;
24 import static android.provider.Downloads.Impl.DESTINATION_SYSTEMCACHE_PARTITION;
30 import android.provider.Downloads.Impl;
DPublicApiFunctionalTest.java48 import android.provider.Downloads;
548 intent.setData(Uri.parse(Downloads.Impl.CONTENT_URI + "/" + download.mId)); in testNotificationClickedBroadcast()
565 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.java26 import android.provider.Downloads;
78 values.put(Downloads.Impl.COLUMN_URI, "foo"); in testWriteDownloadProvider()
79 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