/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmKlaxon.java | 25 import android.media.MediaPlayer; 26 import android.media.MediaPlayer.OnErrorListener; 50 private MediaPlayer mMediaPlayer; 175 mMediaPlayer = new MediaPlayer(); 177 public boolean onError(MediaPlayer mp, int what, int extra) { 229 private void startAlarm(MediaPlayer player) 244 MediaPlayer player, int res) throws java.io.IOException {
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
Recorder.java | 24 import android.media.MediaPlayer; 26 import android.media.MediaPlayer.OnCompletionListener; 27 import android.media.MediaPlayer.OnErrorListener; 59 MediaPlayer mPlayer = null; 214 mPlayer = new MediaPlayer(); 250 public boolean onError(MediaPlayer mp, int what, int extra) { 256 public void onCompletion(MediaPlayer mp) {
|
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideshowAttachmentView.java | 25 import android.media.MediaPlayer; 104 MediaPlayer mp = new MediaPlayer();
|
SlideListItemView.java | 25 import android.media.MediaPlayer; 123 MediaPlayer mp = new MediaPlayer();
|
/system/media/mca/filterpacks/videosrc/java/ |
MediaSource.java | 37 import android.media.MediaPlayer; 98 private MediaPlayer mMediaPlayer; 201 throw new RuntimeException("Error setting up MediaPlayer!"); 238 throw new RuntimeException("MediaPlayer timed out while preparing!"); 353 // If updating only sourceUrl/sourceAsset, MediaPlayer gets reset if the current player 425 if (mLogVerbose) Log.v(TAG, "Resetting existing MediaPlayer."); 429 if (mLogVerbose) Log.v(TAG, "Creating new MediaPlayer."); 430 mMediaPlayer = new MediaPlayer(); 434 throw new RuntimeException("Unable to create a MediaPlayer!"); 440 if (mLogVerbose) Log.v(TAG, "Setting MediaPlayer source to URI " + mSourceUrl) [all...] |
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
MediaPlayerPrivateAndroid.cpp | 94 MediaPlayer::SupportsType MediaPlayerPrivate::supportsType(const String& type, const String& codecs) 97 return MediaPlayer::MayBeSupported; 98 return MediaPlayer::IsNotSupported; 137 // state in here. This will allow the MediaPlayer to transition to 140 m_networkState = MediaPlayer::Loaded; 142 m_readyState = MediaPlayer::HaveEnoughData; 146 MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player) 152 m_readyState(MediaPlayer::HaveNothing), 153 m_networkState(MediaPlayer::Empty), 168 m_networkState = MediaPlayer::Idle [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
AssertMatchingEnums.cpp | 51 #include "MediaPlayer.h" 320 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::Empty, MediaPlayer::Empty); 321 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::Idle, MediaPlayer::Idle); 322 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::Loading, MediaPlayer::Loading); 323 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::Loaded, MediaPlayer::Loaded); 324 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::FormatError, MediaPlayer::FormatError); 325 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkError, MediaPlayer::NetworkError); 326 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::DecodeError, MediaPlayer::DecodeError); 328 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::HaveNothing, MediaPlayer::HaveNothing); 329 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::HaveMetadata, MediaPlayer::HaveMetadata) [all...] |
/system/media/wilhelm/tools/mphtogen/ |
mphtogen.c | 64 _(MediaPlayer)
|
/external/webkit/Source/WebCore/rendering/ |
RenderVideo.cpp | 36 #include "MediaPlayer.h" 59 if (MediaPlayer* p = mediaElement()->player()) { 111 MediaPlayer* player = mediaElement()->player(); 189 MediaPlayer* mediaPlayer = mediaElement()->player(); 193 if (!mediaPlayer) 206 mediaPlayer->paintCurrentFrameInContext(paintInfo.context, rect); 208 mediaPlayer->paint(paintInfo.context, rect); 233 MediaPlayer* mediaPlayer = mediaElement()->player() [all...] |
/frameworks/base/services/java/com/android/server/ |
NotificationPlayer.java | 21 import android.media.MediaPlayer; 22 import android.media.MediaPlayer.OnCompletionListener; 68 * NotificationPlayer resides in the creation of the MediaPlayer. For the completion callback, 69 * OnCompletionListener, to be called at the end of the playback, the MediaPlayer needs to 86 MediaPlayer player = new MediaPlayer(); 126 // MediaPlayer in a new thread with which we're synchronized 209 public void onCompletion(MediaPlayer mp) { 230 private MediaPlayer mPlayer; 258 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)} [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaPlayerStateUnitTestTemplate.java | 23 import android.media.MediaPlayer; 29 * states of a MediaPlayer object. 47 private MediaPlayer mMediaPlayer = null; 56 // messages from MediaPlayer objects. 74 * Runs the given method under test in all possible states of a MediaPlayer 100 * Initializes the message looper so that the MediaPlayer object can 114 mMediaPlayer = new MediaPlayer(); 115 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 116 public boolean onError(MediaPlayer player, int what, int extra) { 129 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicService.java | 30 import android.media.MediaPlayer; 31 import android.media.MediaPlayer.OnCompletionListener; 32 import android.media.MediaPlayer.OnErrorListener; 33 import android.media.MediaPlayer.OnPreparedListener; 77 MediaPlayer mPlayer = null; 161 mPlayer = new MediaPlayer(); 277 relaxResources(false); // while paused, we always retain the MediaPlayer 325 * status and notification, the wake locks and possibly the MediaPlayer. 351 * Reconfigures MediaPlayer according to audio focus settings and starts/restarts it. This 352 * method starts/restarts the MediaPlayer respecting the current audio focus state. So i [all...] |
/packages/apps/Music/src/com/android/music/ |
AudioPreview.java | 26 import android.media.MediaPlayer; 28 import android.media.MediaPlayer.OnCompletionListener; 29 import android.media.MediaPlayer.OnErrorListener; 30 import android.media.MediaPlayer.OnPreparedListener; 229 public void onPrepared(MediaPlayer mp) { 258 // this activity has handed its MediaPlayer off to the next activity 343 public boolean onError(MediaPlayer mp, int what, int extra) { 349 public void onCompletion(MediaPlayer mp) { 368 // Ideally, we would hand off the currently running mediaplayer 412 * Wrapper class to help with handing off the MediaPlayer to the next instanc [all...] |
/cts/tests/src/android/media/cts/ |
VideoSurfaceView.java | 31 import android.media.MediaPlayer; 43 private MediaPlayer mMediaPlayer = null; 45 public VideoSurfaceView(Context context, MediaPlayer mp) { 141 private MediaPlayer mMediaPlayer; 152 public void setMediaPlayer(MediaPlayer player) { 244 * and pass it to the MediaPlayer
|
/development/samples/ApiDemos/src/com/example/android/apis/media/ |
AudioFxDemo.java | 29 import android.media.MediaPlayer; 49 private MediaPlayer mMediaPlayer; 71 // Create the MediaPlayer 72 mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr); 73 Log.d(TAG, "MediaPlayer audio session ID: " + mMediaPlayer.getAudioSessionId()); 85 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 86 public void onCompletion(MediaPlayer mediaPlayer) {
|
/frameworks/base/core/java/android/webkit/ |
HTML5VideoView.java | 5 import android.media.MediaPlayer; 19 public class HTML5VideoView implements MediaPlayer.OnPreparedListener { 49 // Every video will have one MediaPlayer. Given the fact we only have one 50 // SurfaceTexture, there is only one MediaPlayer in action. Every time we 51 // switch videos, a new instance of MediaPlayer will be created in reset(). 53 protected MediaPlayer mPlayer; 152 // Every time we start a new Video, we create a VideoView and a MediaPlayer 154 mPlayer = new MediaPlayer(); 260 public void onPrepared(MediaPlayer mp) {
|
HTML5VideoViewProxy.java | 23 import android.media.MediaPlayer; 46 implements MediaPlayer.OnPreparedListener, 47 MediaPlayer.OnCompletionListener, 48 MediaPlayer.OnErrorListener, 49 MediaPlayer.OnInfoListener, 258 // MediaPlayer.OnPreparedListener 259 public void onPrepared(MediaPlayer mp) { 270 // MediaPlayer.OnCompletionListener; 271 public void onCompletion(MediaPlayer mp) { 279 // MediaPlayer.OnErrorListene [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MovieViewControl.java | 31 import android.media.MediaPlayer; 40 public class MovieViewControl implements MediaPlayer.OnErrorListener, 41 MediaPlayer.OnCompletionListener { 230 public boolean onError(MediaPlayer player, int arg1, int arg2) { 236 public void onCompletion(MediaPlayer mp) {
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechWrapper.java | 19 import android.media.MediaPlayer; 181 MediaPlayer mp = null; 183 mp = new MediaPlayer();
|
/frameworks/base/include/media/ |
mediaplayer.h | 61 // 1xx: Android Player errors. Something went wrong inside the MediaPlayer. 101 // MediaPlayer is temporarily pausing playback internally in order to 104 // MediaPlayer is resuming playback after filling buffers. 134 // Keep KEY_PARAMETER_* in sync with MediaPlayer.java. 158 class MediaPlayer : public BnMediaPlayerClient, 162 MediaPlayer(); 163 ~MediaPlayer();
|
/frameworks/base/media/java/android/media/ |
AsyncPlayer.java | 60 MediaPlayer player = new MediaPlayer(); 132 private MediaPlayer mPlayer; 159 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)}) 161 * (see {@link MediaPlayer#setLooping(boolean)}) 163 * (see {@link MediaPlayer#setAudioStreamType(int)})
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkTest.java | 24 import android.media.MediaPlayer; 58 private MediaPlayer mpmidi; 59 private MediaPlayer mpmp3;
|
/external/webkit/Source/WebCore/html/shadow/ |
MediaControlRootElement.h | 64 class MediaPlayer;
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis2/ |
Visualization2RS.java | 24 import android.media.MediaPlayer;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
MediaPresetReverbTest.java | 28 import android.media.MediaPlayer; 199 MediaPlayer mp = null; 217 mp = new MediaPlayer(); 268 MediaPlayer mp = null; 285 mp = new MediaPlayer();
|