Searched refs:mPlayer (Results 1 – 6 of 6) sorted by relevance
53 private MediaPlayer mPlayer; field in MediaRandomTest75 mPlayer = new MediaPlayer(); in setUp()90 if (mPlayer != null) { in tearDown()91 mPlayer.release(); in tearDown()92 mPlayer = null; in tearDown()167 mPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in loadSource()188 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testPlayerRandomAction()191 if (mPlayer == mp && in testPlayerRandomAction()200 mPlayer.setDisplay(mSurfaceHolder); in testPlayerRandomAction()201 mPlayer.prepare(); in testPlayerRandomAction()[all …]
359 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 …]
280 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
68 private MediaPlayer mPlayer; field in PlayVideoActivity95 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 …]
35 protected StreamPlayer mPlayer = null; field in USBAudioPeripheralPlayerActivity58 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()
107 if (mPlayer != null && mPlayer.isPlaying()) { in stopRecording()108 mPlayer.stop(); in stopRecording()