/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 133 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testIfMediaServerDied() 136 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 143 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in testIfMediaServerDied() 146 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 152 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied() 155 mMediaPlayer.prepare(); in testIfMediaServerDied() 156 mMediaPlayer.start(); in testIfMediaServerDied() 163 mMediaPlayer.release(); in testIfMediaServerDied() 169 MediaPlayer mp = mMediaPlayer; in testVorbisCrash() 197 mMediaPlayer.setDataSource((String) null); in testPlayNullSourcePath() [all …]
|
D | StreamingMediaPlayerTest.java | 298 mMediaPlayer.setDataSource(stream_url); in localHttpAudioStreamTest() 300 mMediaPlayer.setDisplay(getActivity().getSurfaceHolder()); in localHttpAudioStreamTest() 301 mMediaPlayer.setScreenOnWhilePlaying(true); in localHttpAudioStreamTest() 304 mMediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { in localHttpAudioStreamTest() 310 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in localHttpAudioStreamTest() 319 mMediaPlayer.prepare(); in localHttpAudioStreamTest() 322 mMediaPlayer.start(); in localHttpAudioStreamTest() 324 assertFalse(mMediaPlayer.isPlaying()); in localHttpAudioStreamTest() 327 mMediaPlayer.start(); in localHttpAudioStreamTest() 330 mMediaPlayer.stop(); in localHttpAudioStreamTest() [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 | MediaPlayerTestBase.java | 61 protected MediaPlayer mMediaPlayer = null; field in MediaPlayerTestBase 77 mMediaPlayer = new MediaPlayer(); in setUp() 91 if (mMediaPlayer != null) { in tearDown() 92 mMediaPlayer.release(); in tearDown() 93 mMediaPlayer = null; in tearDown() 111 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadResource() 120 mMediaPlayer.setVideoScalingMode(videoScalingMode); in loadResource() 135 mMediaPlayer.addTimedTextSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadSubtitleSource() 159 mMediaPlayer.setDataSource(path); in playVideoWithRetries() 191 mMediaPlayer.setDataSource(getInstrumentation().getTargetContext(), in playVideoWithRetries() [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() 218 mMediaPlayer.stop(); in playModularDrmVideoWithRetries() 219 mMediaPlayer.reset(); in playModularDrmVideoWithRetries() 264 mMediaPlayer.setDataSource(mContext, file); in playLoadedModularDrmVideo_Generic() 270 mMediaPlayer.setDisplay(mActivity.getSurfaceHolder()); in playLoadedModularDrmVideo_Generic() [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 | MediaPlayerFlakyNetworkTest.java | 142 mMediaPlayer.start(); in doPlayMp4Stream() 167 mMediaPlayer.start(); in doRandomOperations() 172 mMediaPlayer.start(); in doRandomOperations() 173 assertTrue(mMediaPlayer.isPlaying()); in doRandomOperations() 176 mMediaPlayer.pause(); in doRandomOperations() 177 assertFalse(mMediaPlayer.isPlaying()); in doRandomOperations() 180 mMediaPlayer.seekTo(random.nextInt(10000)); in doRandomOperations() 206 if (mMediaPlayer == null) { in createMediaPlayer() 207 mMediaPlayer = createMediaPlayerOnMainThread(); in createMediaPlayer() 212 MediaPlayer old = mMediaPlayer; in releaseMediaPlayer() [all …]
|
D | MediaPlayerSurfaceStubActivity.java | 34 private MediaPlayer mMediaPlayer = null; field in MediaPlayerSurfaceStubActivity 41 mMediaPlayer = new MediaPlayer(); in onCreate() 45 mMediaPlayer.setDataSource( in onCreate() 52 mVideoView = new VideoSurfaceView(this, mMediaPlayer); in onCreate()
|
D | AudioEffectTest.java | 55 private MediaPlayer mMediaPlayer = null; field in AudioEffectTest 185 mMediaPlayer.setDataSource(afd.getFileDescriptor(), in test1_5AuxiliaryOnMediaPlayer() 192 mMediaPlayer.attachAuxEffect(mEffect.getId()); in test1_5AuxiliaryOnMediaPlayer() 193 mMediaPlayer.setAuxEffectSendLevel(1.0f); in test1_5AuxiliaryOnMediaPlayer() 225 mMediaPlayer.attachAuxEffect(mEffect.getId()); in test1_6AuxiliaryOnMediaPlayerFailure() 1013 mMediaPlayer = new MediaPlayer(); in createMediaPlayerLooper() 1016 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in createMediaPlayerLooper() 1025 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in createMediaPlayerLooper() 1047 if (mMediaPlayer != null) { in terminateMediaPlayerLooper() 1048 mMediaPlayer.release(); in terminateMediaPlayerLooper()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundPlayerObject.java | 34 private MediaPlayer mMediaPlayer; field in SoundPlayerObject 91 if (mMediaPlayer != null) { in setBalance() 94 mMediaPlayer.setVolume(left, right); in setBalance() 106 if (mMediaPlayer != null) { in rewind() 107 mMediaPlayer.seekTo(0); in rewind() 118 mMediaPlayer = new MediaPlayer(); in setSoundWithResId() 121 mMediaPlayer.setAudioStreamType(mStreamType); in setSoundWithResId() 122 mMediaPlayer.setDataSource(context.getApplicationContext(), in setSoundWithResId() 124 mMediaPlayer.prepare(); in setSoundWithResId() 128 mMediaPlayer.setLooping(true); in setSoundWithResId() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaServerCrashTest.java | 49 private final MediaPlayer mMediaPlayer = new MediaPlayer(); field in MediaServerCrashTest 61 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in setUp() 64 assertTrue(mp == mMediaPlayer); in setUp() 71 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { in setUp() 74 assertTrue(mp == mMediaPlayer); in setUp() 79 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in setUp() 82 assertTrue(mp == mMediaPlayer); in setUp() 103 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied() 106 mMediaPlayer.prepareAsync(); in testIfMediaServerDied() 111 mMediaPlayer.start(); in testIfMediaServerDied() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | CtsConnection.java | 56 private final MediaPlayer mMediaPlayer; field in CtsConnection 66 mMediaPlayer = createMediaPlayer(); in CtsConnection() 68 mMediaPlayer = null; in CtsConnection() 109 if (mMediaPlayer != null && !mMediaPlayer.isPlaying()) { in onAnswer() 110 mMediaPlayer.start(); in onAnswer() 157 if (mMediaPlayer != null && mMediaPlayer.isPlaying()) { in setDisconnectedAndDestroy() 158 mMediaPlayer.stop(); in setDisconnectedAndDestroy()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 37 private static MediaPlayer mMediaPlayer; field in CodecTest 259 mMediaPlayer.setDataSource(filePath); in videoHeight() 260 mMediaPlayer.setDisplay(MediaFrameworkTest.getSurfaceView().getHolder()); in videoHeight() 261 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); in videoHeight() 264 mMediaPlayer.prepare(); in videoHeight() 265 mMediaPlayer.start(); in videoHeight() 271 videoHeight = mMediaPlayer.getVideoHeight(); in videoHeight() 295 mMediaPlayer.setDataSource(filePath); in videoWidth() 296 mMediaPlayer.setDisplay(MediaFrameworkTest.getSurfaceView().getHolder()); in videoWidth() 297 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); in videoWidth() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | SurfaceViewSyncTest.java | 74 private MediaPlayer mMediaPlayer; field in SurfaceViewSyncTest 79 mMediaPlayer = mActivity.getMediaPlayer(); in setup() 146 mMediaPlayer.setSurface(holder.getSurface()); 147 mMediaPlayer.start(); 155 mMediaPlayer.pause(); 156 mMediaPlayer.setSurface(null);
|
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/ |
D | CapturedActivity.java | 75 private MediaPlayer mMediaPlayer; field in CapturedActivity 107 mMediaPlayer = MediaPlayer.create(this, R.raw.colors_video); in onCreate() 108 mMediaPlayer.setLooping(true); in onCreate() 126 return mMediaPlayer; in getMediaPlayer()
|
/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()
|