Home
last modified time | relevance | path

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

12345678910>>...17

/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()
79 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
90 Download download = in addAndGetDownload_existingId_returnsUpdatedDownload()
95 .setState(Download.STATE_FAILED) in addAndGetDownload_existingId_returnsUpdatedDownload()
110 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_existingId_returnsUpdatedDownload()
[all …]
DDownloadManagerTest.java501 postSetStopReason(ID1, Download.STOP_REASON_NONE); in setAndClearStopReason_stopsAndRestartsDownload()
573 List<Download> downloads = postGetCurrentDownloads(); in getCurrentDownloads_returnsCurrentDownloads()
575 Download download0 = downloads.get(0); in getCurrentDownloads_returnsCurrentDownloads()
577 assertThat(download0.state).isEqualTo(Download.STATE_DOWNLOADING); in getCurrentDownloads_returnsCurrentDownloads()
578 Download download1 = downloads.get(1); in getCurrentDownloads_returnsCurrentDownloads()
580 assertThat(download1.state).isEqualTo(Download.STATE_QUEUED); in getCurrentDownloads_returnsCurrentDownloads()
581 Download download2 = downloads.get(2); in getCurrentDownloads_returnsCurrentDownloads()
583 assertThat(download2.state).isEqualTo(Download.STATE_REMOVING); in getCurrentDownloads_returnsCurrentDownloads()
610 Download download = postGetDownloadIndex().getDownload(ID1); in addDownload_whilstRemovingWithStopReason_addsStartedDownload()
611 assertThat(download.state).isEqualTo(Download.STATE_COMPLETED); in addDownload_whilstRemovingWithStopReason_addsStartedDownload()
[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()
79 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_nonExistingId_returnsTheSameDownload()
90 Download download = in addAndGetDownload_existingId_returnsUpdatedDownload()
95 .setState(Download.STATE_FAILED) in addAndGetDownload_existingId_returnsUpdatedDownload()
110 Download readDownload = downloadIndex.getDownload(id); in addAndGetDownload_existingId_returnsUpdatedDownload()
[all …]
DDownloadManagerTest.java501 postSetStopReason(ID1, Download.STOP_REASON_NONE); in setAndClearStopReason_stopsAndRestartsDownload()
573 List<Download> downloads = postGetCurrentDownloads(); in getCurrentDownloads_returnsCurrentDownloads()
575 Download download0 = downloads.get(0); in getCurrentDownloads_returnsCurrentDownloads()
577 assertThat(download0.state).isEqualTo(Download.STATE_DOWNLOADING); in getCurrentDownloads_returnsCurrentDownloads()
578 Download download1 = downloads.get(1); in getCurrentDownloads_returnsCurrentDownloads()
580 assertThat(download1.state).isEqualTo(Download.STATE_QUEUED); in getCurrentDownloads_returnsCurrentDownloads()
581 Download download2 = downloads.get(2); in getCurrentDownloads_returnsCurrentDownloads()
583 assertThat(download2.state).isEqualTo(Download.STATE_REMOVING); in getCurrentDownloads_returnsCurrentDownloads()
610 Download download = postGetDownloadIndex().getDownload(ID1); in addDownload_whilstRemovingWithStopReason_addsStartedDownload()
611 assertThat(download.state).isEqualTo(Download.STATE_COMPLETED); in addDownload_whilstRemovingWithStopReason_addsStartedDownload()
[all …]
DActionFileUpgradeUtilTest.java90 assertDownloadIndexContainsRequest(expectedRequest1, Download.STATE_QUEUED); in upgradeAndDelete_progressiveActionFile_createsDownloads()
91 assertDownloadIndexContainsRequest(expectedRequest2, Download.STATE_QUEUED); in upgradeAndDelete_progressiveActionFile_createsDownloads()
129 assertDownloadIndexContainsRequest(expectedRequest1, Download.STATE_QUEUED); in upgradeAndDelete_dashActionFile_createsDownloads()
130 assertDownloadIndexContainsRequest(expectedRequest2, Download.STATE_QUEUED); in upgradeAndDelete_dashActionFile_createsDownloads()
168 assertDownloadIndexContainsRequest(expectedRequest1, Download.STATE_QUEUED); in upgradeAndDelete_hlsActionFile_createsDownloads()
169 assertDownloadIndexContainsRequest(expectedRequest2, Download.STATE_QUEUED); in upgradeAndDelete_hlsActionFile_createsDownloads()
207 assertDownloadIndexContainsRequest(expectedRequest1, Download.STATE_QUEUED); in upgradeAndDelete_smoothStreamingActionFile_createsDownloads()
208 assertDownloadIndexContainsRequest(expectedRequest2, Download.STATE_QUEUED); in upgradeAndDelete_smoothStreamingActionFile_createsDownloads()
227 assertDownloadIndexContainsRequest(request, Download.STATE_QUEUED); in mergeRequest_nonExistingDownload_createsNewDownload()
256 Download download = downloadIndex.getDownload(request2.id); in mergeRequest_existingDownload_createsMergedDownload()
[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;
82 COLUMN_STATE + " = " + Download.STATE_DOWNLOADING;
84 getStateQuery(Download.STATE_COMPLETED, Download.STATE_FAILED);
182 public Download getDownload(String id) throws DatabaseIOException { in getDownload()
196 public DownloadCursor getDownloads(@Download.State int... states) throws DatabaseIOException { in getDownloads()
203 public void putDownload(Download download) throws DatabaseIOException { in putDownload()
228 values.put(COLUMN_STATE, Download.STATE_QUEUED); in setDownloadingStatesToQueued()
241 values.put(COLUMN_STATE, Download.STATE_REMOVING); in setStatesToRemoving()
244 values.put(COLUMN_FAILURE_REASON, Download.FAILURE_REASON_NONE); in setStatesToRemoving()
[all …]
DDownloadService.java18 import static com.google.android.exoplayer2.offline.Download.STOP_REASON_NONE;
634 int stopReason = intent.getIntExtra(KEY_STOP_REASON, Download.STOP_REASON_NONE);
765 List<Download> downloads, @RequirementFlags int notMetRequirements);
782 private void notifyDownloads(List<Download> downloads) { in notifyDownloads()
798 private void notifyDownloadChanged(Download download) { in notifyDownloadChanged()
843 private static boolean needsStartedService(@Download.State int state) { in needsStartedService()
844 return state == Download.STATE_DOWNLOADING in needsStartedService()
845 || state == Download.STATE_REMOVING in needsStartedService()
846 || state == Download.STATE_RESTARTING; in needsStartedService()
907 List<Download> downloads = downloadManager.getCurrentDownloads(); in update()
[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;
82 COLUMN_STATE + " = " + Download.STATE_DOWNLOADING;
84 getStateQuery(Download.STATE_COMPLETED, Download.STATE_FAILED);
182 public Download getDownload(String id) throws DatabaseIOException { in getDownload()
196 public DownloadCursor getDownloads(@Download.State int... states) throws DatabaseIOException { in getDownloads()
203 public void putDownload(Download download) throws DatabaseIOException { in putDownload()
228 values.put(COLUMN_STATE, Download.STATE_QUEUED); in setDownloadingStatesToQueued()
241 values.put(COLUMN_STATE, Download.STATE_REMOVING); in setStatesToRemoving()
244 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;
632 int stopReason = intent.getIntExtra(KEY_STOP_REASON, Download.STOP_REASON_NONE);
763 List<Download> downloads, @RequirementFlags int notMetRequirements);
780 private void notifyDownloads(List<Download> downloads) { in notifyDownloads()
796 private void notifyDownloadChanged(Download download) { in notifyDownloadChanged()
841 private static boolean needsStartedService(@Download.State int state) { in needsStartedService()
842 return state == Download.STATE_DOWNLOADING in needsStartedService()
843 || state == Download.STATE_REMOVING in needsStartedService()
844 || state == Download.STATE_RESTARTING; in needsStartedService()
905 List<Download> downloads = downloadManager.getCurrentDownloads(); in update()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/ui/
DDownloadNotificationHelper.java27 import com.google.android.exoplayer2.offline.Download;
57 List<Download> downloads) { in buildProgressNotification()
78 List<Download> downloads, in buildProgressNotification()
88 Download download = downloads.get(i); in buildProgressNotification()
90 case Download.STATE_REMOVING: in buildProgressNotification()
93 case Download.STATE_QUEUED: in buildProgressNotification()
96 case Download.STATE_RESTARTING: in buildProgressNotification()
97 case Download.STATE_DOWNLOADING: in buildProgressNotification()
108 case Download.STATE_STOPPED: in buildProgressNotification()
109 case Download.STATE_COMPLETED: in buildProgressNotification()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/ui/
DDownloadNotificationHelper.java27 import com.google.android.exoplayer2.offline.Download;
57 List<Download> downloads) { in buildProgressNotification()
78 List<Download> downloads, in buildProgressNotification()
88 Download download = downloads.get(i); in buildProgressNotification()
90 case Download.STATE_REMOVING: in buildProgressNotification()
93 case Download.STATE_QUEUED: in buildProgressNotification()
96 case Download.STATE_RESTARTING: in buildProgressNotification()
97 case Download.STATE_DOWNLOADING: in buildProgressNotification()
108 case Download.STATE_STOPPED: in buildProgressNotification()
109 case Download.STATE_COMPLETED: in buildProgressNotification()
[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()
87 public void assertState(String id, @Download.State int state) { in assertState()
105 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged()
106 if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
113 public void onDownloadRemoved(DownloadManager downloadManager, Download download) { in onDownloadRemoved()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/
DTestDownloadManagerListener.java25 import com.google.android.exoplayer2.offline.Download;
45 @Download.FailureReason private int failureReason;
81 if (failureReason != Download.FAILURE_REASON_NONE) { in blockUntilIdleAndThrowAnyFailure()
87 public void assertState(String id, @Download.State int state) { in assertState()
105 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged()
106 if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
113 public void onDownloadRemoved(DownloadManager downloadManager, Download download) { in onDownloadRemoved()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDownloadBuilder.java21 import com.google.android.exoplayer2.offline.Download;
48 private @Download.State int state;
103 this.state = Download.STATE_QUEUED; in DownloadBuilder()
105 this.failureReason = Download.FAILURE_REASON_NONE; in DownloadBuilder()
152 public DownloadBuilder setState(@Download.State int state) { in setState()
229 public Download build() { in build()
238 return new Download( in build()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDownloadBuilder.java21 import com.google.android.exoplayer2.offline.Download;
48 @Download.State private int state;
103 this.state = Download.STATE_QUEUED; in DownloadBuilder()
105 this.failureReason = Download.FAILURE_REASON_NONE; in DownloadBuilder()
140 public DownloadBuilder setState(@Download.State int state) { in setState()
199 public Download build() { in build()
208 return new Download( in build()
/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()
96 return download != null && download.state != Download.STATE_FAILED; in isDownloaded()
101 @Nullable Download download = downloads.get(uri); in getDownloadRequest()
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()
108 if (download != null && download.state != Download.STATE_FAILED) { in toggleDownload()
126 Download download = loadedDownloads.getDownload(); in loadDownloads()
138 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged()
[all …]
DDemoDownloadService.java23 import com.google.android.exoplayer2.offline.Download;
69 List<Download> downloads, @Requirements.RequirementFlags int notMetRequirements) { in getForegroundNotification()
102 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged()
104 if (download.state == Download.STATE_COMPLETED) { in onDownloadChanged()
111 } else if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDemoDownloadService.java23 import com.google.android.exoplayer2.offline.Download;
69 List<Download> downloads, @Requirements.RequirementFlags int notMetRequirements) { in getForegroundNotification()
102 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged()
104 if (download.state == Download.STATE_COMPLETED) { in onDownloadChanged()
111 } else if (download.state == Download.STATE_FAILED) { in onDownloadChanged()
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()
101 return download != null && download.state != Download.STATE_FAILED; in isDownloaded()
106 @Nullable Download download = downloads.get(uri); in getDownloadRequest()
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()
113 if (download != null && download.state != Download.STATE_FAILED) { in toggleDownload()
132 Download download = loadedDownloads.getDownload(); in loadDownloads()
144 DownloadManager downloadManager, Download download, @Nullable Exception finalException) { in onDownloadChanged()
[all …]
/external/angle/src/tests/restricted_traces/
Dgpumem.sh19 *) echo com.android.angle.test:test_process $pid >> /sdcard/Download/gpumem.txt ;;
21 dumpsys gpu --gpumem >> /sdcard/Download/gpumem.txt
23 echo "time_elapsed: $time_elapsed" >> /sdcard/Download/gpumem.txt
/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

12345678910>>...17