Lines Matching refs:item

64   for (const auto& item : items_) {  in size()  local
65 len += item.size(); in size()
89 for (const auto& item : items_) { in Serialize() local
90 PushMediaListItem(pkt, item); in Serialize()
96 bool GetFolderItemsResponseBuilder::AddMediaPlayer(MediaPlayerItem item) { in AddMediaPlayer() argument
99 if (size() + item.size() > mtu_) return false; in AddMediaPlayer()
101 items_.push_back(MediaListItem(item)); in AddMediaPlayer()
105 bool GetFolderItemsResponseBuilder::AddSong(MediaElementItem item) { in AddSong() argument
108 if (size() + item.size() > mtu_) return false; in AddSong()
110 items_.push_back(MediaListItem(item)); in AddSong()
114 bool GetFolderItemsResponseBuilder::AddFolder(FolderItem item) { in AddFolder() argument
117 if (size() + item.size() > mtu_) return false; in AddFolder()
119 items_.push_back(MediaListItem(item)); in AddFolder()
125 const MediaListItem& item) { in PushMediaListItem() argument
126 switch (item.type_) { in PushMediaListItem()
128 PushMediaPlayerItem(pkt, item.player_); in PushMediaListItem()
131 PushFolderItem(pkt, item.folder_); in PushMediaListItem()
134 PushMediaElementItem(pkt, item.song_); in PushMediaListItem()
141 const MediaPlayerItem& item) { in PushMediaPlayerItem() argument
143 uint16_t item_len = item.size() - 3; in PushMediaPlayerItem()
145 AddPayloadOctets2(pkt, base::ByteSwap(item.id_)); // Player ID in PushMediaPlayerItem()
159 if (item.browsable_) { in PushMediaPlayerItem()
175 uint16_t name_len = item.name_.size(); in PushMediaPlayerItem()
178 for (const uint8_t& byte : item.name_) { in PushMediaPlayerItem()
184 const std::shared_ptr<::bluetooth::Packet>& pkt, const FolderItem& item) { in PushFolderItem() argument
186 uint16_t item_len = item.size() - 3; in PushFolderItem()
188 AddPayloadOctets8(pkt, base::ByteSwap(item.uid_)); in PushFolderItem()
189 AddPayloadOctets1(pkt, item.folder_type_); in PushFolderItem()
190 AddPayloadOctets1(pkt, item.is_playable_ ? 0x01 : 0x00); in PushFolderItem()
193 uint16_t name_len = item.name_.size(); in PushFolderItem()
195 for (const uint8_t& byte : item.name_) { in PushFolderItem()
202 const MediaElementItem& item) { in PushMediaElementItem() argument
204 uint16_t item_len = item.size() - 3; in PushMediaElementItem()
206 AddPayloadOctets8(pkt, base::ByteSwap(item.uid_)); in PushMediaElementItem()
210 uint16_t name_len = item.name_.size(); in PushMediaElementItem()
212 for (const uint8_t& byte : item.name_) { in PushMediaElementItem()
216 AddPayloadOctets1(pkt, (uint8_t)item.attributes_.size()); in PushMediaElementItem()
217 for (const auto& entry : item.attributes_) { in PushMediaElementItem()