Searched defs:player (Results 1 - 9 of 9) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmKlaxon.java109 // Must reset the media player to clear the error state.
129 private static void startAlarm(Context context, MediaPlayer player) throws IOException { argument
133 player.setAudioStreamType(AudioManager.STREAM_ALARM);
134 player.setLooping(true);
135 player.prepare();
138 player.start();
142 private static void setDataSourceFromResource(Context context, MediaPlayer player, int res) argument
146 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
/packages/apps/DeskClock/src/com/android/deskclock/
H A DTimerRingService.java144 // Must reset the media player to clear the error state.
159 private void startAlarm(MediaPlayer player) argument
166 player.setAudioStreamType(AudioManager.STREAM_ALARM);
167 player.setLooping(true);
168 player.prepare();
171 player.start();
176 MediaPlayer player, int res) throws java.io.IOException {
179 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
175 setDataSourceFromResource(Resources resources, MediaPlayer player, int res) argument
/packages/apps/Stk/src/com/android/stk/
H A DToneDialog.java40 TonePlayer player = null; field in class:ToneDialog
89 player = new TonePlayer();
90 player.play(settings.tone);
107 player.stop();
108 player.release();
/packages/apps/Gallery/src/com/android/camera/
H A DMovieViewControl.java230 public boolean onError(MediaPlayer player, int arg1, int arg2) { argument
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertAudio.java317 // future optimization: reuse media player object
355 private static void startAlarm(MediaPlayer player) argument
357 player.setAudioStreamType(AudioManager.STREAM_NOTIFICATION);
358 player.setLooping(true);
359 player.prepare();
360 player.start();
364 MediaPlayer player, int res) throws java.io.IOException {
367 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
411 loge("exception trying to stop media player");
363 setDataSourceFromResource(Resources resources, MediaPlayer player, int res) argument
/packages/apps/Mms/src/com/android/mms/ui/
H A DSlideshowActivity.java344 * own version of the state of whether the player is playing.
350 public SmilPlayerController(SmilPlayer player) { argument
351 mPlayer = player;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DMoviePlayer.java75 // Otherwise, we pause the player.
156 public void onPrepared(MediaPlayer player) {
351 public boolean onError(MediaPlayer player, int arg1, int arg2) { argument
/packages/apps/Dialer/src/com/android/dialer/voicemail/
H A DVoicemailPlaybackPresenter.java147 * We cache this in a field since we don't want to keep requesting it from the player, as
148 * this can easily lead to throwing {@link IllegalStateException} (any time the player is
173 public VoicemailPlaybackPresenter(PlaybackView view, MediaPlayerProxy player, argument
178 mPlayer = player;
298 * content provider). This method will try to prepare the data source through the media player.
299 * If preparing the media player works, we will call through to
300 * {@link #postSuccessfulPrepareActions()}. If preparing the media player fails (perhaps the
336 * This will be called once we have successfully prepared the media player, and will optionally
/packages/apps/Music/src/com/android/music/
H A DMediaPlaybackService.java375 // release all MediaPlayer resources, including the native player and wakelocks
1882 private boolean setDataSourceImpl(MediaPlayer player, String path) { argument
1884 player.reset();
1885 player.setOnPreparedListener(null);
1887 player.setDataSource(MediaPlaybackService.this, Uri.parse(path));
1889 player.setDataSource(path);
1891 player.setAudioStreamType(AudioManager.STREAM_MUSIC);
1892 player.prepare();
1900 player.setOnCompletionListener(listener);
1901 player
[all...]

Completed in 3743 milliseconds