/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerStateUnitTestTemplate.java | 47 private MediaPlayer mMediaPlayer = null; field in MediaPlayerStateUnitTestTemplate 114 mMediaPlayer = new MediaPlayer(); in initializeMessageLooper() 115 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in initializeMessageLooper() 129 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in initializeMessageLooper() 158 mMethodUnderTest.invokeMethodUnderTest(mMediaPlayer); in callMediaPlayerMethodUnderTestInState() 176 mMediaPlayer.reset(); in setMediaPlayerToIdleStateAfterReset() 177 mMediaPlayer.setDataSource(TEST_PATH); in setMediaPlayerToIdleStateAfterReset() 178 mMediaPlayer.prepare(); in setMediaPlayerToIdleStateAfterReset() 179 mMediaPlayer.reset(); in setMediaPlayerToIdleStateAfterReset() 188 mMediaPlayer.reset(); in setMediaPlayerToInitializedState() [all …]
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | SimplePlayer.java | 57 MediaPlayer mMediaPlayer; field in SimplePlayer 107 if (mMediaPlayer == null || !mMediaPlayer.isPlaying()){ in playOrPause() 108 if (mMediaPlayer == null) { in playOrPause() 110 mMediaPlayer = new MediaPlayer(); in playOrPause() 112 mMediaPlayer.setAudioSessionId(mSession); in playOrPause() 119 … mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playOrPause() 123 mMediaPlayer.setDataSource(mFileName); in playOrPause() 125 mMediaPlayer.setAudioStreamType(mStreamType); in playOrPause() 126 mMediaPlayer.prepare(); in playOrPause() 127 mMediaPlayer.setLooping(true); in playOrPause() [all …]
|
/frameworks/av/media/libmediaplayerservice/fuzzer/ |
D | mediaplayer_fuzzer.cpp | 239 sp<IMediaPlayer> mMediaPlayer = nullptr; member in MediaPlayerServiceFuzzer 280 mMediaPlayer->setDataSource(testService /*httpService*/, uri.c_str(), &headers); in setDataSource() 285 status = mMediaPlayer->setDataSource(mDataSourceFd, 0, size); in setDataSource() 290 status = mMediaPlayer->setDataSource(streamSource); in setDataSource() 301 status = mMediaPlayer->setDataSource(iDataSource); in setDataSource() 309 mMediaPlayer->setRetransmitEndpoint(&endpoint); in setDataSource() 310 status = mMediaPlayer->setDataSource(rtpParams); in setDataSource() 328 mMediaPlayer->setVideoSurfaceTexture(surface->getIGraphicBufferProducer()); in invokeMediaPlayer() 335 mMediaPlayer->setBufferingSettings(buffering); in invokeMediaPlayer() 339 mMediaPlayer->getBufferingSettings(&buffering); in invokeMediaPlayer() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | IllustrationVideoView.java | 69 protected MediaPlayer mMediaPlayer; field in IllustrationVideoView 153 if (mMediaPlayer != null) { in createMediaPlayer() 154 mMediaPlayer.release(); in createMediaPlayer() 160 mMediaPlayer = new MediaPlayer(); in createMediaPlayer() 162 mMediaPlayer.setSurface(surface); in createMediaPlayer() 163 mMediaPlayer.setOnPreparedListener(this); in createMediaPlayer() 164 mMediaPlayer.setOnSeekCompleteListener(this); in createMediaPlayer() 165 mMediaPlayer.setOnInfoListener(this); in createMediaPlayer() 166 mMediaPlayer.setOnErrorListener(this); in createMediaPlayer() 174 mMediaPlayer.setDataSource(getContext(), uri, null); in setVideoResourceInternal() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | MediaSource.java | 97 private MediaPlayer mMediaPlayer; field in MediaSource 223 if (mMediaPlayer == null) { in process() 250 mMediaPlayer.release(); in process() 255 mMediaPlayer.start(); in process() 347 if (mMediaPlayer.isPlaying()) { in close() 348 mMediaPlayer.stop(); in close() 357 mMediaPlayer.release(); in close() 358 mMediaPlayer = null; in close() 396 mMediaPlayer.setLooping(mLooping); in fieldPortValueUpdated() 409 mMediaPlayer.setVolume(mVolume, mVolume); in fieldPortValueUpdated() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 119 private MediaPlayer mMediaPlayer = null; field in VideoView 350 if (mMediaPlayer == null) { in addSubtitleSource() 354 mMediaPlayer.addSubtitleSource(is, format); in addSubtitleSource() 357 mMediaPlayer, MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE, 0); in addSubtitleSource() 363 if (mMediaPlayer != null) { in stopPlayback() 364 mMediaPlayer.stop(); in stopPlayback() 365 mMediaPlayer.release(); in stopPlayback() 366 mMediaPlayer = null; in stopPlayback() 388 mMediaPlayer = new MediaPlayer(); in openVideo() 393 context, mMediaPlayer.getMediaTimeProvider(), mMediaPlayer); in openVideo() [all …]
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
D | VideoDumpView.java | 71 private MediaPlayer mMediaPlayer = null; field in VideoDumpView 130 mMediaPlayer = new MediaPlayer(); in onResume() 132 mMediaPlayer.setDataSource(VideoDumpConfig.VIDEO_URI); in onResume() 155 mRenderer.setMediaPlayer(mMediaPlayer); in onResume() 163 mMediaPlayer.start(); in start() 167 mMediaPlayer.pause(); in pause() 178 if (mMediaPlayer != null) { in stopPlayback() 179 mMediaPlayer.stop(); in stopPlayback() 180 mMediaPlayer.release(); in stopPlayback() 181 mMediaPlayer = null; in stopPlayback() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 46 private static MediaPlayer mMediaPlayer; field in CodecTest 271 mMediaPlayer.setDataSource(filePath); in videoHeight() 272 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoHeight() 273 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); in videoHeight() 276 mMediaPlayer.prepare(); in videoHeight() 277 mMediaPlayer.start(); in videoHeight() 283 videoHeight = mMediaPlayer.getVideoHeight(); in videoHeight() 307 mMediaPlayer.setDataSource(filePath); in videoWidth() 308 mMediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in videoWidth() 309 mMediaPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); in videoWidth() [all …]
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 332 private MediaPlayer mMediaPlayer; field in ScoAudioTest.SimplePlayerController 355 … Log.e(TAG, "playOrPause playing: "+((mMediaPlayer == null)?false:!mMediaPlayer.isPlaying())+ in playOrPause() 356 " mMediaPlayer: "+mMediaPlayer+ in playOrPause() 359 if (mMediaPlayer == null || !mMediaPlayer.isPlaying()){ in playOrPause() 360 if (mMediaPlayer == null) { in playOrPause() 366 mMediaPlayer = new MediaPlayer(); in playOrPause() 370 … mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playOrPause() 374 mMediaPlayer.setDataSource(mFileName); in playOrPause() 376 mMediaPlayer.setAudioStreamType(mStreamType); in playOrPause() 377 mMediaPlayer.prepare(); in playOrPause() [all …]
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
D | NativeMedia.java | 48 MediaPlayer mMediaPlayer; field in NativeMedia 125 mMediaPlayer = new MediaPlayer(); in onCreate() 128 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { in onCreate() 143 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() { in onCreate() 227 mSelectedVideoSink.useAsSinkForJava(mMediaPlayer); in onCreate() 233 mMediaPlayer.setDataSource(mSourceString); in onCreate() 237 mMediaPlayer.prepareAsync(); in onCreate() 239 } else if (mMediaPlayer.isPlaying()) { in onCreate() 240 mMediaPlayer.pause(); in onCreate() 242 mMediaPlayer.start(); in onCreate() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 3488 private MediaPlayer mMediaPlayer; field in MediaPlayer.EventHandler 3492 mMediaPlayer = mp; in EventHandler() 3497 if (mMediaPlayer.mNativeContext == 0) { in handleMessage() 3516 onPreparedListener.onPrepared(mMediaPlayer); in handleMessage() 3548 mOnCompletionInternalListener.onCompletion(mMediaPlayer); in handleMessage() 3551 onCompletionListener.onCompletion(mMediaPlayer); in handleMessage() 3579 onBufferingUpdateListener.onBufferingUpdate(mMediaPlayer, msg.arg1); in handleMessage() 3585 onSeekCompleteListener.onSeekComplete(mMediaPlayer); in handleMessage() 3593 timeProvider.onSeekComplete(mMediaPlayer); in handleMessage() 3602 mMediaPlayer, msg.arg1, msg.arg2); in handleMessage() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | IllustrationVideoViewTest.java | 72 assertThat(view.mMediaPlayer).isNotNull(); in testPausedWhenWindowFocusLost() 93 assertThat(view.mMediaPlayer).isNotNull(); in testSurfaceReleasedWhenTextureDestroyed() 204 return Shadows.shadowOf(view.mMediaPlayer); in getShadowMediaPlayer()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioEffectTest.java | 52 private MediaPlayer mMediaPlayer = null; field in MediaAudioEffectTest 368 mMediaPlayer.attachAuxEffect(effect.getId()); in test1_6AuxiliaryOnMediaPlayerFailure() 1360 mMediaPlayer = new MediaPlayer(); in createMediaPlayerLooper() 1361 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in createMediaPlayerLooper() 1370 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in createMediaPlayerLooper() 1393 if (mMediaPlayer != null) { in terminateMediaPlayerLooper() 1394 mMediaPlayer.release(); in terminateMediaPlayerLooper()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 27515 Landroid/media/MediaPlayer$EventHandler;->mMediaPlayer:Landroid/media/MediaPlayer; 27518 Landroid/media/MediaPlayer$OnDrmInfoHandlerDelegate;->mMediaPlayer:Landroid/media/MediaPlayer; 27522 Landroid/media/MediaPlayer$OnDrmPreparedHandlerDelegate;->mMediaPlayer:Landroid/media/MediaPlayer; 27805 Landroid/media/MediaPlayer2Impl$EventHandler;->mMediaPlayer:Landroid/media/MediaPlayer2Impl;
|