/system/bt/vendor_libs/test_vendor_lib/packets/hci/ |
D | command_packet_builder.cc | 28 : 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()
|
D | sco_packet_builder.cc | 29 : 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()
|
D | acl_packet_builder.cc | 31 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()
|
D | event_payload_builder.cc | 30 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()
|
D | le_meta_event_builder.cc | 29 : 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()
|
D | event_packet_builder.cc | 32 : 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 …]
|
D | command_packet_builder.h | 47 std::unique_ptr<BasePacketBuilder> payload_; variable
|
D | sco_packet_builder.h | 50 std::unique_ptr<BasePacketBuilder> payload_; variable
|
D | acl_packet_builder.h | 51 std::unique_ptr<BasePacketBuilder> payload_; variable
|
D | event_payload_builder.h | 68 std::vector<uint8_t> payload_; variable
|
/system/bt/gd/packet/ |
D | raw_builder.cc | 32 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()
|
D | packet_builder_unittest.cc | 198 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()
|
D | raw_builder.h | 69 std::vector<uint8_t> payload_; variable
|
/system/bt/vendor_libs/test_vendor_lib/packets/ |
D | raw_builder.cc | 30 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()
|
D | raw_builder.h | 68 std::vector<uint8_t> payload_; variable
|
/system/update_engine/payload_consumer/ |
D | download_action.cc | 90 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 …]
|
D | delta_performer_unittest.cc | 169 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 …]
|
D | delta_performer.cc | 198 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 …]
|
D | delta_performer.h | 77 payload_(payload), in DeltaPerformer() 295 InstallPlan::Payload* payload_{nullptr};
|
/system/update_engine/payload_generator/ |
D | payload_file_unittest.cc | 35 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/ |
D | avrcp_browse_packet.cc | 29 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()
|
D | vendor_packet.cc | 32 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()
|
D | avrcp_packet.cc | 33 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/ |
D | packet_builder_test.cc | 195 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/ |
D | packet_builder_test.cc | 195 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()
|