/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 53 MediaPlayer::MediaPlayer() in MediaPlayer() function in android::MediaPlayer 77 MediaPlayer::~MediaPlayer() in ~MediaPlayer() 89 void MediaPlayer::disconnect() in disconnect() 105 void MediaPlayer::clear_l() in clear_l() 115 status_t MediaPlayer::setListener(const sp<MediaPlayerListener>& listener) in setListener() 124 status_t MediaPlayer::attachNewPlayer(const sp<IMediaPlayer>& player) in attachNewPlayer() 155 status_t MediaPlayer::setDataSource( in setDataSource() 175 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) in setDataSource() 191 status_t MediaPlayer::setDataSource(const sp<IDataSource> &source) in setDataSource() 207 status_t MediaPlayer::invoke(const Parcel& request, Parcel *reply) in invoke() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 33 import android.media.MediaPlayer; 55 private static MediaPlayer mMediaPlayer; 56 private MediaPlayer.OnPreparedListener mOnPreparedListener; 98 MediaPlayer mp = new MediaPlayer(); in getDuration() 117 MediaPlayer mp = new MediaPlayer(); in getCurrentPosition() 150 MediaPlayer mp = new MediaPlayer(); in seekTo() 177 MediaPlayer mp = new MediaPlayer(); in setLooping() 215 MediaPlayer mp = new MediaPlayer(); in pause() 240 MediaPlayer mp = new MediaPlayer(); in prepareStopRelease() 249 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/base/core/java/android/widget/ |
D | VideoView.java | 31 import android.media.MediaPlayer; 32 import android.media.MediaPlayer.OnCompletionListener; 33 import android.media.MediaPlayer.OnErrorListener; 34 import android.media.MediaPlayer.OnInfoListener; 119 private MediaPlayer mMediaPlayer = null; 130 private MediaPlayer.OnPreparedListener mOnPreparedListener; 357 mMediaPlayer, MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE, 0); in addSubtitleSource() 388 mMediaPlayer = new MediaPlayer(); in openVideo() 423 mMediaPlayer, MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE, 0); in openVideo() 435 mErrorListener.onError(mMediaPlayer, MediaPlayer.MEDIA_ERROR_UNKNOWN, 0); in openVideo() [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/base/media/jni/ |
D | android_media_MediaPlayer.cpp | 167 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz) in getMediaPlayer() 170 MediaPlayer* const p = (MediaPlayer*)env->GetLongField(thiz, fields.context); in getMediaPlayer() 171 return sp<MediaPlayer>(p); in getMediaPlayer() 174 static sp<MediaPlayer> setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) in setMediaPlayer() 177 sp<MediaPlayer> old = (MediaPlayer*)env->GetLongField(thiz, fields.context); in setMediaPlayer() 196 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in process_media_player_call() 225 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceAndHeaders() 273 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceFD() 291 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceCallback() 314 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in decVideoSurfaceRef() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | IllustrationVideoView.java | 24 import android.media.MediaPlayer; 25 import android.media.MediaPlayer.OnErrorListener; 26 import android.media.MediaPlayer.OnInfoListener; 27 import android.media.MediaPlayer.OnPreparedListener; 28 import android.media.MediaPlayer.OnSeekCompleteListener; 69 protected MediaPlayer mMediaPlayer; 160 mMediaPlayer = new MediaPlayer(); in createMediaPlayer() 292 public boolean onInfo(MediaPlayer mp, int what, int extra) { in onInfo() 293 if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) { in onInfo() 302 public void onPrepared(MediaPlayer mp) { in onPrepared() [all …]
|
/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; 89 MediaPlayer player = null; in run() 94 player = new MediaPlayer(); in run() 152 final MediaPlayer mp; in run() 234 final MediaPlayer mp; in run() 284 public void onCompletion(MediaPlayer mp) { in onCompletion() 317 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() 331 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/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaPlayerMethodUnderTest.java | 19 import android.media.MediaPlayer; 26 public void invokeMethodUnderTest(MediaPlayer player); in invokeMethodUnderTest()
|
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 | 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 | MediaPlayerSetLoopingStateUnitTest.java | 19 import android.media.MediaPlayer; 56 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerSetVolumeStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerGetVideoWidthStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerGetVideoHeightStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerPauseStateUnitTest.java | 19 import android.media.MediaPlayer; 55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
|
D | MediaPlayerStartStateUnitTest.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/base/media/java/android/media/ |
D | MediaPlayer.java | 570 public class MediaPlayer extends PlayerBase class 653 public MediaPlayer() { in MediaPlayer() method in MediaPlayer 672 native_setup(new WeakReference<MediaPlayer>(this)); in MediaPlayer() 863 public static MediaPlayer create(Context context, Uri uri) { in create() 883 public static MediaPlayer create(Context context, Uri uri, SurfaceHolder holder) { in create() 899 public static MediaPlayer create(Context context, Uri uri, SurfaceHolder holder, in create() 903 MediaPlayer mp = new MediaPlayer(); in create() 946 public static MediaPlayer create(Context context, int resid) { in create() 962 public static MediaPlayer create(Context context, int resid, in create() 968 MediaPlayer mp = new MediaPlayer(); in create() [all …]
|
/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()
|