Home
last modified time | relevance | path

Searched refs:mPlayer (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaRandomTest.java54 private MediaPlayer mPlayer; field in MediaRandomTest
76 mPlayer = new MediaPlayer(); in setUp()
91 if (mPlayer != null) { in tearDown()
92 mPlayer.release(); in tearDown()
93 mPlayer = null; in tearDown()
168 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadSource()
189 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testPlayerRandomAction()
192 if (mPlayer == mp && in testPlayerRandomAction()
201 mPlayer.setDisplay(mSurfaceHolder); in testPlayerRandomAction()
202 mPlayer.prepare(); in testPlayerRandomAction()
[all …]
D.goutputstream-9KZYJZ359 mPlayer.setDataSource(new DataSourceDesc.Builder()
363 mPlayer.setDisplay(getActivity().getSurfaceHolder());
364 mPlayer.setScreenOnWhilePlaying(true);
383 mPlayer.setMediaPlayer2EventCallback(mExecutor, ecb);
387 mPlayer.prepare();
391 mPlayer.play();
393 assertFalse(mPlayer.isPlaying());
396 mPlayer.play();
399 mPlayer.stop();
400 mPlayer.reset();
[all …]
DVolumeShaperTest.java280 mPlayer = createMediaPlayer(offloaded); in MediaPlayerPlayer()
285 mPlayer.start(); in start()
289 mPlayer.pause(); in pause()
293 mPlayer.stop(); in stop()
297 mPlayer.release(); in close()
302 return mPlayer.createVolumeShaper(configuration); in createVolumeShaper()
309 private final MediaPlayer mPlayer; field in VolumeShaperTest.MediaPlayerPlayer
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DPlayVideoActivity.java68 private MediaPlayer mPlayer; field in PlayVideoActivity
95 mPlayer = new MediaPlayer(); in playVideo()
96 mPlayer.setDisplay(mHolder); in playVideo()
97 mPlayer.setScreenOnWhilePlaying(true); in playVideo()
98 mPlayer.setOnVideoSizeChangedListener(this); in playVideo()
99 mPlayer.setOnErrorListener(this); in playVideo()
100 mPlayer.setOnPreparedListener(this); in playVideo()
102 mPlayer.setDataSource(mStream.uri); in playVideo()
108 mPlayer.prepareAsync(); in playVideo()
150 if (mPlayer != null) {
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralPlayerActivity.java35 protected StreamPlayer mPlayer = null; field in USBAudioPeripheralPlayerActivity
58 mPlayer = new StreamPlayer(); in setupPlayer()
64 mPlayer.open(numChans, mSystemSampleRate, mSystemBufferSize, mFiller); in startPlay()
65 mPlayer.start(); in startPlay()
72 mPlayer.stop(); in stopPlay()
73 mPlayer.close(); in stopPlay()
DUSBAudioPeripheralRecordActivity.java107 if (mPlayer != null && mPlayer.isPlaying()) { in stopRecording()
108 mPlayer.stop(); in stopRecording()