Home
last modified time | relevance | path

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

/frameworks/av/media/libmedia/
Dmediaplayer.cpp88 p = mPlayer; in disconnect()
89 mPlayer.clear(); in disconnect()
131 p = mPlayer; in attachNewPlayer()
132 mPlayer = player; in attachNewPlayer()
222 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke()
224 return mPlayer->invoke(request, reply); in invoke()
226 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke()
234 if (mPlayer == NULL) { in setMetadataFilter()
237 return mPlayer->setMetadataFilter(filter); in setMetadataFilter()
244 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()
93 return mPlayer->seekTo(msec, mode);
96 return mPlayer->getCurrentPosition(p); in getCurrentPosition()
98 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.h431 sp<MediaPlayerBase> getPlayer() const { Mutex::Autolock lock(mLock); return mPlayer; } in getPlayer()
465 sp<MediaPlayerBase> mPlayer; variable
DMediaPlayerService.cpp577 p = mPlayer; in dump()
808 p = mPlayer; in disconnect()
810 mPlayer.clear(); in disconnect()
983 mPlayer = p; in setDataSource_post()
1407 } else if ((mPlayer != NULL) && !mPlayer->hardwareOutput()) { in setNextPlayer()
1411 if ((mPlayer != NULL) && (mNextClient->getPlayer() != NULL)) { in setNextPlayer()
1412 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/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/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp86 mPlayer(new NuPlayer(pid, mMediaClock)), in NuPlayerDriver()
106 mLooper->registerHandler(mPlayer); in NuPlayerDriver()
108 mPlayer->init(this); in NuPlayerDriver()
131 mPlayer->setUID(uid); in setUID()
155 mPlayer->setDataSourceAsync(httpService, url, headers); in setDataSource()
174 mPlayer->setDataSourceAsync(fd, offset, length); in setDataSource()
193 mPlayer->setDataSourceAsync(source); in setDataSource()
212 mPlayer->setDataSourceAsync(source); in setDataSource()
231 mPlayer->setDataSourceAsync(rtpParams); in setDataSource()
261 mPlayer->setVideoSurfaceTextureAsync(bufferProducer); in setVideoSurfaceTexture()
[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/core/java/android/widget/
DMediaController.java79 private MediaPlayerControl mPlayer; field in MediaController
251 mPlayer = player; in setMediaPlayer()
365 if (mPauseButton != null && !mPlayer.canPause()) { in disableUnsupportedButtons()
368 if (mRewButton != null && !mPlayer.canSeekBackward()) { in disableUnsupportedButtons()
371 if (mFfwdButton != null && !mPlayer.canSeekForward()) { in disableUnsupportedButtons()
381 if (mProgress != null && !mPlayer.canSeekBackward() && !mPlayer.canSeekForward()) { in disableUnsupportedButtons()
457 if (!mDragging && mShowing && mPlayer.isPlaying()) {
479 if (mPlayer == null || mDragging) { in setProgress()
482 int position = mPlayer.getCurrentPosition(); in setProgress()
483 int duration = mPlayer.getDuration(); in setProgress()
[all …]
/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.java66 if (mPlayer != null) { in startSound()
67 mPlayer.release(); in startSound()
69 mPlayer = player; in startSound()
101 if (mPlayer != null) { in run()
106 mPlayer.stop(); in run()
107 mPlayer.release(); in run()
108 mPlayer = null; in run()
132 private MediaPlayer mPlayer; field in AsyncPlayer
DMediaPlayer.java5758 private MediaPlayer mPlayer; field in MediaPlayer.TimeProvider
5782 mPlayer = mp; in TimeProvider()
6060 mPlayer.notifyAt(nextTimeUs); in notifyTimedEvent()
6081 mLastTimeUs = mPlayer.getCurrentPosition() * 1000L; in getCurrentTimeUs()
6082 mPaused = !mPlayer.isPlaying() || mBuffering; in getCurrentTimeUs()
/frameworks/base/media/jni/
DJetPlayer.h99 JetPlayerThread(JetPlayer *player) : mPlayer(player) { in JetPlayerThread()
106 JetPlayer *mPlayer;
110 result = mPlayer->render(); in threadLoop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java154 mp = mPlayer; in run()
155 mPlayer = player; in run()
242 mp = mPlayer; in run()
243 mPlayer = null; in run()
318 if (mp == mPlayer) { in onCompletion()
319 mPlayer = null; in onCompletion()
345 private MediaPlayer mPlayer; field in NotificationPlayer
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DDefaultMixedHandler.java54 private final Transitions mPlayer; field in DefaultMixedHandler
95 mPlayer = player; in DefaultMixedHandler()
102 mPlayer.addHandler(this); in DefaultMixedHandler()
254 mixed.mLeftoversHandler = mPlayer.dispatchTransition(mixed.mTransition, everythingElse, in animateEnterPipFromSplit()
339 mixed.mLeftoversHandler = mPlayer.dispatchTransition(mixed.mTransition, displayPart, in animatePendingSplitWithDisplayChange()
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DNuPlayerDriver.h142 const sp<NuPlayer> mPlayer; member
/frameworks/av/media/libmedia/include/media/
Dmediaplayer.h295 sp<IMediaPlayer> mPlayer; variable
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt23710 Landroid/media/AsyncPlayer;->mPlayer:Landroid/media/MediaPlayer;
27550 Landroid/media/MediaPlayer$TimeProvider;->mPlayer:Landroid/media/MediaPlayer;
27845 Landroid/media/MediaPlayer2Impl$TimeProvider;->mPlayer:Landroid/media/MediaPlayer2Impl;
51136 Landroid/speech/tts/AudioPlaybackQueueItem;->mPlayer:Landroid/media/MediaPlayer;