/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaPlayerMethodUnderTest.java | 19 import android.media.MediaPlayer; 22 * All MediaPlayer method unit test subclass must implement this interface. 26 public void invokeMethodUnderTest(MediaPlayer player);
|
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
RealMediaPlayerTest.java | 19 import android.media.MediaPlayer; 26 * Tests that MediaPlayerProxyTestCase contains reasonable tests with a real {@link MediaPlayer}. 31 // We have to construct the MediaPlayer on the main thread (or at least on a thread with an 34 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { 36 public MediaPlayer call() throws Exception { 37 return new MediaPlayer(); 40 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable);
|
AwaitableCompletionListener.java | 19 import android.media.MediaPlayer; 30 /** Implementation of {@link MediaPlayer.OnErrorListener} that we can wait for in tests. */ 32 public class AwaitableCompletionListener implements MediaPlayer.OnCompletionListener { 36 public void onCompletion(MediaPlayer mp) {
|
AwaitableErrorListener.java | 19 import android.media.MediaPlayer; 28 /** Implementation of {@link MediaPlayer.OnCompletionListener} that we can wait for in tests. */ 30 public class AwaitableErrorListener implements MediaPlayer.OnErrorListener { 35 public boolean onError(MediaPlayer mp, int what, int extra) {
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/media/ |
MediaPlayer.cpp | 27 #include "platform/graphics/media/MediaPlayer.h" 35 void MediaPlayer::setMediaEngineCreateFunction(CreateMediaEnginePlayer createFunction) 42 PassOwnPtr<MediaPlayer> MediaPlayer::create(MediaPlayerClient* client)
|
MediaPlayer.h | 47 class MediaPlayer; 99 typedef PassOwnPtr<MediaPlayer> (*CreateMediaEnginePlayer)(MediaPlayerClient*); 101 class PLATFORM_EXPORT MediaPlayer { 102 WTF_MAKE_NONCOPYABLE(MediaPlayer); 104 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*); 109 MediaPlayer() { } 110 virtual ~MediaPlayer() { }
|
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
MediaPlayerListener.java | 9 import android.media.MediaPlayer; 14 // This class implements all the listener interface for android mediaplayer. 17 class MediaPlayerListener implements MediaPlayer.OnPreparedListener, 18 MediaPlayer.OnCompletionListener, 19 MediaPlayer.OnBufferingUpdateListener, 20 MediaPlayer.OnSeekCompleteListener, 21 MediaPlayer.OnVideoSizeChangedListener, 22 MediaPlayer.OnErrorListener, 45 public boolean onError(MediaPlayer mp, int what, int extra) { 48 case MediaPlayer.MEDIA_ERROR_UNKNOWN [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMediaPlayer.java | 4 import android.media.MediaPlayer; 14 * Shadows the Android {@code MediaPlayer} class. 16 @Implements(MediaPlayer.class) 19 @RealObject private MediaPlayer player; 26 private MediaPlayer.OnCompletionListener completionListener; 27 private MediaPlayer.OnPreparedListener preparedListener; 30 public static MediaPlayer create(Context context, int resId) { 31 MediaPlayer mp = new MediaPlayer(); 41 public static MediaPlayer create(Context context, Uri uri) [all...] |
ShadowVideoView.java | 4 import android.media.MediaPlayer; 15 private MediaPlayer.OnCompletionListener completionListner; 16 private MediaPlayer.OnErrorListener errorListener; 17 private MediaPlayer.OnPreparedListener preparedListener; 32 public void setOnPreparedListener(MediaPlayer.OnPreparedListener l) { 37 public void setOnErrorListener(MediaPlayer.OnErrorListener l) { 42 public void setOnCompletionListener(MediaPlayer.OnCompletionListener l) { 101 public MediaPlayer.OnPreparedListener getOnPreparedListener() { 109 public MediaPlayer.OnErrorListener getOnErrorListener() { 117 public MediaPlayer.OnCompletionListener getOnCompletionListener() [all...] |
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
MediaPlayerProxy.java | 20 import android.media.MediaPlayer; 26 * Interface that supports a subset of the operations on {@link android.media.MediaPlayer}. 35 void setOnErrorListener(MediaPlayer.OnErrorListener listener); 36 void setOnCompletionListener(MediaPlayer.OnCompletionListener listener);
|
/frameworks/base/core/java/android/speech/tts/ |
AudioPlaybackQueueItem.java | 19 import android.media.MediaPlayer; 33 private MediaPlayer mPlayer; 54 mPlayer = MediaPlayer.create(mContext, mUri); 61 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 63 public boolean onError(MediaPlayer mp, int what, int extra) { 69 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { 71 public void onCompletion(MediaPlayer mp) { 81 Log.w(TAG, "MediaPlayer failed", ex);
|
/frameworks/av/media/libmedia/ |
mediaplayer.cpp | 19 #define LOG_TAG "MediaPlayer" 32 #include <media/mediaplayer.h> 45 MediaPlayer::MediaPlayer() 66 MediaPlayer::~MediaPlayer() 74 void MediaPlayer::disconnect() 90 void MediaPlayer::clear_l() 98 status_t MediaPlayer::setListener(const sp<MediaPlayerListener>& listener) 107 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
MediaPlayerTest.java | 3 import android.media.MediaPlayer; 16 private MediaPlayer mediaPlayer; 21 mediaPlayer = Robolectric.newInstanceOf(MediaPlayer.class); 22 shadowMediaPlayer = Robolectric.shadowOf(mediaPlayer); 31 assertThat(mediaPlayer.getCurrentPosition(), equalTo(position));
|
/external/chromium/chrome/browser/ui/webui/ |
mediaplayer_ui.h | 28 class MediaPlayer : public NotificationObserver, 31 ~MediaPlayer(); 33 // Enqueues this file into the current playlist. If the mediaplayer is 38 // Enqueues this fileschema url into the current playlist. If the mediaplayer 43 // |file_path|. If there is no mediaplayer currently, show it, and play the 49 // If there is no mediaplayer currently, show it, and play the given url. 58 // Toggle the mediaplayer between fullscreen and windowed. 68 // tab contents of the page which holds the mediaplayer. it is expected 77 // mediaplayer, along with the tab contents which has the playlist in it. 84 // Notfiys the mediaplayer that the playlist changed. This could b [all...] |
mediaplayer_browsertest.cc | 68 MediaPlayer* player = MediaPlayer::GetInstance(); 84 MediaPlayer* player = MediaPlayer::GetInstance();
|
mediaplayer_ui.cc | 56 static const char* kMediaplayerURL = "chrome://mediaplayer"; 57 static const char* kMediaplayerPlaylistURL = "chrome://mediaplayer#playlist"; 83 // The handler for Javascript messages related to the "mediaplayer" view. 138 // maintained by the mediaplayer itself. Offset is the item in the 147 // Indicator of if this handler is a playlist or a mediaplayer. 221 MediaPlayer* player = MediaPlayer::GetInstance(); 258 MediaPlayer::GetInstance()->NotifyPlaylistChanged(); 270 MediaPlayer::GetInstance()->ToggleFullscreen(); 276 MediaPlayer::GetInstance()->SetPlaylistOffset(id) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/media/ |
MediaPlayerDemo_Video.java | 23 import android.media.MediaPlayer; 24 import android.media.MediaPlayer.OnBufferingUpdateListener; 25 import android.media.MediaPlayer.OnCompletionListener; 26 import android.media.MediaPlayer.OnPreparedListener; 27 import android.media.MediaPlayer.OnVideoSizeChangedListener; 42 private MediaPlayer mMediaPlayer; 98 * Mediaplayer can only play "progressive streamable 122 mMediaPlayer = new MediaPlayer(); 138 public void onBufferingUpdate(MediaPlayer arg0, int percent) { 143 public void onCompletion(MediaPlayer arg0) [all...] |
MediaPlayerDemo_Audio.java | 20 import android.media.MediaPlayer; 31 private MediaPlayer mMediaPlayer; 70 mMediaPlayer = new MediaPlayer(); 78 * its resid in MediaPlayer.create() method. 80 mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr);
|
/cts/tests/tests/media/src/android/media/cts/ |
VideoSurfaceView.java | 28 import android.media.MediaPlayer; 39 private MediaPlayer mMediaPlayer = null; 41 public VideoSurfaceView(Context context, MediaPlayer mp) { 84 private MediaPlayer mMediaPlayer; 90 public void setMediaPlayer(MediaPlayer player) { 113 * and pass it to the MediaPlayer
|
MediaPlayerTestBase.java | 21 import android.media.MediaPlayer; 28 * Base class for tests which use MediaPlayer to play audio or video. 103 protected MediaPlayer mMediaPlayer = null; 104 protected MediaPlayer mMediaPlayer2 = null; 119 mMediaPlayer = new MediaPlayer(); 120 mMediaPlayer2 = new MediaPlayer(); 154 MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT 155 : MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING; 168 afd.getLength(), MediaPlayer.MEDIA_MIMETYPE_TEXT_SUBRIP); 222 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() [all...] |
StreamingMediaPlayerTest.java | 18 import android.media.MediaPlayer; 24 * Tests of MediaPlayer streaming capabilities. 170 mMediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { 172 public void onBufferingUpdate(MediaPlayer mp, int percent) { 176 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 178 public boolean onError(MediaPlayer mp, int what, int extra) { 225 mMediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() { 227 public void onBufferingUpdate(MediaPlayer mp, int percent) { 231 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { 233 public boolean onError(MediaPlayer mp, int what, int extra) [all...] |
MediaPlayerFlakyNetworkTest.java | 18 import android.media.MediaPlayer; 41 * Executes a range of tests on MediaPlayer while streaming a video 189 MediaPlayer old = mMediaPlayer; 196 private MediaPlayer createMediaPlayerOnMainThread() throws Throwable { 197 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { 199 public MediaPlayer call() throws Exception { 200 return new MediaPlayer(); 203 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable) [all...] |
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
CodecTest.java | 23 import android.media.MediaPlayer; 37 private static MediaPlayer mMediaPlayer; 38 private MediaPlayer.OnPreparedListener mOnPreparedListener; 82 MediaPlayer mp = new MediaPlayer(); 101 MediaPlayer mp = new MediaPlayer(); 129 MediaPlayer mp = new MediaPlayer(); 156 MediaPlayer mp = new MediaPlayer() [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
CodecTest.java | 29 import android.media.MediaPlayer; 49 private static MediaPlayer mMediaPlayer; 50 private MediaPlayer.OnPreparedListener mOnPreparedListener; 90 MediaPlayer mp = new MediaPlayer(); 109 MediaPlayer mp = new MediaPlayer(); 142 MediaPlayer mp = new MediaPlayer(); 169 MediaPlayer mp = new MediaPlayer() [all...] |
/frameworks/base/core/java/android/widget/ |
VideoView.java | 27 import android.media.MediaPlayer; 28 import android.media.MediaPlayer.OnCompletionListener; 29 import android.media.MediaPlayer.OnErrorListener; 30 import android.media.MediaPlayer.OnInfoListener; 97 private MediaPlayer mMediaPlayer = null; 105 private MediaPlayer.OnPreparedListener mOnPreparedListener; 253 * it, one will receive an {@link MediaPlayer#MEDIA_INFO_METADATA_UPDATE} 255 * one will receive a {@link MediaPlayer#MEDIA_INFO_SUBTITLE_TIMED_OUT} 258 * MediaPlayer#MEDIA_INFO_UNSUPPORTED_SUBTITLE} message. One can find the 259 * total number of available tracks using {@link MediaPlayer#getTrackInfo() [all...] |