Home | History | Annotate | Download | only in deskclock

Lines Matching refs:MediaPlayer

6 import android.media.MediaPlayer;
32 * {@link MediaPlayer}. android.permission.READ_EXTERNAL_STORAGE is required to play custom
33 * ringtones located on the SD card using this mechanism. {@link MediaPlayer} allows clients to
243 // Fall back to the older MediaPlayer-based playback delegate because it is the only
254 * vs {@link MediaPlayer}.
270 * Loops playback of a ringtone using {@link MediaPlayer}.
278 private MediaPlayer mMediaPlayer;
293 LogUtils.i(TAG, "Play ringtone via android.media.MediaPlayer.");
306 mMediaPlayer = new MediaPlayer();
307 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {
309 public boolean onError(MediaPlayer mp, int what, int extra) {
361 private void startAlarm(MediaPlayer player) throws IOException {
387 LogUtils.i(TAG, "Stop ringtone via android.media.MediaPlayer.");
430 LogUtils.i(TAG, "MediaPlayer volume set to " + volume);