Home
last modified time | relevance | path

Searched refs:mediaPlayer (Results 1 – 10 of 10) sorted by relevance

/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DNativeMedia.java130 public void onPrepared(MediaPlayer mediaPlayer) { in onCreate()
131 int width = mediaPlayer.getVideoWidth(); in onCreate()
132 int height = mediaPlayer.getVideoHeight(); in onCreate()
138 mediaPlayer.start(); in onCreate()
145 public void onVideoSizeChanged(MediaPlayer mediaPlayer, int width, int height) { in onCreate()
346 abstract void useAsSinkForJava(MediaPlayer mediaPlayer); in useAsSinkForJava() argument
363 void useAsSinkForJava(MediaPlayer mediaPlayer) { in useAsSinkForJava() argument
364 mediaPlayer.setDisplay(mSurfaceHolder); in useAsSinkForJava()
384 void useAsSinkForJava(MediaPlayer mediaPlayer) { in useAsSinkForJava() argument
387 mediaPlayer.setSurface(s); in useAsSinkForJava()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java549 MediaPlayer mediaPlayer = new MediaPlayer(); in onUtteranceCompleted() local
551 mediaPlayer.setDataSource(mSampleFile.getPath()); in onUtteranceCompleted()
552 mediaPlayer.setAudioStreamType(AudioManager.STREAM_BLUETOOTH_SCO); in onUtteranceCompleted()
553 mediaPlayer.prepare(); in onUtteranceCompleted()
556 mediaPlayer.release(); in onUtteranceCompleted()
557 mediaPlayer = null; in onUtteranceCompleted()
560 if (mediaPlayer != null) { in onUtteranceCompleted()
561 mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in onUtteranceCompleted()
574 mediaPlayer.start(); in onUtteranceCompleted()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java413 MediaPlayer mediaPlayer = new MediaPlayer(); in getOutputVideoProperty() local
415 mediaPlayer.setDataSource(outputFilePath); in getOutputVideoProperty()
417 mediaPlayer.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in getOutputVideoProperty()
419 mediaPlayer.prepare(); in getOutputVideoProperty()
421 mOutputDuration = mediaPlayer.getDuration(); in getOutputVideoProperty()
424 mOutputVideoHeight = mediaPlayer.getVideoHeight(); in getOutputVideoProperty()
425 mOutputVideoWidth = mediaPlayer.getVideoWidth(); in getOutputVideoProperty()
426 mediaPlayer.release(); in getOutputVideoProperty()
429 mediaPlayer.release(); in getOutputVideoProperty()
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DMediaPlayerGlue.java359 public void onCompletion(MediaPlayer mediaPlayer) { in setMode()
362 mediaPlayer.setOnCompletionListener(null); in setMode()
371 public void onCompletion(MediaPlayer mediaPlayer) { in setMode()
DMediaPlayerAdapter.java65 public void onCompletion(MediaPlayer mediaPlayer) {
83 public void onVideoSizeChanged(MediaPlayer mediaPlayer, int width, int height) {
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
DMediaPlayerGlueTest.java48 public void mediaPlayer() { in mediaPlayer() method in MediaPlayerGlueTest
/frameworks/base/media/java/android/media/
DMediaPlayer2Impl.java4094 private MediaPlayer2Impl mediaPlayer; field in MediaPlayer2Impl.ProvisioningThread
4102 UUID uuid, MediaPlayer2Impl mediaPlayer) { in initialize() argument
4104 drmLock = mediaPlayer.mDrmLock; in initialize()
4105 this.mediaPlayer = mediaPlayer; in initialize()
4172 succeeded = mediaPlayer.resumePrepareDrm(uuid); in run()
4177 mediaPlayer.mDrmProvisioningInProgress = false; in run()
4178 mediaPlayer.mPrepareDrmInProgress = false; in run()
4188 mediaPlayer, mCurrentDSD, status)); in run()
4195 succeeded = mediaPlayer.resumePrepareDrm(uuid); in run()
4200 mediaPlayer.mDrmProvisioningInProgress = false; in run()
[all …]
DMediaPlayer.java5257 private MediaPlayer mediaPlayer; field in MediaPlayer.ProvisioningThread
5265 UUID uuid, MediaPlayer mediaPlayer) { in initialize() argument
5267 drmLock = mediaPlayer.mDrmLock; in initialize()
5268 onDrmPreparedHandlerDelegate = mediaPlayer.mOnDrmPreparedHandlerDelegate; in initialize()
5269 this.mediaPlayer = mediaPlayer; in initialize()
5332 succeeded = mediaPlayer.resumePrepareDrm(uuid); in run()
5337 mediaPlayer.mDrmProvisioningInProgress = false; in run()
5338 mediaPlayer.mPrepareDrmInProgress = false; in run()
5350 succeeded = mediaPlayer.resumePrepareDrm(uuid); in run()
5355 mediaPlayer.mDrmProvisioningInProgress = false; in run()
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DMediaSessionService.java358 public boolean onError(MediaPlayer mediaPlayer, int what, int extra) { in initializePlayer()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java5488 MediaPlayer mediaPlayer = new MediaPlayer(); in onPlaySoundEffect() local
5491 mediaPlayer.setDataSource(filePath); in onPlaySoundEffect()
5492 mediaPlayer.setAudioStreamType(AudioSystem.STREAM_SYSTEM); in onPlaySoundEffect()
5493 mediaPlayer.prepare(); in onPlaySoundEffect()
5494 mediaPlayer.setVolume(volFloat); in onPlaySoundEffect()
5495 mediaPlayer.setOnCompletionListener(new OnCompletionListener() { in onPlaySoundEffect()
5500 mediaPlayer.setOnErrorListener(new OnErrorListener() { in onPlaySoundEffect()
5506 mediaPlayer.start(); in onPlaySoundEffect()