Home
last modified time | relevance | path

Searched refs:metadata_size (Results 1 – 22 of 22) sorted by relevance

/system/update_engine/payload_generator/
Dpayload_signer.cc95 uint64_t metadata_size, major_version; in AddSignatureBlobToPayload() local
102 &metadata_size, in AddSignatureBlobToPayload()
116 payload.erase(payload.begin() + metadata_size, in AddSignatureBlobToPayload()
117 payload.begin() + metadata_size + metadata_signature_size); in AddSignatureBlobToPayload()
118 payload.insert(payload.begin() + metadata_size, in AddSignatureBlobToPayload()
142 payload.size() - metadata_size - metadata_signature_size, in AddSignatureBlobToPayload()
152 payload.begin() + metadata_size); in AddSignatureBlobToPayload()
160 metadata_size = serialized_manifest.size() + manifest_offset; in AddSignatureBlobToPayload()
163 LOG(INFO) << "Updated metadata size: " << metadata_size; in AddSignatureBlobToPayload()
165 uint64_t signatures_offset = metadata_size + metadata_signature_size + in AddSignatureBlobToPayload()
[all …]
Dpayload_signer_unittest.cc133 uint64_t metadata_size; in DoWriteAndLoadPayloadTest() local
135 payload.WritePayload(payload_path, "/dev/null", "", &metadata_size)); in DoWriteAndLoadPayloadTest()
145 EXPECT_EQ(metadata_size, payload_metadata_blob.size()); in DoWriteAndLoadPayloadTest()
147 EXPECT_EQ(metadata_size, load_metadata_size); in DoWriteAndLoadPayloadTest()
226 uint64_t metadata_size; in TEST_F() local
228 payload.WritePayload(payload_path, "/dev/null", "", &metadata_size)); in TEST_F()
237 &metadata_size)); in TEST_F()
254 uint64_t metadata_size; in TEST_F() local
259 &metadata_size)); in TEST_F()
Dpayload_file.cc187 uint64_t metadata_size = in WritePayload() local
215 metadata_size += sizeof(metadata_signature_size); in WritePayload()
231 metadata_size, in WritePayload()
264 metadata_size, in WritePayload()
266 metadata_size + metadata_signature_size + manifest_.signatures_offset(), in WritePayload()
272 ReportPayloadUsage(metadata_size); in WritePayload()
273 *metadata_size_out = metadata_size; in WritePayload()
322 void PayloadFile::ReportPayloadUsage(uint64_t metadata_size) const { in ReportPayloadUsage()
337 metadata_size)); in ReportPayloadUsage()
338 total_size += metadata_size; in ReportPayloadUsage()
Ddelta_diff_generator.cc57 uint64_t* metadata_size) { in GenerateUpdatePayloadFile() argument
129 private_key_path, metadata_size)); in GenerateUpdatePayloadFile()
132 << "metadata size = " << *metadata_size; in GenerateUpdatePayloadFile()
Dpayload_signer.h86 const uint64_t metadata_size,
133 size_t metadata_size,
Ddelta_diff_generator.h42 uint64_t* metadata_size);
Dpayload_file.h79 void ReportPayloadUsage(uint64_t metadata_size) const;
Dgenerate_delta_main.cc599 uint64_t metadata_size; in Main() local
603 &metadata_size)) { in Main()
607 string metadata_size_string = std::to_string(metadata_size); in Main()
/system/update_engine/payload_consumer/
Dinstall_plan.h60 uint64_t metadata_size = 0; // size of the metadata member
70 return size == that.size && metadata_size == that.metadata_size &&
Ddelta_performer_integration_test.cc75 uint64_t metadata_size; member
542 &state->metadata_size)); in GenerateDeltaFile()
560 &state->metadata_size)); in GenerateDeltaFile()
566 &state->metadata_size)); in GenerateDeltaFile()
578 SignGeneratedPayload(state->delta_path, &state->metadata_size); in GenerateDeltaFile()
600 &state->metadata_size, in ApplyDeltaFile()
602 LOG(INFO) << "Metadata size: " << state->metadata_size; in ApplyDeltaFile()
613 &state->delta[state->metadata_size + manifest.signatures_offset()], in ApplyDeltaFile()
697 state->metadata_size)).WillOnce(Return(true)); in ApplyDeltaFile()
723 install_plan->payloads = {{.metadata_size = state->metadata_size, in ApplyDeltaFile()
[all …]
Ddelta_performer_unittest.cc167 payload_path, blob_path, private_key, &payload_.metadata_size)); in GeneratePayload()
234 payload_.metadata_size = expected_metadata_size; in DoMetadataSizeTest()
289 payload_.metadata_size, in DoMetadataSignatureTest()
320 EXPECT_EQ(payload_.metadata_size, performer_.GetMetadataSize()); in DoMetadataSignatureTest()
688 performer_.metadata_size_ = payload_.metadata_size; in TEST_F()
Dinstall_plan.cc71 payload.metadata_size, in Dump()
Ddelta_performer.cc524 if (payload_->metadata_size != metadata_size_) { in ParsePayloadMetadata()
526 << payload_->metadata_size in ParsePayloadMetadata()
543 if (payload_->metadata_size == metadata_size_) { in ParsePayloadMetadata()
549 << payload_->metadata_size in ParsePayloadMetadata()
/system/update_engine/scripts/update_payload/
Dpayload.py117 self.metadata_size = None
210 self.metadata_size = self.header.size + self.header.manifest_len
211 self.data_offset = self.metadata_size + self.header.metadata_signature_len
/system/update_engine/
Domaha_response.h46 uint64_t metadata_size = 0; member
Domaha_response_handler_action.cc100 .metadata_size = package.metadata_size, in PerformAction()
Dupdate_attempter_android.cc162 &payload.metadata_size)) { in ApplyPayload()
163 payload.metadata_size = 0; in ApplyPayload()
Domaha_request_action_unittest.cc589 EXPECT_EQ(11u, response.packages[0].metadata_size); in TEST_F()
593 EXPECT_EQ(22u, response.packages[1].metadata_size); in TEST_F()
618 EXPECT_EQ(11u, response.packages[0].metadata_size); in TEST_F()
623 EXPECT_EQ(33u, response.packages[1].metadata_size); in TEST_F()
647 EXPECT_EQ(11u, response.packages[0].metadata_size); in TEST_F()
651 EXPECT_EQ(33u, response.packages[1].metadata_size); in TEST_F()
679 EXPECT_EQ(11u, response.packages[0].metadata_size); in TEST_F()
684 EXPECT_EQ(22u, response.packages[1].metadata_size); in TEST_F()
688 EXPECT_EQ(33u, response.packages[2].metadata_size); in TEST_F()
Dpayload_state_unittest.cc70 .metadata_size = 558123, in SetupPayloadStateWith2Urls()
149 .metadata_size = 58123, in TEST()
204 .metadata_size = 558123, in TEST()
Domaha_request_action.cc847 base::StringToUint64(metadata_sizes[i], &out_package.metadata_size); in ParsePackage()
848 LOG(INFO) << "Payload metadata size = " << out_package.metadata_size in ParsePackage()
Dpayload_state.cc835 static_cast<uintmax_t>(package.metadata_size), in CalculateResponseSignature()
/system/extras/perfprofd/quipper/
Dperf_reader.cc1117 u64 metadata_offset, metadata_size; in ReadMetadata() local
1120 !ReadDataFromBuffer(data, sizeof(metadata_size), "metadata size", in ReadMetadata()
1121 &offset, &metadata_size)) { in ReadMetadata()
1125 if (data.size < metadata_offset + metadata_size) { in ReadMetadata()
1132 if (!ReadTracingMetadata(data, metadata_offset, metadata_size)) { in ReadMetadata()
1137 if (!ReadBuildIDMetadata(data, type, metadata_offset, metadata_size)) in ReadMetadata()
1147 if (!ReadStringMetadata(data, type, metadata_offset, metadata_size)) in ReadMetadata()
1151 if (!ReadUint32Metadata(data, type, metadata_offset, metadata_size)) in ReadMetadata()
1155 if (!ReadUint64Metadata(data, type, metadata_offset, metadata_size)) in ReadMetadata()
1161 if (!ReadCPUTopologyMetadata(data, type, metadata_offset, metadata_size)) in ReadMetadata()
[all …]