Lines Matching refs:pkt
72 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize() argument
73 ReserveSpace(pkt, size()); in Serialize()
75 BrowsePacketBuilder::PushHeader(pkt, size() - BrowsePacket::kMinSize()); in Serialize()
82 AddPayloadOctets1(pkt, (uint8_t)status_); // Status in Serialize()
85 AddPayloadOctets2(pkt, base::ByteSwap(uid_counter_)); in Serialize()
87 AddPayloadOctets2(pkt, base::ByteSwap(num_items)); in Serialize()
90 PushMediaListItem(pkt, item); in Serialize()
124 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushMediaListItem() argument
128 PushMediaPlayerItem(pkt, item.player_); in PushMediaListItem()
131 PushFolderItem(pkt, item.folder_); in PushMediaListItem()
134 PushMediaElementItem(pkt, item.song_); in PushMediaListItem()
140 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushMediaPlayerItem() argument
142 AddPayloadOctets1(pkt, 0x01); // Media Player Item in PushMediaPlayerItem()
144 AddPayloadOctets2(pkt, base::ByteSwap(item_len)); // Item length in PushMediaPlayerItem()
145 AddPayloadOctets2(pkt, base::ByteSwap(item.id_)); // Player ID in PushMediaPlayerItem()
146 AddPayloadOctets1(pkt, 0x01); // Player Type in PushMediaPlayerItem()
147 AddPayloadOctets4(pkt, 0x00000000); // Player Subtype in PushMediaPlayerItem()
149 pkt, 0x02); // Player Play Status // TODO: Add this as a passed field in PushMediaPlayerItem()
152 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
153 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
154 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
155 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
156 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
157 AddPayloadOctets1(pkt, 0xb7); in PushMediaPlayerItem()
158 AddPayloadOctets1(pkt, 0x01); in PushMediaPlayerItem()
160 AddPayloadOctets1(pkt, 0x0C); in PushMediaPlayerItem()
161 AddPayloadOctets1(pkt, 0x0a); in PushMediaPlayerItem()
163 AddPayloadOctets1(pkt, 0x04); in PushMediaPlayerItem()
164 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
166 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
167 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
168 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
169 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
170 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
171 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
172 AddPayloadOctets1(pkt, 0x00); in PushMediaPlayerItem()
174 AddPayloadOctets2(pkt, base::ByteSwap((uint16_t)0x006a)); in PushMediaPlayerItem()
176 AddPayloadOctets2(pkt, base::ByteSwap(name_len)); in PushMediaPlayerItem()
179 AddPayloadOctets1(pkt, byte); in PushMediaPlayerItem()
184 const std::shared_ptr<::bluetooth::Packet>& pkt, const FolderItem& item) { in PushFolderItem() argument
185 AddPayloadOctets1(pkt, 0x02); // Folder Item in PushFolderItem()
187 AddPayloadOctets2(pkt, base::ByteSwap(item_len)); 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()
191 AddPayloadOctets2(pkt, in PushFolderItem()
194 AddPayloadOctets2(pkt, base::ByteSwap(name_len)); in PushFolderItem()
196 AddPayloadOctets1(pkt, byte); in PushFolderItem()
201 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushMediaElementItem() argument
203 AddPayloadOctets1(pkt, 0x03); // Media Element Item in PushMediaElementItem()
205 AddPayloadOctets2(pkt, base::ByteSwap(item_len)); in PushMediaElementItem()
206 AddPayloadOctets8(pkt, base::ByteSwap(item.uid_)); in PushMediaElementItem()
207 AddPayloadOctets1(pkt, 0x00); // Media Type Audio in PushMediaElementItem()
208 AddPayloadOctets2(pkt, in PushMediaElementItem()
211 AddPayloadOctets2(pkt, base::ByteSwap(name_len)); in PushMediaElementItem()
213 AddPayloadOctets1(pkt, byte); in PushMediaElementItem()
216 AddPayloadOctets1(pkt, (uint8_t)item.attributes_.size()); in PushMediaElementItem()
218 AddPayloadOctets4(pkt, base::ByteSwap((uint32_t)entry.attribute())); in PushMediaElementItem()
219 AddPayloadOctets2(pkt, in PushMediaElementItem()
225 AddPayloadOctets2(pkt, base::ByteSwap(attr_len)); in PushMediaElementItem()
227 AddPayloadOctets1(pkt, byte); in PushMediaElementItem()
322 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize() argument
323 ReserveSpace(pkt, size()); in Serialize()
325 BrowsePacketBuilder::PushHeader(pkt, size() - BrowsePacket::kMinSize()); in Serialize()
327 AddPayloadOctets1(pkt, static_cast<uint8_t>(scope_)); in Serialize()
328 AddPayloadOctets4(pkt, base::ByteSwap(start_item_)); in Serialize()
329 AddPayloadOctets4(pkt, base::ByteSwap(end_item_)); in Serialize()
333 AddPayloadOctets1(pkt, 0xFF); in Serialize()
337 AddPayloadOctets1(pkt, requested_attrs_.size()); in Serialize()
339 AddPayloadOctets4(pkt, base::ByteSwap(static_cast<uint32_t>(attr))); in Serialize()