Searched refs:mPlayer (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
H A DMediaPlayerProxyTestCase.java71 private MediaPlayerProxy mPlayer; field in class:MediaPlayerProxyTestCase
79 mPlayer = createTestMediaPlayer();
88 mPlayer.release();
89 mPlayer = null;
119 mPlayer.release();
120 mPlayer.release();
124 mPlayer.reset();
128 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3");
133 setDataSourceFromContentProvider(mPlayer, "quick_test_recording.mp3", "audio/mp3");
134 setDataSourceFromContentProvider(mPlayer, "quick_test_recordin
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightPlayer.cpp31 : mPlayer(new AwesomePlayer) {
34 mPlayer->setListener(this);
41 delete mPlayer;
42 mPlayer = NULL;
51 mPlayer->setUID(uid);
58 return mPlayer->setDataSource(url, headers);
65 return mPlayer->setDataSource(dup(fd), offset, length);
69 return mPlayer->setDataSource(source);
76 return mPlayer->setSurfaceTexture(surfaceTexture);
80 return mPlayer
[all...]
H A DTestPlayerStub.h77 // All the methods below wrap the mPlayer instance.
80 return mPlayer->setVideoSurfaceTexture(st);
82 virtual status_t prepare() {return mPlayer->prepare();}
83 virtual status_t prepareAsync() {return mPlayer->prepareAsync();}
84 virtual status_t start() {return mPlayer->start();}
85 virtual status_t stop() {return mPlayer->stop();}
86 virtual status_t pause() {return mPlayer->pause();}
87 virtual bool isPlaying() {return mPlayer->isPlaying();}
88 virtual status_t seekTo(int msec) {return mPlayer->seekTo(msec);}
90 return mPlayer
122 MediaPlayerBase *mPlayer; // wrapped player member in class:android::TestPlayerStub
[all...]
H A DTestPlayerStub.cpp65 mPlayer(NULL) { }
164 mPlayer = (*mNewPlayer)();
165 return mPlayer->setDataSource(mContentUrl, headers);
178 if (mPlayer) {
180 (*mDeletePlayer)(mPlayer);
181 mPlayer = NULL;
H A DStagefrightPlayer.h68 AwesomePlayer *mPlayer; member in class:android::StagefrightPlayer
/frameworks/wilhelm/src/android/
H A Dandroid_LocAVPlayer.cpp49 mPlayer = mediaPlayerService->create(getpid(), mPlayerClient /*IMediaPlayerClient*/,
51 if (mPlayer == NULL) {
53 } else if (mPlayer->setDataSource(mDataLocator.uriRef, NULL /*headers*/) != NO_ERROR) {
55 mPlayer.clear();
59 mPlayer = mediaPlayerService->create(getpid(), mPlayerClient /*IMediaPlayerClient*/,
61 if (mPlayer == NULL) {
63 } else if (mPlayer->setDataSource(mDataLocator.fdi.fd, mDataLocator.fdi.offset,
66 mPlayer.clear();
83 if (mPlayer == NULL) {
86 // blocks until mPlayer i
[all...]
H A Dandroid_GenericMediaPlayer.cpp246 mPlayer(0),
259 // FIXME can't access mPlayer from outside the looper (no mutex!) so using mPreparedPlayer
271 //mPlayer.clear();
305 if ((mStateFlags & kFlagPrepared) && (mPlayer != 0)) {
306 mPlayer->setVideoSurfaceTexture(surfaceTexture);
329 // blocks until mPlayer is prepared
333 if (!(mStateFlags & (kFlagPrepared | kFlagPreparedUnsuccessfully)) && (mPlayer != 0)) {
336 mPlayer->setVideoSurfaceTexture(mVideoSurfaceTexture);
339 mPlayer->setAudioStreamType(mPlaybackParams.streamType);
341 mPlayer
[all...]
H A Dandroid_StreamPlayer.cpp43 mPlayer(player)
186 const sp<StreamPlayer> player(mPlayer.promote());
265 const sp<StreamPlayer> player(mPlayer.promote());
345 if (mPlayer != 0) {
346 mPlayer->stop();
348 //mPlayer->setDataSource(NULL);
349 mPlayer->setVideoSurfaceTexture(NULL);
350 mPlayer->disconnect();
351 mPlayer.clear();
388 mPlayer
[all...]
H A Dandroid_StreamPlayer.h74 const wp<StreamPlayer> mPlayer; member in class:android::StreamSourceAppProxy
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java33 private MediaPlayer mPlayer; field in class:AudioPlaybackQueueItem
46 mPlayer = null;
54 mPlayer = MediaPlayer.create(mContext, mUri);
55 if (mPlayer == null) {
61 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {
69 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
76 mPlayer.setAudioStreamType(mStreamType);
77 mPlayer.start();
94 mPlayer.stop();
98 mPlayer
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DMediaPlayerInvokeTest.java37 private MediaPlayer mPlayer; field in class:MediaPlayerInvokeTest
48 mPlayer = new MediaPlayer();
53 mPlayer.release();
61 mPlayer.setDataSource("test:invoke_mock_media_player.so?url=ping");
63 Parcel request = mPlayer.newRequest();
68 mPlayer.invoke(request, reply);
/frameworks/base/core/java/android/webkit/
H A DHTML5VideoView.java64 protected static MediaPlayer mPlayer = null; field in class:HTML5VideoView
92 mPlayer.start();
99 mPlayer.pause();
113 return mPlayer.getDuration();
121 return mPlayer.getCurrentPosition();
128 mPlayer.seekTo(pos);
135 return mPlayer.isPlaying();
143 mPlayer.reset();
150 mPlayer.stop();
155 if (mPlayer !
[all...]
H A DHTML5VideoFullScreen.java100 if (mPlayer != null && mMediaController != null
122 mPlayingWhenDestroyed = mPlayer.isPlaying();
126 mPlayer.setDisplay(null);
164 if (mPlayer != null && mMediaController != null) {
174 mPlayer.setDisplay(mSurfaceHolder);
181 mPlayer.setScreenOnWhilePlaying(true);
182 mPlayer.setOnVideoSizeChangedListener(mSizeChangedListener);
215 mPlayer.start();
222 // And make sure mPlayer state is updated before showing the controller.
274 mPlayer
[all...]
H A DHTML5VideoInline.java59 mPlayer.setSurface(surface);
73 mPlayer.setWakeMode(proxy.getContext(), PowerManager.FULL_WAKE_LOCK);
/frameworks/av/media/libmedia/
H A Dmediaplayer.cpp81 p = mPlayer;
82 mPlayer.clear();
123 p = mPlayer;
124 mPlayer = player;
197 if ((mPlayer != NULL) && hasBeenInitialized) {
199 return mPlayer->invoke(request, reply);
209 if (mPlayer == NULL) {
212 return mPlayer->setMetadataFilter(filter);
219 if (mPlayer == NULL) {
222 return mPlayer
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp32 : mPlayer(new PreviewPlayer(renderer)) {
35 mPlayer->setListener(this);
44 delete mPlayer;
45 mPlayer = NULL;
55 return mPlayer->setAudioPlayer(audioPlayer);
67 return mPlayer->setDataSource(url);
80 mPlayer->setSurface(surface);
87 mPlayer->setSurfaceTexture(surfaceTexture);
93 return mPlayer->prepare();
97 return mPlayer
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDriver.cpp47 mPlayer = new NuPlayer;
48 mLooper->registerHandler(mPlayer);
50 mPlayer->setDriver(this);
62 mPlayer->setUID(uid);
71 mPlayer->setDataSource(url, headers);
81 mPlayer->setDataSource(fd, offset, length);
91 mPlayer->setDataSource(source);
100 mPlayer->setVideoSurfaceTexture(surfaceTexture);
125 mPlayer->start();
131 mPlayer
[all...]
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp50 mPlayer = new TimedTextPlayer(listener);
51 mLooper->registerHandler(mPlayer);
66 mPlayer->setDataSource(source);
82 mPlayer->start();
86 mPlayer->resume();
102 mPlayer->pause();
126 mPlayer->pause();
131 mPlayer->start();
150 mPlayer->setDataSource(NULL);
170 mPlayer
[all...]
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java66 if (mPlayer != null) {
67 mPlayer.release();
69 mPlayer = player;
101 if (mPlayer != null) {
106 mPlayer.stop();
107 mPlayer.release();
108 mPlayer = null;
132 private MediaPlayer mPlayer; field in class:AsyncPlayer
/frameworks/base/core/java/android/widget/
H A DMediaController.java73 private MediaPlayerControl mPlayer; field in class:MediaController
200 mPlayer = player;
307 if (mPauseButton != null && !mPlayer.canPause()) {
310 if (mRewButton != null && !mPlayer.canSeekBackward()) {
313 if (mFfwdButton != null && !mPlayer.canSeekForward()) {
387 if (!mDragging && mShowing && mPlayer.isPlaying()) {
412 if (mPlayer == null || mDragging) {
415 int position = mPlayer.getCurrentPosition();
416 int duration = mPlayer.getDuration();
423 int percent = mPlayer
[all...]
/frameworks/av/include/media/
H A DJetPlayer.h100 JetPlayerThread(JetPlayer *player) : mPlayer(player) {
107 JetPlayer *mPlayer; member in class:android::JetPlayer::JetPlayerThread
111 result = mPlayer->render();
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DNotificationPlayer.java103 if (mPlayer != null) {
104 mPlayer.release();
106 mPlayer = player;
174 if (mPlayer != null) {
179 mPlayer.stop();
180 mPlayer.release();
181 mPlayer = null;
230 private MediaPlayer mPlayer; field in class:NotificationPlayer
/frameworks/av/media/libstagefright/wifi-display/sink/
H A DTunnelRenderer.cpp370 mPlayer = service->create(getpid(), mPlayerClient, 0);
371 CHECK(mPlayer != NULL);
372 CHECK_EQ(mPlayer->setDataSource(mStreamSource), (status_t)OK);
374 mPlayer->setVideoSurfaceTexture(
377 mPlayer->start();
383 mPlayer->stop();
384 mPlayer.clear();
H A DTunnelRenderer.h67 sp<IMediaPlayer> mPlayer; member in struct:android::TunnelRenderer
/frameworks/av/include/media/stagefright/timedtext/
H A DTimedTextDriver.h78 sp<TimedTextPlayer> mPlayer; member in class:android::TimedTextDriver

Completed in 210 milliseconds

12