Home
last modified time | relevance | path

Searched refs:Download (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/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()
63 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
74 Download download = in addAndGetDownload_existingId_returnsUpdatedDownload()
79 .setState(Download.STATE_FAILED) in addAndGetDownload_existingId_returnsUpdatedDownload()
83 .setFailureReason(Download.FAILURE_REASON_UNKNOWN) in addAndGetDownload_existingId_returnsUpdatedDownload()
93 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_existingId_returnsUpdatedDownload()
102 Download download = new DownloadBuilder(id).build(); in releaseAndRecreateDownloadIndex_returnsTheSameDownload()
106 Download readDownload = downloadIndex.getDownload(id); in releaseAndRecreateDownloadIndex_returnsTheSameDownload()
119 Download download = new DownloadBuilder(id).build(); in removeDownload_existingId_getDownloadReturnsNull()
123 Download readDownload = downloadIndex.getDownload(id); in removeDownload_existingId_getDownloadReturnsNull()
[all …]
DDownloadManagerTest.java25 import com.google.android.exoplayer2.offline.Download.State;
380 List<Download> downloads = downloadManager.getCurrentDownloads(); in getCurrentDownloads_returnsCurrentDownloads()
437 runOnMainThread(() -> downloadManager.setStopReason(task.taskId, Download.STOP_REASON_NONE)); in setAndClearSingleDownloadStopReason()
488 new DownloadBuilder(downloadRequest).setState(Download.STATE_REMOVING); in mergeRequest_removing_becomesRestarting()
489 Download download = downloadBuilder.build(); in mergeRequest_removing_becomesRestarting()
491 Download mergedDownload = in mergeRequest_removing_becomesRestarting()
494 Download expectedDownload = in mergeRequest_removing_becomesRestarting()
495 downloadBuilder.setStartTimeMs(NOW_MS).setState(Download.STATE_RESTARTING).build(); in mergeRequest_removing_becomesRestarting()
504 .setState(Download.STATE_FAILED) in mergeRequest_failed_becomesQueued()
505 .setFailureReason(Download.FAILURE_REASON_UNKNOWN); in mergeRequest_failed_becomesQueued()
[all …]
DActionFileUpgradeUtilTest.java99 assertDownloadIndexContainsRequest(expectedRequest1, Download.STATE_QUEUED); in upgradeAndDelete_createsDownloads()
100 assertDownloadIndexContainsRequest(expectedRequest2, Download.STATE_QUEUED); in upgradeAndDelete_createsDownloads()
120 assertDownloadIndexContainsRequest(request, Download.STATE_QUEUED); in mergeRequest_nonExistingDownload_createsNewDownload()
150 Download download = downloadIndex.getDownload(request2.id); in mergeRequest_existingDownload_createsMergedDownload()
157 assertThat(download.state).isEqualTo(Download.STATE_QUEUED); in mergeRequest_existingDownload_createsMergedDownload()
188 assertThat(downloadIndex.getDownload(request1.id).state).isEqualTo(Download.STATE_QUEUED); in mergeRequest_addNewDownloadAsCompleted()
193 assertThat(downloadIndex.getDownload(request2.id).state).isEqualTo(Download.STATE_COMPLETED); in mergeRequest_addNewDownloadAsCompleted()
198 Download download = downloadIndex.getDownload(request.id); in assertDownloadIndexContainsRequest()
/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 …]
DDefaultDownloadIndex.java29 import com.google.android.exoplayer2.offline.Download.FailureReason;
30 import com.google.android.exoplayer2.offline.Download.State;
75 COLUMN_STATE + " = " + Download.STATE_DOWNLOADING;
77 getStateQuery(Download.STATE_COMPLETED, Download.STATE_FAILED);
169 public Download getDownload(String id) throws DatabaseIOException { in getDownload()
183 public DownloadCursor getDownloads(@Download.State int... states) throws DatabaseIOException { in getDownloads()
190 public void putDownload(Download download) throws DatabaseIOException { in putDownload()
230 values.put(COLUMN_STATE, Download.STATE_QUEUED); in setDownloadingStatesToQueued()
243 values.put(COLUMN_STATE, Download.STATE_REMOVING); in setStatesToRemoving()
246 values.put(COLUMN_FAILURE_REASON, Download.FAILURE_REASON_NONE); in setStatesToRemoving()
[all …]
DActionFileUpgradeUtil.java18 import static com.google.android.exoplayer2.offline.Download.STATE_QUEUED;
104 @Nullable Download download = downloadIndex.getDownload(request.id); in mergeRequest()
109 new Download( in mergeRequest()
111 addNewDownloadAsCompleted ? Download.STATE_COMPLETED : STATE_QUEUED, in mergeRequest()
115 Download.STOP_REASON_NONE, in mergeRequest()
116 Download.FAILURE_REASON_NONE); in mergeRequest()
DDownloadService.java18 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
626 int stopReason = intent.getIntExtra(KEY_STOP_REASON, Download.STOP_REASON_NONE); in onStartCommand()
736 protected abstract Notification getForegroundNotification(List<Download> downloads); in getForegroundNotification()
754 protected void onDownloadChanged(Download download) { in onDownloadChanged()
765 protected void onDownloadRemoved(Download download) { in onDownloadRemoved()
774 private void notifyDownloads(List<Download> downloads) { in notifyDownloads()
791 private void notifyDownloadChanged(Download download) { in notifyDownloadChanged()
808 private void notifyDownloadRemoved(Download download) { in notifyDownloadRemoved()
832 private static boolean needsStartedService(@Download.State int state) { in needsStartedService()
833 return state == Download.STATE_DOWNLOADING in needsStartedService()
[all …]
DDownload.java26 public final class Download { class
104 public Download( in Download() method in Download
123 public Download( in Download() method in Download
DDownloadIndex.java37 Download getDownload(String id) throws IOException; in getDownload()
48 DownloadCursor getDownloads(@Download.State int... states) throws IOException; in getDownloads()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDownloadBuilder.java21 import com.google.android.exoplayer2.offline.Download;
47 @Download.State private int state;
98 this.state = Download.STATE_QUEUED; in DownloadBuilder()
100 this.failureReason = Download.FAILURE_REASON_NONE; in DownloadBuilder()
129 public DownloadBuilder setState(@Download.State int state) { in setState()
188 public Download build() { in build()
191 return new Download( in build()
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()
82 if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
89 public void onDownloadRemoved(DownloadManager downloadManager, Download download) { in onDownloadRemoved()
106 if (failureReason != Download.FAILURE_REASON_NONE) { in blockUntilTasksCompleteAndThrowAnyDownloadError()
/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()
89 return download != null && download.state != Download.STATE_FAILED; in isDownloaded()
93 Download download = downloads.get(uri); in getDownloadRequest()
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()
116 Download download = loadedDownloads.getDownload(); in loadDownloads()
151 @NonNull DownloadManager downloadManager, @NonNull Download download) { in onDownloadChanged()
160 @NonNull DownloadManager downloadManager, @NonNull Download download) { in onDownloadRemoved()
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()
99 if (download.state == Download.STATE_COMPLETED) { in onDownloadChanged()
105 } else if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDownloadNotificationHelper.java26 import com.google.android.exoplayer2.offline.Download;
60 List<Download> downloads) { in buildProgressNotification()
68 Download download = downloads.get(i); in buildProgressNotification()
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()
/external/v4l2_codec2/tests/c2_e2e_test/
DREADME.md32 $ adb push test-25fps.h264 /sdcard/Download
33 $ adb push test-25fps.h264.frames.md5 /sdcard/Download
43 --es log-file "/sdcard/Download/gtest_logs.txt"'
51 $ adb shell cat /sdcard/Download/gtest_logs.txt
68 --esa test-args "--test_video_data=/sdcard/Download/test-25fps.h264:320:240:250:258:::1:25",\
/external/python/cryptography/docs/development/custom-vectors/
Drsa-oaep-sha2.rst17 Download link: :download:`generate_rsa_oaep_sha2.py
30 Download link: :download:`VerifyRSAOAEPSHA2.java
36 Download and install the `Java 8 SDK`_. Initial verification was performed
39 Download the latest `Bouncy Castle`_ JAR. Initial verification was performed
Dhkdf.rst15 Download link: :download:`generate_hkdf.py
27 Download link: :download:`verify_hkdf.go
/external/okhttp/
DREADME.md6 Download section in OkHttp
9 Download [the latest JAR][3] or grab via Maven:
32 ### Download subsection
34 Download [the latest JAR][4] or grab via Maven:
/external/ltp/testcases/kernel/syscalls/epoll/
DREADME.1ST9 1. Download and untar the epoll library from:
23 1. Download and untar the PCL library
28 6. Download and untar the epoll library
/external/oboe/apps/OboeTester/docs/
DBuild.md5 Download the top level oboe repository from GitHub.
15 ## Download Oboe
22 2. Click on the green button that says "Clone or Download" and follow the instructions.
/external/python/apitools/apitools/base/py/
Dtransfer_test.py56 download = transfer.Download.FromStream(
62 download = transfer.Download.FromStream(six.StringIO())
68 download = transfer.Download.FromStream(
78 download = transfer.Download.FromStream(six.StringIO())
91 download = transfer.Download.FromStream(six.StringIO(),
102 download = transfer.Download.FromStream(download_stream,
143 download = transfer.Download.FromStream(download_stream,
172 download = transfer.Download.FromStream(download_stream, total_size=52)
201 download = transfer.Download.FromStream(
/external/antlr/runtime/JavaScript/build/
DREADME10 …* ant-contrib: Download ant-contrib here: http://downloads.sourceforge.net/ant-contrib/ant-contrib…
14 …* closure compiler: Download here: http://closure-compiler.googlecode.com/files/compiler-latest.zip
18 …* jsdoc-toolkit: Download the latest release from here: http://code.google.com/p/jsdoc-toolkit/dow…
22 …* jsunit: Download here: https://sourceforge.net/project/showfiles.php?group_id=28041&package_id=1…
/external/python/google-api-python-client/.kokoro/presubmit/
Dcommon.cfg10 # Download trampoline resources.
13 # Download resources for system tests (service account key, etc.)
/external/python/google-api-python-client/.kokoro/continuous/
Dcommon.cfg10 # Download trampoline resources.
13 # Download resources for system tests (service account key, etc.)
/external/junit/
DREADME.md6 * [Download and Install guide](https://github.com/junit-team/junit/wiki/Download-and-Install)

12345678910>>...14