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

1 23 4 5 6 7

  /packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmKlaxon.java 22 import android.media.MediaPlayer;
23 import android.media.MediaPlayer.OnErrorListener;
44 private static MediaPlayer sMediaPlayer = null;
83 sMediaPlayer = new MediaPlayer();
86 public boolean onError(MediaPlayer mp, int what, int extra) {
129 private static void startAlarm(Context context, MediaPlayer player) throws IOException {
142 private static void setDataSourceFromResource(Context context, MediaPlayer player, int res)
  /packages/apps/Mms/src/com/android/mms/ui/
AudioAttachmentView.java 26 import android.media.MediaPlayer;
27 import android.media.MediaPlayer.OnCompletionListener;
28 import android.media.MediaPlayer.OnErrorListener;
50 private MediaPlayer mMediaPlayer;
90 mMediaPlayer = MediaPlayer.create(mContext, mAudioUri);
94 public void onCompletion(MediaPlayer mp) {
99 public boolean onError(MediaPlayer mp, int what, int extra) {
  /external/jmonkeyengine/engine/src/android/com/jme3/audio/android/
AndroidAudioRenderer.java 39 import android.media.MediaPlayer;
61 SoundPool.OnLoadCompleteListener, MediaPlayer.OnCompletionListener {
65 private final HashMap<AudioNode, MediaPlayer> musicPlaying = new HashMap<AudioNode, MediaPlayer>();
230 MediaPlayer mp = musicPlaying.get(src);
284 MediaPlayer mp = musicPlaying.get(src);
295 public void onCompletion(MediaPlayer mp) {
299 // mediaplayer in this audiorenderer?
379 MediaPlayer mp = musicPlaying.get(src);
381 mp = new MediaPlayer();
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
AudioManagerStub.java 27 import android.media.MediaPlayer;
32 private MediaPlayer mMediaPlayer;
44 mMediaPlayer = MediaPlayer.create(this, MP3_TO_PLAY);
MediaRandomTest.java 22 import android.media.MediaPlayer;
33 * Tests for the MediaPlayer.java and MediaRecorder.java APIs
53 private MediaPlayer mPlayer;
75 mPlayer = new MediaPlayer();
177 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {
179 public boolean onError(MediaPlayer mp, int what, int extra) {
181 what == MediaPlayer.MEDIA_ERROR_SERVER_DIED) {
  /frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
NativeMedia.java 21 import android.media.MediaPlayer;
38 import android.media.MediaPlayer.OnPreparedListener;
39 import android.media.MediaPlayer;
48 MediaPlayer mMediaPlayer;
125 mMediaPlayer = new MediaPlayer();
128 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
130 public void onPrepared(MediaPlayer mediaPlayer) {
131 int width = mediaPlayer.getVideoWidth();
132 int height = mediaPlayer.getVideoHeight()
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
PlayVideoActivity.java 28 import android.media.MediaPlayer;
29 import android.media.MediaPlayer.OnErrorListener;
30 import android.media.MediaPlayer.OnPreparedListener;
31 import android.media.MediaPlayer.OnVideoSizeChangedListener;
68 private MediaPlayer mPlayer;
95 mPlayer = new MediaPlayer();
163 public boolean onError(MediaPlayer mp, int what, int extra) {
170 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {
186 public void onPrepared(MediaPlayer mp) {
  /external/chromium_org/third_party/WebKit/Source/web/
WebMediaPlayerClientImpl.h 35 #include "platform/graphics/media/MediaPlayer.h"
59 // This class serves as a bridge between WebCore::MediaPlayer and
61 class WebMediaPlayerClientImpl : public WebCore::MediaPlayer, public WebMediaPlayerClient {
64 static PassOwnPtr<WebCore::MediaPlayer> create(WebCore::MediaPlayerClient*);
67 WebMediaPlayer* mediaPlayer() const;
95 // MediaPlayer methods:
116 virtual WebCore::MediaPlayer::NetworkState networkState() const OVERRIDE;
117 virtual WebCore::MediaPlayer::ReadyState readyState() const OVERRIDE;
123 virtual void setPreload(WebCore::MediaPlayer::Preload) OVERRIDE;
140 virtual WebCore::MediaPlayer::MediaKeyException generateKeyRequest(const String& keySystem, const unsigned char* initData, unsi (…)
    [all...]
WebMediaPlayerClientImpl.cpp 62 WebMediaPlayer* WebMediaPlayerClientImpl::mediaPlayer() const
206 // MediaPlayer -------------------------------------------------
224 if (m_preload == MediaPlayer::None) {
299 MediaPlayer::MediaKeyException WebMediaPlayerClientImpl::generateKeyRequest(const String& keySystem, const unsigned char* initData, unsigned initDataLength)
302 return MediaPlayer::InvalidPlayerState;
305 return static_cast<MediaPlayer::MediaKeyException>(result);
308 MediaPlayer::MediaKeyException WebMediaPlayerClientImpl::addKey(const String& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataLength, const String& sessionId)
311 return MediaPlayer::InvalidPlayerState;
314 return static_cast<MediaPlayer::MediaKeyException>(result);
317 MediaPlayer::MediaKeyException WebMediaPlayerClientImpl::cancelKeyRequest(const String& keySystem, const Strin (…)
    [all...]
  /external/chromium_org/media/base/android/java/src/org/chromium/media/
MediaPlayerBridge.java 8 import android.media.MediaPlayer;
30 * A wrapper around android.media.MediaPlayer that allows the native code to use it.
41 private MediaPlayer mPlayer;
65 protected MediaPlayer getLocalPlayer() {
67 mPlayer = new MediaPlayer();
82 Log.e(TAG, "Unable to prepare MediaPlayer.", e);
233 // File will be deleted when MediaPlayer releases its handler.
240 protected void setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener listener) {
244 protected void setOnCompletionListener(MediaPlayer.OnCompletionListener listener) {
248 protected void setOnErrorListener(MediaPlayer.OnErrorListener listener)
    [all...]
  /development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
NativeMedia.java 21 import android.media.MediaPlayer;
41 MediaPlayer mMediaPlayer;
115 mMediaPlayer = new MediaPlayer();
118 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
120 public void onPrepared(MediaPlayer mediaPlayer) {
121 int width = mediaPlayer.getVideoWidth();
122 int height = mediaPlayer.getVideoHeight();
128 mediaPlayer.start();
133 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener()
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
VideoViewTest.java 26 import android.media.MediaPlayer;
27 import android.media.MediaPlayer.OnCompletionListener;
28 import android.media.MediaPlayer.OnErrorListener;
29 import android.media.MediaPlayer.OnPreparedListener;
79 public void onPrepared(MediaPlayer mp) {
85 public boolean onError(MediaPlayer mp, int what, int extra) {
93 public void onCompletion(MediaPlayer mp) {
  /development/samples/Support4Demos/src/com/example/android/supportv4/media/
TransportControllerActivity.java 26 import android.media.MediaPlayer;
108 ActionBar.OnMenuVisibilityListener, MediaPlayer.OnPreparedListener,
109 MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener {
197 public void onPrepared(MediaPlayer mp) {
202 public void onCompletion(MediaPlayer mp) {
208 public boolean onError(MediaPlayer mp, int what, int extra) {
  /external/chromium_org/third_party/WebKit/Source/core/html/
MediaFragmentURIParser.cpp 29 #include "platform/graphics/media/MediaPlayer.h"
68 return MediaPlayer::invalidTime();
74 , m_startTime(MediaPlayer::invalidTime())
75 , m_endTime(MediaPlayer::invalidTime())
82 return MediaPlayer::invalidTime();
91 return MediaPlayer::invalidTime();
179 double start = MediaPlayer::invalidTime();
180 double end = MediaPlayer::invalidTime();
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
VideoViewTest.java 12 import android.media.MediaPlayer;
141 private class TestPreparedListener implements MediaPlayer.OnPreparedListener {
143 public void onPrepared(MediaPlayer mp) {}
146 private class TestErrorListener implements MediaPlayer.OnErrorListener {
148 public boolean onError(MediaPlayer mp, int what, int extra) {
153 private class TestCompletionListener implements MediaPlayer.OnCompletionListener {
155 public void onCompletion(MediaPlayer mp) {}
  /frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
VariableSpeed.java 22 import android.media.MediaPlayer;
36 * This class behaves in a similar fashion to the MediaPlayer, but by using
66 @GuardedBy("lock") private MediaPlayer.OnCompletionListener mCompletionListener;
88 public void setOnCompletionListener(MediaPlayer.OnCompletionListener listener) {
96 public void setOnErrorListener(MediaPlayer.OnErrorListener listener) {
227 MediaPlayer mediaPlayer = new MediaPlayer();
228 mediaPlayer.setAudioStreamType(audioStreamType);
229 dataSource.setAsSourceFor(mediaPlayer);
    [all...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java 26 import android.media.MediaPlayer;
27 import android.media.MediaPlayer.OnErrorListener;
99 private MediaPlayer mMediaPlayer;
318 mMediaPlayer = new MediaPlayer();
320 public boolean onError(MediaPlayer mp, int what, int extra) {
355 private static void startAlarm(MediaPlayer player)
364 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) {
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
MediaSource.java 37 import android.media.MediaPlayer;
68 /** The context for the MediaPlayer to resolve the sourceUrl.
105 private MediaPlayer mMediaPlayer;
222 throw new RuntimeException("Error setting up MediaPlayer!");
259 throw new RuntimeException("MediaPlayer timed out while preparing!");
381 // If updating only sourceUrl/sourceAsset, MediaPlayer gets reset if the current player
453 if (mLogVerbose) Log.v(TAG, "Resetting existing MediaPlayer.");
457 if (mLogVerbose) Log.v(TAG, "Creating new MediaPlayer.");
458 mMediaPlayer = new MediaPlayer();
462 throw new RuntimeException("Unable to create a MediaPlayer!");
    [all...]
  /frameworks/av/include/media/
mediaplayer.h 68 // 1xx: Android Player errors. Something went wrong inside the MediaPlayer.
113 // MediaPlayer is temporarily pausing playback internally in order to
116 // MediaPlayer is resuming playback after filling buffers.
149 // Keep KEY_PARAMETER_* in sync with MediaPlayer.java.
165 // Keep INVOKE_ID_* in sync with MediaPlayer.java.
175 // Keep MEDIA_TRACK_TYPE_* in sync with MediaPlayer.java.
192 class MediaPlayer : public BnMediaPlayerClient,
196 MediaPlayer();
197 ~MediaPlayer();
243 status_t setNextMediaPlayer(const sp<MediaPlayer>& player)
    [all...]
  /frameworks/wilhelm/tools/mphtogen/
mphtogen.c 64 _(MediaPlayer)
  /frameworks/base/packages/SystemUI/src/com/android/systemui/media/
NotificationPlayer.java 21 import android.media.MediaPlayer;
22 import android.media.MediaPlayer.OnCompletionListener;
63 * NotificationPlayer resides in the creation of the MediaPlayer. For the completion callback,
64 * OnCompletionListener, to be called at the end of the playback, the MediaPlayer needs to
81 MediaPlayer player = new MediaPlayer();
135 // MediaPlayer in a new thread with which we're synchronized
222 public void onCompletion(MediaPlayer mp) {
249 private MediaPlayer mPlayer;
278 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)}
    [all...]
  /packages/apps/Mms/src/com/android/mms/transaction/
NotificationPlayer.java 28 import android.media.MediaPlayer;
29 import android.media.MediaPlayer.OnCompletionListener;
70 * NotificationPlayer resides in the creation of the MediaPlayer. For the completion callback,
71 * OnCompletionListener, to be called at the end of the playback, the MediaPlayer needs to
89 MediaPlayer player = new MediaPlayer();
130 // MediaPlayer in a new thread with which we're synchronized
215 public void onCompletion(MediaPlayer mp) {
236 private MediaPlayer mPlayer;
264 * @param uri The URI to play. (see {@link MediaPlayer#setDataSource(Context, Uri)}
    [all...]
  /frameworks/base/media/java/android/media/
MediaPlayer.java 63 * MediaPlayer class can be used to control playback
77 * <p>For more information about how to use MediaPlayer, read the
78 * <a href="{@docRoot}guide/topics/media/mediaplayer.html">Media Playback</a> developer guide.</p>
86 * MediaPlayer object driven by the supported playback control operations.
87 * The ovals represent the states a MediaPlayer object may reside
94 * alt="MediaPlayer State diagram"
97 * <p>From this state diagram, one can see that a MediaPlayer object has the
100 * <li>When a MediaPlayer object is just created using <code>new</code> or
103 * two states is the life cycle of the MediaPlayer object.
106 * MediaPlayer object and the MediaPlayer object after {@link #reset()
    [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...]

Completed in 714 milliseconds

1 23 4 5 6 7