Home
last modified time | relevance | path

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

12345678910>>...206

/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_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/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 …]
/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 …]
/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/toybox/mkroot/packages/
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_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/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 …]
/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/bazelbuild-rules_python/python/private/pypi/
Dsimpleapi_download.bzl26 """Download Simple API HTML.
30 attr: Contains the parameters for the download. They are grouped into a
37 * sources: list[str], the sources to download things for. Each value is
40 * netrc: The netrc parameter for ctx.download, see http_file for docs.
41 * auth_patterns: The auth_patterns parameter for ctx.download, see
101 fail("Failed to download metadata from urls: {}".format(
112 for download in downloads:
113 result = download.wait()
115 if result.success and download.pkg_normalized not in contents:
116 contents[download.pkg_normalized] = result.output
[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/sg3_utils/doc/
Dsg_ses_microcode.814 This utility attempts to download microcode to an enclosure (or one of its
21 command. The former sends a Download microcode Control diagnostic
22 page (dpage) and the latter fetches a Download microcode status dpage which
26 is to fetch the Download microcode status dpage and decode it. This does
47 from the read data and increasing the buffer offset field in the Download
54 \fIDEVICE\fR, an additional Download microcode control dpage with its mode
89 this option sets the BUFFER ID field in the Download microcode control
114 allow for non\-standard implementations that reset their Download microcode
115 engine after a RECEIVE DIAGNOSTIC RESULTS command with the Download microcode
120 this option sets the BUFFER OFFSET field in the Download microcode control
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/
DTestDownloadManagerListener.java25 import com.google.android.exoplayer2.offline.Download;
45 private @Download.FailureReason int failureReason;
81 if (failureReason != Download.FAILURE_REASON_NONE) { in blockUntilIdleAndThrowAnyFailure()
86 /** Asserts that the specified download transitions to the specified state. */
87 public void assertState(String id, @Download.State int state) { in assertState()
91 /** Asserts that the specified download is removed. */
105 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged() argument
106 if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
107 failureReason = download.failureReason; in onDownloadChanged()
109 getStateQueue(download.request.id).add(download.state); in onDownloadChanged()
[all …]

12345678910>>...206