Home
last modified time | relevance | path

Searched refs:MediaPlayer (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/av/media/libmedia/
Dmediaplayer.cpp45 MediaPlayer::MediaPlayer(const AttributionSourceState& attributionSource) in MediaPlayer() function in android::MediaPlayer
70 MediaPlayer::~MediaPlayer() in ~MediaPlayer()
82 void MediaPlayer::disconnect() in disconnect()
98 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::setDataSource(const String8& rtpParams) in setDataSource()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java27 import android.media.MediaPlayer;
46 private static MediaPlayer mMediaPlayer;
47 private MediaPlayer.OnPreparedListener mOnPreparedListener;
89 MediaPlayer mp = new MediaPlayer(); in getDuration()
108 MediaPlayer mp = new MediaPlayer(); in getCurrentPosition()
141 MediaPlayer mp = new MediaPlayer(); in seekTo()
168 MediaPlayer mp = new MediaPlayer(); in setLooping()
206 MediaPlayer mp = new MediaPlayer(); in pause()
231 MediaPlayer mp = new MediaPlayer(); in prepareStopRelease()
240 MediaPlayer mp = new MediaPlayer(); in preparePauseRelease()
[all …]
DMediaPlayerInvokeTest.java28 import android.media.MediaPlayer;
37 private MediaPlayer mPlayer;
48 mPlayer = new MediaPlayer(); in setUp()
/frameworks/base/core/java/android/widget/
DVideoView.java31 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/core/java/android/speech/tts/
DAudioPlaybackQueueItem.java20 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/tests/OneMedia/src/com/android/onemedia/playback/
DLocalRenderer.java25 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/media/jni/
Dandroid_media_MediaPlayer.cpp168 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz) in getMediaPlayer()
171 MediaPlayer* const p = (MediaPlayer*)env->GetLongField(thiz, fields.context); in getMediaPlayer()
172 return sp<MediaPlayer>(p); in getMediaPlayer()
175 static sp<MediaPlayer> setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) in setMediaPlayer()
178 sp<MediaPlayer> old = (MediaPlayer*)env->GetLongField(thiz, fields.context); in setMediaPlayer()
197 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in process_media_player_call()
226 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceAndHeaders()
274 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceFD()
292 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceCallback()
315 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in decVideoSurfaceRef()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustrationVideoView.java24 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/
DNativeMedia.java21 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/
DMediaSource.java33 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/
DNotificationPlayer.java22 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()
240 final MediaPlayer mp; in run()
294 public void onCompletion(MediaPlayer mp) { in onCompletion()
331 public boolean onError(MediaPlayer mp, int what, int extra) { in onError()
345 private MediaPlayer mPlayer;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/
DMediaPlayerPowerTest.java21 import android.media.MediaPlayer;
51 MediaPlayer mp = new MediaPlayer(); in audioPlayback()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerMethodUnderTest.java19 import android.media.MediaPlayer;
26 public void invokeMethodUnderTest(MediaPlayer player); in invokeMethodUnderTest()
DMediaPlayerStateUnitTestTemplate.java23 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()
DMediaPlayerStopStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
DMediaPlayerStartStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
DMediaPlayerGetVideoWidthStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
DMediaPlayerSeekToStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
DMediaPlayerGetDurationStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
DMediaPlayerResetStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
DMediaPlayerGetVideoHeightStateUnitTest.java19 import android.media.MediaPlayer;
55 public void invokeMethodUnderTest(MediaPlayer player) { in invokeMethodUnderTest()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DSimplePlayer.java38 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/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/template/
DAudioTestHarnessTemplateAndroidTest.java20 import android.media.MediaPlayer;
87 MediaPlayer mp = new MediaPlayer(); in playAudioFile()
/frameworks/av/media/libmediaplayerservice/fuzzer/
DREADME.md5 + [MediaPlayer](#MediaPlayer)
54 # <a name="MediaPlayer"></a> Fuzzer for MediaPlayer
/frameworks/base/media/java/android/media/
DMediaPlayer.java576 public class MediaPlayer extends PlayerBase class
660 public MediaPlayer() { in MediaPlayer() method in MediaPlayer
664 private MediaPlayer(int sessionId) { in MediaPlayer() method in MediaPlayer
690 native_setup(new WeakReference<MediaPlayer>(this), attributionSourceState.getParcel()); in MediaPlayer()
883 public static MediaPlayer create(Context context, Uri uri) { in create()
904 public static MediaPlayer create(Context context, Uri uri, SurfaceHolder holder) { in create()
920 public static MediaPlayer create(Context context, Uri uri, SurfaceHolder holder, in create()
924 MediaPlayer mp = new MediaPlayer(audioSessionId); in create()
968 public static MediaPlayer create(Context context, int resid) { in create()
984 public static MediaPlayer create(Context context, int resid, in create()
[all …]

123