Home
last modified time | relevance | path

Searched refs:mPlayer (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/media/libmedia/
Dmediaplayer.cpp90 p = mPlayer; in disconnect()
91 mPlayer.clear(); in disconnect()
131 p = mPlayer; in attachNewPlayer()
132 mPlayer = player; in attachNewPlayer()
206 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke()
208 return mPlayer->invoke(request, reply); in invoke()
210 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
218 if (mPlayer == NULL) { in setMetadataFilter()
221 return mPlayer->setMetadataFilter(filter); in setMetadataFilter()
228 if (mPlayer == NULL) { in getMetadata()
[all …]
/frameworks/av/media/libmediaplayerservice/
DTestPlayerStub.h82 return mPlayer->setVideoSurfaceTexture(st); in setVideoSurfaceTexture()
84 virtual status_t prepare() {return mPlayer->prepare();} in prepare()
85 virtual status_t prepareAsync() {return mPlayer->prepareAsync();} in prepareAsync()
86 virtual status_t start() {return mPlayer->start();} in start()
87 virtual status_t stop() {return mPlayer->stop();} in stop()
88 virtual status_t pause() {return mPlayer->pause();} in pause()
89 virtual bool isPlaying() {return mPlayer->isPlaying();} in isPlaying()
90 virtual status_t seekTo(int msec) {return mPlayer->seekTo(msec);} in seekTo()
92 return mPlayer->getCurrentPosition(p); in getCurrentPosition()
94 virtual status_t getDuration(int *d) {return mPlayer->getDuration(d);} in getDuration()
[all …]
DTestPlayerStub.cpp65 mPlayer(NULL) { } in TestPlayerStub()
166 mPlayer = (*mNewPlayer)(); in setDataSource()
167 return mPlayer->setDataSource(httpService, mContentUrl, headers); in setDataSource()
180 if (mPlayer) { in resetInternal()
182 (*mDeletePlayer)(mPlayer); in resetInternal()
183 mPlayer = NULL; in resetInternal()
DMediaPlayerService.cpp409 if (mPlayer != NULL) { in dump()
410 mPlayer->dump(fd, args); in dump()
610 p = mPlayer; in disconnect()
614 mPlayer.clear(); in disconnect()
636 sp<MediaPlayerBase> p = mPlayer; in createPlayer()
724 mPlayer = p; in setDataSource_post()
1104 } else if ((mPlayer != NULL) && !mPlayer->hardwareOutput()) { in setNextPlayer()
1108 if ((mPlayer != NULL) && (mNextClient->getPlayer() != NULL)) { in setNextPlayer()
1109 mPlayer->setNextPlayer(mNextClient->getPlayer()); in setNextPlayer()
/frameworks/wilhelm/src/android/
Dandroid_GenericMediaPlayer.cpp249 mPlayer(0), in GenericMediaPlayer()
308 if ((mStateFlags & kFlagPrepared) && (mPlayer != 0)) { in setVideoSurfaceTexture()
309 mPlayer->setVideoSurfaceTexture(bufferProducer); in setVideoSurfaceTexture()
336 if (!(mStateFlags & (kFlagPrepared | kFlagPreparedUnsuccessfully)) && (mPlayer != 0)) { in onPrepare()
339 mPlayer->setVideoSurfaceTexture(mVideoSurfaceTexture); in onPrepare()
342 mPlayer->setAudioStreamType(mPlaybackParams.streamType); in onPrepare()
344 mPlayer->prepareAsync(); in onPrepare()
359 if (((mStateFlags & (kFlagPrepared | kFlagPlaying)) == kFlagPrepared) && (mPlayer != 0)) { in onPlay()
360 mPlayer->start(); in onPlay()
368 if (!(~mStateFlags & (kFlagPrepared | kFlagPlaying)) && (mPlayer != 0)) { in onPause()
[all …]
Dandroid_LocAVPlayer.cpp53 mPlayer = mediaPlayerService->create(mPlayerClient /*IMediaPlayerClient*/, in onPrepare()
55 if (mPlayer == NULL) { in onPrepare()
66 status_t status = mPlayer->setDataSource( in onPrepare()
70 mPlayer.clear(); in onPrepare()
75 mPlayer = mediaPlayerService->create(mPlayerClient /*IMediaPlayerClient*/, in onPrepare()
77 if (mPlayer == NULL) { in onPrepare()
79 } else if (mPlayer->setDataSource(mDataLocator.fdi.fd, mDataLocator.fdi.offset, in onPrepare()
82 mPlayer.clear(); in onPrepare()
99 if (mPlayer == NULL) { in onPrepare()
Dandroid_StreamPlayer.cpp43 mPlayer(player) in StreamSourceAppProxy()
186 const sp<StreamPlayer> player(mPlayer.promote()); in pullFromBuffQueue()
265 const sp<StreamPlayer> player(mPlayer.promote()); in pullFromBuffQueue()
345 if (mPlayer != 0) { in onStopForDestroy()
346 mPlayer->stop(); in onStopForDestroy()
349 mPlayer->setVideoSurfaceTexture(NULL); in onStopForDestroy()
350 mPlayer->disconnect(); in onStopForDestroy()
351 mPlayer.clear(); in onStopForDestroy()
388 mPlayer = mediaPlayerService->create(mPlayerClient /*IMediaPlayerClient*/, in onPrepare()
390 if (mPlayer == NULL) { in onPrepare()
[all …]
Dandroid_StreamPlayer.h74 const wp<StreamPlayer> mPlayer; variable
Dandroid_GenericMediaPlayer.h117 sp<IMediaPlayer> mPlayer; variable
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DSessionManager.java45 private Player mPlayer; field in SessionManager
82 mPlayer.takeSnapshot(); in updateStatus()
87 } else if (mPlayer.isQueuingSupported()) { in updateStatus()
93 mPlayer.getStatus(item, (i == mPlaylist.size() - 1) /* update */); in updateStatus()
98 mPlayer.getStatus(getCurrentItem(), true /* update */); in updateStatus()
121 if (mPlayer.isQueuingSupported()) { in add()
122 mPlayer.enqueue(item); in add()
149 mPlayer.seek(item); in seek()
160 if (mPlayer.isRemotePlayback()) { in getStatus()
168 mPlayer.getStatus(item, false); in getStatus()
[all …]
DSampleMediaRouterActivity.java107 private Player mPlayer; field in SampleMediaRouterActivity
131 mPlayer = Player.create(SampleMediaRouterActivity.this, route, mMediaSession);
132 mPlayer.updatePresentation();
133 mSessionManager.setPlayer(mPlayer);
150 mPlayer.updatePresentation();
151 mPlayer.release();
163 mPlayer.updatePresentation();
358 mPlayer = Player.create(SampleMediaRouterActivity.this, in onCreate()
361 mSessionManager.setPlayer(mPlayer); in onCreate()
469 if (!mPlayer.isRemotePlayback() && !mSessionManager.isPaused()) { in onPause()
[all …]
DSampleMediaRouteProvider.java232 private final Player mPlayer; field in SampleMediaRouteProvider.SampleRouteController
237 mPlayer = Player.create(getContext(), null, null); in SampleRouteController()
238 mSessionManager.setPlayer(mPlayer); in SampleRouteController()
256 mPlayer.release(); in onRelease()
262 mPlayer.connect(null); in onSelect()
268 mPlayer.release(); in onUnselect()
324 data.putParcelable(EXTRA_SNAPSHOT, mPlayer.getSnapshot()); in onControlRequest()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp57 mPlayer = new NuPlayer(pid); in NuPlayerDriver()
58 mLooper->registerHandler(mPlayer); in NuPlayerDriver()
60 mPlayer->setDriver(this); in NuPlayerDriver()
73 mPlayer->setUID(uid); in setUID()
91 mPlayer->setDataSourceAsync(httpService, url, headers); in setDataSource()
110 mPlayer->setDataSourceAsync(fd, offset, length); in setDataSource()
129 mPlayer->setDataSourceAsync(source); in setDataSource()
148 mPlayer->setDataSourceAsync(source); in setDataSource()
177 mPlayer->setVideoSurfaceTextureAsync(bufferProducer); in setVideoSurfaceTexture()
201 mPlayer->prepareAsync(); in prepare_l()
[all …]
DNuPlayerDriver.h117 sp<NuPlayer> mPlayer; member
/frameworks/base/core/java/android/speech/tts/
DAudioPlaybackQueueItem.java35 private MediaPlayer mPlayer; field in AudioPlaybackQueueItem
48 mPlayer = null; in AudioPlaybackQueueItem()
58 mPlayer = MediaPlayer.create( in run()
61 if (mPlayer == null) { in run()
67 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in run()
75 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in run()
83 setupVolume(mPlayer, mAudioParams.mVolume, mAudioParams.mPan); in run()
84 mPlayer.start(); in run()
118 mPlayer.stop(); in finish()
122 mPlayer.release(); in finish()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/
DMediaPlayerGlue.java64 private final MediaPlayer mPlayer = new MediaPlayer(); field in MediaPlayerGlue
101 mPlayer.reset(); in reset()
124 mPlayer.setDisplay(surfaceHolder); in setDisplay()
228 return mPlayer.isPlaying(); in isMediaPlaying()
240 return mInitialized ? mPlayer.getDuration() : 0; in getMediaDuration()
253 return mPlayer.isPlaying() ? 1 : 0; in getCurrentSpeedId()
257 return mInitialized ? mPlayer.getCurrentPosition() : 0; in getCurrentPosition()
261 mPlayer.start(); in startPlayback()
265 if (mPlayer.isPlaying()) { in pausePlayback()
266 mPlayer.pause(); in pausePlayback()
[all …]
/frameworks/base/core/java/android/widget/
DMediaController.java71 private MediaPlayerControl mPlayer; field in MediaController
209 mPlayer = player; in setMediaPlayer()
323 if (mPauseButton != null && !mPlayer.canPause()) { in disableUnsupportedButtons()
326 if (mRewButton != null && !mPlayer.canSeekBackward()) { in disableUnsupportedButtons()
329 if (mFfwdButton != null && !mPlayer.canSeekForward()) { in disableUnsupportedButtons()
339 if (mProgress != null && !mPlayer.canSeekBackward() && !mPlayer.canSeekForward()) { in disableUnsupportedButtons()
413 if (!mDragging && mShowing && mPlayer.isPlaying()) {
435 if (mPlayer == null || mDragging) { in setProgress()
438 int position = mPlayer.getCurrentPosition(); in setProgress()
439 int duration = mPlayer.getDuration(); in setProgress()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaPlayerInvokeTest.java37 private MediaPlayer mPlayer; field in MediaPlayerInvokeTest
48 mPlayer = new MediaPlayer(); in setUp()
53 mPlayer.release(); in tearDown()
61 mPlayer.setDataSource("test:invoke_mock_media_player.so?url=ping"); in testPing()
63 Parcel request = mPlayer.newRequest(); in testPing()
68 mPlayer.invoke(request, reply); in testPing()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DOnePlayerActivity.java49 protected PlayerController mPlayer; field in OnePlayerActivity
68 mPlayer = new PlayerController(this, OnePlayerService.getServiceIntent(this)); in onCreate()
99 mPlayer.onResume(); in onResume()
100 mPlayer.setListener(mListener); in onResume()
105 mPlayer.setListener(null); in onPause()
106 mPlayer.onPause(); in onPause()
130 mPlayer.setArt(mAlbumArtBitmap); in onActivityResult()
149 mPlayer.play();
151 mPlayer.pause();
156 mPlayer.setContent(mContentText.getText().toString());
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DLocalRenderer.java192 private MediaPlayer mPlayer; field in LocalRenderer
297 if (mPlayer != null) { in onCompletion()
298 mPlayer.release(); in onCompletion()
300 mPlayer = mNextPlayer; in onCompletion()
396 Log.d(TAG, mDebugId + ": Settings new content. Have a player? " + (mPlayer != null) in setContent()
407 mPlayer = newPlayer; in setContent()
433 Log.d(TAG, mDebugId + ": Setting next content. Have player? " + (mPlayer != null) in setNextContent()
437 if (mPlayer == null) { in setNextContent()
445 mPlayer.setNextMediaPlayer(null); in setNextContent()
470 mPlayer.setNextMediaPlayer(newPlayer); in setNextContent()
[all …]
/frameworks/base/media/java/android/media/
DAsyncPlayer.java65 if (mPlayer != null) { in startSound()
66 mPlayer.release(); in startSound()
68 mPlayer = player; in startSound()
100 if (mPlayer != null) { in run()
105 mPlayer.stop(); in run()
106 mPlayer.release(); in run()
107 mPlayer = null; in run()
131 private MediaPlayer mPlayer; field in AsyncPlayer
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java118 if (mPlayer != null) { in run()
119 mPlayer.release(); in run()
121 mPlayer = player; in run()
188 if (mPlayer != null) { in run()
193 mPlayer.stop(); in run()
194 mPlayer.release(); in run()
195 mPlayer = null; in run()
261 private MediaPlayer mPlayer; field in NotificationPlayer
/frameworks/base/docs/html/guide/topics/media/
Daudio-capture.jd113 private MediaPlayer mPlayer = null;
132 mPlayer = new MediaPlayer();
134 mPlayer.setDataSource(mFileName);
135 mPlayer.prepare();
136 mPlayer.start();
143 mPlayer.release();
144 mPlayer = null;
246 if (mPlayer != null) {
247 mPlayer.release();
248 mPlayer = null;
/frameworks/av/include/media/
DJetPlayer.h99 JetPlayerThread(JetPlayer *player) : mPlayer(player) { in JetPlayerThread()
106 JetPlayer *mPlayer;
110 result = mPlayer->render(); in threadLoop()
/frameworks/base/docs/html/training/tv/tif/
Dui.jd51 if (mPlayer != null) {
52 mPlayer.setSurface(surface);
60 if (mPlayer != null) {
61 mPlayer.setVolume(volume, volume);
73 if (mPlayer != null) {
74 mPlayer.sendMessage(mVideoRenderer,
84 if (mPlayer != null) {
85 mPlayer.sendMessage(mAudioRenderer,
225 if (mPlayer != null) {
280 if (mPlayer != null) {
[all …]

12