Lines Matching defs:mPlayer
154 private final MediaPlayerProxy mPlayer;
178 mPlayer = player;
311 mPlayer.reset();
312 mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri);
313 mPlayer.setAudioStreamType(PLAYBACK_STREAM);
314 mPlayer.prepare();
315 mDuration.set(mPlayer.getDuration());
344 mPlayer.setOnErrorListener(new MediaPlayerErrorListener());
345 mPlayer.setOnCompletionListener(new MediaPlayerCompletionListener());
362 if (!mPlayer.isPlaying()) {
372 mPlayer.release();
449 mPlayer.reset();
450 mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri);
451 mPlayer.setAudioStreamType(PLAYBACK_STREAM);
452 mPlayer.prepare();
463 final int duration = mPlayer.getDuration();
467 mPlayer.seekTo(startPosition);
471 mPlayer.start();
503 mPlayer.release();
519 if (mPlayer.isPlaying()) {
520 mPlayer.pause();
529 if (mPlayer.isPlaying()) {
531 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get());
539 if (mPlayer.isPlaying()) {
540 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get());
554 ((SingleThreadedMediaPlayerProxy) mPlayer).setVariableSpeed(rate);
563 if (mPlayer.isPlaying() && previousState) {
577 if (mPlayer.isPlaying()) {
578 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get());
603 currentPosition = mPlayer.getCurrentPosition();
641 if (mPlayer.isPlaying()) {
642 stopPlaybackAtPosition(mPlayer.getCurrentPosition(), mDuration.get());