Home
last modified time | relevance | path

Searched full:download (Results 1 – 25 of 2939) sorted by relevance

12345678910>>...118

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/
DDefaultDownloadIndexTest.java60 Download download = new DownloadBuilder(id).build(); in addAndGetDownload_nonExistingId_returnsTheSameDownload() local
62 downloadIndex.putDownload(download); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
63 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
65 assertEqual(readDownload, download); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
74 Download download = in addAndGetDownload_existingId_returnsUpdatedDownload() local
79 .setState(Download.STATE_FAILED) in addAndGetDownload_existingId_returnsUpdatedDownload()
83 .setFailureReason(Download.FAILURE_REASON_UNKNOWN) in addAndGetDownload_existingId_returnsUpdatedDownload()
92 downloadIndex.putDownload(download); in addAndGetDownload_existingId_returnsUpdatedDownload()
93 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_existingId_returnsUpdatedDownload()
96 assertEqual(readDownload, download); in addAndGetDownload_existingId_returnsUpdatedDownload()
[all …]
DDownloadManagerTest.java25 import com.google.android.exoplayer2.offline.Download.State;
112 // Two download requests on first task in multipleRequestsForTheSameContent_executedOnTheSameTask()
114 // One download, one remove requests on second task in multipleRequestsForTheSameContent_executedOnTheSameTask()
250 // Finish one download and keep one running. in removeAllDownloads_removesAllDownloads()
380 List<Download> downloads = downloadManager.getCurrentDownloads(); in getCurrentDownloads_returnsCurrentDownloads()
410 // When a new remove request is added, it cancels stopped download requests with the same media. in pauseAndResume()
415 // New download requests can be added but they don't start. in pauseAndResume()
437 runOnMainThread(() -> downloadManager.setStopReason(task.taskId, Download.STOP_REASON_NONE)); in setAndClearSingleDownloadStopReason()
478 // New download requests can be added and they start. in setSingleDownloadStopReason_doesNotAffectOtherDownloads()
488 new DownloadBuilder(downloadRequest).setState(Download.STATE_REMOVING); in mergeRequest_removing_becomesRestarting()
[all …]
DActionFileUpgradeUtilTest.java99 assertDownloadIndexContainsRequest(expectedRequest1, Download.STATE_QUEUED); in upgradeAndDelete_createsDownloads()
100 assertDownloadIndexContainsRequest(expectedRequest2, Download.STATE_QUEUED); in upgradeAndDelete_createsDownloads()
110 Uri.parse("https://www.test.com/download"), in mergeRequest_nonExistingDownload_createsNewDownload()
120 assertDownloadIndexContainsRequest(request, Download.STATE_QUEUED); in mergeRequest_nonExistingDownload_createsNewDownload()
150 Download download = downloadIndex.getDownload(request2.id); in mergeRequest_existingDownload_createsMergedDownload() local
151 assertThat(download).isNotNull(); in mergeRequest_existingDownload_createsMergedDownload()
152 assertThat(download.request.type).isEqualTo(request2.type); in mergeRequest_existingDownload_createsMergedDownload()
153 assertThat(download.request.customCacheKey).isEqualTo(request2.customCacheKey); in mergeRequest_existingDownload_createsMergedDownload()
154 assertThat(download.request.data).isEqualTo(request2.data); in mergeRequest_existingDownload_createsMergedDownload()
155 assertThat(download.request.uri).isEqualTo(request2.uri); in mergeRequest_existingDownload_createsMergedDownload()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadManager.java18 import static com.google.android.exoplayer2.offline.Download.FAILURE_REASON_NONE;
19 import static com.google.android.exoplayer2.offline.Download.FAILURE_REASON_UNKNOWN;
20 import static com.google.android.exoplayer2.offline.Download.STATE_COMPLETED;
21 import static com.google.android.exoplayer2.offline.Download.STATE_DOWNLOADING;
22 import static com.google.android.exoplayer2.offline.Download.STATE_FAILED;
23 import static com.google.android.exoplayer2.offline.Download.STATE_QUEUED;
24 import static com.google.android.exoplayer2.offline.Download.STATE_REMOVING;
25 import static com.google.android.exoplayer2.offline.Download.STATE_RESTARTING;
26 import static com.google.android.exoplayer2.offline.Download.STATE_STOPPED;
27 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
[all …]
DWritableDownloadIndex.java21 /** A writable index of {@link Download Downloads}. */
26 * Adds or replaces a {@link Download}.
30 * @param download The {@link Download} to be added.
33 void putDownload(Download download) throws IOException; in putDownload() argument
36 * Removes the download with the given ID. Does nothing if a download with the given ID does not
41 * @param id The ID of the download to remove.
47 * Sets all {@link Download#STATE_DOWNLOADING} states to {@link Download#STATE_QUEUED}.
56 * Sets all states to {@link Download#STATE_REMOVING}.
65 * Sets the stop reason of the downloads in a terminal state ({@link Download#STATE_COMPLETED},
66 * {@link Download#STATE_FAILED}).
[all …]
DDownload.java25 /** Represents state of a download. */
26 public final class Download { class
29 * Download states. One of {@link #STATE_QUEUED}, {@link #STATE_STOPPED}, {@link
47 * The download is waiting to be started. A download may be queued because the {@link
58 /** The download is stopped for a specified {@link #stopReason}. */
60 /** The download is currently started. */
62 /** The download completed. */
64 /** The download failed. */
66 /** The download is being removed. */
68 /** The download will restart after all downloaded data is removed. */
[all …]
DDownloadService.java18 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
43 * Starts a download service to resume any ongoing downloads. Extras:
57 * Adds a new download. Extras:
60 * <li>{@link #KEY_DOWNLOAD_REQUEST} - A {@link DownloadRequest} defining the download to be
62 * <li>{@link #KEY_STOP_REASON} - An initial stop reason for the download. If omitted {@link
63 * Download#STOP_REASON_NONE} is used.
71 * Removes a download. Extras:
74 * <li>{@link #KEY_CONTENT_ID} - The content id of a download to remove.
92 * Resumes all downloads except those that have a non-zero {@link Download#stopReason}. Extras:
113 * Download#STOP_REASON_NONE}. Extras:
[all …]
DDefaultDownloadIndex.java29 import com.google.android.exoplayer2.offline.Download.FailureReason;
30 import com.google.android.exoplayer2.offline.Download.State;
36 /** A {@link DownloadIndex} that uses SQLite to persist {@link Download Downloads}. */
75 COLUMN_STATE + " = " + Download.STATE_DOWNLOADING;
77 getStateQuery(Download.STATE_COMPLETED, Download.STATE_FAILED);
137 * Creates an instance that stores the {@link Download Downloads} in an SQLite database provided
143 * <p>Applications that only have one download index may use this constructor. Applications that
144 * have multiple download indices should call {@link #DefaultDownloadIndex(DatabaseProvider,
154 * Creates an instance that stores the {@link Download Downloads} in an SQLite database provided
169 public Download getDownload(String id) throws DatabaseIOException { in getDownload()
[all …]
DActionFileUpgradeUtil.java18 import static com.google.android.exoplayer2.offline.Download.STATE_QUEUED;
29 /** Provides download IDs during action file upgrade. */
33 * Returns a download id for given request.
36 * @return A corresponding download ID.
54 * @param downloadIdProvider A download ID provider, or {@code null}. If {@code null} then ID of
55 * each download will be its custom cache key if one is specified, or else its URL.
104 @Nullable Download download = downloadIndex.getDownload(request.id); in mergeRequest() local
105 if (download != null) { in mergeRequest()
106 download = DownloadManager.mergeRequest(download, request, download.stopReason, nowMs); in mergeRequest()
108 download = in mergeRequest()
[all …]
DDownloadCursor.java23 /** Returns the download at the current position. */
24 Download getDownload(); in getDownload()
30 * Returns the current position of the cursor in the download set. The value is zero-based. When
31 * the download set is first returned the cursor will be at positon -1, which is before the first
32 * download. After the last download is returned another call to next() will leave the cursor past
52 * Move the cursor to the first download.
63 * Move the cursor to the last download.
74 * Move the cursor to the next download.
86 * Move the cursor to the previous download.
97 /** Returns whether the cursor is pointing to the first download. */
[all …]
DDownloadIndex.java22 /** An index of {@link Download Downloads}. */
27 * Returns the {@link Download} with the given {@code id}, or null.
31 * @param id ID of a {@link Download}.
32 * @return The {@link Download} with the given {@code id}, or null if a download state with this
37 Download getDownload(String id) throws IOException; in getDownload()
40 * Returns a {@link DownloadCursor} to {@link Download}s with the given {@code states}.
44 * @param states Returns only the {@link Download}s with this states. If empty, returns all.
45 * @return A cursor to {@link Download}s with the given {@code states}.
48 DownloadCursor getDownloads(@Download.State int... states) throws IOException; in getDownloads()
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDownloadTracker.java30 import com.google.android.exoplayer2.offline.Download;
61 private final HashMap<Uri, Download> downloads;
88 Download download = downloads.get(checkNotNull(mediaItem.playbackProperties).sourceUri); in isDownloaded() local
89 return download != null && download.state != Download.STATE_FAILED; in isDownloaded()
93 Download download = downloads.get(uri); in getDownloadRequest() local
94 return download != null && download.state != Download.STATE_FAILED ? download.request : null; in getDownloadRequest()
99 Download download = downloads.get(checkNotNull(mediaItem.playbackProperties).sourceUri); in toggleDownload() local
100 if (download != null) { in toggleDownload()
102 context, DemoDownloadService.class, download.request.id, /* foreground= */ false); in toggleDownload()
116 Download download = loadedDownloads.getDownload(); in loadDownloads() local
[all …]
DDemoDownloadService.java23 import com.google.android.exoplayer2.offline.Download;
69 protected Notification getForegroundNotification(@NonNull List<Download> downloads) { in getForegroundNotification()
97 public void onDownloadChanged(@NonNull DownloadManager manager, @NonNull Download download) { in onDownloadChanged() argument
99 if (download.state == Download.STATE_COMPLETED) { in onDownloadChanged()
104 Util.fromUtf8Bytes(download.request.data)); in onDownloadChanged()
105 } else if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
110 Util.fromUtf8Bytes(download.request.data)); in onDownloadChanged()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDownloadBuilder.java21 import com.google.android.exoplayer2.offline.Download;
30 * Builder for {@link Download}.
32 * <p>Defines default values for each field (except {@code id}) to facilitate {@link Download}
47 @Download.State private int state;
55 * Creates a download builder for "uri" with type "type" and no stream keys.
57 * @param id The unique content identifier for the download.
70 * Creates a download builder based on the attributes of the specified request.
72 * @param request A {@link DownloadRequest} defining the content to download.
84 /** Creates a download builder. */
98 this.state = Download.STATE_QUEUED; in DownloadBuilder()
[all …]
DTestDownloadManagerListener.java22 import com.google.android.exoplayer2.offline.Download;
23 import com.google.android.exoplayer2.offline.Download.State;
46 @Download.FailureReason private int failureReason;
81 public void onDownloadChanged(DownloadManager downloadManager, Download download) { in onDownloadChanged() argument
82 if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
83 failureReason = download.failureReason; in onDownloadChanged()
85 getStateQueue(download.request.id).add(download.state); in onDownloadChanged()
89 public void onDownloadRemoved(DownloadManager downloadManager, Download download) { in onDownloadRemoved() argument
90 getStateQueue(download.request.id).add(STATE_REMOVED); in onDownloadRemoved()
101 * Blocks until all remove and download tasks are complete and throws an exception if there was an
[all …]
/external/toybox/scripts/root/
Dplumbing3 # Plumbing to download files
6 mkdir -p "${DOWNLOAD:=$PWD/root_download}" || exit 1
8 ### Functions to download, extract, and clean up after source packages.
10 # Usage: download HASH URL
12 # If extracted source is in $DOWNLOAD (no version) build will use that instead
13 download() {
15 [ -d "$DOWNLOAD/${FILE/-*/}" ] && echo "$FILE" local && return 0
17 [ "$(sha1sum < "$DOWNLOAD/$FILE" 2>/dev/null)" == "$1 -" ] &&
19 rm -f $DOWNLOAD/${FILE/-[0-9]*/}-[0-9]* || exit 1
21 wget "$2" -O "$DOWNLOAD/$FILE"
[all …]
/external/ImageMagick/www/
Ddownload.html10 <title>ImageMagick - Download</title>
15 <meta name="keywords" content="download, image processing software" />
32 <link href="../www/download.html" rel="canonical" />
51 <a class="nav-link active" href="download.html">Download</a>
94 <h1 class="text-center">Download</h1>
95download.html#unix">Unix Binary Release</a> • <a href="download.html#macosx">Mac OS X Binary Relea…
97 …rted, download a ready-to-run <a href="download.html#unix">Unix</a> or <a href="download.html#wind…
117 …<td><a href= "https://download.imagemagick.org/ImageMagick/download/binaries/magick">magick</a></t…
118 …<td>Complete portable application on Linux, no installation required. Just download and run. App…
122 …<td><a href= "https://download.imagemagick.org/ImageMagick/download/linux/CentOS/x86_64/ImageMagic…
[all …]
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dhosted_models.md36 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
37 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
38 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
39 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
40 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
41 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
42 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
43 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
44 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
45 …xiv.org/pdf/1712.05877.pdf), [tflite&pb](https://storage.googleapis.com/download.tensorflow.org/mo…
[all …]
/external/python/cpython3/Doc/tools/templates/
Ddownload.html2 {% set title = 'Download' %}
10 <h1>Download Python {{ release }} Documentation</h1>
14 <p>To download an archive containing all the documents for this version of
20 … <td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-letter.zip">Download</a> (ca. 13 MiB)</td>
21 …<td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-letter.tar.bz2">Download</a> (ca. 13 MiB)<…
24 <td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-a4.zip">Download</a> (ca. 13 MiB)</td>
25 … <td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-a4.tar.bz2">Download</a> (ca. 13 MiB)</td>
28 <td><a href="{{ dlbase }}/python-{{ release }}-docs-html.zip">Download</a> (ca. 9 MiB)</td>
29 <td><a href="{{ dlbase }}/python-{{ release }}-docs-html.tar.bz2">Download</a> (ca. 6 MiB)</td>
32 <td><a href="{{ dlbase }}/python-{{ release }}-docs-text.zip">Download</a> (ca. 3 MiB)</td>
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDownloadNotificationHelper.java26 import com.google.android.exoplayer2.offline.Download;
29 /** Helper for creating download notifications. */
60 List<Download> downloads) { in buildProgressNotification()
68 Download download = downloads.get(i); in buildProgressNotification() local
69 if (download.state == Download.STATE_REMOVING) { in buildProgressNotification()
73 if (download.state != Download.STATE_RESTARTING in buildProgressNotification()
74 && download.state != Download.STATE_DOWNLOADING) { in buildProgressNotification()
78 float downloadPercentage = download.getPercentDownloaded(); in buildProgressNotification()
83 haveDownloadedBytes |= download.getBytesDownloaded() > 0; in buildProgressNotification()
110 * Returns a notification for a completed download.
[all …]
/external/python/apitools/apitools/base/py/
Dtransfer_test.py56 download = transfer.Download.FromStream(
59 download._Download__ComputeEndByte(0, end=50))
62 download = transfer.Download.FromStream(six.StringIO())
64 download._Download__ComputeEndByte(0, use_chunks=False))
68 download = transfer.Download.FromStream(
73 download._Download__ComputeEndByte(0, end=end,
78 download = transfer.Download.FromStream(six.StringIO())
79 default_chunksize = download.chunksize
81 download.chunksize = chunksize
84 download.chunksize + start - 1,
[all …]
/external/ImageMagick/
DQuickStart.txt3 of ImageMagick download sites. Those who want to build ImageMagick from source
8 Download the appropriate binary from
10 https://download.imagemagick.org/ImageMagick/download/binaries
108 Download one of
110 …https://download.imagemagick.org/download/ImageMagick/binaries/ImageMagick-7.0.11-15-Q16-windows-d…
111 …https://download.imagemagick.org/download/ImageMagick/binaries/ImageMagick-7.0.11-15-Q16-windows-s…
112 …https://download.imagemagick.org/download/ImageMagick/binaries/ImageMagick-7.0.11-15-Q8-windows-dl…
113 …https://download.imagemagick.org/download/ImageMagick/binaries/ImageMagick-7.0.11-15-Q8-windows-st…
/external/python/cpython2/Doc/tools/templates/
Ddownload.html2 {% set title = 'Download' %}
10 <h1>{% trans %}Download Python {{ release }} Documentation{% endtrans %}</h1>
16 <p>{% trans %}To download an archive containing all the documents for
18 in this table. The numbers in the table are the size of the download
29 {% trans %}Download{% endtrans %}
34 {% trans %}Download{% endtrans %}
41 {% trans %}Download{% endtrans %}
45 {% trans %}Download{% endtrans %}
51 {% trans %}Download{% endtrans %}
56 {% trans %}Download{% endtrans %}
[all …]
/external/icu/icu4c/source/test/letest/
Dreadme.html45 can download them from the web. To do this, you'll need access to a
48 <p>Download a recent version of the Java 2 Platform, Standard
51 Click on the "Download" button for the version of Java that you
52 want to download. The page offers both JDKs and JREs. (The JRE is
53 sufficient for letest.) The download page will have a link to the
55 agreement, and then click on the Accept button. Download the
60 <p>Next is the Hindi font. Go to the NCST site and download
61 <a href="http://tdil.mit.gov.in/download/Raghu.htm">raghu.ttf</a>.
62 When you hit the DOWNLOAD button on the page, it will open another
64 that you understand and agree to all of this before you download
[all …]
/external/python/google-api-python-client/tests/
Dtest_http.py463 download = MediaIoBaseDownload(fd=self.fd, request=self.request, chunksize=3)
465 self.assertEqual(self.fd, download._fd)
466 self.assertEqual(3, download._chunksize)
467 self.assertEqual(0, download._progress)
468 self.assertEqual(None, download._total_size)
469 self.assertEqual(False, download._done)
470 self.assertEqual(self.request.uri, download._uri)
472 status, done = download.next_chunk()
476 self.assertEqual(3, download._progress)
477 self.assertEqual(5, download._total_size)
[all …]

12345678910>>...118