/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaPlayerStopStateUnitTest.java | 19 import android.media.MediaPlayer; 25 * MediaPlayer.stop() method can be called. 55 public void invokeMethodUnderTest(MediaPlayer player) {
|
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
MediaPlayerDataSource.java | 20 import android.media.MediaPlayer; 31 * {@link android.media.MediaPlayer} easier, or the calling of the correct 53 public void setAsSourceFor(MediaPlayer mediaPlayer) throws IOException { 55 mediaPlayer.setDataSource(mContext, mUri); 57 mediaPlayer.setDataSource(mPath);
|
SingleThreadedMediaPlayerProxy.java | 20 import android.media.MediaPlayer; 37 public synchronized void setOnErrorListener(MediaPlayer.OnErrorListener listener) { 42 public synchronized void setOnCompletionListener(MediaPlayer.OnCompletionListener listener) {
|
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...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
AudioPermissionTest.java | 20 import android.media.MediaPlayer; 37 MediaPlayer mMediaPlayer = null; 90 MediaPlayer plyr = new MediaPlayer();
|
NoWakeLockPermissionTest.java | 21 import android.media.MediaPlayer; 62 * Verify that MediaPlayer.start() requires permissions. 68 final MediaPlayer mediaPlayer = new MediaPlayer(); 69 mediaPlayer.setWakeMode(mContext, PowerManager.FULL_WAKE_LOCK); 71 mediaPlayer.start(); 72 fail("MediaPlayer.setWakeMode() did not throw SecurityException as expected"); 77 mediaPlayer.stop(); 89 fail("MediaPlayer.setWakeMode() did not throw SecurityException as expected") [all...] |
/cts/tests/src/android/media/cts/ |
MediaPlayerSurfaceStubActivity.java | 23 import android.media.MediaPlayer; 34 private MediaPlayer mMediaPlayer = null; 41 mMediaPlayer = new MediaPlayer();
|
AudioManagerStub.java | 26 import android.media.MediaPlayer; 31 private MediaPlayer mMediaPlayer; 43 mMediaPlayer = MediaPlayer.create(this, MP3_TO_PLAY);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
MediaPlayerInvokeTest.java | 28 import android.media.MediaPlayer; 34 // Tests for the invoke method in the MediaPlayer. 37 private MediaPlayer mPlayer; 48 mPlayer = new MediaPlayer();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
MediaPlayerPowerTest.java | 21 import android.media.MediaPlayer; 51 MediaPlayer mp = new MediaPlayer();
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTest.java | 23 import android.media.MediaPlayer; 32 * Tests for the MediaPlayer API and local video/audio playback. 54 MediaPlayer mp = MediaPlayer.create(mContext, resid); 345 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() { 347 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 352 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { 354 public void onPrepared(MediaPlayer mp) { 359 mMediaPlayer.setOnSeekCompleteListener(new MediaPlayer.OnSeekCompleteListener() { 361 public void onSeekComplete(MediaPlayer mp) [all...] |
MediaPlayerTestBase.java | 21 import android.media.MediaPlayer; 28 * Base class for tests which use MediaPlayer to play audio or video. 78 protected MediaPlayer mMediaPlayer = new MediaPlayer(); 153 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() { 155 public void onVideoSizeChanged(MediaPlayer mp, int w, int h) { 165 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 167 public boolean onError(MediaPlayer mp, int what, int extra) {
|
/external/webkit/Source/WebCore/platform/graphics/mac/ |
MediaPlayerPrivateQTKit.mm | 204 MediaPlayerPrivateInterface* MediaPlayerPrivateQTKit::create(MediaPlayer* player) 215 MediaPlayerPrivateQTKit::MediaPlayerPrivateQTKit(MediaPlayer* player) 220 , m_networkState(MediaPlayer::Empty) 221 , m_readyState(MediaPlayer::HaveNothing) 229 , m_preload(MediaPlayer::Auto) 679 if (m_preload == MediaPlayer::None) { 689 if (m_networkState != MediaPlayer::Loading) { 690 m_networkState = MediaPlayer::Loading; 693 if (m_readyState != MediaPlayer::HaveNothing) { 694 m_readyState = MediaPlayer::HaveNothing [all...] |
/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/webkit/Source/WebKit/chromium/src/ |
WebMediaPlayerClientImpl.cpp | 15 #include "MediaPlayer.h" 94 WebMediaPlayer* WebMediaPlayerClientImpl::mediaPlayer() const 212 if (m_preload == MediaPlayer::None) { 360 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const 363 return static_cast<MediaPlayer::NetworkState>(m_webMediaPlayer->networkState()); 364 return MediaPlayer::Empty; 367 MediaPlayer::ReadyState WebMediaPlayerClientImpl::readyState() const 370 return static_cast<MediaPlayer::ReadyState>(m_webMediaPlayer->readyState()); 371 return MediaPlayer::HaveNothing; 463 void WebMediaPlayerClientImpl::setPreload(MediaPlayer::Preload preload [all...] |
/frameworks/base/media/jni/ |
android_media_MediaPlayer.cpp | 19 #define LOG_TAG "MediaPlayer-JNI" 22 #include <media/mediaplayer.h> 72 jclass mClass; // Reference to MediaPlayer class 73 jobject mObject; // Weak ref to MediaPlayer Java object to call on 79 // Hold onto the MediaPlayer class for use in calling the static method 83 LOGE("Can't find android/media/MediaPlayer"); 89 // We use a weak reference so the MediaPlayer object can be garbage collected. 123 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz) 126 MediaPlayer* const p = (MediaPlayer*)env->GetIntField(thiz, fields.context) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
VideoViewTest.java | 29 import android.media.MediaPlayer; 30 import android.media.MediaPlayer.OnCompletionListener; 31 import android.media.MediaPlayer.OnErrorListener; 32 import android.media.MediaPlayer.OnPreparedListener; 84 public void onPrepared(MediaPlayer mp) { 90 public boolean onError(MediaPlayer mp, int what, int extra) { 98 public void onCompletion(MediaPlayer mp) { 198 args = {android.media.MediaPlayer.OnPreparedListener.class} 203 args = {android.media.MediaPlayer.OnCompletionListener.class} 242 args = {android.media.MediaPlayer.OnErrorListener.class [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
MediaPlayerPrivateQuickTimeVisualContext.cpp | 151 MediaPlayerPrivateInterface* MediaPlayerPrivateQuickTimeVisualContext::create(MediaPlayer* player) 162 MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext(MediaPlayer* player) 167 , m_networkState(MediaPlayer::Empty) 168 , m_readyState(MediaPlayer::HaveNothing) 184 , m_preload(MediaPlayer::Auto) 340 if (m_preload == MediaPlayer::None) { 352 m_networkState = MediaPlayer::DecodeError; 362 if (m_networkState != MediaPlayer::Loading) { 363 m_networkState = MediaPlayer::Loading; 366 if (m_readyState != MediaPlayer::HaveNothing) [all...] |
/external/webkit/Source/WebCore/platform/graphics/gstreamer/ |
MediaPlayerPrivateGStreamer.cpp | 41 #include "MediaPlayer.h" 154 MediaPlayerPrivateInterface* MediaPlayerPrivateGStreamer::create(MediaPlayer* player) 196 MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer(MediaPlayer* player) 205 , m_networkState(MediaPlayer::Empty) 206 , m_readyState(MediaPlayer::HaveNothing) 223 , m_preload(MediaPlayer::Auto) 289 if (m_preload == MediaPlayer::None) { 347 loadingFailed(MediaPlayer::Empty); 656 MediaPlayer::NetworkState MediaPlayerPrivateGStreamer::networkState() const 661 MediaPlayer::ReadyState MediaPlayerPrivateGStreamer::readyState() cons [all...] |
/system/media/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; 123 mMediaPlayer = new MediaPlayer(); 126 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { 128 public void onPrepared(MediaPlayer mediaPlayer) { 129 int width = mediaPlayer.getVideoWidth(); 130 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; 97 mPlayer = new MediaPlayer(); 165 public boolean onError(MediaPlayer mp, int what, int extra) { 172 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 191 public void onPrepared(MediaPlayer mp) {
|
/frameworks/base/media/java/android/media/ |
MediaPlayer.java | 43 * MediaPlayer class can be used to control playback 57 * <p>For more information about how to use MediaPlayer, read the 58 * <a href="{@docRoot}guide/topics/media/mediaplayer.html">Media Playback</a> developer guide.</p> 66 * MediaPlayer object driven by the supported playback control operations. 67 * The ovals represent the states a MediaPlayer object may reside 74 * alt="MediaPlayer State diagram" 77 * <p>From this state diagram, one can see that a MediaPlayer object has the 80 * <li>When a MediaPlayer object is just created using <code>new</code> or 83 * two states is the life cycle of the MediaPlayer object. 86 * MediaPlayer object and the MediaPlayer object after {@link #reset() [all...] |
/frameworks/base/core/java/android/webkit/ |
HTML5VideoFullScreen.java | 5 import android.media.MediaPlayer; 25 implements MediaPlayerControl, MediaPlayer.OnPreparedListener, 54 // when to create the MediaPlayer accordingly. 151 // So in full screen, we reset the MediaPlayer 168 public void onPrepared(MediaPlayer mp) { 173 Metadata data = mp.getMetadata(MediaPlayer.METADATA_ALL, 174 MediaPlayer.BYPASS_METADATA_FILTER); 312 private MediaPlayer.OnBufferingUpdateListener mBufferingUpdateListener = 313 new MediaPlayer.OnBufferingUpdateListener() { 314 public void onBufferingUpdate(MediaPlayer mp, int percent) [all...] |
/external/webkit/Source/WebCore/html/ |
HTMLMediaElement.cpp | 56 #include "MediaPlayer.h" 151 , m_preload(MediaPlayer::Auto) 261 m_preload = MediaPlayer::None; 263 m_preload = MediaPlayer::MetaData; 267 m_preload = MediaPlayer::Auto; 488 MediaPlayer::SupportsType support = MediaPlayer::supportsType(ContentType(mimeType)); 494 case MediaPlayer::IsNotSupported: 497 case MediaPlayer::MayBeSupported: 500 case MediaPlayer::IsSupported [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 25 import android.media.MediaPlayer; 26 import android.media.MediaPlayer.OnErrorListener; 84 private MediaPlayer mMediaPlayer; 260 mMediaPlayer = new MediaPlayer(); 262 public boolean onError(MediaPlayer mp, int what, int extra) { 297 private static void startAlarm(MediaPlayer player) 307 MediaPlayer player, int res) throws java.io.IOException {
|