/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputUtilsTest.java | 72 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaPlaying_returnController() 83 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaPause_returnController() 103 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 122 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaStopped_returnNull() 141 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaNone_returnNull() 160 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaError_returnNull() 185 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull() 187 when(remoteMediaController.getPlaybackState()).thenReturn(playbackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull() 210 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull() 212 when(remoteMediaController.getPlaybackState()).thenReturn(playbackState); in getActiveLocalMediaController_bothHaveLocalMediaAndRemoteMedia_returnNull()
|
D | MediaOutputIndicatorWorkerTest.java | 120 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSlicePinned_registerCallback() 137 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSlicePinned_packageUpdated_checkPackageName() 184 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in onSliceUnpinned_unRegisterCallback() 217 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaPlaying_returnController() 250 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_remoteMediaPlaying_returnNull() 269 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_localMediaStopped_returnNull() 292 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull() 294 when(remoteMediaController.getPlaybackState()).thenReturn(playbackState); in getActiveLocalMediaController_bothHaveRemoteMediaAndLocalMedia_returnNull()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapper.java | 71 if (getPlaybackState() == null) { in isPlaybackStateReady() 101 mCurrentData.state = getPlaybackState(); in MediaPlayerWrapper() 131 public PlaybackState getPlaybackState() { in getPlaybackState() method in MediaPlayerWrapper 132 return mMediaController.getPlaybackState(); in getPlaybackState() 136 PlaybackState state = mMediaController.getPlaybackState(); in getActiveQueueID() 168 MediaData data = new MediaData(getCurrentMetadata(), getPlaybackState(), getCurrentQueue()); in getCurrentMediaData() 309 getPlaybackState(), in registerCallback() 346 getPlaybackState(), in updateMediaController() 358 getPlaybackState(), in sendMediaUpdate() 398 Log.e(TAG, " └ Current Playstate: " + getPlaybackState()); in handleMessage() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpPlayerTest.java | 75 assertThat(avrcpPlayer.getPlaybackState().getActions()) in buildAvrcpPlayer() 94 assertThat(avrcpPlayer.getPlaybackState().getPlaybackSpeed()).isEqualTo(1); in setPlayStatus() 97 assertThat(avrcpPlayer.getPlaybackState().getPlaybackSpeed()).isEqualTo(0); in setPlayStatus() 100 assertThat(avrcpPlayer.getPlaybackState().getPlaybackSpeed()).isEqualTo(3); in setPlayStatus() 103 assertThat(avrcpPlayer.getPlaybackState().getPlaybackSpeed()).isEqualTo(-3); in setPlayStatus() 120 assertThat(avrcpPlayer.getPlaybackState().getActions()).isEqualTo(expectedActions); in setSupportedPlayerApplicationSettings() 157 assertThat(avrcpPlayer.getPlaybackState().getActions()).isEqualTo(expectedActions); in updateAvailableActions()
|
D | AvrcpControllerStateMachineTest.java | 416 BluetoothMediaBrowserService.getPlaybackState().getState()); in testControlOnly() 446 BluetoothMediaBrowserService.getPlaybackState().getState()); in testBrowsingOnly() 836 .getPlaybackState(eq(mTestAddress)); in testAvailablePlayersReceived_AddressedPlayerExists() 888 .getPlaybackState(any()); in testAvailablePlayersReceived_AddressedPlayerDoesNotExist() 946 .getPlaybackState(eq(mTestAddress)); in testAddressedPlayerChangedToNewKnownPlayer() 989 .getPlaybackState(eq(mTestAddress)); in testAddressedPlayerChangedToUnknownPlayer() 1049 .getPlaybackState(eq(mTestAddress)); in testAddressedPlayerChangedToSamePlayerId() 1282 PlaybackStateCompat playbackState = controller.getPlaybackState(); in testBecomeActive() 1349 PlaybackStateCompat playbackState = controller.getPlaybackState(); in testTrackChangedWhileActive_currentTrackAndQueueNumberUpdated() 1370 playbackState = controller.getPlaybackState(); in testTrackChangedWhileActive_currentTrackAndQueueNumberUpdated() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapperTest.java | 156 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in setUp() 195 doReturn(null).when(mMockController).getPlaybackState(); in testIsReady() 199 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testIsReady() 226 doReturn(mTestState.build()).when(mUpdatedController).getPlaybackState(); in testControllerUpdate() 282 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testNoQueueMediaUpdates() 329 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testDataOnUpdateNoQueue() 398 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testNullPlayback() 508 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam() 526 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam() 531 doReturn(mTestState.build()).when(mMockController).getPlaybackState(); in testPlaybackStateUpdateSpam() [all …]
|
D | GPMWrapperTest.java | 67 when(mMediaController.getPlaybackState()).thenReturn(state); in isMetadataSynced_whenOutOfSync_returnsFalse() 97 when(mMediaController.getPlaybackState()).thenReturn(state); in isMetadataSynced_whenSynced_returnsTrue()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackMediaSessionHelper.java | 122 mDvrPlayer.getPlaybackState(), in updateMediaSessionPlaybackState() 154 public int getPlaybackState() { in getPlaybackState() method in DvrPlaybackMediaSessionHelper 155 return mDvrPlayer.getPlaybackState(); in getPlaybackState() 314 if (mDvrPlayer.getPlaybackState() == PlaybackState.STATE_FAST_FORWARDING) { in onFastForward() 332 if (mDvrPlayer.getPlaybackState() == PlaybackState.STATE_REWINDING) { in onRewind()
|
D | DvrPlaybackControlHelper.java | 177 PlaybackState playbackState = mMediaController.getPlaybackState(); in hasValidMedia() 183 PlaybackState playbackState = mMediaController.getPlaybackState(); in isMediaPlaying() 243 PlaybackState playbackState = mMediaController.getPlaybackState(); in getCurrentPosition()
|
D | DvrPlaybackOverlayFragment.java | 285 if (mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_FAST_FORWARDING in onPause() 286 || mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_REWINDING) { in onPause() 289 if (mMediaSessionHelper.getPlaybackState() == PlaybackState.STATE_NONE) { in onPause()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachine.java | 480 mAddressedPlayer.getPlaybackState()); in processMessage() 485 if (mAddressedPlayer.getPlaybackState().getState() in processMessage() 517 if (mAddressedPlayer.getPlaybackState().getState() in processMessage() 533 if (mAddressedPlayer.getPlaybackState().getState() in processMessage() 588 mAddressedPlayer.getPlaybackState()); in processMessage() 607 BluetoothMediaBrowserService.notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage() 616 if (mAddressedPlayer.getPlaybackState().getState() in processMessage() 632 notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage() 686 mNativeInterface.getPlaybackState(mDeviceAddress); in processMessage() 694 notifyChanged(mAddressedPlayer.getPlaybackState()); in processMessage() [all …]
|
D | BluetoothMediaBrowserService.java | 93 controller == null ? null : controller.getPlaybackState(); in onReceive() 351 public static synchronized PlaybackStateCompat getPlaybackState() { in getPlaybackState() method in BluetoothMediaBrowserService 357 controller == null ? null : controller.getPlaybackState(); in getPlaybackState() 428 controller == null ? null : controller.getPlaybackState(); in dump()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | MpegTsPlayerV2.java | 268 public int getPlaybackState() { in getPlaybackState() method in MpegTsPlayerV2 269 return mPlayer.getPlaybackState(); in getPlaybackState() 274 int state = getPlaybackState(); in isPrepared() 280 int state = getPlaybackState(); in isPlaying() 287 return getPlaybackState() == ExoPlayer.STATE_BUFFERING; in isBuffering()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsPlayer.java | 370 public int getPlaybackState() { in getPlaybackState() method in MpegTsPlayer 374 return mPlayer.getPlaybackState(); in getPlaybackState() 379 int state = getPlaybackState(); in isPrepared() 385 int state = getPlaybackState(); in isPlaying() 392 return getPlaybackState() == ExoPlayer.STATE_BUFFERING; in isBuffering()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamMediaService.java | 152 mLocalSession.setPlaybackState(getPlaybackState()); 304 mLocalSession.setPlaybackState(getPlaybackState()); in createLocalMediaSession() 310 mLocalSession.setPlaybackState(getPlaybackState()); in createLocalMediaSession() 375 private PlaybackState getPlaybackState() { in getPlaybackState() method in AudioStreamMediaService
|
D | MediaControlHelper.java | 113 if (controller.getPlaybackState() != null in shouldStopMedia() 114 && controller.getPlaybackState().getState() == PlaybackState.STATE_STOPPED) { in shouldStopMedia()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/ndo/ |
D | MediaSessionHelperTest.java | 78 when(mActiveMediaController.getPlaybackState()).thenReturn(activePlaybackState); in setup() 83 when(mInactiveMediaController.getPlaybackState()).thenReturn(inActivePlaybackState); in setup()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/mockable/ |
D | MediaController.java | 75 public PlaybackState getPlaybackState() { in getPlaybackState() method in MediaController 76 return mDelegate.getPlaybackState(); in getPlaybackState()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/media/ |
D | MultidisplayMediaFragment.java | 275 if (mediaController.getPlaybackState() != null) { in refreshUi() 276 state = mediaController.getPlaybackState().getState(); in refreshUi() 407 PlaybackState playbackState = mediaController.getPlaybackState(); in onClickPauseResume() 577 PlaybackState playbackState = mediaController.getPlaybackState(); in onConnected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 193 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in setUp() 354 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in updateState_noActiveLocalPlayback_noTitle() 368 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in updateState_noActiveLocalPlayback_checkTitle() 435 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in handlePreferenceTreeClick_WithNoLocalPlaybackFlagEnabled_verifyIntentExtra()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputUtils.java | 56 final PlaybackState playbackState = controller.getPlaybackState(); in getActiveLocalMediaController()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/ndo/ |
D | MediaSessionHelper.java | 93 if (isPausedOrActive(mediaController.getPlaybackState())) { in onMediaSessionChange()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrTvView.java | 55 return mDvrPlayer.getPlaybackState() == PlaybackState.STATE_PLAYING; in isPlaying()
|
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/ |
D | MediaActuator.java | 239 PlaybackStateCompat playbackState = mMediaController.getPlaybackState(); in informCurrentSong() 287 PlaybackStateCompat state = controller.getPlaybackState(); in executePlaybackAction()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | MediaControlHelperTest.java | 73 when(mMediaController.getPlaybackState()).thenReturn(mPlaybackState); in setUp()
|