Home
last modified time | relevance | path

Searched refs:payload_ (Results 1 – 25 of 30) sorted by relevance

12

/system/bt/vendor_libs/test_vendor_lib/packets/hci/
Dcommand_packet_builder.cc28 : opcode_(opcode), payload_(std::move(payload)) {} in CommandPacketBuilder()
31 return sizeof(uint16_t) + sizeof(uint8_t) + payload_->size(); in size()
36 uint8_t payload_size = static_cast<uint8_t>(payload_->size()); in Serialize()
38 CHECK(static_cast<size_t>(payload_size) == payload_->size()) in Serialize()
39 << "Payload too large for a command packet: " << payload_->size(); in Serialize()
41 payload_->Serialize(it); in Serialize()
Dsco_packet_builder.cc29 : handle_(handle), packet_status_flags_(packet_status_flags), payload_(std::move(payload)) {} in ScoPacketBuilder()
32 return 2 * sizeof(uint16_t) + payload_->size(); in size()
37 uint8_t payload_size = payload_->size(); in Serialize()
39 CHECK(static_cast<size_t>(payload_size) == payload_->size()) in Serialize()
40 << "Payload too large for a SCO packet: " << payload_->size(); in Serialize()
42 payload_->Serialize(it); in Serialize()
Dacl_packet_builder.cc31 payload_(std::move(payload)) {} in AclPacketBuilder()
42 return 2 * sizeof(uint16_t) + payload_->size(); in size()
49 uint16_t payload_size = payload_->size(); in Serialize()
51 CHECK(static_cast<size_t>(payload_size) == payload_->size()) in Serialize()
52 << "Payload too large for an ACL packet: " << payload_->size(); in Serialize()
54 payload_->Serialize(it); in Serialize()
Devent_payload_builder.cc30 if (payload_.size() + octets > max_bytes_) return false; in AddPayloadOctets()
34 payload_.insert(payload_.end(), bytes.begin(), bytes.end()); in AddPayloadOctets()
61 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddPayloadAddress()
64 payload_.push_back(address.address[i]); in AddPayloadAddress()
94 return payload_.size() + num_bytes <= max_bytes_; in CanAddPayloadOctets()
Dle_meta_event_builder.cc29 : sub_event_code_(sub_event_code), payload_(std::make_unique<RawBuilder>()) {} in LeMetaEventBuilder()
32 : sub_event_code_(sub_event_code), payload_(std::move(payload)) {} in LeMetaEventBuilder()
131 return 1 + payload_->size(); // Add the sub_event_code in size()
138 payload_->Serialize(it); in Serialize()
143 CountedBuilder* temp_ptr = static_cast<CountedBuilder*>(payload_.get()); in AddBuilder()
Devent_packet_builder.cc32 : event_code_(event_code), payload_(std::make_unique<RawBuilder>()) {} in EventPacketBuilder()
35 : event_code_(event_code), payload_(std::move(payload)) {} in EventPacketBuilder()
604 LeMetaEventBuilder* meta_ptr = static_cast<LeMetaEventBuilder*>(payload_.get()); in AddLeAdvertisingReport()
751 return header_size + payload_->size(); in size()
759 payload_->Serialize(it); in Serialize()
763 return payload_->CanAddOctets(octets); in CanAddPayloadOctets()
767 return payload_->AddOctets(octets, bytes); in AddPayloadOctets()
771 return payload_->AddOctets(bytes); in AddPayloadOctets()
775 return payload_->AddOctets1(value); in AddPayloadOctets1()
779 return payload_->AddOctets2(value); in AddPayloadOctets2()
[all …]
Dcommand_packet_builder.h47 std::unique_ptr<BasePacketBuilder> payload_; variable
Dsco_packet_builder.h50 std::unique_ptr<BasePacketBuilder> payload_; variable
Dacl_packet_builder.h51 std::unique_ptr<BasePacketBuilder> payload_; variable
Devent_payload_builder.h68 std::vector<uint8_t> payload_; variable
/system/bt/gd/packet/
Draw_builder.cc32 if (payload_.size() + octets > max_bytes_) return false; in AddOctets()
36 payload_.insert(payload_.end(), bytes.begin(), bytes.end()); in AddOctets()
63 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddAddress()
66 payload_.push_back(address.address[i]); in AddAddress()
96 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
100 for (const auto& val : payload_) { in Serialize()
106 return payload_.size(); in size()
Dpacket_builder_unittest.cc198 size_t payload_size = (payload_ ? payload_->size() : 0); in size()
220 if (payload_) { in Serialize()
221 payload_->Serialize(it); in Serialize()
226 std::unique_ptr<BasePacketBuilder> payload_; member in bluetooth::packet::NestedBuilder
229 …NestedBuilder(std::unique_ptr<BasePacketBuilder> inner, uint8_t level) : payload_(std::move(inner)… in NestedBuilder()
Draw_builder.h69 std::vector<uint8_t> payload_; variable
/system/bt/vendor_libs/test_vendor_lib/packets/
Draw_builder.cc30 if (payload_.size() + octets > max_bytes_) return false; in AddOctets()
34 payload_.insert(payload_.end(), bytes.begin(), bytes.end()); in AddOctets()
61 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddAddress()
64 payload_.push_back(address.address[i]); in AddAddress()
94 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
98 for (const auto& val : payload_) { in Serialize()
104 return payload_.size(); in size()
Draw_builder.h68 std::vector<uint8_t> payload_; variable
/system/update_engine/payload_consumer/
Ddownload_action.cc90 if (!p2p_manager->FileShare(p2p_file_id_, payload_->size)) { in SetupP2PSharingFd()
196 if (!payload_) in PerformAction()
197 payload_ = &install_plan_.payloads[0]; in PerformAction()
213 payload_ == &install_plan_.payloads[resume_payload_index_]) { in StartDownloading()
228 if (!payload_->size) { in StartDownloading()
230 } else if (resume_offset < payload_->size) { in StartDownloading()
232 payload_->size - resume_offset); in StartDownloading()
235 if (payload_->size) { in StartDownloading()
236 http_fetcher_->AddRange(base_offset_, payload_->size); in StartDownloading()
252 payload_, in StartDownloading()
[all …]
Ddelta_performer_unittest.cc169 payload_.type = payload_type; in RunManifestValidation()
236 &payload_.metadata_size)); in GeneratePayload()
319 payload_.metadata_size = expected_metadata_size; in DoMetadataSizeTest()
358 payload_.metadata_signature.clear(); in DoMetadataSignatureTest()
364 payload_.metadata_signature = kBogusMetadataSignature1; in DoMetadataSignatureTest()
376 payload_.metadata_size, in DoMetadataSignatureTest()
378 &payload_.metadata_signature)); in DoMetadataSignatureTest()
379 EXPECT_FALSE(payload_.metadata_signature.empty()); in DoMetadataSignatureTest()
407 EXPECT_EQ(payload_.metadata_size, performer_.metadata_size_); in DoMetadataSignatureTest()
429 InstallPlan::Payload payload_; member in chromeos_update_engine::DeltaPerformerTest
[all …]
Ddelta_performer.cc198 size_t payload_size = payload_->size; in LogProgress()
232 size_t payload_size = payload_->size; in UpdateOverallProgress()
360 if (payload_->type == InstallPayloadType::kDelta && in OpenCurrentPartition()
417 if (payload_->type == InstallPayloadType::kFull || in OpenCurrentECCPartition()
471 return payload_->type == InstallPayloadType::kDelta in GetMinorVersion()
499 if (payload_->metadata_size != metadata_size_) { in ParsePayloadMetadata()
501 << payload_->metadata_size in ParsePayloadMetadata()
518 if (payload_->metadata_size == metadata_size_) { in ParsePayloadMetadata()
524 << payload_->metadata_size in ParsePayloadMetadata()
539 payload, payload_->metadata_signature, public_key); in ParsePayloadMetadata()
[all …]
Ddelta_performer.h77 payload_(payload), in DeltaPerformer()
295 InstallPlan::Payload* payload_{nullptr};
/system/update_engine/payload_generator/
Dpayload_file_unittest.cc35 PayloadFile payload_; member in chromeos_update_engine::PayloadFileTest
50 payload_.part_vec_.resize(2); in TEST_F()
61 payload_.part_vec_[0].aops = aops; in TEST_F()
65 payload_.part_vec_[1].aops = {aop}; in TEST_F()
67 EXPECT_TRUE(payload_.ReorderDataBlobs(orig_blobs.path(), new_blobs.path())); in TEST_F()
69 const vector<AnnotatedOperation>& part0_aops = payload_.part_vec_[0].aops; in TEST_F()
70 const vector<AnnotatedOperation>& part1_aops = payload_.part_vec_[1].aops; in TEST_F()
/system/bt/packet/avrcp/
Davrcp_browse_packet.cc29 builder->payload_ = std::move(payload); in MakeBuilder()
35 return BrowsePacket::kMinSize() + payload_->size(); in size()
42 PushHeader(pkt, payload_->size()); in Serialize()
44 return payload_->Serialize(pkt); in Serialize()
Dvendor_packet.cc32 builder->payload_ = std::move(payload); in MakeBuilder()
38 return VendorPacket::kMinSize() + payload_->size(); in size()
49 CHECK_LT(payload_->size(), size_t(0xFFFF)) in Serialize()
51 PushHeader(pkt, payload_->size()); in Serialize()
54 return payload_->Serialize(pkt); in Serialize()
Davrcp_packet.cc33 builder->payload_ = std::move(payload); in MakeBuilder()
40 return payload_->size() + Packet::kMinSize(); in size()
50 return payload_->Serialize(pkt); in Serialize()
/system/bt/vendor_libs/test_vendor_lib/packets/test/
Dpacket_builder_test.cc195 size_t payload_size = (payload_ ? payload_->size() : 0); in size()
217 if (payload_) { in Serialize()
218 payload_->Serialize(it); in Serialize()
223 std::unique_ptr<BasePacketBuilder> payload_; member in test_vendor_lib::packets::NestedBuilder
226 …NestedBuilder(std::unique_ptr<BasePacketBuilder> inner, uint8_t level) : payload_(std::move(inner)… in NestedBuilder()
/system/bt/vendor_libs/test_vendor_lib/test/
Dpacket_builder_test.cc195 size_t payload_size = (payload_ ? payload_->size() : 0); in size()
217 if (payload_) { in Serialize()
218 payload_->Serialize(it); in Serialize()
223 std::unique_ptr<BasePacketBuilder> payload_; member in test_vendor_lib::packets::NestedBuilder
226 …NestedBuilder(std::unique_ptr<BasePacketBuilder> inner, uint8_t level) : payload_(std::move(inner)… in NestedBuilder()

12