Lines Matching refs:mMediaPlayer
50 private MediaPlayer mMediaPlayer;
173 // TODO: Reuse mMediaPlayer instead of creating a new one and/or use
175 mMediaPlayer = new MediaPlayer();
176 mMediaPlayer.setOnErrorListener(new OnErrorListener() {
181 mMediaPlayer = null;
192 mMediaPlayer.setVolume(IN_CALL_VOLUME, IN_CALL_VOLUME);
193 setDataSourceFromResource(getResources(), mMediaPlayer,
196 mMediaPlayer.setDataSource(this, alert);
198 startAlarm(mMediaPlayer);
205 mMediaPlayer.reset();
206 setDataSourceFromResource(getResources(), mMediaPlayer,
208 startAlarm(mMediaPlayer);
266 if (mMediaPlayer != null) {
267 mMediaPlayer.stop();
268 mMediaPlayer.release();
269 mMediaPlayer = null;