/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 29 import android.media.MediaPlayer; 49 private static MediaPlayer mMediaPlayer; 50 private MediaPlayer.OnPreparedListener mOnPreparedListener; 91 MediaPlayer mp = new MediaPlayer(); in getDuration() 110 MediaPlayer mp = new MediaPlayer(); in getCurrentPosition() 143 MediaPlayer mp = new MediaPlayer(); in seekTo() 170 MediaPlayer mp = new MediaPlayer(); in setLooping() 208 MediaPlayer mp = new MediaPlayer(); in pause() 233 MediaPlayer mp = new MediaPlayer(); in prepareStopRelease() 242 MediaPlayer mp = new MediaPlayer(); in preparePauseRelease() [all …]
|
D | MediaPlayerInvokeTest.java | 28 import android.media.MediaPlayer; 37 private MediaPlayer mPlayer; 48 mPlayer = new MediaPlayer(); in setUp()
|
/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 50 MediaPlayer::MediaPlayer() in MediaPlayer() function in android::MediaPlayer 72 MediaPlayer::~MediaPlayer() in ~MediaPlayer() 84 void MediaPlayer::disconnect() in disconnect() 100 void MediaPlayer::clear_l() in clear_l() 108 status_t MediaPlayer::setListener(const sp<MediaPlayerListener>& listener) in setListener() 117 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() 148 status_t MediaPlayer::setDataSource( in setDataSource() 168 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) in setDataSource() 184 status_t MediaPlayer::setDataSource(const sp<IDataSource> &source) in setDataSource() 200 status_t MediaPlayer::invoke(const Parcel& request, Parcel *reply) in invoke() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 28 import android.media.MediaPlayer; 29 import android.media.MediaPlayer.OnCompletionListener; 30 import android.media.MediaPlayer.OnErrorListener; 31 import android.media.MediaPlayer.OnInfoListener; 97 private MediaPlayer mMediaPlayer = null; 105 private MediaPlayer.OnPreparedListener mOnPreparedListener; 292 mMediaPlayer, MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE, 0); in addSubtitleSource() 324 mMediaPlayer = new MediaPlayer(); in openVideo() 359 mMediaPlayer, MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE, 0); in openVideo() 371 mErrorListener.onError(mMediaPlayer, MediaPlayer.MEDIA_ERROR_UNKNOWN, 0); in openVideo() [all …]
|
/frameworks/base/docs/html/guide/topics/media/ |
D | mediaplayer.jd | 12 <li><a href="#mediaplayer">Using MediaPlayer</a> 16 <li><a href='#releaseplayer'>Releasing the MediaPlayer</a></li> 19 <li><a href="#mpandservices">Using a Service with MediaPlayer</a> 35 <li>{@link android.media.MediaPlayer}</li> 55 android.media.MediaPlayer} APIs.</p> 68 <dt>{@link android.media.MediaPlayer}</dt> 75 <p>Before starting development on your application using MediaPlayer, make sure your manifest has 79 <li><strong>Internet Permission</strong> - If you are using MediaPlayer to stream network-based 87 android.media.MediaPlayer#setScreenOnWhilePlaying(boolean) MediaPlayer.setScreenOnWhilePlaying()} or 88 {@link android.media.MediaPlayer#setWakeMode(android.content.Context, int) [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaPlayer.cpp | 142 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz) in getMediaPlayer() 145 MediaPlayer* const p = (MediaPlayer*)env->GetLongField(thiz, fields.context); in getMediaPlayer() 146 return sp<MediaPlayer>(p); in getMediaPlayer() 149 static sp<MediaPlayer> setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) in setMediaPlayer() 152 sp<MediaPlayer> old = (MediaPlayer*)env->GetLongField(thiz, fields.context); in setMediaPlayer() 171 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in process_media_player_call() 200 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceAndHeaders() 248 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceFD() 266 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceCallback() 289 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in decVideoSurfaceRef() [all …]
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 25 import android.media.MediaPlayer; 26 import android.media.MediaPlayer.OnBufferingUpdateListener; 27 import android.media.MediaPlayer.OnCompletionListener; 28 import android.media.MediaPlayer.OnErrorListener; 29 import android.media.MediaPlayer.OnPreparedListener; 192 private MediaPlayer mPlayer; 194 private MediaPlayer mNextPlayer; 262 public void onPrepared(MediaPlayer player) { in onPrepared() 281 public void onBufferingUpdate(MediaPlayer player, int percent) { in onBufferingUpdate() 289 public void onCompletion(MediaPlayer player) { in onCompletion() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackQueueItem.java | 20 import android.media.MediaPlayer; 35 private MediaPlayer mPlayer; 58 mPlayer = MediaPlayer.create( in run() 67 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in run() 69 public boolean onError(MediaPlayer mp, int what, int extra) { in run() 75 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in run() 77 public void onCompletion(MediaPlayer mp) { in run() 99 private static void setupVolume(MediaPlayer player, float volume, float pan) { in setupVolume()
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
D | 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(); in onCreate() 128 mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { in onCreate() 130 public void onPrepared(MediaPlayer mediaPlayer) { in onCreate() 143 mMediaPlayer.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() { in onCreate() 145 public void onVideoSizeChanged(MediaPlayer mediaPlayer, int width, int height) { in onCreate() 346 abstract void useAsSinkForJava(MediaPlayer mediaPlayer); in useAsSinkForJava() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | MediaSource.java | 33 import android.media.MediaPlayer; 97 private MediaPlayer mMediaPlayer; 450 mMediaPlayer = new MediaPlayer(); in setupMediaPlayer() 511 private MediaPlayer.OnVideoSizeChangedListener onVideoSizeChangedListener = 512 new MediaPlayer.OnVideoSizeChangedListener() { 513 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 536 private MediaPlayer.OnPreparedListener onPreparedListener = 537 new MediaPlayer.OnPreparedListener() { 538 public void onPrepared(MediaPlayer mp) { 547 private MediaPlayer.OnCompletionListener onCompletionListener = [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 22 import android.media.MediaPlayer; 23 import android.media.MediaPlayer.OnCompletionListener; 24 import android.media.MediaPlayer.OnErrorListener; 83 MediaPlayer player = new MediaPlayer(); in run() 227 public void onCompletion(MediaPlayer mp) { in onCompletion() 250 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() 261 private MediaPlayer mPlayer;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
D | MediaPlayerPowerTest.java | 21 import android.media.MediaPlayer; 51 MediaPlayer mp = new MediaPlayer(); in audioPlayback()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 558 public class MediaPlayer extends PlayerBase class 624 public MediaPlayer() { in MediaPlayer() method in MediaPlayer 642 native_setup(new WeakReference<MediaPlayer>(this)); in MediaPlayer() 829 public static MediaPlayer create(Context context, Uri uri) { in create() 849 public static MediaPlayer create(Context context, Uri uri, SurfaceHolder holder) { in create() 865 public static MediaPlayer create(Context context, Uri uri, SurfaceHolder holder, in create() 869 MediaPlayer mp = new MediaPlayer(); in create() 912 public static MediaPlayer create(Context context, int resid) { in create() 928 public static MediaPlayer create(Context context, int resid, in create() 934 MediaPlayer mp = new MediaPlayer(); in create() [all …]
|
D | Ringtone.java | 24 import android.media.MediaPlayer.OnCompletionListener; 73 private MediaPlayer mLocalPlayer; 291 mLocalPlayer = new MediaPlayer(); in setUri() 423 mLocalPlayer = new MediaPlayer(); in playFallbackRingtone() 466 class MyOnCompletionListener implements MediaPlayer.OnCompletionListener { 467 public void onCompletion(MediaPlayer mp) in onCompletion()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerStateUnitTestTemplate.java | 23 import android.media.MediaPlayer; 47 private MediaPlayer mMediaPlayer = null; 114 mMediaPlayer = new MediaPlayer(); in initializeMessageLooper() 115 mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in initializeMessageLooper() 116 public boolean onError(MediaPlayer player, int what, int extra) { in initializeMessageLooper() 129 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in initializeMessageLooper() 130 public void onCompletion(MediaPlayer player) { in initializeMessageLooper()
|
D | MediaPlayerMethodUnderTest.java | 19 import android.media.MediaPlayer; 26 public void invokeMethodUnderTest(MediaPlayer player); in invokeMethodUnderTest()
|
D | MediaPlayerStopStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerIsPlayingStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerSetVolumeStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerGetDurationStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | SimplePlayer.java | 38 import android.media.MediaPlayer; 57 MediaPlayer mMediaPlayer; 110 mMediaPlayer = new MediaPlayer(); in playOrPause() 142 mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in playOrPause() 143 public void onCompletion(MediaPlayer mp) { in playOrPause()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
D | ListenerBindingObject.java | 22 import android.media.MediaPlayer; 164 public void onCompletion(MediaPlayer mp) { } in onCompletion() 166 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() 170 public boolean onInfo(MediaPlayer mp, int what, int extra) { in onInfo() 174 public void onPrepared(MediaPlayer mp) { } in onPrepared()
|
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/ |
D | BrowserService.java | 29 import android.media.MediaPlayer; 30 import android.media.MediaPlayer.OnCompletionListener; 31 import android.media.MediaPlayer.OnErrorListener; 32 import android.media.MediaPlayer.OnPreparedListener;
|
/frameworks/av/include/media/ |
D | mediaplayer.h | 203 class MediaPlayer : public BnMediaPlayerClient, 207 MediaPlayer(); 208 ~MediaPlayer(); 256 status_t setNextMediaPlayer(const sp<MediaPlayer>& player);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 32 import android.media.MediaPlayer; 149 MediaPlayer mp = new MediaPlayer(); in validateRecordedVideo() 250 MediaPlayer mp = new MediaPlayer(); in recordVideoAndPlayback() 353 MediaPlayer mp = new MediaPlayer(); in testStressTimeLapse()
|