/frameworks/av/media/libmedia/ |
D | mediaplayer.cpp | 93 p = mPlayer; in disconnect() 94 mPlayer.clear(); in disconnect() 136 p = mPlayer; in attachNewPlayer() 137 mPlayer = player; in attachNewPlayer() 227 if ((mPlayer != NULL) && hasBeenInitialized) { in invoke() 229 return mPlayer->invoke(request, reply); in invoke() 231 ALOGE("invoke failed: wrong state %X, mPlayer(%p)", mCurrentState, mPlayer.get()); in invoke() 239 if (mPlayer == NULL) { in setMetadataFilter() 242 return mPlayer->setMetadataFilter(filter); in setMetadataFilter() 249 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/libaudioclient/tests/ |
D | trackplayerbase_tests.cpp | 54 mPlayer = new TrackPlayer(); in SetUp() 55 mPlayer->init(track.get(), mPlayer, PLAYER_TYPE_AAUDIO, AUDIO_USAGE_MEDIA, in SetUp() 57 sp<AudioTrack> playerTrack = mPlayer->mAudioTrack; in SetUp() 77 ssize_t nbytes = mPlayer->mAudioTrack->write(mBuffer.data(), mBufferSize, blocking); in playBuffer() 82 sp<TrackPlayer> mPlayer; member in TrackPlayerBaseTest 102 EXPECT_TRUE(mPlayer->setStartDelayMs(0).isOk()); in TEST_P() 104 ASSERT_EQ(mPlayer->playerStart(), NO_ERROR); in TEST_P() 106 EXPECT_EQ(mPlayer->playerStop(), NO_ERROR); in TEST_P() 116 (void)mPlayer->setPlayerVolume(volume / 2, volume); in TEST_P() 118 ASSERT_TRUE(mPlayer->start().isOk()); in TEST_P() [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 | 43 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 …]
|
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() 108 mLooper->registerHandler(mPlayer); in NuPlayerDriver() 110 mPlayer->init(this); in NuPlayerDriver() 133 mPlayer->setUID(uid); in setUID() 157 mPlayer->setDataSourceAsync(httpService, url, headers); in setDataSource() 176 mPlayer->setDataSourceAsync(fd, offset, length); in setDataSource() 195 mPlayer->setDataSourceAsync(source); in setDataSource() 214 mPlayer->setDataSourceAsync(source); in setDataSource() 233 mPlayer->setDataSourceAsync(rtpParams); in setDataSource() 263 mPlayer->setVideoSurfaceTextureAsync(bufferProducer); in setVideoSurfaceTexture() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaPlayerInvokeTest.java | 34 private MediaPlayer mPlayer; field in MediaPlayerInvokeTest 45 mPlayer = new MediaPlayer(); in setUp() 50 mPlayer.release(); in tearDown() 58 mPlayer.setDataSource("test:invoke_mock_media_player.so?url=ping"); in testPing() 60 Parcel request = mPlayer.newRequest(); in testPing() 65 mPlayer.invoke(request, reply); in testPing()
|
/frameworks/base/core/java/android/widget/ |
D | MediaController.java | 78 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/services/tests/wmtests/src/com/android/server/wm/ |
D | PhysicalDisplaySwitchTransitionLauncherTest.java | 64 WindowTestsBase.TestTransitionPlayer mPlayer; field in PhysicalDisplaySwitchTransitionLauncherTest 76 mPlayer = new WindowTestsBase.TestTransitionPlayer( in setUp() 107 assertNotNull(mPlayer.mLastRequest); in testDisplaySwitchAfterUnfoldToOpen_animationsEnabled_requestsTransition() 109 mPlayer.mLastRequest.getDisplayChange().getDisplayId()); in testDisplaySwitchAfterUnfoldToOpen_animationsEnabled_requestsTransition() 110 assertEquals(origBounds, mPlayer.mLastRequest.getDisplayChange().getStartAbsBounds()); in testDisplaySwitchAfterUnfoldToOpen_animationsEnabled_requestsTransition() 112 mPlayer.mLastRequest.getDisplayChange().getEndAbsBounds()); in testDisplaySwitchAfterUnfoldToOpen_animationsEnabled_requestsTransition() 143 mPlayer.mLastRequest = null; in testDisplaySwitchSecondTimeAfterUnfolding_animationEnabled_noTransition() 240 assertNotNull(mPlayer.mLastRequest); in assertTransitionRequested() 244 assertNull(mPlayer.mLastRequest); in assertTransitionNotRequested() 274 mTransitionController.registerTransitionPlayer(mPlayer, null /* proc */); in givenShellTransitionsEnabled() [all …]
|
D | TransitionTests.java | 2148 final TestTransitionPlayer mPlayer; field in TransitionTests.OrderChangeTestSetup 2154 mPlayer = registerTestTransitionPlayer(); in OrderChangeTestSetup() 2229 for (int i = 0; i < setup.mPlayer.mLastReady.getChanges().size(); ++i) { in testMoveToTopStartAfterReadyAfterParallel() 2230 assertNull(setup.mPlayer.mLastReady.getChanges().get(i).getTaskInfo()); in testMoveToTopStartAfterReadyAfterParallel() 2237 for (int i = 0; i < setup.mPlayer.mLastReady.getChanges().size(); ++i) { in testMoveToTopStartAfterReadyAfterParallel() 2238 final TransitionInfo.Change chg = setup.mPlayer.mLastReady.getChanges().get(i); in testMoveToTopStartAfterReadyAfterParallel() 2261 for (int i = 0; i < setup.mPlayer.mLastReady.getChanges().size(); ++i) { in testMoveToTopStartAfterReadyBeforeParallel() 2262 final TransitionInfo.Change chg = setup.mPlayer.mLastReady.getChanges().get(i); in testMoveToTopStartAfterReadyBeforeParallel() 2271 for (int i = 0; i < setup.mPlayer.mLastReady.getChanges().size(); ++i) { in testMoveToTopStartAfterReadyBeforeParallel() 2272 assertNull(setup.mPlayer.mLastReady.getChanges().get(i).getTaskInfo()); in testMoveToTopStartAfterReadyBeforeParallel() [all …]
|
/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 | 66 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
|
/frameworks/base/media/jni/ |
D | JetPlayer.h | 99 JetPlayerThread(JetPlayer *player) : mPlayer(player) { in JetPlayerThread() 106 JetPlayer *mPlayer; 110 result = mPlayer->render(); in threadLoop()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | DefaultMixedHandler.java | 70 private final Transitions mPlayer; field in DefaultMixedHandler 126 protected final Transitions mPlayer; field in DefaultMixedHandler.MixedTransition 157 mPlayer = player; in MixedTransition() 231 mPlayer = player; in DefaultMixedHandler() 241 mPlayer.addHandler(this); in DefaultMixedHandler() 294 mPlayer.dispatchRequest(transition, request, this); in handleRequest() 302 if (mixed.mLeftoversHandler != mPlayer.getRemoteTransitionHandler()) { in handleRequest() 304 mPlayer.getRemoteTransitionHandler().handleRequest(transition, request); in handleRequest() 315 mPlayer.dispatchRequest(transition, request, this); in handleRequest() 321 mPlayer.getRemoteTransitionHandler(), in handleRequest() [all …]
|
D | DefaultMixedTransition.java | 79 finishCallback, mPlayer, mMixedHandler, mPipHandler, mSplitHandler, in startAnimation() 83 finishCallback, mPlayer, mMixedHandler, mPipHandler, mSplitHandler, in startAnimation() 163 && mLeftoversHandler != mPlayer.getRemoteTransitionHandler()) { in animateOpenIntentWithRemoteAndPip() 164 mPlayer.getRemoteTransitionHandler().onTransitionConsumed(transition, false, null); in animateOpenIntentWithRemoteAndPip() 219 mLeftoversHandler = mPlayer.dispatchTransition( in tryAnimateOpenIntentWithRemoteAndPip() 324 mPlayer.getRemoteTransitionHandler().onTransitionConsumed(transition, aborted, finishT); in onTransitionConsumed()
|
D | RecentsMixedTransition.java | 145 finishCallback, mPlayer, mMixedHandler, mPipHandler, mSplitHandler, in animateRecentsDuringSplit() 224 mPlayer.getRemoteTransitionHandler().onTransitionConsumed(transition, aborted, finishT); in onTransitionConsumed()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 156 mp = mPlayer; in run() 157 mPlayer = player; in run() 224 mp = mPlayer; in stopSound() 225 mPlayer = null; in stopSound() 338 if (mp == mPlayer) { in onCompletion() 339 mPlayer = null; in onCompletion() 365 private MediaPlayer mPlayer; field in NotificationPlayer
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/keyguard/ |
D | KeyguardTransitionHandler.java | 104 final IRemoteTransition mPlayer; field in KeyguardTransitionHandler.StartedTransition 110 mPlayer = player; in StartedTransition() 273 playing.mPlayer.mergeAnimation(nextTransition, nextInfo, nextT, currentTransition, in mergeAnimation() 328 playing.mPlayer.mergeAnimation( in finishAnimationImmediately()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TransitionController.java | 352 if (mTransitionPlayers.get(idx).mPlayer.asBinder() == player.asBinder()) break; in unregisterTransitionPlayer() 379 return mTransitionPlayers.isEmpty() ? null : mTransitionPlayers.getLast().mPlayer; in getTransitionPlayer() 778 mTransitionPlayers.getLast().mPlayer.requestStartTransition( in requestStartTransition() 1502 final ITransitionPlayer mPlayer; field in TransitionController.TransitionPlayerRecord 1508 mPlayer = player; in TransitionPlayerRecord() 1519 if (mPlayer.asBinder() == null) return; in linkToDeath() 1522 unregisterTransitionPlayer(mPlayer); in linkToDeath() 1525 mPlayer.asBinder().linkToDeath(mDeath, 0); in linkToDeath() 1529 if (mPlayer.asBinder() == null || mDeath == null) return; in unlinkToDeath() 1530 mPlayer.asBinder().unlinkToDeath(mDeath, 0); in unlinkToDeath()
|