Lines Matching full:label

54                    void(uint8_t label, bool browse,  in Device()
111 void Device::VendorPacketHandler(uint8_t label, in VendorPacketHandler() argument
121 send_message(label, false, std::move(response)); in VendorPacketHandler()
144 send_message(label, false, std::move(response)); in VendorPacketHandler()
145 active_labels_.erase(label); in VendorPacketHandler()
156 HandleVolumeChanged(label, register_notification); in VendorPacketHandler()
174 HandleGetCapabilities(label, in VendorPacketHandler()
179 HandleNotification(label, in VendorPacketHandler()
191 send_message(label, false, std::move(response)); in VendorPacketHandler()
196 label, get_element_attributes_request_pkt)); in VendorPacketHandler()
202 label)); in VendorPacketHandler()
206 HandlePlayItem(label, Packet::Specialize<PlayItemRequest>(pkt)); in VendorPacketHandler()
221 send_message(label, false, std::move(response)); in VendorPacketHandler()
227 label, set_addressed_player_request)); in VendorPacketHandler()
235 send_message(label, false, std::move(response)); in VendorPacketHandler()
241 weak_ptr_factory_.GetWeakPtr(), label)); in VendorPacketHandler()
249 send_message(label, false, std::move(response)); in VendorPacketHandler()
259 send_message(label, false, std::move(response)); in VendorPacketHandler()
270 send_message(label, false, std::move(response)); in VendorPacketHandler()
277 weak_ptr_factory_.GetWeakPtr(), label)); in VendorPacketHandler()
285 send_message(label, false, std::move(response)); in VendorPacketHandler()
296 send_message(label, false, std::move(response)); in VendorPacketHandler()
308 send_message(label, false, std::move(response)); in VendorPacketHandler()
316 weak_ptr_factory_.GetWeakPtr(), label)); in VendorPacketHandler()
324 send_message(label, false, std::move(response)); in VendorPacketHandler()
334 send_message(label, false, std::move(response)); in VendorPacketHandler()
374 send_message(label, false, std::move(response)); in VendorPacketHandler()
381 weak_ptr_factory_.GetWeakPtr(), label, in VendorPacketHandler()
389 send_message(label, false, std::move(response)); in VendorPacketHandler()
395 uint8_t label, const std::shared_ptr<GetCapabilitiesRequest>& pkt) { in HandleGetCapabilities() argument
400 send_message(label, false, std::move(response)); in HandleGetCapabilities()
411 send_message_cb_.Run(label, false, std::move(response)); in HandleGetCapabilities()
431 send_message(label, false, std::move(response)); in HandleGetCapabilities()
439 send_message(label, false, std::move(response)); in HandleGetCapabilities()
445 uint8_t label, const std::shared_ptr<RegisterNotificationRequest>& pkt) { in HandleNotification() argument
450 send_message(label, false, std::move(response)); in HandleNotification()
460 weak_ptr_factory_.GetWeakPtr(), label, true)); in HandleNotification()
466 weak_ptr_factory_.GetWeakPtr(), label, true)); in HandleNotification()
473 weak_ptr_factory_.GetWeakPtr(), label, true)); in HandleNotification()
481 send_message(label, false, std::move(response)); in HandleNotification()
490 weak_ptr_factory_.GetWeakPtr(), label, true)); in HandleNotification()
496 weak_ptr_factory_.GetWeakPtr(), label, true)); in HandleNotification()
504 avail_players_changed_ = Notification(true, label); in HandleNotification()
508 send_message(label, false, std::move(response)); in HandleNotification()
514 weak_ptr_factory_.GetWeakPtr(), label, true)); in HandleNotification()
522 uids_changed_ = Notification(true, label); in HandleNotification()
525 send_message(label, false, std::move(response)); in HandleNotification()
533 send_message(label, false, std::move(response)); in HandleNotification()
545 // Find an open transaction label to prevent conflicts with other commands in RegisterVolumeChanged()
546 // that are in flight. We can not use the reserved label while the in RegisterVolumeChanged()
548 uint8_t label = MAX_TRANSACTION_LABEL; in RegisterVolumeChanged() local
552 label = i; in RegisterVolumeChanged()
557 if (label == MAX_TRANSACTION_LABEL) { in RegisterVolumeChanged()
562 send_message_cb_.Run(label, false, std::move(request)); in RegisterVolumeChanged()
566 uint8_t label, const std::shared_ptr<RegisterNotificationResponse>& pkt) { in HandleVolumeChanged() argument
573 active_labels_.erase(label); in HandleVolumeChanged()
581 active_labels_.erase(label); in HandleVolumeChanged()
620 uint8_t label = MAX_TRANSACTION_LABEL; in SetVolume() local
624 label = i; in SetVolume()
630 send_message_cb_.Run(label, false, std::move(request)); in SetVolume()
633 void Device::TrackChangedNotificationResponse(uint8_t label, bool interim, in TrackChangedNotificationResponse() argument
639 track_changed_ = Notification(true, label); in TrackChangedNotificationResponse()
651 active_labels_.erase(label); in TrackChangedNotificationResponse()
663 send_message_cb_.Run(label, false, std::move(response)); in TrackChangedNotificationResponse()
686 send_message_cb_.Run(label, false, std::move(response)); in TrackChangedNotificationResponse()
689 void Device::PlaybackStatusNotificationResponse(uint8_t label, bool interim, in PlaybackStatusNotificationResponse() argument
695 play_status_changed_ = Notification(true, label); in PlaybackStatusNotificationResponse()
714 send_message_cb_.Run(label, false, std::move(response)); in PlaybackStatusNotificationResponse()
717 active_labels_.erase(label); in PlaybackStatusNotificationResponse()
722 void Device::PlaybackPosNotificationResponse(uint8_t label, bool interim, in PlaybackPosNotificationResponse() argument
727 play_pos_changed_ = Notification(true, label); in PlaybackPosNotificationResponse()
741 send_message_cb_.Run(label, false, std::move(response)); in PlaybackPosNotificationResponse()
746 active_labels_.erase(label); in PlaybackPosNotificationResponse()
770 uint8_t label, bool interim, uint16_t curr_player, in AddressedPlayerNotificationResponse() argument
775 addr_player_changed_ = Notification(true, label); in AddressedPlayerNotificationResponse()
790 send_message_cb_.Run(label, false, std::move(response)); in AddressedPlayerNotificationResponse()
793 active_labels_.erase(label); in AddressedPlayerNotificationResponse()
805 uint8_t label = rejectNotification[i]->second; in RejectNotification() local
808 send_message_cb_.Run(label, false, std::move(response)); in RejectNotification()
809 active_labels_.erase(label); in RejectNotification()
814 void Device::GetPlayStatusResponse(uint8_t label, PlayStatus status) { in GetPlayStatusResponse() argument
820 send_message(label, false, std::move(response)); in GetPlayStatusResponse()
824 uint8_t label, std::shared_ptr<GetElementAttributesRequest> pkt, in GetElementAttributesResponse() argument
851 send_message(label, false, std::move(response)); in GetElementAttributesResponse()
854 void Device::MessageReceived(uint8_t label, std::shared_ptr<Packet> pkt) { in MessageReceived() argument
859 send_message(label, false, std::move(response)); in MessageReceived()
864 active_labels_.insert(label); in MessageReceived()
885 send_message(label, false, std::move(response)); in MessageReceived()
892 send_message(label, false, std::move(response)); in MessageReceived()
928 VendorPacketHandler(label, vendor_pkt); in MessageReceived()
933 void Device::HandlePlayItem(uint8_t label, in HandlePlayItem() argument
939 send_message(label, false, std::move(response)); in HandlePlayItem()
961 send_message(label, false, std::move(response)); in HandlePlayItem()
969 send_message(label, false, std::move(response)); in HandlePlayItem()
973 uint8_t label, std::shared_ptr<SetAddressedPlayerRequest> pkt, in HandleSetAddressedPlayer() argument
981 send_message(label, false, std::move(response)); in HandleSetAddressedPlayer()
987 send_message(label, false, std::move(response)); in HandleSetAddressedPlayer()
991 uint8_t label, std::vector<PlayerAttribute> attributes) { in ListPlayerApplicationSettingAttributesResponse() argument
1002 send_message(label, false, std::move(response)); in ListPlayerApplicationSettingAttributesResponse()
1006 uint8_t label, PlayerAttribute attribute, std::vector<uint8_t> values) { in ListPlayerApplicationSettingValuesResponse() argument
1028 send_message(label, false, std::move(response)); in ListPlayerApplicationSettingValuesResponse()
1032 uint8_t label, std::vector<PlayerAttribute> attributes, in GetPlayerApplicationSettingValueResponse() argument
1048 send_message(label, false, std::move(response)); in GetPlayerApplicationSettingValueResponse()
1051 void Device::SetPlayerApplicationSettingValueResponse(uint8_t label, in SetPlayerApplicationSettingValueResponse() argument
1057 send_message(label, false, std::move(response)); in SetPlayerApplicationSettingValueResponse()
1063 send_message(label, false, std::move(response)); in SetPlayerApplicationSettingValueResponse()
1066 void Device::BrowseMessageReceived(uint8_t label, in BrowseMessageReceived() argument
1071 send_message(label, false, std::move(response)); in BrowseMessageReceived()
1079 HandleSetBrowsedPlayer(label, in BrowseMessageReceived()
1083 HandleGetFolderItems(label, in BrowseMessageReceived()
1087 HandleChangePath(label, Packet::Specialize<ChangePathRequest>(pkt)); in BrowseMessageReceived()
1091 label, Packet::Specialize<GetItemAttributesRequest>(pkt)); in BrowseMessageReceived()
1095 label, Packet::Specialize<GetTotalNumberOfItemsRequest>(pkt)); in BrowseMessageReceived()
1101 send_message(label, true, std::move(response)); in BrowseMessageReceived()
1107 void Device::HandleGetFolderItems(uint8_t label, in HandleGetFolderItems() argument
1114 send_message(label, true, std::move(response)); in HandleGetFolderItems()
1124 weak_ptr_factory_.GetWeakPtr(), label, pkt)); in HandleGetFolderItems()
1130 weak_ptr_factory_.GetWeakPtr(), label, pkt)); in HandleGetFolderItems()
1135 weak_ptr_factory_.GetWeakPtr(), label, pkt)); in HandleGetFolderItems()
1141 send_message(label, true, std::move(response)); in HandleGetFolderItems()
1147 uint8_t label, std::shared_ptr<GetTotalNumberOfItemsRequest> pkt) { in HandleGetTotalNumberOfItems() argument
1152 send_message(label, true, std::move(response)); in HandleGetTotalNumberOfItems()
1162 weak_ptr_factory_.GetWeakPtr(), label)); in HandleGetTotalNumberOfItems()
1169 weak_ptr_factory_.GetWeakPtr(), label)); in HandleGetTotalNumberOfItems()
1174 weak_ptr_factory_.GetWeakPtr(), label)); in HandleGetTotalNumberOfItems()
1183 uint8_t label, uint16_t curr_player, std::vector<MediaPlayerInfo> list) { in GetTotalNumberOfItemsMediaPlayersResponse() argument
1188 send_message(label, true, std::move(builder)); in GetTotalNumberOfItemsMediaPlayersResponse()
1191 void Device::GetTotalNumberOfItemsVFSResponse(uint8_t label, in GetTotalNumberOfItemsVFSResponse() argument
1197 send_message(label, true, std::move(builder)); in GetTotalNumberOfItemsVFSResponse()
1201 uint8_t label, std::string curr_song_id, std::vector<SongInfo> list) { in GetTotalNumberOfItemsNowPlayingResponse() argument
1206 send_message(label, true, std::move(builder)); in GetTotalNumberOfItemsNowPlayingResponse()
1209 void Device::HandleChangePath(uint8_t label, in HandleChangePath() argument
1215 send_message(label, true, std::move(response)); in HandleChangePath()
1226 send_message(label, true, std::move(builder)); in HandleChangePath()
1241 send_message(label, true, std::move(builder)); in HandleChangePath()
1251 label, pkt)); in HandleChangePath()
1254 void Device::ChangePathResponse(uint8_t label, in ChangePathResponse() argument
1261 send_message(label, true, std::move(builder)); in ChangePathResponse()
1265 uint8_t label, std::shared_ptr<GetItemAttributesRequest> pkt) { in HandleGetItemAttributes() argument
1270 send_message(label, true, std::move(builder)); in HandleGetItemAttributes()
1280 send_message(label, true, std::move(builder)); in HandleGetItemAttributes()
1288 weak_ptr_factory_.GetWeakPtr(), label, pkt)); in HandleGetItemAttributes()
1298 weak_ptr_factory_.GetWeakPtr(), label, pkt)); in HandleGetItemAttributes()
1307 uint8_t label, std::shared_ptr<GetItemAttributesRequest> pkt, in GetItemAttributesNowPlayingResponse() argument
1352 send_message(label, true, std::move(builder)); in GetItemAttributesNowPlayingResponse()
1356 uint8_t label, std::shared_ptr<GetItemAttributesRequest> pkt, in GetItemAttributesVFSResponse() argument
1365 send_message(label, true, std::move(builder)); in GetItemAttributesVFSResponse()
1419 send_message(label, true, std::move(builder)); in GetItemAttributesVFSResponse()
1423 uint8_t label, std::shared_ptr<GetFolderItemsRequest> pkt, in GetMediaPlayerListResponse() argument
1430 send_message(label, true, std::move(no_items_rsp)); in GetMediaPlayerListResponse()
1456 send_message(label, true, std::move(builder)); in GetMediaPlayerListResponse()
1471 void Device::GetVFSListResponse(uint8_t label, in GetVFSListResponse() argument
1532 send_message(label, true, std::move(builder)); in GetVFSListResponse()
1536 uint8_t label, std::shared_ptr<GetFolderItemsRequest> pkt, in GetNowPlayingListResponse() argument
1573 send_message(label, true, std::move(builder)); in GetNowPlayingListResponse()
1577 uint8_t label, std::shared_ptr<SetBrowsedPlayerRequest> pkt) { in HandleSetBrowsedPlayer() argument
1582 send_message(label, true, std::move(response)); in HandleSetBrowsedPlayer()
1590 weak_ptr_factory_.GetWeakPtr(), label, pkt)); in HandleSetBrowsedPlayer()
1594 uint8_t label, std::shared_ptr<SetBrowsedPlayerRequest> pkt, bool success, in SetBrowsedPlayerResponse() argument
1602 send_message(label, true, std::move(response)); in SetBrowsedPlayerResponse()
1610 send_message(label, true, std::move(response)); in SetBrowsedPlayerResponse()
1622 send_message(label, true, std::move(response)); in SetBrowsedPlayerResponse()
1725 uint8_t label, bool interim, std::vector<PlayerAttribute> attributes, in PlayerSettingChangedNotificationResponse() argument
1740 player_setting_changed_ = Notification(true, label); in PlayerSettingChangedNotificationResponse()
1752 active_labels_.erase(label); in PlayerSettingChangedNotificationResponse()
1758 uint8_t label, bool interim, std::string curr_song_id, in HandleNowPlayingNotificationResponse() argument
1761 now_playing_changed_ = Notification(true, label); in HandleNowPlayingNotificationResponse()
1777 active_labels_.erase(label); in HandleNowPlayingNotificationResponse()