/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | MediaPlayerStateUnitTestTemplate.java | 47 private MediaPlayer mMediaPlayer = null; field in class:MediaPlayerStateUnitTestTemplate 90 assertTrue(mInitialized); // mMediaPlayer has been initialized? 107 // Set up a looper to be used by mMediaPlayer. 114 mMediaPlayer = new MediaPlayer(); 115 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 129 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 158 mMethodUnderTest.invokeMethodUnderTest(mMediaPlayer); 176 mMediaPlayer.reset(); 177 mMediaPlayer.setDataSource(TEST_PATH); 178 mMediaPlayer [all...] |
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | SimplePlayer.java | 57 MediaPlayer mMediaPlayer; field in class:SimplePlayer 107 if (mMediaPlayer == null || !mMediaPlayer.isPlaying()){ 108 if (mMediaPlayer == null) { 110 mMediaPlayer = new MediaPlayer(); 112 mMediaPlayer.setAudioSessionId(mSession); 113 Log.d(TAG, "mMediaPlayer.setAudioSessionId(): "+ mSession); 119 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 123 mMediaPlayer.setDataSource(mFileName); 125 mMediaPlayer [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 97 private MediaPlayer mMediaPlayer = null; field in class:VideoView 271 if (mMediaPlayer == null) { 275 mMediaPlayer.addSubtitleSource(is, format); 278 mMediaPlayer, MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE, 0); 286 if (mMediaPlayer != null) { 287 mMediaPlayer.stop(); 288 mMediaPlayer.release(); 289 mMediaPlayer = null; 310 mMediaPlayer = new MediaPlayer(); 315 context, mMediaPlayer [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | MediaSource.java | 105 private MediaPlayer mMediaPlayer; field in class:MediaSource 231 if (mMediaPlayer == null) { 258 mMediaPlayer.release(); 263 mMediaPlayer.start(); 355 if (mMediaPlayer.isPlaying()) { 356 mMediaPlayer.stop(); 365 mMediaPlayer.release(); 366 mMediaPlayer = null; 404 mMediaPlayer.setLooping(mLooping); 417 mMediaPlayer [all...] |
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
H A D | ScoAudioTest.java | 323 private MediaPlayer mMediaPlayer; field in class:ScoAudioTest.SimplePlayerController 346 Log.e(TAG, "playOrPause playing: "+((mMediaPlayer == null)?false:!mMediaPlayer.isPlaying())+ 347 " mMediaPlayer: "+mMediaPlayer+ 350 if (mMediaPlayer == null || !mMediaPlayer.isPlaying()){ 351 if (mMediaPlayer == null) { 357 mMediaPlayer = new MediaPlayer(); 361 mMediaPlayer [all...] |
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
H A D | VideoDumpView.java | 71 private MediaPlayer mMediaPlayer = null; field in class:VideoDumpView 130 mMediaPlayer = new MediaPlayer(); 132 mMediaPlayer.setDataSource(VideoDumpConfig.VIDEO_URI); 155 mRenderer.setMediaPlayer(mMediaPlayer); 163 mMediaPlayer.start(); 167 mMediaPlayer.pause(); 178 if (mMediaPlayer != null) { 179 mMediaPlayer.stop(); 180 mMediaPlayer.release(); 181 mMediaPlayer 335 private MediaPlayer mMediaPlayer; field in class:VideoDumpView.VideoDumpRenderer [all...] |
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
H A D | NativeMedia.java | 48 MediaPlayer mMediaPlayer; field in class:NativeMedia 125 mMediaPlayer = new MediaPlayer(); 128 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { 143 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() { 227 mSelectedVideoSink.useAsSinkForJava(mMediaPlayer); 233 mMediaPlayer.setDataSource(mSourceString); 237 mMediaPlayer.prepareAsync(); 239 } else if (mMediaPlayer.isPlaying()) { 240 mMediaPlayer.pause(); 242 mMediaPlayer [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CodecTest.java | 49 private static MediaPlayer mMediaPlayer; field in class:CodecTest 272 mMediaPlayer.setDataSource(filePath); 273 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); 274 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); 277 mMediaPlayer.prepare(); 278 mMediaPlayer.start(); 284 videoHeight = mMediaPlayer.getVideoHeight(); 308 mMediaPlayer.setDataSource(filePath); 309 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); 310 mMediaPlayer [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 2183 private MediaPlayer mMediaPlayer; field in class:MediaPlayer.EventHandler 2187 mMediaPlayer = mp; 2192 if (mMediaPlayer.mNativeContext == 0) { 2200 mOnPreparedListener.onPrepared(mMediaPlayer); 2205 mOnCompletionListener.onCompletion(mMediaPlayer); 2224 mOnBufferingUpdateListener.onBufferingUpdate(mMediaPlayer, msg.arg1); 2229 mOnSeekCompleteListener.onSeekComplete(mMediaPlayer); 2235 mTimeProvider.onSeekComplete(mMediaPlayer); 2241 mOnVideoSizeChangedListener.onVideoSizeChanged(mMediaPlayer, msg.arg1, msg.arg2); 2248 error_was_handled = mOnErrorListener.onError(mMediaPlayer, ms [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
H A D | MediaAudioEffectTest.java | 54 private MediaPlayer mMediaPlayer = null; field in class:MediaAudioEffectTest 360 assertTrue(mInitialized); // mMediaPlayer has been initialized? 370 mMediaPlayer.attachAuxEffect(effect.getId()); 1355 // Set up a looper to be used by mMediaPlayer. 1362 mMediaPlayer = new MediaPlayer(); 1363 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 1372 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 1395 if (mMediaPlayer != null) { 1396 mMediaPlayer.release();
|