/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | TimerRingService.java | 140 // Must reset the media player to clear the error state. 155 private void startAlarm(MediaPlayer player) argument 162 player.setAudioStreamType(AudioManager.STREAM_ALARM); 163 player.setLooping(true); 164 player.prepare(); 167 player.start(); 172 MediaPlayer player, int res) throws java.io.IOException { 175 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), 171 setDataSourceFromResource(Resources resources, MediaPlayer player, int res) argument
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
H A D | AlarmKlaxon.java | 113 // Must reset the media player to clear the error state. 133 private static void startAlarm(Context context, MediaPlayer player) throws IOException { argument 137 player.setAudioStreamType(AudioManager.STREAM_ALARM); 138 player.setLooping(true); 139 player.prepare(); 142 player.start(); 146 private static void setDataSourceFromResource(Context context, MediaPlayer player, int res) argument 150 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | NotificationPlayer.java | 89 MediaPlayer player = new MediaPlayer(); 90 player.setAudioStreamType(mCmd.stream); 91 player.setDataSource(mCmd.context, mCmd.uri); 92 player.setLooping(mCmd.looping); 93 player.setVolume(mCmd.volume, mCmd.volume); 94 player.prepare(); 105 player.setOnCompletionListener(NotificationPlayer.this); 106 player.start(); 110 mPlayer = player; 194 Log.w(mTag, "STOP command without a player"); [all...] |
H A D | MessagingNotification.java | 325 final NotificationPlayer player = new NotificationPlayer(LogTag.APP); 326 player.play(context, ringtoneUri, false, AudioManager.STREAM_NOTIFICATION, 333 player.stop();
|
/packages/apps/Stk/src/com/android/stk/ |
H A D | ToneDialog.java | 41 TonePlayer player = null; field in class:ToneDialog 90 player = new TonePlayer(); 91 player.play(settings.tone); 108 player.stop(); 109 player.release();
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastAlertAudio.java | 317 // 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/Music/src/com/android/music/ |
H A D | AudioPreview.java | 106 PreviewPlayer player = (PreviewPlayer) getLastNonConfigurationInstance(); 107 if (player == null) { 123 mPlayer = player; 200 PreviewPlayer player = mPlayer; 202 return player;
|
H A D | MediaPlaybackService.java | 375 // release all MediaPlayer resources, including the native player and wakelocks 1884 private boolean setDataSourceImpl(MediaPlayer player, String path) { argument 1886 player.reset(); 1887 player.setOnPreparedListener(null); 1889 player.setDataSource(MediaPlaybackService.this, Uri.parse(path)); 1891 player.setDataSource(path); 1893 player.setAudioStreamType(AudioManager.STREAM_MUSIC); 1894 player.prepare(); 1902 player.setOnCompletionListener(listener); 1903 player [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | SlideshowActivity.java | 345 * own version of the state of whether the player is playing. 351 public SmilPlayerController(SmilPlayer player) { argument 352 mPlayer = player;
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
H A D | VoicemailPlaybackPresenter.java | 147 * 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/Gallery2/src/com/android/gallery3d/app/ |
H A D | MoviePlayer.java | 75 // Otherwise, we pause the player. 156 public void onPrepared(MediaPlayer player) { 351 public boolean onError(MediaPlayer player, int arg1, int arg2) { argument
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | MovieViewControl.java | 230 public boolean onError(MediaPlayer player, int arg1, int arg2) { argument
|