Home
last modified time | relevance | path

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

12345678910>>...155

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/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 …]
DDefaultDownloadIndex.java33 import com.google.android.exoplayer2.offline.Download.FailureReason;
34 import com.google.android.exoplayer2.offline.Download.State;
41 /** A {@link DownloadIndex} that uses SQLite to persist {@link Download Downloads}. */
82 COLUMN_STATE + " = " + Download.STATE_DOWNLOADING;
84 getStateQuery(Download.STATE_COMPLETED, Download.STATE_FAILED);
149 * Creates an instance that stores the {@link Download Downloads} in an SQLite database provided
155 * <p>Applications that only have one download index may use this constructor. Applications that
156 * have multiple download indices should call {@link #DefaultDownloadIndex(DatabaseProvider,
166 * Creates an instance that stores the {@link Download Downloads} in an SQLite database provided
182 public Download getDownload(String id) throws DatabaseIOException { in getDownload()
[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.java32 /** Represents state of a download. */
33 public final class Download { class
36 * Download states. One of {@link #STATE_QUEUED}, {@link #STATE_STOPPED}, {@link
57 * The download is waiting to be started. A download may be queued because the {@code
68 /** The download is stopped for a specified {@link #stopReason}. */
70 /** The download is currently started. */
72 /** The download completed. */
74 /** The download failed. */
76 /** The download is being removed. */
78 /** The download will restart after all downloaded data is removed. */
[all …]
DDownloadService.java18 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
46 * Starts a download service to resume any ongoing downloads. Extras:
60 * Adds a new download. Extras:
63 * <li>{@link #KEY_DOWNLOAD_REQUEST} - A {@link DownloadRequest} defining the download to be
65 * <li>{@link #KEY_STOP_REASON} - An initial stop reason for the download. If omitted {@link
66 * Download#STOP_REASON_NONE} is used.
74 * Removes a download. Extras:
77 * <li>{@link #KEY_CONTENT_ID} - The content id of a download to remove.
95 * Resumes all downloads except those that have a non-zero {@link Download#stopReason}. Extras:
116 * Download#STOP_REASON_NONE}. Extras:
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/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 …]
DDefaultDownloadIndex.java33 import com.google.android.exoplayer2.offline.Download.FailureReason;
34 import com.google.android.exoplayer2.offline.Download.State;
41 /** A {@link DownloadIndex} that uses SQLite to persist {@link Download Downloads}. */
82 COLUMN_STATE + " = " + Download.STATE_DOWNLOADING;
84 getStateQuery(Download.STATE_COMPLETED, Download.STATE_FAILED);
149 * Creates an instance that stores the {@link Download Downloads} in an SQLite database provided
155 * <p>Applications that only have one download index may use this constructor. Applications that
156 * have multiple download indices should call {@link #DefaultDownloadIndex(DatabaseProvider,
166 * Creates an instance that stores the {@link Download Downloads} in an SQLite database provided
182 public Download getDownload(String id) throws DatabaseIOException { in getDownload()
[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 {@code
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 …]
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 …]
DDownloadService.java18 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
46 * Starts a download service to resume any ongoing downloads. Extras:
60 * Adds a new download. Extras:
63 * <li>{@link #KEY_DOWNLOAD_REQUEST} - A {@link DownloadRequest} defining the download to be
65 * <li>{@link #KEY_STOP_REASON} - An initial stop reason for the download. If omitted {@link
66 * Download#STOP_REASON_NONE} is used.
74 * Removes a download. Extras:
77 * <li>{@link #KEY_CONTENT_ID} - The content id of a download to remove.
95 * Resumes all downloads except those that have a non-zero {@link Download#stopReason}. Extras:
116 * Download#STOP_REASON_NONE}. Extras:
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/offline/
DDefaultDownloadIndexTest.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_DOWNLOADING;
21 import static com.google.android.exoplayer2.offline.Download.STATE_STOPPED;
22 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
76 Download download = new DownloadBuilder(id).build(); in addAndGetDownload_nonExistingId_returnsTheSameDownload() local
78 downloadIndex.putDownload(download); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
79 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
81 assertEqual(readDownload, download); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
90 Download download = in addAndGetDownload_existingId_returnsUpdatedDownload() local
[all …]
DDownloadManagerTest.java55 /** The minimum number of times a download must be retried before failing. */
110 // The download will be canceled by the remove request. in removeRequest_cancelsAndRemovesDownload()
115 // The download will be removed. in removeRequest_cancelsAndRemovesDownload()
178 // should be able to fail (MIN_RETRY_COUNT - 1) more times and then still complete the download in download_retryMakesProgress_resetsRetryCount()
233 // The download should then start and complete. in download_WhenRemovalInProgress_doesNotCancelRemoval()
269 // Finish one download. in removeAllDownloads_removesAllDownloads()
277 // Start a second download. in removeAllDownloads_removesAllDownloads()
359 // The second download should be queued and the first one should be able to complete. in downloads_withDifferentIds_maxDownloadsIsOne_executedSequentially()
365 // The second download can start once the first one has completed. in downloads_withDifferentIds_maxDownloadsIsOne_executedSequentially()
383 // Complete a download so that we can remove it. in downloadAndRemove_withDifferentIds_maxDownloadsIsOne_executeInParallel()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/offline/
DDefaultDownloadIndexTest.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_DOWNLOADING;
21 import static com.google.android.exoplayer2.offline.Download.STATE_STOPPED;
22 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
76 Download download = new DownloadBuilder(id).build(); in addAndGetDownload_nonExistingId_returnsTheSameDownload() local
78 downloadIndex.putDownload(download); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
79 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
81 assertEqual(readDownload, download); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
90 Download download = in addAndGetDownload_existingId_returnsUpdatedDownload() local
[all …]
DDownloadManagerTest.java55 /** The minimum number of times a download must be retried before failing. */
110 // The download will be canceled by the remove request. in removeRequest_cancelsAndRemovesDownload()
115 // The download will be removed. in removeRequest_cancelsAndRemovesDownload()
178 // should be able to fail (MIN_RETRY_COUNT - 1) more times and then still complete the download in download_retryMakesProgress_resetsRetryCount()
233 // The download should then start and complete. in download_WhenRemovalInProgress_doesNotCancelRemoval()
269 // Finish one download. in removeAllDownloads_removesAllDownloads()
277 // Start a second download. in removeAllDownloads_removesAllDownloads()
359 // The second download should be queued and the first one should be able to complete. in downloads_withDifferentIds_maxDownloadsIsOne_executedSequentially()
365 // The second download can start once the first one has completed. in downloads_withDifferentIds_maxDownloadsIsOne_executedSequentially()
383 // Complete a download so that we can remove it. in downloadAndRemove_withDifferentIds_maxDownloadsIsOne_executeInParallel()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/docs/
Ddownloading-media.md5 ExoPlayer provides functionality to download media for offline playback. In most
20 on requirements such as network connectivity, and so on. To download the
68 // A download cache should not evict media, so should use a NoopCacheEvictor.
77 // Choose an executor for downloading data. Using Runnable::run will cause each download task to
78 // download data on its own thread. Passing an executor that uses multiple threads will speed up
79 // download tasks that can be split into smaller parts for parallel execution. Applications that
83 // Create the download manager.
91 // Optionally, setters can be called to configure the download manager.
99 The example in the demo app also imports download state from legacy `ActionFile`
104 ## Adding a download ##
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/docs/
Ddownloading-media.md5 ExoPlayer provides functionality to download media for offline playback. In most
20 on requirements such as network connectivity, and so on. To download the
68 // A download cache should not evict media, so should use a NoopCacheEvictor.
77 // Choose an executor for downloading data. Using Runnable::run will cause each download task to
78 // download data on its own thread. Passing an executor that uses multiple threads will speed up
79 // download tasks that can be split into smaller parts for parallel execution. Applications that
83 // Create the download manager.
91 // Optionally, setters can be called to configure the download manager.
99 ## Adding a download ##
101 To add a download you need to create a `DownloadRequest` and send it to your
[all …]
/external/python/google-api-python-client/docs/dyn/
Dandroidpublisher_v3.generatedapks.html81 …<code><a href="#download">download(packageName, versionCode, downloadId, x__xgafv=None)</a></code>…
88 <p class="firstline">Returns download metadata for all APKs that were generated from a given app bu…
96 …<code class="details" id="download">download(packageName, versionCode, downloadId, x__xgafv=None)<…
102 …downloadId: string, Download ID, which uniquely identifies the APK to download. Can be obtained fr…
117 …downloadId: string, Download ID, which uniquely identifies the APK to download. Can be obtained fr…
127 <pre>Returns download metadata for all APKs that were generated from a given app bundle.
142 …{ # Download metadata for split, standalone and universal APKs, as well as asset pack slices, sign…
145 { # Download metadata for an asset pack slice.
146 …&quot;A String&quot;, # Download ID, which uniquely identifies the APK to download. Should be supp…
153 { # Download metadata for a split APK.
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDownloadTracker.java36 import com.google.android.exoplayer2.offline.Download;
70 private final HashMap<Uri, Download> downloads;
95 @Nullable Download download = downloads.get(checkNotNull(mediaItem.localConfiguration).uri); in isDownloaded() local
96 return download != null && download.state != Download.STATE_FAILED; in isDownloaded()
101 @Nullable Download download = downloads.get(uri); in getDownloadRequest() local
102 return download != null && download.state != Download.STATE_FAILED ? download.request : null; in getDownloadRequest()
107 @Nullable Download download = downloads.get(checkNotNull(mediaItem.localConfiguration).uri); in toggleDownload() local
108 if (download != null && download.state != Download.STATE_FAILED) { in toggleDownload()
110 context, DemoDownloadService.class, download.request.id, /* foreground= */ false); in toggleDownload()
126 Download download = loadedDownloads.getDownload(); in loadDownloads() local
[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/toybox/mkroot/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/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDownloadTracker.java36 import com.google.android.exoplayer2.offline.Download;
70 private final HashMap<Uri, Download> downloads;
100 @Nullable Download download = downloads.get(checkNotNull(mediaItem.localConfiguration).uri); in isDownloaded() local
101 return download != null && download.state != Download.STATE_FAILED; in isDownloaded()
106 @Nullable Download download = downloads.get(uri); in getDownloadRequest() local
107 return download != null && download.state != Download.STATE_FAILED ? download.request : null; in getDownloadRequest()
112 @Nullable Download download = downloads.get(checkNotNull(mediaItem.localConfiguration).uri); in toggleDownload() local
113 if (download != null && download.state != Download.STATE_FAILED) { in toggleDownload()
115 context, DemoDownloadService.class, download.request.id, /* foreground= */ false); in toggleDownload()
132 Download download = loadedDownloads.getDownload(); in loadDownloads() local
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/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}
48 private @Download.State int state;
56 * Creates a download builder for "uri" and no stream keys.
58 * @param id The unique content identifier for the download.
72 * Creates a download builder based on the attributes of the specified request.
74 * @param request A {@link DownloadRequest} defining the content to download.
87 /** Creates a download builder. */
103 this.state = Download.STATE_QUEUED; in DownloadBuilder()
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/
DSingleFileDownloadRequest.java26 * Request to download a single file.
32 * <p>2) MDD does NOT manage the file after download. The caller specifies that destination of the
33 * download and is responsible for managing the file after download.
44 // The Destination File Uri to download the file at.
47 // The url to download the file from.
53 /** If present, will receive download progress update. */
70 // Used only by Foreground download.
71 // The Content Title of the associated Notification for this download.
74 // Used only by Foreground download.
75 // If Present, the Content Text (description) of the associated Notification for this download.
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/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}
48 @Download.State private int state;
56 * Creates a download builder for "uri" and no stream keys.
58 * @param id The unique content identifier for the download.
72 * Creates a download builder based on the attributes of the specified request.
74 * @param request A {@link DownloadRequest} defining the content to download.
87 /** Creates a download builder. */
103 this.state = Download.STATE_QUEUED; in DownloadBuilder()
[all …]

12345678910>>...155