Home
last modified time | relevance | path

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

/system/core/gatekeeperd/
DGateKeeperResponse.cpp37 payload_ = {}; in readFromParcel()
49 payload_.resize(length); in readFromParcel()
50 std::copy(buf, buf + length, payload_.data()); in readFromParcel()
65 out->writeInt32(payload_.size()); in writeToParcel()
66 if (payload_.size() != 0) { in writeToParcel()
67 out->writeInt32(payload_.size()); in writeToParcel()
68 uint8_t* buf = reinterpret_cast<uint8_t*>(out->writeInplace(payload_.size())); in writeToParcel()
70 LOG(ERROR) << "writeInplace returned null buffer for length " << payload_.size(); in writeToParcel()
73 std::copy(payload_.begin(), payload_.end(), buf); in writeToParcel()
/system/bt/gd/packet/
Draw_builder.cc31 RawBuilder::RawBuilder(std::vector<uint8_t> vec) : payload_(std::move(vec)) {} in RawBuilder()
34 if (payload_.size() + octets > max_bytes_) return false; in AddOctets()
38 payload_.insert(payload_.end(), bytes.begin(), bytes.end()); in AddOctets()
65 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddAddress()
68 payload_.push_back(address.address[i]); in AddAddress()
98 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
102 for (const auto& val : payload_) { in Serialize()
108 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.h70 std::vector<uint8_t> payload_; variable
/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/update_engine/payload_consumer/
Ddownload_action.cc86 if (!p2p_manager->FileShare(p2p_file_id_, payload_->size)) { in SetupP2PSharingFd()
192 if (!payload_) in PerformAction()
193 payload_ = &install_plan_.payloads[0]; in PerformAction()
245 payload_, in StartDownloading()
251 payload_ == &install_plan_.payloads[resume_payload_index_]) { in StartDownloading()
267 payload_, in StartDownloading()
282 if (!payload_->size) { in StartDownloading()
284 } else if (resume_offset < payload_->size) { in StartDownloading()
286 payload_->size - resume_offset); in StartDownloading()
289 if (payload_->size) { in StartDownloading()
[all …]
Ddelta_performer_unittest.cc176 payload_.type = payload_type; in RunManifestValidation()
243 &payload_.metadata_size)); in GeneratePayload()
291 payload_.size = payload_data.size(); in ApplyPayloadToData()
327 payload_.metadata_size = expected_metadata_size; in DoMetadataSizeTest()
328 payload_.size = actual_metadata_size + 1; in DoMetadataSizeTest()
359 payload_.size = payload.size(); in DoMetadataSignatureTest()
370 payload_.metadata_signature.clear(); in DoMetadataSignatureTest()
379 payload_.metadata_signature = kBogusMetadataSignature1; in DoMetadataSignatureTest()
391 payload_.metadata_size, in DoMetadataSignatureTest()
393 &payload_.metadata_signature)); in DoMetadataSignatureTest()
[all …]
Ddelta_performer.cc160 size_t payload_size = payload_->size; in LogProgress()
194 size_t payload_size = payload_->size; in UpdateOverallProgress()
324 payload_->type == InstallPayloadType::kDelta; in OpenCurrentPartition()
381 if (payload_->type == InstallPayloadType::kFull) in OpenCurrentECCPartition()
434 return payload_->type == InstallPayloadType::kDelta in GetMinorVersion()
462 if (payload_->metadata_size != metadata_size_) { in ParsePayloadMetadata()
464 << payload_->metadata_size in ParsePayloadMetadata()
477 if (metadata_size_ + metadata_signature_size_ > payload_->size) { in ParsePayloadMetadata()
481 << "(" << payload_->size << ")"; in ParsePayloadMetadata()
496 if (payload_->metadata_size == metadata_size_) { in ParsePayloadMetadata()
[all …]
Ddelta_performer.h80 payload_(payload), in DeltaPerformer()
328 InstallPlan::Payload* payload_{nullptr};
Ddownload_action.h142 InstallPlan::Payload* payload_{nullptr};
/system/core/gatekeeperd/include/gatekeeper/
DGateKeeperResponse.h38 payload_(std::move(payload)), in response_code_()
58 const std::vector<uint8_t>& payload() const { return payload_; } in payload()
60 void payload(std::vector<uint8_t> payload) { payload_ = payload; } in payload()
77 std::vector<uint8_t> payload_; variable
/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()
Davrcp_browse_packet.h45 std::unique_ptr<::bluetooth::PacketBuilder> payload_; variable
Davrcp_packet.h49 std::unique_ptr<::bluetooth::PacketBuilder> payload_; variable