/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTestBase.java | 153 protected void playLiveVideoTest(String path, int playTime) throws Exception { in playLiveVideoTest() argument 154 playVideoWithRetries(path, null, null, playTime); in playLiveVideoTest() 157 protected void playLiveAudioOnlyTest(String path, int playTime) throws Exception { in playLiveAudioOnlyTest() argument 158 playVideoWithRetries(path, -1, -1, playTime); in playLiveAudioOnlyTest() 165 protected void playVideoWithRetries(String path, Integer width, Integer height, int playTime) in playVideoWithRetries() argument 172 playLoadedVideo(width, height, playTime); in playVideoWithRetries() 193 int playTime) throws Exception { in playLiveVideoTest() argument 194 playVideoWithRetries(uri, headers, cookies, null /* width */, null /* height */, playTime); in playLiveVideoTest() 199 int playTime) throws Exception { in playLiveAudioOnlyTest() argument 200 playVideoWithRetries(uri, headers, cookies, -1 /* width */, -1 /* height */, playTime); in playLiveAudioOnlyTest() [all …]
|
D | MediaPlayerDrmTestBase.java | 212 int playTime, ModularDrmTestType testType) throws Exception { in playModularDrmVideoWithRetries() argument 219 playLoadedModularDrmVideo(file, width, height, playTime, testType); in playModularDrmVideoWithRetries() 246 final Integer height, int playTime, ModularDrmTestType testType) throws Exception { in playLoadedModularDrmVideo() argument 254 playLoadedModularDrmVideo_Generic(file, width, height, playTime, testType); in playLoadedModularDrmVideo() 258 playLoadedModularDrmVideo_V4_offlineKey(file, width, height, playTime); in playLoadedModularDrmVideo() 264 final Integer height, int playTime, ModularDrmTestType testType) throws Exception { in playLoadedModularDrmVideo_Generic() argument 342 if (playTime == 0) { in playLoadedModularDrmVideo_Generic() 346 Log.v(TAG, "playLoadedVideo: waiting while playing for " + playTime); in playLoadedModularDrmVideo_Generic() 347 playbackCompleted.waitForSignal(playTime); in playLoadedModularDrmVideo_Generic() 536 final Integer height, int playTime) throws Exception { in playLoadedModularDrmVideo_V4_offlineKey() argument [all …]
|
D | StreamingMediaPlayerTest.java | 596 private void localHlsTest(final String name, int playTime, int bitsPerMs, boolean isAudioOnly) in localHlsTest() argument 598 localHlsTest(name, null, null, false, false, playTime, bitsPerMs, isAudioOnly); in localHlsTest() 602 boolean appendQueryString, boolean redirect, int playTime, int bitsPerMs, in localHlsTest() argument 626 playLiveAudioOnlyTest(Uri.parse(stream_url), headers, cookies, playTime); in localHlsTest() local 628 playLiveVideoTest(Uri.parse(stream_url), headers, cookies, playTime); in localHlsTest() local
|
D | MediaPlayerTest.java | 1176 int playTime = 2000; // The testing clip is about 10 second long. 1179 Thread.sleep(playTime); 1194 Thread.sleep(playTime); 1222 int playTime = 2000; // The testing clip is about 10 second long. in testSetPlaybackParamsZeroSpeed() local 1226 Thread.sleep(playTime); in testSetPlaybackParamsZeroSpeed() 1231 Thread.sleep(playTime); in testSetPlaybackParamsZeroSpeed() 1239 Thread.sleep(playTime); in testSetPlaybackParamsZeroSpeed() 1262 int playTime = 4000; // The testing clip is about 10 second long. in testPlaybackRate() local 1265 Thread.sleep(playTime); in testPlaybackRate() 1273 int diff = Math.abs((int)(playedMediaDurationMs / playbackRate) - playTime); in testPlaybackRate() [all …]
|