/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 145 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testIfMediaServerDied() 148 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 155 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in testIfMediaServerDied() 158 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 164 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied() 167 mMediaPlayer.prepare(); in testIfMediaServerDied() 168 mMediaPlayer.start(); in testIfMediaServerDied() 175 mMediaPlayer.release(); in testIfMediaServerDied() 181 MediaPlayer mp = mMediaPlayer; in testVorbisCrash() 210 mMediaPlayer.setDataSource((String) null); in testPlayNullSourcePath() [all …]
|
D | MediaPlayerTestBase.java | 63 protected MediaPlayer mMediaPlayer = null; field in MediaPlayerTestBase 79 mMediaPlayer = new MediaPlayer(); in setUp() 92 if (mMediaPlayer != null) { in tearDown() 93 mMediaPlayer.release(); in tearDown() 94 mMediaPlayer = null; in tearDown() 122 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadResource() 131 mMediaPlayer.setVideoScalingMode(videoScalingMode); in loadResource() 146 mMediaPlayer.addTimedTextSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadSubtitleSource() 170 mMediaPlayer.reset(); in playVideoWithRetries() 171 mMediaPlayer.setDataSource(path); in playVideoWithRetries() [all …]
|
D | VideoSurfaceView.java | 41 private MediaPlayer mMediaPlayer = null; field in VideoSurfaceView 47 mMediaPlayer = mp; in VideoSurfaceView() 56 mRenderer.setMediaPlayer(mMediaPlayer); in onResume() 64 mMediaPlayer.start(); in startTest() 67 mMediaPlayer.setSurface(null); in startTest() 69 while (mMediaPlayer.isPlaying()) { in startTest() 86 private MediaPlayer mMediaPlayer; field in VideoSurfaceView.VideoRender 93 mMediaPlayer = player; in setMediaPlayer() 121 mMediaPlayer.setSurface(surface); in onSurfaceCreated() 125 mMediaPlayer.prepare(); in onSurfaceCreated()
|
D | StreamingMediaPlayerTest.java | 301 mMediaPlayer.setDataSource(stream_url); in localHttpAudioStreamTest() 303 mMediaPlayer.setDisplay(getActivity().getSurfaceHolder()); in localHttpAudioStreamTest() 304 mMediaPlayer.setScreenOnWhilePlaying(true); in localHttpAudioStreamTest() 307 mMediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { in localHttpAudioStreamTest() 313 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in localHttpAudioStreamTest() 322 mMediaPlayer.prepare(); in localHttpAudioStreamTest() 325 mMediaPlayer.start(); in localHttpAudioStreamTest() 327 assertFalse(mMediaPlayer.isPlaying()); in localHttpAudioStreamTest() 330 mMediaPlayer.start(); in localHttpAudioStreamTest() 333 mMediaPlayer.stop(); in localHttpAudioStreamTest() [all …]
|
D | MediaPlayerDrmTestBase.java | 86 protected MediaPlayer mMediaPlayer = null; field in MediaPlayerDrmTestBase 101 mMediaPlayer = new MediaPlayer(); in setUp() 114 if (mMediaPlayer != null) { in tearDown() 115 mMediaPlayer.release(); in tearDown() 116 mMediaPlayer = null; in tearDown() 123 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in setOnErrorListener() 227 mMediaPlayer.stop(); in playModularDrmVideoWithRetries() 228 mMediaPlayer.reset(); in playModularDrmVideoWithRetries() 273 mMediaPlayer.setDataSource(mContext, file); in playLoadedModularDrmVideo_Generic() 279 mMediaPlayer.setDisplay(mActivity.getSurfaceHolder()); in playLoadedModularDrmVideo_Generic() [all …]
|
D | MediaPlayerFlakyNetworkTest.java | 145 mMediaPlayer.start(); in doPlayMp4Stream() 170 mMediaPlayer.start(); in doRandomOperations() 175 mMediaPlayer.start(); in doRandomOperations() 176 assertTrue(mMediaPlayer.isPlaying()); in doRandomOperations() 179 mMediaPlayer.pause(); in doRandomOperations() 180 assertFalse(mMediaPlayer.isPlaying()); in doRandomOperations() 183 mMediaPlayer.seekTo(random.nextInt(10000)); in doRandomOperations() 209 if (mMediaPlayer == null) { in createMediaPlayer() 210 mMediaPlayer = createMediaPlayerOnMainThread(); in createMediaPlayer() 215 MediaPlayer old = mMediaPlayer; in releaseMediaPlayer() [all …]
|
D | AudioManagerStub.java | 33 private MediaPlayer mMediaPlayer; field in AudioManagerStub 50 mMediaPlayer = MediaPlayer.create(this, MP3_TO_PLAY); in onCreate() 51 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); in onCreate() 52 mMediaPlayer.setLooping(false); in onCreate() 53 mMediaPlayer.start(); in onCreate() 93 mMediaPlayer.stop(); in onActivityResult() 94 mMediaPlayer.release(); in onActivityResult()
|
D | MediaPlayerSurfaceStubActivity.java | 39 private MediaPlayer mMediaPlayer = null; field in MediaPlayerSurfaceStubActivity 46 mMediaPlayer = new MediaPlayer(); in onCreate() 55 mMediaPlayer.setDataSource( in onCreate() 70 mVideoView = new VideoSurfaceView(this, mMediaPlayer); in onCreate()
|
D | AudioEffectTest.java | 56 private MediaPlayer mMediaPlayer = null; field in AudioEffectTest 186 mMediaPlayer.setDataSource(afd.getFileDescriptor(), in test1_5AuxiliaryOnMediaPlayer() 193 mMediaPlayer.attachAuxEffect(mEffect.getId()); in test1_5AuxiliaryOnMediaPlayer() 194 mMediaPlayer.setAuxEffectSendLevel(1.0f); in test1_5AuxiliaryOnMediaPlayer() 226 mMediaPlayer.attachAuxEffect(mEffect.getId()); in test1_6AuxiliaryOnMediaPlayerFailure() 1014 mMediaPlayer = new MediaPlayer(); in createMediaPlayerLooper() 1017 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in createMediaPlayerLooper() 1026 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in createMediaPlayerLooper() 1048 if (mMediaPlayer != null) { in terminateMediaPlayerLooper() 1049 mMediaPlayer.release(); in terminateMediaPlayerLooper()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaServerCrashTest.java | 48 private final MediaPlayer mMediaPlayer = new MediaPlayer(); field in MediaServerCrashTest 59 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in setUp() 62 assertTrue(mp == mMediaPlayer); in setUp() 69 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { in setUp() 72 assertTrue(mp == mMediaPlayer); in setUp() 77 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in setUp() 80 assertTrue(mp == mMediaPlayer); in setUp() 99 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied() 102 mMediaPlayer.prepareAsync(); in testIfMediaServerDied() 107 mMediaPlayer.start(); in testIfMediaServerDied() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | CtsConnection.java | 58 private final MediaPlayer mMediaPlayer; field in CtsConnection 68 mMediaPlayer = createMediaPlayer(); in CtsConnection() 70 mMediaPlayer = null; in CtsConnection() 115 if (mMediaPlayer != null && !mMediaPlayer.isPlaying()) { in onAnswer() 116 mMediaPlayer.start(); in onAnswer() 163 if (mMediaPlayer != null && mMediaPlayer.isPlaying()) { in setDisconnectedAndDestroy() 164 mMediaPlayer.stop(); in setDisconnectedAndDestroy()
|
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/ |
D | CapturedActivityWithResource.java | 24 private MediaPlayer mMediaPlayer; field in CapturedActivityWithResource 29 mMediaPlayer = MediaPlayer.create(this, R.raw.colors_video); in onCreate() 30 mMediaPlayer.setLooping(true); in onCreate() 37 return mMediaPlayer; in getMediaPlayer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundPlayerObject.java | 43 private MediaPlayer mMediaPlayer; field in SoundPlayerObject 254 if (mMediaPlayer != null) { in setBalance() 257 mMediaPlayer.setVolume(left, right); in setBalance() 269 if (mMediaPlayer != null) { in rewind() 270 mMediaPlayer.seekTo(0); in rewind() 304 mMediaPlayer = new MediaPlayer(); in setSoundWithResId() 307 mMediaPlayer.setAudioStreamType(mStreamType); in setSoundWithResId() 308 mMediaPlayer.setDataSource(mContext.getApplicationContext(), in setSoundWithResId() 310 mMediaPlayer.prepare(); in setSoundWithResId() 315 mMediaPlayer.setLooping(mLooping); in setSoundWithResId() [all …]
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 37 private static MediaPlayer mMediaPlayer; field in CodecTest 260 mMediaPlayer.setDataSource(filePath); in videoHeight() 261 mMediaPlayer.setDisplay(MediaFrameworkTest.getSurfaceView().getHolder()); in videoHeight() 262 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); in videoHeight() 265 mMediaPlayer.prepare(); in videoHeight() 266 mMediaPlayer.start(); in videoHeight() 272 videoHeight = mMediaPlayer.getVideoHeight(); in videoHeight() 296 mMediaPlayer.setDataSource(filePath); in videoWidth() 297 mMediaPlayer.setDisplay(MediaFrameworkTest.getSurfaceView().getHolder()); in videoWidth() 298 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); in videoWidth() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | SurfaceViewSyncTest.java | 69 private MediaPlayer mMediaPlayer; field in SurfaceViewSyncTest 74 mMediaPlayer = mActivity.getMediaPlayer(); in setup() 142 mMediaPlayer.setSurface(holder.getSurface()); 143 mMediaPlayer.start(); 151 mMediaPlayer.pause(); 152 mMediaPlayer.setSurface(null);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/ |
D | ComplexMovementRenderer.java | 63 private MediaPlayer mMediaPlayer; field in ComplexMovementRenderer 70 mMediaPlayer = MediaPlayer.create(context, R.raw.ring_sound); in ComplexMovementRenderer() 202 mMediaPlayer.start(); in onRingEntered()
|