Lines Matching refs:mMediaPlayer
148 private MediaPlayer mMediaPlayer; field in CellBroadcastAlertAudio
518 mMediaPlayer = mMediaPlayerInjected != null ? mMediaPlayerInjected : new MediaPlayer(); in playAlertTone()
519 mMediaPlayer.setOnErrorListener(new OnErrorListener() { in playAlertTone()
530 mMediaPlayer.setOnCompletionListener(new OnCompletionListener() { in playAlertTone()
545 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_earthquake); in playAlertTone()
548 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_tsunami); in playAlertTone()
551 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_other_disaster); in playAlertTone()
554 setDataSourceFromResource(res, mMediaPlayer, R.raw.etws_default); in playAlertTone()
560 setDataSourceFromResource(res, mMediaPlayer, R.raw.watch_info); in playAlertTone()
562 mMediaPlayer.setDataSource(this, in playAlertTone()
569 setDataSourceFromResource(res, mMediaPlayer, R.raw.default_tone); in playAlertTone()
583 mMediaPlayer.setAudioAttributes(getAlertAudioAttributes()); in playAlertTone()
589 mMediaPlayer.setLooping(customAlertDuration >= 0); in playAlertTone()
590 mMediaPlayer.prepare(); in playAlertTone()
597 mMediaPlayer.start(); in playAlertTone()
681 if (mMediaPlayer != null && mIsMediaPlayerStarted) { in stop()
683 mMediaPlayer.stop(); in stop()
684 mMediaPlayer.release(); in stop()
690 mMediaPlayer = null; in stop()
767 mMediaPlayer.setVolume(IN_CALL_VOLUME_LEFT, IN_CALL_VOLUME_RIGHT); in setAlertVolume()