Home
last modified time | relevance | path

Searched refs:PlayStatus (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DUtilTest.java100 assertThat(PlayStatus.playbackStateToAvrcpState(PlaybackState.STATE_STOPPED)) in playStatus_playbackStateToAvrcpState()
101 .isEqualTo(PlayStatus.STOPPED); in playStatus_playbackStateToAvrcpState()
102 assertThat(PlayStatus.playbackStateToAvrcpState(PlaybackState.STATE_NONE)) in playStatus_playbackStateToAvrcpState()
103 .isEqualTo(PlayStatus.STOPPED); in playStatus_playbackStateToAvrcpState()
104 assertThat(PlayStatus.playbackStateToAvrcpState(PlaybackState.STATE_CONNECTING)) in playStatus_playbackStateToAvrcpState()
105 .isEqualTo(PlayStatus.STOPPED); in playStatus_playbackStateToAvrcpState()
107 assertThat(PlayStatus.playbackStateToAvrcpState(PlaybackState.STATE_BUFFERING)) in playStatus_playbackStateToAvrcpState()
108 .isEqualTo(PlayStatus.PLAYING); in playStatus_playbackStateToAvrcpState()
109 assertThat(PlayStatus.playbackStateToAvrcpState(PlaybackState.STATE_PLAYING)) in playStatus_playbackStateToAvrcpState()
110 .isEqualTo(PlayStatus.PLAYING); in playStatus_playbackStateToAvrcpState()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/helpers/
DPlayStatus.java24 public class PlayStatus { class
37 public static PlayStatus fromPlaybackState(PlaybackState state, long duration) { in fromPlaybackState()
38 PlayStatus ret = new PlayStatus(); in fromPlaybackState()
52 return PlayStatus.STOPPED; in playbackStateToAvrcpState()
56 return PlayStatus.PLAYING; in playbackStateToAvrcpState()
59 return PlayStatus.PAUSED; in playbackStateToAvrcpState()
64 return PlayStatus.FWD_SEEK; in playbackStateToAvrcpState()
68 return PlayStatus.REV_SEEK; in playbackStateToAvrcpState()
72 return PlayStatus.ERROR; in playbackStateToAvrcpState()
/packages/modules/Bluetooth/system/profile/avrcp/
Ddevice.h186 PlayStatus status);
189 virtual void GetPlayStatusResponse(uint8_t label, PlayStatus status);
191 PlayStatus status);
378 PlayStatus last_play_status_;
Ddevice.cc690 PlayStatus status) { in PlaybackStatusNotificationResponse()
723 PlayStatus status) { in PlaybackPosNotificationResponse()
814 void Device::GetPlayStatusResponse(uint8_t label, PlayStatus status) { in GetPlayStatusResponse()
901 [](base::WeakPtr<Device> d, PlayStatus s) { in MessageReceived()
/packages/modules/Bluetooth/system/include/hardware/avrcp/
Davrcp.h45 struct PlayStatus { struct
114 using PlayStatusCallback = base::Callback<void(PlayStatus)>;
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java45 import com.android.bluetooth.audio_util.PlayStatus;
410 PlayStatus getPlayState() { in getPlayState()
411 return PlayStatus.fromPlaybackState( in getPlayState()
DAvrcpNativeInterface.java25 import com.android.bluetooth.audio_util.PlayStatus;
115 PlayStatus getPlayStatus() { in getPlayStatus()
/packages/modules/Bluetooth/system/profile/avrcp/tests/
Davrcp_device_test.cc259 PlayStatus status1 = {0x1234, 0x5678, PlayState::PLAYING}; in TEST_F()
260 PlayStatus status2 = {0x1234, 0x5678, PlayState::STOPPED}; in TEST_F()
304 PlayStatus status1 = {0x1234, 0x5678, PlayState::PAUSED}; in TEST_F()
305 PlayStatus status2 = {0x5678, 0x9ABC, PlayState::STOPPED}; in TEST_F()
448 PlayStatus status1 = {0x1234, 0x5678, PlayState::PLAYING}; in TEST_F()
453 PlayStatus status2 = {0x1234, 0x5678, PlayState::STOPPED}; in TEST_F()
504 PlayStatus status1 = {0x1234, 0x5678, PlayState::PAUSED}; in TEST_F()
509 PlayStatus status2 = {0x5678, 0x9ABC, PlayState::STOPPED}; in TEST_F()
681 PlayStatus status = {0x1234, 0x5678, PlayState::PLAYING}; in TEST_F()
1515 PlayStatus status = {0x1234, 0x5678, PlayState::PLAYING}; in TEST_F()
[all …]
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java68 public @interface PlayStatus {} annotation in TimeShiftManager
370 @PlayStatus
531 void onPlayStatusChanged(@PlayStatus int status) { in onPlayStatusChanged()
585 @PlayStatus private int mPlayStatus = PLAY_STATUS_PAUSED;
850 private void setPlayStatus(@PlayStatus int status) { in setPlayStatus()
/packages/modules/Bluetooth/system/profile/avrcp/tests/avrcp_device_fuzz/
Davrcp_device_fuzz.cc20 using PlayStatusCallback = base::Callback<void(PlayStatus)>;
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_avrcp_target.cpp45 static PlayStatus getCurrentPlayStatus();
534 static PlayStatus getCurrentPlayStatus() { in getCurrentPlayStatus()
538 if (!sCallbackEnv.valid() || !mJavaInterface) return PlayStatus(); in getCurrentPlayStatus()
540 PlayStatus status; in getCurrentPlayStatus()
/packages/modules/Bluetooth/system/gd/rust/topshim/btav/
Dbtav_shim.cc130 PlayStatus playStatus_;
/packages/modules/Bluetooth/system/btif/avrcp/
Davrcp_service.cc195 auto cb_lambda = [](PlayStatusCallback cb, PlayStatus status) { in GetPlayStatus()