Lines Matching refs:mPlayer
59 private PreviewPlayer mPlayer; field in AudioPreview
109 mPlayer = new PreviewPlayer(); in onCreate()
110 mPlayer.setActivity(this); in onCreate()
112 mPlayer.setDataSourceAndPrepare(mUri); in onCreate()
124 mPlayer = player; in onCreate()
125 mPlayer.setActivity(this); in onCreate()
190 if (mPlayer.isPrepared()) { in onCreate()
209 if (mPlayer.isPrepared()) { in onResume()
216 PreviewPlayer player = mPlayer; in onRetainNonConfigurationInstance()
217 mPlayer = null; in onRetainNonConfigurationInstance()
231 if (mPlayer != null) { in stopPlayback()
232 mPlayer.release(); in stopPlayback()
233 mPlayer = null; in stopPlayback()
247 mPlayer = (PreviewPlayer) mp; in onPrepared()
249 mPlayer.start(); in onPrepared()
256 mDuration = mPlayer.getDuration(); in showPostPrepareUI()
261 mSeekBar.setProgress(mPlayer.getCurrentPosition()); in showPostPrepareUI()
279 if (mPlayer == null) {
288 mPlayer.pause();
292 if (mPlayer.isPlaying()) {
294 mPlayer.pause();
311 mPlayer.start(); in start()
329 if (mPlayer != null && !mSeeking && mDuration != 0) { in run()
330 mSeekBar.setProgress(mPlayer.getCurrentPosition()); in run()
341 if (b != null && mPlayer != null) { in updatePlayPause()
342 if (mPlayer.isPlaying()) { in updatePlayPause()
360 if (mPlayer == null) {
363 mPlayer.seekTo(progress);
383 if (mPlayer == null) { in playPauseClicked()
386 if (mPlayer.isPlaying()) { in playPauseClicked()
387 mPlayer.pause(); in playPauseClicked()
421 if (mPlayer.isPlaying()) { in onKeyDown()
422 mPlayer.pause(); in onKeyDown()
433 if (mPlayer.isPlaying()) { in onKeyDown()
434 mPlayer.pause(); in onKeyDown()