Searched refs:download (Results 1 - 9 of 9) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DPublicApiFunctionalTest.java107 Download download = enqueueRequest(getRequest());
109 download.getLongField(DownloadManager.COLUMN_STATUS));
111 download.getStringField(DownloadManager.COLUMN_URI));
112 assertEquals(download.mId, download.getLongField(DownloadManager.COLUMN_ID));
114 download.getLongField(DownloadManager.COLUMN_LAST_MODIFIED_TIMESTAMP));
117 download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL);
122 Uri localUri = Uri.parse(download.getStringField(DownloadManager.COLUMN_LOCAL_URI));
125 assertEquals("text/plain", download.getStringField(DownloadManager.COLUMN_MEDIA_TYPE));
128 assertEquals(size, download
715 checkCompleteDownload(Download download) argument
[all...]
H A DThreadingTest.java51 * a download.
55 Download download = enqueueRequest(getRequest());
56 while (download.getStatus() != DownloadManager.STATUS_SUCCESSFUL) {
93 fail("Another download already claimed " + file);
H A DStorageTest.java207 // At this point, hide all other disk space to make the download fail;
232 final Download download = enqueueRequest(req);
233 download.runUntilStatus(expectedStatus);
236 MoreAsserts.assertEquals(DOWNLOAD_BODY, download.getRawContents());
240 assertEquals(expectedReason, download.getLongField(COLUMN_REASON));
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java38 return download(jc, url, fos);
66 public static boolean download(JobContext jc, URL url, OutputStream output) { method in class:DownloadUtils
73 Log.w(TAG, "fail to download", t);
H A DUriImage.java116 mCacheEntry = mApplication.getDownloadCache().download(jc, url);
119 Log.w(TAG, "download failed " + url);
131 Log.w(TAG, "download error", t);
H A DDownloadCache.java114 public Entry download(JobContext jc, URL url) { method in class:DownloadCache
137 // Finally, we need to download the file ....
140 if (task == null) { // if not, start the download task now
224 public static final String DATABASE_NAME = "download.db";
322 // download from url to tempFile
328 Log.e(TAG, String.format("fail to download %s", mUrl), e);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadNotifier.java100 * Notify the current speed of an active download, used for calculating
362 private static boolean isActiveAndVisible(DownloadInfo download) { argument
363 return download.mStatus == STATUS_RUNNING &&
364 (download.mVisibility == VISIBILITY_VISIBLE
365 || download.mVisibility == VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
368 private static boolean isCompleteAndVisible(DownloadInfo download) { argument
369 return Downloads.Impl.isStatusCompleted(download.mStatus) &&
370 (download.mVisibility == VISIBILITY_VISIBLE_NOTIFY_COMPLETED
371 || download.mVisibility == VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION);
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
H A DBluetoothMapEmailProvider.java71 * @param download true if any missing part of the message shall be downloaded
72 * before written to the stream. The download flag will determine
78 boolean includeAttachment, boolean download, FileOutputStream out)
194 boolean download = false;
204 download = true;
206 download = true;
210 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout);
77 WriteMessageToStream(long accountId, long messageId, boolean includeAttachment, boolean download, FileOutputStream out) argument
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
H A DOmtpVvmSyncService.java55 /** Only download from the server. */
261 downloadSuccess = download(imapHelper);
265 + "] download succeeded: [" + String.valueOf(downloadSuccess) + "]");
362 private boolean download(ImapHelper imapHelper) { method in class:OmtpVvmSyncService

Completed in 101 milliseconds