/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 95 p = mPlayer; in disconnect() 96 mPlayer.clear(); in disconnect() 138 p = mPlayer; in attachNewPlayer() 139 mPlayer = player; in attachNewPlayer() 213 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke() 215 return mPlayer->invoke(request, reply); in invoke() 217 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke() 225 if (mPlayer == NULL) { in setMetadataFilter() 228 return mPlayer->setMetadataFilter(filter); in setMetadataFilter() 235 if (mPlayer == NULL) { in getMetadata() [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | TestPlayerStub.h | 82 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 …]
|
D | TestPlayerStub.cpp | 65 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()
|
/frameworks/av/media/libmediaplayer2/ |
D | mediaplayer2.cpp | 55 : mPlayer(player) { } in proxyListener() 61 sp<MediaPlayer2> player = mPlayer.promote(); in notify() 68 wp<MediaPlayer2> mPlayer; member in android::__anonab8084c20111::proxyListener 273 p = mPlayer; in disconnect() 274 mPlayer.clear(); in disconnect() 356 sp<MediaPlayer2Interface> oldPlayer = mPlayer; in setDataSource() 357 mPlayer = player; in setDataSource() 377 if (mPlayer == NULL) { in prepareNextDataSource() 378 ALOGE("prepareNextDataSource failed: state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in prepareNextDataSource() 381 return mPlayer->prepareNextDataSource(dsd); in prepareNextDataSource() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_GenericMediaPlayer.cpp | 249 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 …]
|
D | android_LocAVPlayer.cpp | 53 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()
|
D | android_StreamPlayer.cpp | 44 mPlayer(player) in StreamSourceAppProxy() 187 const sp<StreamPlayer> player(mPlayer.promote()); in pullFromBuffQueue() 266 const sp<StreamPlayer> player(mPlayer.promote()); in pullFromBuffQueue() 346 if (mPlayer != 0) { in onStopForDestroy() 347 mPlayer->stop(); in onStopForDestroy() 350 mPlayer->setVideoSurfaceTexture(NULL); in onStopForDestroy() 351 mPlayer->disconnect(); in onStopForDestroy() 352 mPlayer.clear(); in onStopForDestroy() 389 mPlayer = mediaPlayerService->create(mPlayerClient /*IMediaPlayerClient*/, in onPrepare() 391 if (mPlayer == NULL) { in onPrepare() [all …]
|
D | android_StreamPlayer.h | 74 const wp<StreamPlayer> mPlayer; variable
|
D | android_GenericMediaPlayer.h | 117 sp<IMediaPlayer> mPlayer; variable
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackQueueItem.java | 35 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/ |
D | NuPlayerDriver.cpp | 87 mPlayer(new NuPlayer(pid, mMediaClock)), in NuPlayerDriver() 107 mLooper->registerHandler(mPlayer); in NuPlayerDriver() 109 mPlayer->init(this); in NuPlayerDriver() 132 mPlayer->setUID(uid); in setUID() 156 mPlayer->setDataSourceAsync(httpService, url, headers); in setDataSource() 175 mPlayer->setDataSourceAsync(fd, offset, length); in setDataSource() 194 mPlayer->setDataSourceAsync(source); in setDataSource() 213 mPlayer->setDataSourceAsync(source); in setDataSource() 242 mPlayer->setVideoSurfaceTextureAsync(bufferProducer); in setVideoSurfaceTexture() 260 return mPlayer->getBufferingSettings(buffering); in getBufferingSettings() [all …]
|
D | NuPlayerDriver.h | 140 const sp<NuPlayer> mPlayer; member
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
D | NuPlayer2Driver.cpp | 129 mPlayer(new NuPlayer2(pid, uid, mMediaClock, context)), in NuPlayer2Driver() 156 mNuPlayer2Looper->registerHandler(mPlayer); in NuPlayer2Driver() 158 mPlayer->setDriver(this); in NuPlayer2Driver() 194 mPlayer->setDataSourceAsync(dsd); in setDataSource() 207 mPlayer->prepareNextDataSourceAsync(dsd); in prepareNextDataSource() 217 mPlayer->playNextDataSource(srcId); in playNextDataSource() 241 mPlayer->setVideoSurfaceTextureAsync(nww); in setVideoSurfaceTexture() 259 return mPlayer->getBufferingSettings(buffering); in getBufferingSettings() 271 return mPlayer->setBufferingSettings(buffering); in setBufferingSettings() 281 mPlayer->prepareAsync(); in prepareAsync() [all …]
|
D | NuPlayer2Driver.h | 132 const sp<NuPlayer2> mPlayer; member
|
/frameworks/base/core/java/android/widget/ |
D | MediaController.java | 74 private MediaPlayerControl mPlayer; field in MediaController 229 mPlayer = player; in setMediaPlayer() 343 if (mPauseButton != null && !mPlayer.canPause()) { in disableUnsupportedButtons() 346 if (mRewButton != null && !mPlayer.canSeekBackward()) { in disableUnsupportedButtons() 349 if (mFfwdButton != null && !mPlayer.canSeekForward()) { in disableUnsupportedButtons() 359 if (mProgress != null && !mPlayer.canSeekBackward() && !mPlayer.canSeekForward()) { in disableUnsupportedButtons() 433 if (!mDragging && mShowing && mPlayer.isPlaying()) { 455 if (mPlayer == null || mDragging) { in setProgress() 458 int position = mPlayer.getCurrentPosition(); in setProgress() 459 int duration = mPlayer.getDuration(); in setProgress() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaPlayerInvokeTest.java | 37 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/ |
D | OnePlayerActivity.java | 49 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/ |
D | LocalRenderer.java | 192 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/ |
D | AsyncPlayer.java | 67 if (mPlayer != null) { in startSound() 68 mPlayer.release(); in startSound() 70 mPlayer = player; in startSound() 102 if (mPlayer != null) { in run() 107 mPlayer.stop(); in run() 108 mPlayer.release(); in run() 109 mPlayer = null; in run() 133 private MediaPlayer mPlayer; field in AsyncPlayer
|
/frameworks/av/media/libmedia/include/media/ |
D | JetPlayer.h | 99 JetPlayerThread(JetPlayer *player) : mPlayer(player) { in JetPlayerThread() 106 JetPlayer *mPlayer; 110 result = mPlayer->render(); in threadLoop()
|
D | mediaplayer.h | 286 sp<IMediaPlayer> mPlayer; variable
|
/frameworks/av/include/media/ |
D | JetPlayer.h | 99 JetPlayerThread(JetPlayer *player) : mPlayer(player) { in JetPlayerThread() 106 JetPlayer *mPlayer; 110 result = mPlayer->render(); in threadLoop()
|
D | mediaplayer.h | 286 sp<IMediaPlayer> mPlayer; variable
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 154 mp = mPlayer; in run() 155 mPlayer = player; in run() 236 mp = mPlayer; in run() 237 mPlayer = null; in run() 308 if (mp == mPlayer) { in onCompletion() 309 mPlayer = null; in onCompletion() 331 private MediaPlayer mPlayer; field in NotificationPlayer
|
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/ |
D | mediaplayer2.h | 138 sp<MediaPlayer2Interface> mPlayer; variable
|