/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_profile.h | 47 * @param[in] rawAddr The address of the bluetooth device. 50 std::function<void(const RawAddress &rawAddr, int state)> onConnectionStateChanged; 55 * @param[in] rawAddr The address of the bluetooth device. 62 std::function<void(const RawAddress &rawAddr, uint8_t button, int result)> onButtonPressed; 67 * @param[in] rawAddr The address of the bluetooth device. 74 std::function<void(const RawAddress &rawAddr, uint8_t button, int result)> onButtonReleased; 79 * @param[in] rawAddr The address of the bluetooth device. 87 std::function<void(const RawAddress &rawAddr, const std::vector<uint32_t> &companies, 94 * @param[in] rawAddr The address of the bluetooth device. 101 std::function<void(const RawAddress &rawAddr, cons [all...] |
H A D | avrcp_ct_profile.cpp | 159 RawAddress rawAddr(addr); in GetConnectedDevices() 160 if (GetDeviceState(rawAddr) == static_cast<int>(BTConnectState::CONNECTED)) { in GetConnectedDevices() 161 result.push_back(rawAddr); in GetConnectedDevices() 185 RawAddress rawAddr(addr); in GetDevicesByStates() 186 if (GetDeviceState(rawAddr) == state) { in GetDevicesByStates() 187 rawAddrs.push_back(rawAddr); in GetDevicesByStates() 195 int AvrcCtProfile::GetDeviceState(const RawAddress &rawAddr) in GetDeviceState() argument 197 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in GetDeviceState() 203 if (smManager->IsControlConnectingState(rawAddr)) { in GetDeviceState() 205 } else if (smManager->IsControlConnectedState(rawAddr) || smManage in GetDeviceState() 272 ConnectBr(const RawAddress &rawAddr) ConnectBr() argument 281 DisconnectBr(const RawAddress &rawAddr) DisconnectBr() argument 326 SendPressButtonCmd(const RawAddress &rawAddr, uint8_t button) SendPressButtonCmd() argument 336 SendReleaseButtonCmd(const RawAddress &rawAddr, uint8_t button) SendReleaseButtonCmd() argument 346 IsPassQueueFull(const RawAddress &rawAddr) IsPassQueueFull() argument 354 SendPassCmd(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtPassPacket> &pkt) SendPassCmd() argument 386 SendNextPassCmd(const RawAddress &rawAddr) SendNextPassCmd() argument 399 ReceivePassRsp(const RawAddress &rawAddr, Packet *pkt) ReceivePassRsp() argument 413 InformPassRsp(const RawAddress &rawAddr, uint8_t button, uint8_t state, int result) const InformPassRsp() argument 431 ProcessPassTimeout(RawAddress rawAddr, uint8_t key, uint8_t state) ProcessPassTimeout() argument 441 PassTimeoutCallback(const RawAddress &rawAddr, uint8_t key, uint8_t state) PassTimeoutCallback() argument 454 SendUnitCmd(const RawAddress &rawAddr) SendUnitCmd() argument 488 SendSubUnitCmd(const RawAddress &rawAddr) SendSubUnitCmd() argument 522 IsUnitQueueFull(const RawAddress &rawAddr) IsUnitQueueFull() argument 529 SendNextUnitCmd(const RawAddress &rawAddr) SendNextUnitCmd() argument 563 ReceiveUnitRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveUnitRsp() argument 573 ReceiveSubUnitRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveSubUnitRsp() argument 583 ProcessUnitTimeout(RawAddress rawAddr) ProcessUnitTimeout() argument 610 UnitTimeoutCallback(const RawAddress &rawAddr) UnitTimeoutCallback() argument 623 SendVendorCmd( const RawAddress &rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &pkt, AvrcCtSmEvent event) SendVendorCmd() argument 655 SendNextVendorCmd(const RawAddress &rawAddr) SendNextVendorCmd() argument 673 SendVendorContinueCmd(const RawAddress &rawAddr, uint8_t pduId) SendVendorContinueCmd() argument 692 SendVendorAbortCmd(const RawAddress &rawAddr, uint8_t pduId) const SendVendorAbortCmd() argument 707 IsVendorQueueFull(const RawAddress &rawAddr) IsVendorQueueFull() argument 715 SendGetCapabilitiesCmd(const RawAddress &rawAddr, uint8_t capabilityId) SendGetCapabilitiesCmd() argument 725 ReceiveGetCapabilitiesRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveGetCapabilitiesRsp() argument 739 SendListPlayerApplicationSettingAttributesCmd(const RawAddress &rawAddr) SendListPlayerApplicationSettingAttributesCmd() argument 749 ReceiveListPlayerApplicationSettingAttributesRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveListPlayerApplicationSettingAttributesRsp() argument 760 SendListPlayerApplicationSettingValuesCmd(const RawAddress &rawAddr, uint8_t attribute) SendListPlayerApplicationSettingValuesCmd() argument 770 ReceiveListPlayerApplicationSettingValuesRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveListPlayerApplicationSettingValuesRsp() argument 822 SendGetCurrentPlayerApplicationSettingValueCmd( const RawAddress &rawAddr, const std::vector<uint8_t> &attributes) SendGetCurrentPlayerApplicationSettingValueCmd() argument 833 ReceiveGetCurrentPlayerApplicationSettingValueRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveGetCurrentPlayerApplicationSettingValueRsp() argument 889 SendSetPlayerApplicationSettingValueCmd( const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<uint8_t> &values) SendSetPlayerApplicationSettingValueCmd() argument 901 ReceiveSetPlayerApplicationSettingValueRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveSetPlayerApplicationSettingValueRsp() argument 911 SendGetPlayerApplicationSettingAttributeTextCmd( const RawAddress &rawAddr, const std::vector<uint8_t> &attributes) SendGetPlayerApplicationSettingAttributeTextCmd() argument 922 ReceiveGetPlayerApplicationSettingAttributeTextRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveGetPlayerApplicationSettingAttributeTextRsp() argument 978 SendGetPlayerApplicationSettingValueTextCmd( const RawAddress &rawAddr, uint8_t attributeId, const std::vector<uint8_t> &values) SendGetPlayerApplicationSettingValueTextCmd() argument 990 ReceiveGetPlayerApplicationSettingValueTextRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveGetPlayerApplicationSettingValueTextRsp() argument 1045 SendGetElementAttributesCmd( const RawAddress &rawAddr, uint64_t identifier, const std::vector<uint32_t> &attributes) SendGetElementAttributesCmd() argument 1057 ReceiveGetElementAttributesRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveGetElementAttributesRsp() argument 1108 SendGetPlayStatusCmd(const RawAddress &rawAddr) SendGetPlayStatusCmd() argument 1118 ReceiveGetPlayStatusRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveGetPlayStatusRsp() argument 1132 SendRequestContinuingResponseCmd(const RawAddress &rawAddr, uint8_t pduId) SendRequestContinuingResponseCmd() argument 1142 SendAbortContinuingResponseCmd(const RawAddress &rawAddr, uint8_t pduId) SendAbortContinuingResponseCmd() argument 1152 ReceiveAbortContinuingResponseRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveAbortContinuingResponseRsp() argument 1171 SendSetAddressedPlayerCmd(const RawAddress &rawAddr, uint16_t playerId) SendSetAddressedPlayerCmd() argument 1181 ReceiveSetAddressedPlayerRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveSetAddressedPlayerRsp() argument 1197 SendPlayItemCmd(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter) SendPlayItemCmd() argument 1208 ReceivePlayItemRsp(const RawAddress &rawAddr, Packet *pkt) ReceivePlayItemRsp() argument 1224 SendAddToNowPlayingCmd(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter) SendAddToNowPlayingCmd() argument 1235 ReceiveAddToNowPlayingRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveAddToNowPlayingRsp() argument 1251 SendSetAbsoluteVolumeCmd(const RawAddress &rawAddr, uint8_t volume) SendSetAbsoluteVolumeCmd() argument 1261 ReceiveSetAbsoluteVolumeRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveSetAbsoluteVolumeRsp() argument 1271 EnableNotification(const RawAddress &rawAddr, const std::vector<uint8_t> &events, uint32_t interval) EnableNotification() argument 1284 DisableNotification(const RawAddress &rawAddr, const std::vector<uint8_t> &events) DisableNotification() argument 1294 ReceiveRegisterNotificationRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveRegisterNotificationRsp() argument 1329 InformNotificationChanged( const RawAddress &rawAddr, const std::shared_ptr<AvrcCtNotifyPacket> ¬ifyPkt, int result) InformNotificationChanged() argument 1379 InformPlayerApplicationSettingChanged( const RawAddress &rawAddr, const std::shared_ptr<AvrcCtNotifyPacket> ¬ifyPkt, int result) InformPlayerApplicationSettingChanged() argument 1406 ReceiveVendorRspAvcStatus(const RawAddress &rawAddr, Packet *pkt) ReceiveVendorRspAvcStatus() argument 1440 ReceiveVendorRspAvcControl(const RawAddress &rawAddr, Packet *pkt) ReceiveVendorRspAvcControl() argument 1468 ReceiveVendorRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveVendorRsp() argument 1501 ProcessVendorNotificationTimeout(RawAddress rawAddr) ProcessVendorNotificationTimeout() argument 1514 ProcessVendorAvcControlTimeout(RawAddress rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &packet) ProcessVendorAvcControlTimeout() argument 1553 ProcessVendorAvcStatus1Timeout(RawAddress rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &packet) ProcessVendorAvcStatus1Timeout() argument 1584 ProcessVendorAvcStatus2Timeout(RawAddress rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &packet) ProcessVendorAvcStatus2Timeout() argument 1615 ProcessVendorTimeout(RawAddress rawAddr) ProcessVendorTimeout() argument 1664 VendorTimeoutCallback(const RawAddress &rawAddr) VendorTimeoutCallback() argument 1677 SendBrowseCmd( const RawAddress &rawAddr, const std::shared_ptr<AvrcCtBrowsePacket> &pkt, AvrcCtSmEvent event) SendBrowseCmd() argument 1704 SendNextBrowseCmd(const RawAddress &rawAddr) SendNextBrowseCmd() argument 1722 IsBrowseQueueFull(const RawAddress &rawAddr) IsBrowseQueueFull() argument 1730 IsDisableAbsoluteVolume(const RawAddress &rawAddr) IsDisableAbsoluteVolume() argument 1738 IsBrowsingConnected(const RawAddress &rawAddr) IsBrowsingConnected() argument 1746 SendSetBrowsedPlayerCmd(const RawAddress &rawAddr, uint16_t playerId) SendSetBrowsedPlayerCmd() argument 1756 ReceiveSetBrowsedPlayerRsp(const RawAddress &rawAddr, Packet *pkt) const ReceiveSetBrowsedPlayerRsp() argument 1774 SendChangePathCmd( const RawAddress &rawAddr, uint16_t uidCounter, uint8_t direction, uint64_t folderUid) SendChangePathCmd() argument 1786 ReceiveChangePathRsp(const RawAddress &rawAddr, Packet *pkt) const ReceiveChangePathRsp() argument 1800 SendGetFolderItemsCmd(const RawAddress &rawAddr, uint8_t scope, uint32_t startItem, uint32_t endItem, const std::vector<uint32_t> &attributes) SendGetFolderItemsCmd() argument 1813 ReceiveGetFolderItemsRsp(const RawAddress &rawAddr, Packet *pkt) const ReceiveGetFolderItemsRsp() argument 1833 SendGetItemAttributesCmd(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter, const std::vector<uint32_t> &attributes) SendGetItemAttributesCmd() argument 1845 ReceiveGetItemAttributesRsp(const RawAddress &rawAddr, Packet *pkt) const ReceiveGetItemAttributesRsp() argument 1859 SendGetTotalNumberOfItemsCmd(const RawAddress &rawAddr, uint8_t scope) SendGetTotalNumberOfItemsCmd() argument 1869 ReceiveGetTotalNumberOfItemsRsp(const RawAddress &rawAddr, Packet *pkt) const ReceiveGetTotalNumberOfItemsRsp() argument 1887 ReceiveBrowseRsp(const RawAddress &rawAddr, Packet *pkt) ReceiveBrowseRsp() argument 1916 ProcessBrowseTimeout(RawAddress rawAddr) ProcessBrowseTimeout() argument 1968 BrowseTimeoutCallback(const RawAddress &rawAddr) BrowseTimeoutCallback() argument 1977 ProcessChannelEvent( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEvent() argument 2012 ProcessChannelEventConnectIndEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEventConnectIndEvt() argument 2048 ProcessChannelEventConnectCfmEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEventConnectCfmEvt() argument 2079 ProcessChannelEventDisconnectIndEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEventDisconnectIndEvt() argument 2094 ProcessChannelEventDisconnectCfmEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEventDisconnectCfmEvt() argument 2121 ProcessChannelEventBrConnectIndEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEventBrConnectIndEvt() argument 2145 ProcessChannelEventBrConnectCfmEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) const ProcessChannelEventBrConnectCfmEvt() argument 2173 RawAddress rawAddr = AvrcCtConnectManager::GetInstance()->GetRawAddress(connectId); ProcessChannelMessage() local 2206 DeleteResource(const RawAddress &rawAddr) DeleteResource() argument 2214 DeleteBrowseStateMachine(const RawAddress &rawAddr) DeleteBrowseStateMachine() argument [all...] |
H A D | avrcp_ct_service.cpp | 352 int AvrcpCtService::GetDeviceState(const RawAddress &rawAddr) in GetDeviceState() argument 354 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in GetDeviceState() 359 result = profile_->GetDeviceState(rawAddr); in GetDeviceState() 366 int AvrcpCtService::Connect(const RawAddress &rawAddr) in Connect() argument 368 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in Connect() 377 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::DISCONNECTED)) { in Connect() 385 RawAddress peerAddr(rawAddr.GetAddress()); in Connect() 393 void AvrcpCtService::ConnectNative(RawAddress rawAddr) in ConnectNative() argument 395 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in ConnectNative() 397 AcceptActiveConnect(rawAddr); in ConnectNative() 400 Disconnect(const RawAddress &rawAddr) Disconnect() argument 423 DisconnectNative(RawAddress rawAddr) DisconnectNative() argument 455 OnConnectionStateChanged(const RawAddress &rawAddr, int state) const OnConnectionStateChanged() argument 466 AcceptActiveConnect(const RawAddress &rawAddr) AcceptActiveConnect() argument 518 PressButton(const RawAddress &rawAddr, uint8_t button) PressButton() argument 545 PressButtonNative(RawAddress rawAddr, uint8_t button) PressButtonNative() argument 562 OnButtonPressed(const RawAddress &rawAddr, uint8_t button, int result) const OnButtonPressed() argument 574 ReleaseButton(const RawAddress &rawAddr, uint8_t button) ReleaseButton() argument 601 ReleaseButtonNative(RawAddress rawAddr, uint8_t button) ReleaseButtonNative() argument 618 OnButtonReleased(const RawAddress &rawAddr, uint8_t button, int result) const OnButtonReleased() argument 634 GetUnitInfo(const RawAddress &rawAddr) GetUnitInfo() argument 661 UnitInfoNative(RawAddress rawAddr) UnitInfoNative() argument 678 GetSubUnitInfo(const RawAddress &rawAddr) GetSubUnitInfo() argument 705 SubUnitInfoNative(RawAddress rawAddr) SubUnitInfoNative() argument 726 SetAddressedPlayer(const RawAddress &rawAddr, uint16_t playerId) SetAddressedPlayer() argument 753 SetAddressedPlayerNative(RawAddress rawAddr, uint16_t playerId) SetAddressedPlayerNative() argument 770 OnSetAddressedPlayer(const RawAddress &rawAddr, int result, int detail) const OnSetAddressedPlayer() argument 783 SetBrowsedPlayer(const RawAddress &rawAddr, uint16_t playerId) SetBrowsedPlayer() argument 814 SetBrowsedPlayerNative(RawAddress rawAddr, uint16_t playerId) SetBrowsedPlayerNative() argument 831 OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, const std::vector<std::string> &folderNames, int result, int detail) const OnSetBrowsedPlayer() argument 850 GetSupportedCompanies(const RawAddress &rawAddr) GetSupportedCompanies() argument 878 GetSupportedEvents(const RawAddress &rawAddr) GetSupportedEvents() argument 906 GetCapabilitiesNative(RawAddress rawAddr, uint8_t capabilityId) GetCapabilitiesNative() argument 921 OnGetCapabilities(const RawAddress &rawAddr, const std::vector<uint32_t> &companies, const std::vector<uint8_t> &events, int result) const OnGetCapabilities() argument 938 GetPlayerAppSettingAttributes(const RawAddress &rawAddr) GetPlayerAppSettingAttributes() argument 965 GetPlayerAppSettingAttributesNative(RawAddress rawAddr) GetPlayerAppSettingAttributesNative() argument 982 OnGetPlayerAppSettingAttribtues( const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, int result) const OnGetPlayerAppSettingAttribtues() argument 996 GetPlayerAppSettingValues(const RawAddress &rawAddr, uint8_t attribute) GetPlayerAppSettingValues() argument 1024 GetPlayerAppSettingValuesNative(RawAddress rawAddr, uint8_t attribute) GetPlayerAppSettingValuesNative() argument 1041 OnGetPlayerAppSettingValues( const RawAddress &rawAddr, uint8_t attribute, const std::vector<uint8_t> &values, int result) const OnGetPlayerAppSettingValues() argument 1055 GetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes) GetPlayerAppSettingCurrentValue() argument 1083 GetPlayerAppSettingCurrentValueNative(RawAddress rawAddr, std::vector<uint8_t> attributes) GetPlayerAppSettingCurrentValueNative() argument 1100 OnGetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<uint8_t> &values, int result) const OnGetPlayerAppSettingCurrentValue() argument 1114 SetPlayerAppSettingCurrentValue( const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<uint8_t> &values) SetPlayerAppSettingCurrentValue() argument 1143 SetPlayerAppSettingCurrentValueNative( RawAddress rawAddr, std::vector<uint8_t> attributes, std::vector<uint8_t> values) SetPlayerAppSettingCurrentValueNative() argument 1161 OnSetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, int result) const OnSetPlayerAppSettingCurrentValue() argument 1173 GetPlayerAppSettingAttributeText(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes) GetPlayerAppSettingAttributeText() argument 1201 GetPlayerAppSettingAttributeTextNative(RawAddress rawAddr, std::vector<uint8_t> attributes) GetPlayerAppSettingAttributeTextNative() argument 1218 OnGetPlayerAppSettingAttributeText(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<std::string> &attrStr, int result) const OnGetPlayerAppSettingAttributeText() argument 1230 GetPlayerAppSettingValueText( const RawAddress &rawAddr, uint8_t attributeId, const std::vector<uint8_t> &values) GetPlayerAppSettingValueText() argument 1259 GetPlayerAppSettingValueTextNative( RawAddress rawAddr, uint8_t attributeId, std::vector<uint8_t> values) GetPlayerAppSettingValueTextNative() argument 1277 OnGetPlayerAppSettingValueText(const RawAddress &rawAddr, const std::vector<uint8_t> &values, const std::vector<std::string> &valueStr, int result) const OnGetPlayerAppSettingValueText() argument 1293 GetElementAttributes( const RawAddress &rawAddr, uint64_t identifier, const std::vector<uint32_t> &attributes) GetElementAttributes() argument 1322 GetElementAttributesNative( RawAddress rawAddr, uint64_t identifier, std::vector<uint32_t> attributes) GetElementAttributesNative() argument 1341 OnGetElementAttributes(const RawAddress &rawAddr, const std::vector<uint32_t> &attributes, const std::vector<std::string> &values, int result) const OnGetElementAttributes() argument 1357 GetPlayStatus(const RawAddress &rawAddr) GetPlayStatus() argument 1383 GetPlayStatusNative(RawAddress rawAddr) GetPlayStatusNative() argument 1400 OnGetPlayStatus( const RawAddress &rawAddr, uint32_t songLength, uint32_t songPosition, uint8_t playStatus, int result) const OnGetPlayStatus() argument 1413 PlayItem(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter) PlayItem() argument 1441 PlayItemNative(RawAddress rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter) PlayItemNative() argument 1459 OnPlayItem(const RawAddress &rawAddr, int result, int detail) const OnPlayItem() argument 1470 AddToNowPlaying(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter) AddToNowPlaying() argument 1498 AddToNowPlayingNative(RawAddress rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter) AddToNowPlayingNative() argument 1515 OnAddToNowPlaying(const RawAddress &rawAddr, int result, int detail) const OnAddToNowPlaying() argument 1531 RequestContinuingResponse(const RawAddress &rawAddr, uint8_t pduId) RequestContinuingResponse() argument 1557 RequestContinuingResponseNative(RawAddress rawAddr, uint8_t pduId) RequestContinuingResponseNative() argument 1574 AbortContinuingResponse(const RawAddress &rawAddr, uint8_t pduId) AbortContinuingResponse() argument 1601 AbortContinuingResponseNative(RawAddress rawAddr, uint8_t pduId) AbortContinuingResponseNative() argument 1622 ChangePath(const RawAddress &rawAddr, uint16_t uidCounter, uint8_t direction, uint64_t folderUid) ChangePath() argument 1653 ChangePathNative(RawAddress rawAddr, uint16_t uidCounter, uint8_t direction, uint64_t folderUid) ChangePathNative() argument 1670 OnChangePath(const RawAddress &rawAddr, uint32_t numOfItems, int result, int detail) const OnChangePath() argument 1682 GetFolderItems(const RawAddress &rawAddr, uint8_t scope, uint32_t startItem, uint32_t endItem, const std::vector<uint32_t> &attributes) GetFolderItems() argument 1715 GetFolderItemsNative( RawAddress rawAddr, uint8_t scope, uint32_t startItem, uint32_t endItem, std::vector<uint32_t> attributes) GetFolderItemsNative() argument 1733 OnGetFolderItems(const RawAddress &rawAddr, uint8_t scope, uint16_t uidCounter, const std::vector<AvrcMpItem> &mpItems, const std::vector<AvrcMeItem> &meItems, int result, int detail) const OnGetFolderItems() argument 1750 GetItemAttributes(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter, const std::vector<uint32_t> &attributes) GetItemAttributes() argument 1783 GetItemAttributesNative( RawAddress rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter, std::vector<uint32_t> attributes) GetItemAttributesNative() argument 1801 OnGetItemAttributes(const RawAddress &rawAddr, const std::vector<uint32_t> &attributes, const std::vector<std::string> &values, int result, int detail) const OnGetItemAttributes() argument 1813 GetTotalNumberOfItems(const RawAddress &rawAddr, uint8_t scope) GetTotalNumberOfItems() argument 1844 GetTotalNumberOfItemsNative(RawAddress rawAddr, uint8_t scope) GetTotalNumberOfItemsNative() argument 1861 OnGetTotalNumberOfItems( const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, int result, int detail) const OnGetTotalNumberOfItems() argument 1878 SetAbsoluteVolume(const RawAddress &rawAddr, uint8_t volume) SetAbsoluteVolume() argument 1910 SetAbsoluteVolumeNative(RawAddress rawAddr, uint8_t volume) SetAbsoluteVolumeNative() argument 1927 OnSetAbsoluteVolume(const RawAddress &rawAddr, uint8_t volume, int result) const OnSetAbsoluteVolume() argument 1942 EnableNotification(const RawAddress &rawAddr, const std::vector<uint8_t> &events, uint8_t interval) EnableNotification() argument 1970 DisableNotification(const RawAddress &rawAddr, const std::vector<uint8_t> &events) DisableNotification() argument 1997 EnableNotificationNative(RawAddress rawAddr, std::vector<uint8_t> events, uint8_t interval) EnableNotificationNative() argument 2014 DisableNotificationNative(RawAddress rawAddr, std::vector<uint8_t> events) DisableNotificationNative() argument 2031 OnPlaybackStatusChanged(const RawAddress &rawAddr, uint8_t playStatus, int result) const OnPlaybackStatusChanged() argument 2043 OnTrackChanged(const RawAddress &rawAddr, uint64_t uid, int result) const OnTrackChanged() argument 2054 OnTrackReachedEnd(const RawAddress &rawAddr, int result) const OnTrackReachedEnd() argument 2065 OnTrackReachedStart(const RawAddress &rawAddr, int result) const OnTrackReachedStart() argument 2076 OnPlaybackPosChanged(const RawAddress &rawAddr, uint32_t playbackPos, int result) const OnPlaybackPosChanged() argument 2088 OnPlayerApplicationSettingChanged(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<uint8_t> &values, int result) const OnPlayerApplicationSettingChanged() argument 2101 OnNowPlayingContentChanged(const RawAddress &rawAddr, int result) const OnNowPlayingContentChanged() argument 2112 OnAvailablePlayersChanged(const RawAddress &rawAddr, int result) const OnAvailablePlayersChanged() argument 2123 OnAddressedPlayerChanged( const RawAddress &rawAddr, uint16_t playerId, uint16_t uidCounter, int result) const OnAddressedPlayerChanged() argument 2136 OnUidChanged(const RawAddress &rawAddr, uint16_t uidCounter, int result) const OnUidChanged() argument 2148 OnVolumeChanged(const RawAddress &rawAddr, uint8_t volume, int result) const OnVolumeChanged() argument 2160 ProcessChannelEvent( RawAddress rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEvent() argument [all...] |
H A D | avrcp_ct_service.h | 141 * @param[in] rawAddr The address of the bluetooth device. 144 int GetDeviceState(const RawAddress &rawAddr) override; 157 * @param[in] rawAddr The address of the bluetooth device. 163 int Connect(const RawAddress &rawAddr) override; 169 * @param[in] rawAddr The address of the bluetooth device. 175 int Disconnect(const RawAddress &rawAddr) override; 192 * @param[in] rawAddr The address of the bluetooth device. 199 int PressButton(const RawAddress &rawAddr, uint8_t button) override; 205 * @param[in] rawAddr The address of the bluetooth device. 212 int ReleaseButton(const RawAddress &rawAddr, uint8_ [all...] |
H A D | avrcp_ct_connection.h | 147 * @param[in] rawAddr The address of the bluetooth device. 159 int Add(const RawAddress &rawAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu, uint16_t browseMtu, 166 * @param[in] rawAddr The address of the bluetooth device. 168 void Delete(const RawAddress &rawAddr); 173 * @param[in] rawAddr The address of the bluetooth device. 176 const AvrcCtConnectInfo *GetConnectInfo(const RawAddress &rawAddr) const; 196 * @param[in] rawAddr The address of the bluetooth device. 203 * @param[in] rawAddr The address of the bluetooth device. 210 * @param[in] rawAddr The address of the bluetooth device. 226 * @param[in] rawAddr Th [all...] |
H A D | avrcp_ct_connection.cpp | 109 int AvrcCtConnectManager::Add(const RawAddress &rawAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu, in Add() argument 115 GET_ENCRYPT_AVRCP_ADDR(rawAddr), in Add() 128 if (GetConnectInfo(rawAddr.GetAddress()) == nullptr) { in Add() 129 infos_.insert(std::make_pair(rawAddr.GetAddress(), in Add() 130 AvrcCtConnectInfo(rawAddr.GetAddress(), in Add() 148 void AvrcCtConnectManager::Delete(const RawAddress &rawAddr) in Delete() argument 150 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in Delete() 154 infos_.erase(rawAddr.GetAddress()); in Delete() 157 const AvrcCtConnectInfo *AvrcCtConnectManager::GetConnectInfo(const RawAddress &rawAddr) const in GetConnectInfo() 159 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in GetConnectInfo() 239 GetConnectId(const RawAddress &rawAddr) GetConnectId() argument 255 SetConnectId(const RawAddress &rawAddr, uint8_t connectId) SetConnectId() argument 267 EnableNotifyState(const RawAddress &rawAddr, uint8_t notification) EnableNotifyState() argument 284 DisableNotifyState(const RawAddress &rawAddr, uint8_t notification) DisableNotifyState() argument 301 IsNotifyStateEnabled(const RawAddress &rawAddr, uint8_t notification) IsNotifyStateEnabled() argument 324 DisableExcludeEvents(const RawAddress &rawAddr, std::vector<uint8_t> events) DisableExcludeEvents() argument 344 GetCompanyId(const RawAddress &rawAddr) GetCompanyId() argument 360 GetUidCounter(const RawAddress &rawAddr) GetUidCounter() argument 376 SetUidCounter(const RawAddress &rawAddr, uint16_t uidCounter) SetUidCounter() argument 394 GetPassPacket(const RawAddress &rawAddr) GetPassPacket() argument 410 SetPassPacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtPassPacket> &pkt) SetPassPacket() argument 422 IsPassPacketEmpty(const RawAddress &rawAddr) IsPassPacketEmpty() argument 438 SetPassTimer( const RawAddress &rawAddr, const std::function<void()> callback, int ms, bool isPeriodic) SetPassTimer() argument 453 ClearPassPacket(const RawAddress &rawAddr) ClearPassPacket() argument 466 ClearPassTimer(const RawAddress &rawAddr) ClearPassTimer() argument 482 ClearPassInfo(const RawAddress &rawAddr) ClearPassInfo() argument 490 PushPassQueue(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtPassPacket> &pkt) PushPassQueue() argument 504 PopPassQueue(const RawAddress &rawAddr) PopPassQueue() argument 523 GetSizeOfPassQueue(const RawAddress &rawAddr) GetSizeOfPassQueue() argument 544 GetUnitPacket(const RawAddress &rawAddr) GetUnitPacket() argument 560 SetUnitPacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtUnitPacket> &pkt) SetUnitPacket() argument 573 SetUnitTimer( const RawAddress &rawAddr, std::function<void()> callback, int ms, bool isPeriodic) SetUnitTimer() argument 588 ClearUnitPacket(const RawAddress &rawAddr) ClearUnitPacket() argument 601 ClearUnitTimer(const RawAddress &rawAddr) ClearUnitTimer() argument 617 ClearUnitInfo(const RawAddress &rawAddr) ClearUnitInfo() argument 625 PushUnitQueue(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtUnitPacket> &pkt) PushUnitQueue() argument 638 PopUnitQueue(const RawAddress &rawAddr) PopUnitQueue() argument 655 GetSizeOfUnitQueue(const RawAddress &rawAddr) GetSizeOfUnitQueue() argument 675 GetVendorPacket(const RawAddress &rawAddr) GetVendorPacket() argument 691 GetVendorContinuePacket(const RawAddress &rawAddr) GetVendorContinuePacket() argument 707 SetVendorPacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &pkt) SetVendorPacket() argument 720 SetVendorContinuePacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &pkt) SetVendorContinuePacket() argument 734 SetVendorTimer( const RawAddress &rawAddr, std::function<void()> callback, int ms, bool isPeriodic) SetVendorTimer() argument 749 ClearVendorPacket(const RawAddress &rawAddr) ClearVendorPacket() argument 762 ClearVendorContinuePacket(const RawAddress &rawAddr) ClearVendorContinuePacket() argument 775 ClearVendorTimer(const RawAddress &rawAddr) ClearVendorTimer() argument 791 ClearVendorInfo(const RawAddress &rawAddr) ClearVendorInfo() argument 800 PushVendorQueue(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtVendorPacket> &pkt) PushVendorQueue() argument 813 PopVendorQueue(const RawAddress &rawAddr) PopVendorQueue() argument 830 GetSizeOfVendorQueue(const RawAddress &rawAddr) GetSizeOfVendorQueue() argument 850 GetBrowsePacket(const RawAddress &rawAddr) GetBrowsePacket() argument 866 SetBrowsePacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtBrowsePacket> &pkt) SetBrowsePacket() argument 879 SetBrowseTimer( const RawAddress &rawAddr, std::function<void()> callback, int ms, bool isPeriodic) SetBrowseTimer() argument 894 ClearBrowsePacket(const RawAddress &rawAddr) ClearBrowsePacket() argument 907 ClearBrowseTimer(const RawAddress &rawAddr) ClearBrowseTimer() argument 923 ClearBrowseInfo(const RawAddress &rawAddr) ClearBrowseInfo() argument 931 PushBrowseQueue(const RawAddress &rawAddr, const std::shared_ptr<AvrcCtBrowsePacket> &pkt) PushBrowseQueue() argument 944 PopBrowseQueue(const RawAddress &rawAddr) PopBrowseQueue() argument 961 GetSizeOfBrowseQueue(const RawAddress &rawAddr) GetSizeOfBrowseQueue() argument 977 IsDisableAbsoluteVolume(const RawAddress &rawAddr) IsDisableAbsoluteVolume() argument 993 IsBrowsingConnected(const RawAddress &rawAddr) IsBrowsingConnected() argument 1009 SetBrowsingState(const RawAddress &rawAddr, bool state) SetBrowsingState() argument [all...] |
H A D | avrcp_ct_state_machine.cpp | 59 int AvrcCtStateMachineManager::AddControlStateMachine(const RawAddress &rawAddr) in AddControlStateMachine() argument 61 HILOGI("addr: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in AddControlStateMachine() 67 if (GetPairOfStateMachine(rawAddr.GetAddress()) == nullptr) { in AddControlStateMachine() 69 std::make_unique<StateMachine>(StateMachine::Type::AVRC_CT_SM_TYPE_CONTROL, rawAddr); in AddControlStateMachine() 72 stateMachines_.insert(std::make_pair(rawAddr.GetAddress(), std::make_pair(std::move(stateMachine), nullptr))); in AddControlStateMachine() 75 HILOGI("The control state machine exists! Address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in AddControlStateMachine() 81 int AvrcCtStateMachineManager::AddBrowseStateMachine(const RawAddress &rawAddr) in AddBrowseStateMachine() argument 83 HILOGI("addr: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in AddBrowseStateMachine() 89 StateMachinePair *pair = GetPairOfStateMachine(rawAddr.GetAddress()); in AddBrowseStateMachine() 93 GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in AddBrowseStateMachine() 106 DeletePairOfStateMachine(const RawAddress &rawAddr) DeletePairOfStateMachine() argument 121 DeleteBrowseStateMachine(const RawAddress &rawAddr) DeleteBrowseStateMachine() argument 136 SendMessageToControlStateMachine(const RawAddress &rawAddr, const utility::Message &msg) SendMessageToControlStateMachine() argument 167 SendMessageToBrowseStateMachine(const RawAddress &rawAddr, const utility::Message &msg) SendMessageToBrowseStateMachine() argument 198 IsControlConnectingState(const RawAddress &rawAddr) IsControlConnectingState() argument 205 IsControlConnectedState(const RawAddress &rawAddr) IsControlConnectedState() argument 212 IsControlDisconnectingState(const RawAddress &rawAddr) IsControlDisconnectingState() argument 219 IsControlPendingState(const RawAddress &rawAddr) IsControlPendingState() argument 226 IsBrowsePendingState(const RawAddress &rawAddr) IsBrowsePendingState() argument 233 IsControlContinuationState(const RawAddress &rawAddr) IsControlContinuationState() argument 240 IsControlDisableState(const RawAddress &rawAddr) IsControlDisableState() argument 306 StateMachine(Type type, const RawAddress &rawAddr) StateMachine() argument 387 State(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) State() argument 394 State( const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr) State() argument 410 CtConnecting( const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr) CtConnecting() argument 467 CtConnected(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtConnected() argument 549 CtDisconnecting(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtDisconnecting() argument 594 CtPending(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtPending() argument 633 CtContinuation(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtContinuation() argument 673 CtDisable(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtDisable() argument 721 BrConnecting( const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr) BrConnecting() argument 772 BrConnected(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) BrConnected() argument 825 BrDisconnecting(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) BrDisconnecting() argument 870 BrPending(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) BrPending() argument [all...] |
H A D | avrcp_ct_state_machine.h | 152 * @param[in] rawAddr The address of the bluetooth device. 157 int AddControlStateMachine(const RawAddress &rawAddr); 162 * @param[in] rawAddr The address of the bluetooth device. 167 int AddBrowseStateMachine(const RawAddress &rawAddr); 172 * @param[in] rawAddr The address of the bluetooth device. 174 void DeletePairOfStateMachine(const RawAddress &rawAddr); 179 * @param[in] rawAddr The address of the bluetooth device. 181 void DeleteBrowseStateMachine(const RawAddress &rawAddr); 186 * @param[in] rawAddr The address of the bluetooth device. 192 bool SendMessageToControlStateMachine(const RawAddress &rawAddr, cons [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/ |
H A D | avrcp_tg_profile.cpp | 138 void AvrcTgProfile::SetActiveDevice(const RawAddress &rawAddr) in SetActiveDevice() argument 140 HILOGI("rawAddr: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in SetActiveDevice() 145 cnManager->SetActiveDevice(rawAddr.GetAddress()); in SetActiveDevice() 157 RawAddress rawAddr(addr); in GetConnectedDevices() 158 if (GetDeviceState(rawAddr) == static_cast<int>(BTConnectState::CONNECTED)) { in GetConnectedDevices() 159 result.push_back(rawAddr); in GetConnectedDevices() 183 RawAddress rawAddr(addr); in GetDevicesByStates() 184 if (GetDeviceState(rawAddr) == state) { in GetDevicesByStates() 185 rawAddrs.push_back(rawAddr); in GetDevicesByStates() 193 GetDeviceState(const RawAddress &rawAddr) GetDeviceState() argument 251 ConnectBr(const RawAddress &rawAddr) ConnectBr() argument 276 DisconnectBr(const RawAddress &rawAddr) DisconnectBr() argument 317 AcceptPassiveConnect(const RawAddress &rawAddr) AcceptPassiveConnect() argument 325 RejectPassiveConnect(const RawAddress &rawAddr) RejectPassiveConnect() argument 337 SendPressButtonRsp(const RawAddress &rawAddr, uint8_t button, uint8_t label, int result) SendPressButtonRsp() argument 349 SendReleaseButtonRsp(const RawAddress &rawAddr, uint8_t button, uint8_t label, int result) SendReleaseButtonRsp() argument 368 IsSamePassPressCommand(const RawAddress &rawAddr, uint8_t button) IsSamePassPressCommand() argument 394 IsIgnorePassReleaseCommand(const RawAddress &rawAddr, uint8_t button) IsIgnorePassReleaseCommand() argument 426 SendPassRsp(const RawAddress &rawAddr, std::shared_ptr<AvrcTgPassPacket> &pkt) SendPassRsp() argument 454 ReceivePassCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceivePassCmd() argument 516 ProcessPassTimeout(RawAddress rawAddr, uint8_t button, uint8_t state, uint8_t label) ProcessPassTimeout() argument 529 PassTimeoutCallback(const RawAddress &rawAddr, uint8_t button, uint8_t state, uint8_t label) PassTimeoutCallback() argument 543 SendUnitRsp(const RawAddress &rawAddr, std::shared_ptr<AvrcTgUnitPacket> &pkt, AvrcTgSmEvent event) SendUnitRsp() argument 555 ReceiveUnitCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveUnitCmd() argument 564 ReceiveSubUnitCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveSubUnitCmd() argument 577 SendVendorRsp( const RawAddress &rawAddr, std::shared_ptr<AvrcTgVendorPacket> &pkt, AvrcTgSmEvent event) SendVendorRsp() argument 590 SendGetCapabilitiesRsp( const RawAddress &rawAddr, const std::vector<uint32_t> &companies, uint8_t label, int result) SendGetCapabilitiesRsp() argument 600 SendGetCapabilitiesRsp( const RawAddress &rawAddr, const std::vector<uint8_t> &events, uint8_t label, int result) SendGetCapabilitiesRsp() argument 612 ReceiveGetCapabilitiesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetCapabilitiesCmd() argument 634 SendListPlayerApplicationSettingAttributesRsp( const RawAddress &rawAddr, std::deque<uint8_t> attributes, uint8_t label, int result) SendListPlayerApplicationSettingAttributesRsp() argument 646 ReceiveListPlayerApplicationSettingAttributesCmd( const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveListPlayerApplicationSettingAttributesCmd() argument 661 SendListPlayerApplicationSettingValuesRsp( const RawAddress &rawAddr, const std::deque<uint8_t> &values, uint8_t label, int result) SendListPlayerApplicationSettingValuesRsp() argument 673 ReceiveListPlayerApplicationSettingValuesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveListPlayerApplicationSettingValuesCmd() argument 687 SendGetCurrentPlayerApplicationSettingValueRsp(const RawAddress &rawAddr, const std::deque<uint8_t> &attributes, const std::deque<uint8_t> &values, uint8_t label, int result) SendGetCurrentPlayerApplicationSettingValueRsp() argument 700 ReceiveGetCurrentPlayerApplicationSettingValueCmd( const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetCurrentPlayerApplicationSettingValueCmd() argument 716 SendSetPlayerApplicationSettingValueRsp(const RawAddress &rawAddr, uint8_t label, int result) SendSetPlayerApplicationSettingValueRsp() argument 727 ReceiveSetPlayerApplicationSettingValueCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveSetPlayerApplicationSettingValueCmd() argument 743 SendGetPlayerApplicationSettingAttributeTextRsp(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<std::string> &attrStr, uint8_t label, int result) SendGetPlayerApplicationSettingAttributeTextRsp() argument 760 ReceiveGetPlayerApplicationSettingAttributeTextCmd( const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetPlayerApplicationSettingAttributeTextCmd() argument 778 SendGetPlayerApplicationSettingValueTextRsp(const RawAddress &rawAddr, const std::vector<uint8_t> &values, const std::vector<std::string> &valueStr, uint8_t label, int result) SendGetPlayerApplicationSettingValueTextRsp() argument 794 ReceiveGetPlayerApplicationSettingValueTextCmd( const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetPlayerApplicationSettingValueTextCmd() argument 810 SendGetElementAttributesRsp(const RawAddress &rawAddr, const std::vector<uint32_t> &attribtues, const std::vector<std::string> &values, uint8_t label, int result) SendGetElementAttributesRsp() argument 824 ReceiveGetElementAttributesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetElementAttributesCmd() argument 839 SendGetPlayStatusRsp(const RawAddress &rawAddr, uint32_t songLength, uint32_t songPosition, uint8_t playStatus, uint8_t label, int result) SendGetPlayStatusRsp() argument 853 ReceiveGetPlayStatusCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetPlayStatusCmd() argument 868 ReceiveRequestContinuingResponseCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveRequestContinuingResponseCmd() argument 908 ReceiveAbortContinuingResponseCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveAbortContinuingResponseCmd() argument 941 SendSetAddressedPlayerRsp(const RawAddress &rawAddr, int status, uint8_t label, int result) SendSetAddressedPlayerRsp() argument 957 ReceiveSetAddressedPlayerCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveSetAddressedPlayerCmd() argument 972 SendPlayItemRsp(const RawAddress &rawAddr, int status, uint8_t label, int result) SendPlayItemRsp() argument 988 ReceivePlayItemCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceivePlayItemCmd() argument 1001 SendAddToNowPlayingRsp(const RawAddress &rawAddr, int status, uint8_t label, int result) SendAddToNowPlayingRsp() argument 1017 ReceiveAddToNowPlayingCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveAddToNowPlayingCmd() argument 1030 SendSetAbsoluteVolumeRsp(const RawAddress &rawAddr, uint8_t volume, uint8_t label, int result) SendSetAbsoluteVolumeRsp() argument 1042 ReceiveSetAbsoluteVolumeCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveSetAbsoluteVolumeCmd() argument 1389 ReceiveRegisterNotificationCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveRegisterNotificationCmd() argument 1473 ReceiveVendorCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveVendorCmd() argument 1541 SendBrowseRsp( const RawAddress &rawAddr, std::shared_ptr<AvrcTgBrowsePacket> &pkt, AvrcTgSmEvent event) SendBrowseRsp() argument 1554 SendSetBrowsedPlayerRsp(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, const std::vector<std::string> &folderNames, uint8_t label, int status) SendSetBrowsedPlayerRsp() argument 1571 ReceiveSetBrowsedPlayerCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveSetBrowsedPlayerCmd() argument 1586 SendChangePathRsp(const RawAddress &rawAddr, uint32_t numOfItems, uint8_t label, int status) SendChangePathRsp() argument 1597 ReceiveChangePathCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveChangePathCmd() argument 1613 SendGetFolderItemsRsp( const RawAddress &rawAddr, uint16_t uidCounter, const std::vector<AvrcMpItem> &items, uint8_t label, int status) SendGetFolderItemsRsp() argument 1630 SendGetFolderItemsRsp( const RawAddress &rawAddr, uint16_t uidCounter, const std::vector<AvrcMeItem> &items, uint8_t label, int status) SendGetFolderItemsRsp() argument 1647 ReceiveGetFolderItemsCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetFolderItemsCmd() argument 1662 SendGetItemAttributesRsp(const RawAddress &rawAddr, const std::vector<uint32_t> &attributes, const std::vector<std::string> &values, uint8_t label, int status) SendGetItemAttributesRsp() argument 1675 ReceiveGetItemAttributesCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetItemAttributesCmd() argument 1693 SendGetTotalNumberOfItemsRsp( const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, uint8_t label, int status) SendGetTotalNumberOfItemsRsp() argument 1710 ReceiveGetTotalNumberOfItemsCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveGetTotalNumberOfItemsCmd() argument 1724 ReceiveBrowseCmd(const RawAddress &rawAddr, uint8_t label, Packet *pkt) ReceiveBrowseCmd() argument 1755 ProcessChannelEvent( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEvent() argument 1808 ProcessChannelEventConnectIndEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEventConnectIndEvt() argument 1842 ProcessChannelEventDisconnectIndEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEventDisconnectIndEvt() argument 1875 ProcessChannelEventDisconnectCfmEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEventDisconnectCfmEvt() argument 1908 ProcessChannelEventBrConnectIndEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEventBrConnectIndEvt() argument 1929 ProcessChannelEventBrConnectCfmEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEventBrConnectCfmEvt() argument 1949 ProcessChannelEventConnectCfmEvt( const RawAddress &rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) ProcessChannelEventConnectCfmEvt() argument 1986 RawAddress rawAddr = AvrcTgConnectManager::GetInstance()->GetRawAddress(connectId); ProcessChannelMessage() local 2025 DeleteResource(const RawAddress &rawAddr) DeleteResource() argument 2033 DeleteBrowseStateMachine(const RawAddress &rawAddr) DeleteBrowseStateMachine() argument [all...] |
H A D | avrcp_tg_connection.cpp | 92 int AvrcTgConnectManager::Add(const RawAddress &rawAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu, in Add() argument 97 "companyId:%{public}u, uidCounter:%{public}d", GET_ENCRYPT_AVRCP_ADDR(rawAddr), connectId, role, controlMtu, in Add() 104 if (GetConnectInfo(rawAddr.GetAddress()) == nullptr) { in Add() 105 infos_.insert(std::make_pair(rawAddr.GetAddress(), in Add() 106 AvrcTgConnectInfo(rawAddr.GetAddress(), in Add() 123 void AvrcTgConnectManager::Delete(const RawAddress &rawAddr) in Delete() argument 125 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in Delete() 129 infos_.erase(rawAddr.GetAddress()); in Delete() 132 const AvrcTgConnectInfo *AvrcTgConnectManager::GetConnectInfo(const RawAddress &rawAddr) in GetConnectInfo() argument 134 HILOGI("address: %{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in GetConnectInfo() 232 GetConnectId(const RawAddress &rawAddr) GetConnectId() argument 248 SetConnectId(const RawAddress &rawAddr, uint8_t connectId) SetConnectId() argument 260 GetControlMtu(const RawAddress &rawAddr) GetControlMtu() argument 276 SetControlMtu(const RawAddress &rawAddr, uint16_t mtu) SetControlMtu() argument 288 GetBrowseMtu(const RawAddress &rawAddr) GetBrowseMtu() argument 304 SetBrowseMtu(const RawAddress &rawAddr, uint16_t mtu) SetBrowseMtu() argument 316 EnableNotifyState(const RawAddress &rawAddr, uint8_t notification) EnableNotifyState() argument 333 DisableNotifyState(const RawAddress &rawAddr, uint8_t notification) DisableNotifyState() argument 350 IsNotifyStateEnabled(const RawAddress &rawAddr, uint8_t notification) IsNotifyStateEnabled() argument 373 GetCompanyId(const RawAddress &rawAddr) GetCompanyId() argument 389 GetUidCounter(const RawAddress &rawAddr) GetUidCounter() argument 405 SetUidCounter(const RawAddress &rawAddr, uint16_t uidCounter) SetUidCounter() argument 421 GetPassPacket(const RawAddress &rawAddr) GetPassPacket() argument 437 SetPassPacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcTgPassPacket> &pkt) SetPassPacket() argument 449 IsPassTimerEmpty(const RawAddress &rawAddr) IsPassTimerEmpty() argument 465 SetPassTimer( const RawAddress &rawAddr, std::function<void()> callback, int ms, bool isPeriodic) SetPassTimer() argument 479 ClearPassPacket(const RawAddress &rawAddr) ClearPassPacket() argument 491 ClearPassTimer(const RawAddress &rawAddr) ClearPassTimer() argument 506 ClearPassInfo(const RawAddress &rawAddr) ClearPassInfo() argument 518 GetUnitPacket(const RawAddress &rawAddr) GetUnitPacket() argument 534 SetUnitPacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcTgUnitPacket> &pkt) SetUnitPacket() argument 546 ClearUnitPacket(const RawAddress &rawAddr) ClearUnitPacket() argument 558 ClearUnitInfo(const RawAddress &rawAddr) ClearUnitInfo() argument 569 GetVendorPacket(const RawAddress &rawAddr) GetVendorPacket() argument 585 SetVendorPacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcTgVendorPacket> &pkt) SetVendorPacket() argument 597 ClearVendorPacket(const RawAddress &rawAddr) ClearVendorPacket() argument 609 ClearVendorInfo(const RawAddress &rawAddr) ClearVendorInfo() argument 620 GetBrowsePacket(const RawAddress &rawAddr) GetBrowsePacket() argument 636 SetBrowsePacket(const RawAddress &rawAddr, const std::shared_ptr<AvrcTgBrowsePacket> &pkt) SetBrowsePacket() argument 648 ClearBrowsePacket(const RawAddress &rawAddr) ClearBrowsePacket() argument 660 ClearBrowseInfo(const RawAddress &rawAddr) ClearBrowseInfo() argument [all...] |
H A D | avrcp_tg_profile.h | 52 * @param[in] rawAddr The address of the bluetooth device. 55 std::function<void(const RawAddress &rawAddr, int state)> onConnectionStateChanged; 60 * @param[in] rawAddr The address of the peer bluetooth device. 62 std::function<void(const RawAddress &rawAddr)> findCtService; 67 * @param[in] rawAddr The address of the bluetooth device. 71 std::function<void(const RawAddress &rawAddr, uint8_t button, uint8_t label)> onButtonPressed; 76 * @param[in] rawAddr The address of the bluetooth device. 80 std::function<void(const RawAddress &rawAddr, uint8_t button, uint8_t label)> onButtonReleased; 85 * @param[in] rawAddr The address of the bluetooth device. 89 std::function<void(const RawAddress &rawAddr, uint8_ [all...] |
H A D | avrcp_tg_service.cpp | 56 RawAddress rawAddr(addr); in OnSetAddressedPlayer() 57 service->OnSetAddressedPlayer(rawAddr, label, status); in OnSetAddressedPlayer() 69 RawAddress rawAddr(addr); in OnSetBrowsedPlayer() 70 service->OnSetBrowsedPlayer(rawAddr, uidCounter, numOfItems, folderNames, label, status); in OnSetBrowsedPlayer() 81 RawAddress rawAddr(addr); in OnGetPlayerAppSettingAttributes() 82 service->OnGetPlayerAppSettingAttributes(rawAddr, attributes, label); in OnGetPlayerAppSettingAttributes() 93 RawAddress rawAddr(addr); in OnGetPlayerAppSettingValues() 94 service->OnGetPlayerAppSettingValues(rawAddr, values, label); in OnGetPlayerAppSettingValues() 105 RawAddress rawAddr(addr); in OnGetPlayerAppSettingCurrentValue() 106 service->OnGetPlayerAppSettingCurrentValue(rawAddr, attribute in OnGetPlayerAppSettingCurrentValue() 748 SetActiveDevice(const RawAddress &rawAddr) SetActiveDevice() argument 784 GetDeviceState(const RawAddress &rawAddr) GetDeviceState() argument 812 Connect(const RawAddress &rawAddr) Connect() argument 839 ConnectNative(RawAddress rawAddr) ConnectNative() argument 846 Disconnect(const RawAddress &rawAddr) Disconnect() argument 869 DisconnectNative(RawAddress rawAddr) DisconnectNative() argument 901 OnConnectionStateChanged(const RawAddress &rawAddr, int state) OnConnectionStateChanged() argument 910 AcceptActiveConnect(const RawAddress &rawAddr) AcceptActiveConnect() argument 929 AcceptPassiveConnect(const RawAddress &rawAddr) AcceptPassiveConnect() argument 942 RejectPassiveConnect(const RawAddress &rawAddr) RejectPassiveConnect() argument 955 FindCtService(const RawAddress &rawAddr) FindCtService() argument 1028 OnButtonPressed(const RawAddress &rawAddr, uint8_t button, uint8_t label) const OnButtonPressed() argument 1041 OnButtonReleased(const RawAddress &rawAddr, uint8_t button, uint8_t label) const OnButtonReleased() argument 1054 HoldButton(const RawAddress &rawAddr, uint8_t button, uint8_t label) const HoldButton() argument 1066 SetAddressedPlayer( const RawAddress &rawAddr, uint16_t playerId, uint16_t uidCounter, uint8_t label) const SetAddressedPlayer() argument 1079 OnSetAddressedPlayer(const RawAddress &rawAddr, uint8_t label, int status) OnSetAddressedPlayer() argument 1097 OnSetAddressedPlayerNative(RawAddress rawAddr, uint8_t label, int status) OnSetAddressedPlayerNative() argument 1114 SetBrowsedPlayer(const RawAddress &rawAddr, uint16_t playerId, uint16_t uidCounter, uint8_t label) const SetBrowsedPlayer() argument 1127 OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, const std::vector<std::string> &folderNames, uint8_t label, int status) OnSetBrowsedPlayer() argument 1153 OnSetBrowsedPlayerNative(RawAddress rawAddr, uint16_t uidCounter, uint32_t numOfItems, std::vector<std::string> folderNames, uint8_t label, int status) OnSetBrowsedPlayerNative() argument 1174 GetCapabilities(const RawAddress &rawAddr, uint8_t label) GetCapabilities() argument 1201 GetPlayerAppSettingAttributes(const RawAddress &rawAddr, uint8_t label) const GetPlayerAppSettingAttributes() argument 1212 OnGetPlayerAppSettingAttributes( const RawAddress &rawAddr, const std::deque<uint8_t> &attributes, uint8_t label) OnGetPlayerAppSettingAttributes() argument 1232 OnGetPlayerAppSettingAttributesNative( RawAddress rawAddr, std::deque<uint8_t> attributes, uint8_t label) OnGetPlayerAppSettingAttributesNative() argument 1250 GetPlayerAppSettingValues(const RawAddress &rawAddr, uint8_t attribute, uint8_t label) const GetPlayerAppSettingValues() argument 1262 OnGetPlayerAppSettingValues( const RawAddress &rawAddr, const std::deque<uint8_t> &values, uint8_t label) OnGetPlayerAppSettingValues() argument 1282 OnGetPlayerAppSettingValuesNative(RawAddress rawAddr, std::deque<uint8_t> values, uint8_t label) OnGetPlayerAppSettingValuesNative() argument 1299 GetPlayerAppSettingCurrentValue( const RawAddress &rawAddr, const std::deque<uint8_t> &attributes, uint8_t label, uint8_t context) const GetPlayerAppSettingCurrentValue() argument 1317 OnGetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, const std::deque<uint8_t> &attributes, const std::deque<uint8_t> &values, uint8_t label, uint8_t context) OnGetPlayerAppSettingCurrentValue() argument 1342 OnGetCurrentPlayerAppSettingValueNative( RawAddress rawAddr, std::deque<uint8_t> attributes, std::deque<uint8_t> values, uint8_t label, uint8_t context) OnGetCurrentPlayerAppSettingValueNative() argument 1364 SetPlayerAppSettingCurrentValue( const RawAddress &rawAddr, const std::deque<uint8_t> &attributes, const std::deque<uint8_t> &values, uint8_t label) const SetPlayerAppSettingCurrentValue() argument 1377 OnSetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, uint8_t label) OnSetPlayerAppSettingCurrentValue() argument 1396 OnSetPlayerAppSettingCurrentValueNative(RawAddress rawAddr, uint8_t label) OnSetPlayerAppSettingCurrentValueNative() argument 1413 GetPlayerAppSettingAttributeText( const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, uint8_t label) const GetPlayerAppSettingAttributeText() argument 1425 OnGetPlayerAppSettingAttributeText(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<std::string> &attrStr, uint8_t label) OnGetPlayerAppSettingAttributeText() argument 1445 OnGetPlayerAppSettingAttributeTextNative( RawAddress rawAddr, std::vector<uint8_t> attributes, std::vector<std::string> attrStr, uint8_t label) OnGetPlayerAppSettingAttributeTextNative() argument 1463 GetPlayerAppSettingValueText( const RawAddress &rawAddr, uint8_t attributeId, const std::vector<uint8_t> &values, uint8_t label) const GetPlayerAppSettingValueText() argument 1476 OnGetPlayerAppSettingValueText(const RawAddress &rawAddr, const std::vector<uint8_t> &values, const std::vector<std::string> &valueStr, uint8_t label) OnGetPlayerAppSettingValueText() argument 1496 OnGetPlayerAppSettingValueTextNative( RawAddress rawAddr, std::vector<uint8_t> values, std::vector<std::string> valueStr, uint8_t label) OnGetPlayerAppSettingValueTextNative() argument 1518 GetElementAttributes( const RawAddress &rawAddr, uint64_t identifier, const std::vector<uint32_t> &attributes, uint8_t label) const GetElementAttributes() argument 1531 OnGetElementAttributes(const RawAddress &rawAddr, const std::vector<uint32_t> &attribtues, const std::vector<std::string> &values, uint8_t label) OnGetElementAttributes() argument 1549 OnGetElementAttributesNative( RawAddress rawAddr, std::vector<uint32_t> attributes, std::vector<std::string> values, uint8_t label) OnGetElementAttributesNative() argument 1571 GetPlayStatus(const RawAddress &rawAddr, uint8_t label, uint8_t context) const GetPlayStatus() argument 1613 OnGetPlayStatus(const RawAddress &rawAddr, uint32_t songLength, uint32_t songPosition, uint8_t playStatus, uint8_t label, uint8_t context) GetPlayStatus() argument 1640 OnGetPlayStatusNative( RawAddress rawAddr, uint32_t songLength, uint32_t songPosition, uint8_t playStatus, uint8_t label, uint8_t context) GetPlayStatus() argument 1664 PlayItem( const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter, uint8_t label) const GetPlayStatus() argument 1675 OnPlayItem(const RawAddress &rawAddr, uint8_t label, int status) GetPlayStatus() argument 1691 OnPlayItemNative(RawAddress rawAddr, uint8_t label, int status) GetPlayStatus() argument 1708 AddToNowPlaying( const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter, uint8_t label) const GetPlayStatus() argument 1720 OnAddToNowPlaying(const RawAddress &rawAddr, uint8_t label, int status) GetPlayStatus() argument 1738 OnAddToNowPlayingNative(RawAddress rawAddr, uint8_t label, int status) GetPlayStatus() argument 1759 ChangePath( const RawAddress &rawAddr, uint16_t uidCounter, uint8_t direction, uint64_t folderUid, uint8_t label) const GetPlayStatus() argument 1771 OnChangePath(const RawAddress &rawAddr, uint32_t numOfItems, uint8_t label, int status) GetPlayStatus() argument 1791 OnChangePathNative(RawAddress rawAddr, uint32_t numOfItems, uint8_t label, int status) GetPlayStatus() argument 1808 GetFolderItems(const RawAddress &rawAddr, uint8_t scope, uint32_t startItem, uint32_t endItem, const std::vector<uint32_t> &attributes, uint8_t label) const GetPlayStatus() argument 1826 OnGetMediaPlayers( const RawAddress &rawAddr, uint16_t uidCounter, const std::vector<AvrcMpItem> &items, uint8_t label, int status) GetPlayStatus() argument 1846 OnGetMediaPlayersNative( RawAddress rawAddr, uint16_t uidCounter, std::vector<AvrcMpItem> items, uint8_t label, int status) GetPlayStatus() argument 1864 OnGetFolderItems( const RawAddress &rawAddr, uint16_t uidCounter, const std::vector<AvrcMeItem> &items, uint8_t label, int status) GetPlayStatus() argument 1884 OnGetFolderItemsNative( RawAddress rawAddr, uint16_t uidCounter, std::vector<AvrcMeItem> items, uint8_t label, int status) GetPlayStatus() argument 1902 GetItemAttributes(const RawAddress &rawAddr, uint8_t scope, uint64_t uid, uint16_t uidCounter, std::vector<uint32_t> attributes, uint8_t label) const GetPlayStatus() argument 1916 OnGetItemAttributes(const RawAddress &rawAddr, const std::vector<uint32_t> &attributes, const std::vector<std::string> &values, uint8_t label, int status) GetPlayStatus() argument 1935 OnGetItemAttributesNative( RawAddress rawAddr, std::vector<uint32_t> attributes, std::vector<std::string> values, uint8_t label, int status) GetPlayStatus() argument 1953 GetTotalNumberOfItems(const RawAddress &rawAddr, uint8_t scope, uint8_t label) const GetPlayStatus() argument 1961 OnGetTotalNumberOfItems( const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, uint8_t label, int status) GetPlayStatus() argument 1982 OnGetTotalNumberOfItemsNative( RawAddress rawAddr, uint16_t uidCounter, uint32_t numOfItems, uint8_t label, int status) GetPlayStatus() argument 2004 SetAbsoluteVolume(const RawAddress &rawAddr, uint8_t volume, uint8_t label) const GetPlayStatus() argument 2013 OnSetAbsoluteVolume(const RawAddress &rawAddr, uint8_t volume, uint8_t label) GetPlayStatus() argument 2031 OnSetAbsoluteVolumeNative(RawAddress rawAddr, uint8_t volume, uint8_t label) GetPlayStatus() argument 2052 GetSelectedTrack(const RawAddress &rawAddr, uint8_t label) const GetPlayStatus() argument 2062 OnGetSelectedTrack(const RawAddress &rawAddr, uint64_t uid, uint8_t label) GetPlayStatus() argument 2081 OnGetSelectedTrackNative(RawAddress rawAddr, uint64_t uid, uint8_t label) GetPlayStatus() argument 2098 GetAddressedPlayer(const RawAddress &rawAddr, uint8_t label) const GetPlayStatus() argument 2108 OnGetAddressedPlayer( const RawAddress &rawAddr, uint16_t playerId, uint16_t uidCounter, uint8_t label) GetPlayStatus() argument 2129 OnGetAddressedPlayerNative( RawAddress rawAddr, uint16_t playerId, uint16_t uidCounter, uint8_t label) GetPlayStatus() argument 2147 GetUidCounter(const RawAddress &rawAddr, uint8_t label) const GetPlayStatus() argument 2157 OnGetUidCounter(const RawAddress &rawAddr, uint16_t uidCounter, uint8_t label) GetPlayStatus() argument 2176 OnGetUidCounterNative(const RawAddress &rawAddr, uint16_t uidCounter, uint8_t label) GetPlayStatus() argument 2193 GetCurrentAbsoluteVolume(const RawAddress &rawAddr, uint8_t label) const GetPlayStatus() argument 2203 OnGetCurrentAbsoluteVolume(const RawAddress &rawAddr, uint8_t volume, uint8_t label) GetPlayStatus() argument 2221 OnGetCurrentAbsoluteVolumeNative(const RawAddress &rawAddr, uint8_t volume, uint8_t label) GetPlayStatus() argument 2238 SetPlaybackInterval(const RawAddress &rawAddr, uint32_t interval) const GetPlayStatus() argument 2610 ProcessChannelEvent( RawAddress rawAddr, uint8_t connectId, uint8_t event, uint16_t result, void *context) GetPlayStatus() argument [all...] |
H A D | avrcp_tg_connection.h | 130 * @param[in] rawAddr The address of the bluetooth device. 142 int Add(const RawAddress &rawAddr, uint8_t connectId, uint8_t role, uint16_t controlMtu, uint16_t browseMtu, 148 * @param[in] rawAddr The address of the bluetooth device. 150 void Delete(const RawAddress &rawAddr); 155 * @param[in] rawAddr The address of the bluetooth device. 158 const AvrcTgConnectInfo *GetConnectInfo(const RawAddress &rawAddr); 178 * @param[in] rawAddr The address of the bluetooth device. 185 * @param[in] rawAddr The address of the bluetooth device. 192 * @param[in] rawAddr The address of the bluetooth device. 199 * @param[in] rawAddr Th [all...] |
H A D | avrcp_tg_service.h | 173 * @param[in] rawAddr The address of the bluetooth device. 460 void SetActiveDevice(const RawAddress &rawAddr) override; 492 * @param[in] rawAddr The address of the bluetooth device. 495 int GetDeviceState(const RawAddress &rawAddr) override; 508 * @param[in] rawAddr The address of the bluetooth device. 514 int Connect(const RawAddress &rawAddr) override; 520 * @param[in] rawAddr The address of the bluetooth device. 526 int Disconnect(const RawAddress &rawAddr) override; 543 * @param[in] rawAddr The address of the bluetooth device. 552 void OnSetAddressedPlayer(const RawAddress &rawAddr, uint8_ [all...] |
H A D | avrcp_tg_state_machine.cpp | 65 int AvrcTgStateMachineManager::AddControlStateMachine(const RawAddress &rawAddr) in AddControlStateMachine() argument 67 HILOGI("addr:%{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in AddControlStateMachine() 73 if (GetPairOfStateMachine(rawAddr.GetAddress()) == nullptr) { in AddControlStateMachine() 75 std::make_unique<StateMachine>(StateMachine::Type::AVRC_TG_SM_TYPE_CONTROL, rawAddr); in AddControlStateMachine() 78 stateMachines_.insert(std::make_pair(rawAddr.GetAddress(), std::make_pair(std::move(statemachine), nullptr))); in AddControlStateMachine() 81 HILOGI("exists! Address: %{public}s", GetEncryptAddr(rawAddr.GetAddress()).c_str()); in AddControlStateMachine() 87 int AvrcTgStateMachineManager::AddBrowseStateMachine(const RawAddress &rawAddr) in AddBrowseStateMachine() argument 89 HILOGI("addr:%{public}s", GET_ENCRYPT_AVRCP_ADDR(rawAddr)); in AddBrowseStateMachine() 95 StateMachinePair *pair = GetPairOfStateMachine(rawAddr.GetAddress()); in AddBrowseStateMachine() 98 HILOGI("doest not exists! Address: %{public}s", GetEncryptAddr(rawAddr in AddBrowseStateMachine() 111 DeletePairOfStateMachine(const RawAddress &rawAddr) DeletePairOfStateMachine() argument 125 DeleteBrowseStateMachine(const RawAddress &rawAddr) DeleteBrowseStateMachine() argument 139 SendMessageToControlStateMachine(const RawAddress &rawAddr, const utility::Message &msg) SendMessageToControlStateMachine() argument 171 SendMessageToBrowseStateMachine(const RawAddress &rawAddr, const utility::Message &msg) SendMessageToBrowseStateMachine() argument 202 IsControlConnectingState(const RawAddress &rawAddr) IsControlConnectingState() argument 209 IsControlConnectedState(const RawAddress &rawAddr) IsControlConnectedState() argument 216 IsControlDisconnectingState(const RawAddress &rawAddr) IsControlDisconnectingState() argument 223 IsControlContinuationState(const RawAddress &rawAddr) IsControlContinuationState() argument 230 IsControlDisableState(const RawAddress &rawAddr) IsControlDisableState() argument 276 StateMachine(Type type, const RawAddress &rawAddr) StateMachine() argument 329 State(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) State() argument 336 State( const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr) State() argument 352 CtConnecting( const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr) CtConnecting() argument 409 CtConnected(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtConnected() argument 535 CtDisconnecting(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtDisconnecting() argument 581 CtContinuation(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtContinuation() argument 639 CtDisable(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) CtDisable() argument 688 BrConnecting( const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr) BrConnecting() argument 740 BrConnected(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) BrConnected() argument 798 BrDisconnecting(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr, utility::StateMachine::State &parent) BrDisconnecting() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_profile_avrcp_ct.h | 70 virtual void OnConnectionStateChanged(const RawAddress &rawAddr, int state) = 0; 75 * @param[in] rawAddr The address of the bluetooth device. 84 virtual void OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) = 0; 89 * @param[in] rawAddr The address of the bluetooth device. 98 virtual void OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) = 0; 103 * @param[in] rawAddr The address of the bluetooth device. 117 virtual void OnSetAddressedPlayer(const RawAddress &rawAddr, int result, int detail) = 0; 122 * @param[in] rawAddr The address of the bluetooth device. 142 virtual void OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, 158 virtual void OnGetCapabilities(const RawAddress &rawAddr, cons [all...] |
H A D | interface_profile_avrcp_tg.h | 71 virtual void OnConnectionStateChanged(const RawAddress &rawAddr, int state) = 0; 121 virtual void SetActiveDevice(const RawAddress &rawAddr) = 0; 146 * @param[in] rawAddr The address of the bluetooth device. 151 virtual int GetDeviceState(const RawAddress &rawAddr) = 0; 161 * @param[in] rawAddr The address of the bluetooth device. 172 virtual void OnSetAddressedPlayer(const RawAddress &rawAddr, uint8_t label, int status) = 0; 178 * @param[in] rawAddr The address of the bluetooth device. 195 virtual void OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, 206 * @param[in] rawAddr The address of the bluetooth device. 213 const RawAddress &rawAddr, cons [all...] |
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/ |
H A D | i_bluetooth_avrcp_ct_observer.h | 35 virtual void OnConnectionStateChanged(const RawAddress &rawAddr, int state, int cause) = 0; 36 virtual void OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) = 0; 37 virtual void OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) = 0; 38 virtual void OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, 40 virtual void OnGetCapabilities(const RawAddress &rawAddr, const std::vector<uint32_t> &companies, 43 const RawAddress &rawAddr, std::vector<uint8_t> attributes, int result) = 0; 44 virtual void OnGetPlayerAppSettingValues(const RawAddress &rawAddr, 46 virtual void OnGetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, const std::vector<uint8_t> attributes, 48 virtual void OnSetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, int result) = 0; 49 virtual void OnGetPlayerAppSettingAttributeText(const RawAddress &rawAddr, [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/ipc/include/ |
H A D | bluetooth_avrcp_ct_observer_proxy.h | 31 void OnConnectionStateChanged(const RawAddress &rawAddr, int state, int cause) override; 32 void OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) override; 33 void OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) override; 34 void OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, 36 void OnGetCapabilities(const RawAddress &rawAddr, const std::vector<uint32_t> &companies, 39 const RawAddress &rawAddr, std::vector<uint8_t> attributes, int result) override; 40 void OnGetPlayerAppSettingValues(const RawAddress &rawAddr, 43 const RawAddress &rawAddr, const std::vector<uint8_t> attributes, 45 void OnSetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, int result) override; 46 void OnGetPlayerAppSettingAttributeText(const RawAddress &rawAddr, [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_avrcp_ct_server.cpp | 56 void OnConnectionStateChanged(const RawAddress &rawAddr, int state) override 58 impl_->OnConnectionStateChanged(rawAddr, state); 61 void OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) override 63 impl_->OnPressButton(rawAddr, button, result); 66 void OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) override 68 impl_->OnReleaseButton(rawAddr, button, result); 71 void OnSetAddressedPlayer(const RawAddress &rawAddr, int result, int detail) override 76 void OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, 79 impl_->OnSetBrowsedPlayer(rawAddr, uidCounter, numOfItems, folderNames, result, detail); 82 void OnGetCapabilities(const RawAddress &rawAddr, cons [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | raw_socket.cpp | 86 struct sockaddr_ll rawAddr; in CreateSocket() local 87 rawAddr.sll_ifindex = static_cast<int>(ifaceIndex); in CreateSocket() 88 rawAddr.sll_protocol = htons(protocol); in CreateSocket() 89 rawAddr.sll_family = AF_PACKET; in CreateSocket() 91 int ret = bind(socketFd, reinterpret_cast<struct sockaddr *>(&rawAddr), sizeof(rawAddr)); in CreateSocket() 115 struct sockaddr_ll rawAddr; in Send() local 116 if (memset_s(&rawAddr, sizeof(rawAddr), 0, sizeof(rawAddr)) ! in Send() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_service_state_machine.cpp | 32 RawAddress rawAddr = *((RawAddress *)(msg.arg2_)); in Dispatch() local 33 rawAddr.ConvertToUint8(btAddr.addr); in Dispatch() 40 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), rawAddr); in Dispatch() local 47 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), rawAddr); in Dispatch() local 79 RawAddress rawAddr = *((RawAddress *)(msg.arg2_)); in Dispatch() local 82 rawAddr.ConvertToUint8(btAddr.addr); in Dispatch() 86 deviceInfo = service->GetDeviceFromList(rawAddr); in Dispatch() 95 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::DISCONNECTING), rawAddr); in Dispatch() local 102 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::DISCONNECTING), rawAddr); in Dispatch() local 105 UpdateDeviceInformation(rawAddr, tru in Dispatch() 113 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), rawAddr); Dispatch() local 122 UpdateDeviceInformation(RawAddress rawAddr, bool value, uint8_t role) UpdateDeviceInformation() argument 153 RawAddress rawAddr = *((RawAddress *)(msg.arg2_)); Dispatch() local 169 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::DISCONNECTING), rawAddr); Dispatch() local [all...] |
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_avrcp_ct.cpp | 54 void OnConnectionStateChanged(const RawAddress &rawAddr, int state, int cause) override 57 GET_ENCRYPT_RAW_ADDR(rawAddr), state, cause); 59 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR); 65 void OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) override 68 GET_ENCRYPT_RAW_ADDR(rawAddr), button, result); 70 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR); 76 void OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) override 79 GET_ENCRYPT_RAW_ADDR(rawAddr), button, result); 81 BluetoothRemoteDevice device(rawAddr.GetAddress(), BTTransport::ADAPTER_BREDR); 87 void OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_ [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/ |
H A D | bluetooth_avrcp_ct_observer_proxy.cpp | 21 void BluetoothAvrcpCtObserverProxy::OnConnectionStateChanged(const RawAddress &rawAddr, int state, int cause) in OnConnectionStateChanged() argument 29 if (!data.WriteString(rawAddr.GetAddress())) { in OnConnectionStateChanged() 53 void BluetoothAvrcpCtObserverProxy::OnPressButton(const RawAddress &rawAddr, uint8_t button, int result) in OnPressButton() argument 61 if (!data.WriteString(rawAddr.GetAddress())) { in OnPressButton() 86 void BluetoothAvrcpCtObserverProxy::OnReleaseButton(const RawAddress &rawAddr, uint8_t button, int result) in OnReleaseButton() argument 94 if (!data.WriteString(rawAddr.GetAddress())) { in OnReleaseButton() 118 void BluetoothAvrcpCtObserverProxy::OnSetBrowsedPlayer(const RawAddress &rawAddr, uint16_t uidCounter, in OnSetBrowsedPlayer() argument 127 if (!data.WriteString(rawAddr.GetAddress())) { in OnSetBrowsedPlayer() 166 void BluetoothAvrcpCtObserverProxy::OnGetCapabilities(const RawAddress &rawAddr, const std::vector<uint32_t> &companies, in OnGetCapabilities() argument 175 if (!data.WriteString(rawAddr in OnGetCapabilities() 209 OnGetPlayerAppSettingAttributes( const RawAddress &rawAddr, std::vector<uint8_t> attributes, int result) OnGetPlayerAppSettingAttributes() argument 246 OnGetPlayerAppSettingValues(const RawAddress &rawAddr, int attribute, const std::vector<uint8_t> &values, int result) OnGetPlayerAppSettingValues() argument 288 OnGetPlayerAppSettingCurrentValue( const RawAddress &rawAddr, const std::vector<uint8_t> attributes, const std::vector<uint8_t> &values, int result) OnGetPlayerAppSettingCurrentValue() argument 336 OnSetPlayerAppSettingCurrentValue(const RawAddress &rawAddr, int result) OnSetPlayerAppSettingCurrentValue() argument 364 OnGetPlayerAppSettingAttributeText(const RawAddress &rawAddr, const std::vector<uint8_t> attribtues, const std::vector<std::string> &attributeName, int result) OnGetPlayerAppSettingAttributeText() argument 407 OnGetPlayerAppSettingValueText(const RawAddress &rawAddr, const std::vector<uint8_t> &values, const std::vector<std::string> &valueName, int result) OnGetPlayerAppSettingValueText() argument 450 OnGetElementAttributes(const RawAddress &rawAddr, const std::vector<uint32_t> &attribtues, const std::vector<std::string> &valueName, int result) OnGetElementAttributes() argument 489 OnGetPlayStatus(const RawAddress &rawAddr, uint32_t songLength, uint32_t songPosition, uint8_t playStatus, int result) OnGetPlayStatus() argument 534 OnPlayItem(const RawAddress &rawAddr, int status, int result) OnPlayItem() argument 567 OnGetTotalNumberOfItems(const RawAddress &rawAddr, uint16_t uidCounter, uint32_t numOfItems, int result, int detail) OnGetTotalNumberOfItems() argument 611 OnGetItemAttributes(const RawAddress &rawAddr, const std::vector<uint32_t> &attribtues, const std::vector<std::string> &values, int result, int detail) OnGetItemAttributes() argument 655 OnSetAbsoluteVolume(const RawAddress &rawAddr, uint8_t volume, int result) OnSetAbsoluteVolume() argument 688 OnPlaybackStatusChanged(const RawAddress &rawAddr, uint8_t playStatus, int result) OnPlaybackStatusChanged() argument 721 OnTrackChanged(const RawAddress &rawAddr, uint64_t uid, int result) OnTrackChanged() argument 754 OnTrackReachedEnd(const RawAddress &rawAddr, int result) OnTrackReachedEnd() argument 782 OnTrackReachedStart(const RawAddress &rawAddr, int result) OnTrackReachedStart() argument 810 OnPlaybackPosChanged(const RawAddress &rawAddr, uint32_t playbackPos, int result) OnPlaybackPosChanged() argument 843 OnPlayerAppSettingChanged(const RawAddress &rawAddr, const std::vector<uint8_t> &attributes, const std::vector<uint8_t> &values, int result) OnPlayerAppSettingChanged() argument 890 OnNowPlayingContentChanged(const RawAddress &rawAddr, int result) OnNowPlayingContentChanged() argument 918 OnAvailablePlayersChanged(const RawAddress &rawAddr, int result) OnAvailablePlayersChanged() argument 946 OnAddressedPlayerChanged( const RawAddress &rawAddr, uint16_t playerId, uint16_t uidCounter, int result) OnAddressedPlayerChanged() argument 985 OnUidChanged(const RawAddress &rawAddr, uint16_t uidCounter, int result) OnUidChanged() argument 1018 OnVolumeChanged(const RawAddress &rawAddr, uint8_t volume, int result) OnVolumeChanged() argument 1051 OnGetMediaPlayers(const RawAddress &rawAddr, uint16_t uidCounter, std::vector<BluetoothAvrcpMpItem> &items, int result, int detail) OnGetMediaPlayers() argument 1101 OnGetFolderItems(const RawAddress &rawAddr, uint16_t uidCounter, std::vector<BluetoothAvrcpMeItem> &items, int result, int detail) OnGetFolderItems() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/ |
H A D | power_manager.cpp | 83 void PowerProcess(const RequestStatus status, const std::string &profileName, const RawAddress rawAddr); 84 void UpdatePowerDevicesInfo(const RawAddress rawAddr, const std::string &profileName, const RequestStatus status); 86 void ModeChangeCallBackProcess(uint8_t status, const RawAddress rawAddr, uint8_t currentMode, uint16_t interval); 90 void SsrCompleteCallBackProcess(uint8_t status, const RawAddress rawAddr); 93 void ConnectionCompleteCallBackProcess(const RawAddress rawAddr, uint16_t connectionHandle); 159 const RequestStatus status, const std::string &profileName, const RawAddress rawAddr) in PowerProcess() 163 UpdatePowerDevicesInfo(rawAddr, profileName, status); in PowerProcess() 164 auto iter = powerDevices_.find(rawAddr); in PowerProcess() 171 const RawAddress rawAddr, const std::string &profileName, const RequestStatus status) in UpdatePowerDevicesInfo() 173 auto iter = powerDevices_.find(rawAddr); in UpdatePowerDevicesInfo() 158 PowerProcess( const RequestStatus status, const std::string &profileName, const RawAddress rawAddr) PowerProcess() argument 170 UpdatePowerDevicesInfo( const RawAddress rawAddr, const std::string &profileName, const RequestStatus status) UpdatePowerDevicesInfo() argument 190 ModeChangeCallBackProcess( uint8_t status, const RawAddress rawAddr, uint8_t currentMode, uint16_t interval) ModeChangeCallBackProcess() argument 215 RawAddress rawAddr = bluetooth::RawAddress::ConvertToString(btAddr->addr); ModeChangeCallBack() local 225 SsrCompleteCallBackProcess(uint8_t status, const RawAddress rawAddr) SsrCompleteCallBackProcess() argument 237 RawAddress rawAddr = bluetooth::RawAddress::ConvertToString(btAddr->addr); SsrCompleteCallBack() local 243 ConnectionCompleteCallBackProcess(const RawAddress rawAddr, uint16_t connectionHandle) ConnectionCompleteCallBackProcess() argument 258 RawAddress rawAddr = bluetooth::RawAddress::ConvertToString(param->addr->addr); ConnectionCompleteCallBack() local [all...] |