HomeSort by relevance Sort by last modified time
    Searched refs:MediaPlayer (Results 76 - 100 of 159) sorted by null

1 2 34 5 6 7

  /development/samples/Support7Demos/src/com/example/android/supportv7/media/
LocalPlayer.java 25 import android.media.MediaPlayer;
49 * Handles playback of a single media item using MediaPlayer.
52 MediaPlayer.OnPreparedListener,
53 MediaPlayer.OnCompletionListener,
54 MediaPlayer.OnErrorListener,
55 MediaPlayer.OnSeekCompleteListener {
67 private MediaPlayer mMediaPlayer;
124 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri());
126 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri());
128 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri())
    [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
347 public boolean onError(MediaPlayer mp, int what, int extra) {
353 public void onCompletion(MediaPlayer mp) {
376 // Ideally, we would hand off the currently running mediaplayer
430 * Wrapper class to help with handing off the MediaPlayer to the next instanc
    [all...]
  /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/media/tests/EffectsTest/src/com/android/effectstest/
SimplePlayer.java 38 import android.media.MediaPlayer;
57 MediaPlayer mMediaPlayer;
110 mMediaPlayer = new MediaPlayer();
142 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
143 public void onCompletion(MediaPlayer mp) {
  /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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
BaseSensorSemiAutomatedTestActivity.java 22 import android.media.MediaPlayer;
146 MediaPlayer player = MediaPlayer.create(this, Settings.System.DEFAULT_NOTIFICATION_URI);
  /cts/tests/tests/speech/src/android/speech/tts/cts/
TextToSpeechWrapper.java 19 import android.media.MediaPlayer;
181 MediaPlayer mp = null;
183 mp = new MediaPlayer();
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderVideo.cpp 39 #include "platform/graphics/media/MediaPlayer.h"
102 MediaPlayer* player = mediaElement()->player();
153 MediaPlayer* mediaPlayer = mediaElement()->player();
155 if (!displayingPoster && !mediaPlayer)
175 mediaPlayer->paint(context, pixelSnappedIntRect(rect));
210 MediaPlayer* mediaPlayer = mediaElement()->player();
211 if (!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/chromium_org/third_party/WebKit/Source/core/html/
HTMLMediaElement.cpp 155 static void throwExceptionForMediaKeyException(MediaPlayer::MediaKeyException exception, ExceptionState& exceptionState)
158 case MediaPlayer::NoError:
160 case MediaPlayer::InvalidPlayerState:
163 case MediaPlayer::KeySystemNotSupported:
166 case MediaPlayer::InvalidAccess:
267 , m_preload(MediaPlayer::Auto)
269 , m_cachedTime(MediaPlayer::invalidTime())
272 , m_fragmentStartTime(MediaPlayer::invalidTime())
273 , m_fragmentEndTime(MediaPlayer::invalidTime())
385 // MediaPlayer to dereference Frame and FrameLoader pointers from th
    [all...]
HTMLMediaElement.h 37 #include "platform/graphics/media/MediaPlayer.h"
79 MediaPlayer* player() const { return m_player.get(); }
345 void setReadyState(MediaPlayer::ReadyState);
346 void setNetworkState(MediaPlayer::NetworkState);
401 void mediaLoadingFailed(MediaPlayer::NetworkState);
490 OwnPtr<MediaPlayer> m_player;
496 MediaPlayer::Preload m_preload;
HTMLVideoElement.cpp 186 MediaPlayer* player = HTMLMediaElement::player();
204 return player()->hasVideo() && player()->readyState() >= MediaPlayer::HaveCurrentData;
  /external/chromium_org/third_party/WebKit/Source/web/
AssertMatchingEnums.cpp 94 #include "platform/graphics/media/MediaPlayer.h"
421 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateEmpty, MediaPlayer::Empty);
422 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateIdle, MediaPlayer::Idle);
423 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateLoading, MediaPlayer::Loading);
424 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateLoaded, MediaPlayer::Loaded);
425 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateFormatError, MediaPlayer::FormatError);
426 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateNetworkError, MediaPlayer::NetworkError);
427 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::NetworkStateDecodeError, MediaPlayer::DecodeError);
429 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveNothing, MediaPlayer::HaveNothing);
430 COMPILE_ASSERT_MATCHING_ENUM(WebMediaPlayer::ReadyStateHaveMetadata, MediaPlayer::HaveMetadata)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/shadow/
MediaControls.h 39 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/stress/
MediaRecorderStressTest.java 32 import android.media.MediaPlayer;
149 MediaPlayer mp = new MediaPlayer();
250 MediaPlayer mp = new MediaPlayer();
353 MediaPlayer mp = new MediaPlayer();
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
MoviePlayer.java 29 import android.media.MediaPlayer;
54 MediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener,
154 mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
156 public void onPrepared(MediaPlayer player) {
351 public boolean onError(MediaPlayer player, int arg1, int arg2) {
360 public void onCompletion(MediaPlayer mp) {
TrimVideo.java 24 import android.media.MediaPlayer;
44 MediaPlayer.OnErrorListener,
45 MediaPlayer.OnCompletionListener,
329 public void onCompletion(MediaPlayer mp) {
334 public boolean onError(MediaPlayer mp, int what, int extra) {
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
MediaPresetReverbTest.java 28 import android.media.MediaPlayer;
199 MediaPlayer mp = null;
219 mp = new MediaPlayer();
271 MediaPlayer mp = null;
290 mp = new MediaPlayer();
  /frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
ScoAudioTest.java 30 import android.media.MediaPlayer;
323 private MediaPlayer mMediaPlayer;
357 mMediaPlayer = new MediaPlayer();
377 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
379 public void onCompletion(MediaPlayer mp) {
540 MediaPlayer mediaPlayer = new MediaPlayer();
542 mediaPlayer.setDataSource(mSampleFile.getPath());
543 mediaPlayer.setAudioStreamType(AudioManager.STREAM_BLUETOOTH_SCO)
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/voicemail/
VoicemailPlaybackPresenter.java 22 import android.media.MediaPlayer;
383 private class MediaPlayerErrorListener implements MediaPlayer.OnErrorListener {
385 public boolean onError(MediaPlayer mp, int what, int extra) {
389 handleError(new IllegalStateException("MediaPlayer error listener invoked"));
396 private class MediaPlayerCompletionListener implements MediaPlayer.OnCompletionListener {
398 public void onCompletion(final MediaPlayer mp) {
508 public void handleCompletion(MediaPlayer mediaPlayer) {
  /packages/apps/Mms/src/com/android/mms/ui/
SlideView.java 28 import android.media.MediaPlayer;
65 private MediaPlayer mAudioPlayer;
76 MediaPlayer.OnPreparedListener mPreparedListener = new MediaPlayer.OnPreparedListener() {
77 public void onPrepared(MediaPlayer mp) {
216 mAudioPlayer = new MediaPlayer();
  /cts/tests/tests/media/src/android/media/cts/
MediaCodecCapabilitiesTest.java 22 import android.media.MediaPlayer;

Completed in 888 milliseconds

1 2 34 5 6 7