Home
last modified time | relevance | path

Searched refs:metadata_size (Results 1 – 21 of 21) 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.cc186 uint64_t metadata_size = in WritePayload() local
214 metadata_size += sizeof(metadata_signature_size); in WritePayload()
230 metadata_size, in WritePayload()
263 metadata_size, in WritePayload()
265 metadata_size + metadata_signature_size + manifest_.signatures_offset(), in WritePayload()
271 ReportPayloadUsage(metadata_size); in WritePayload()
272 *metadata_size_out = metadata_size; in WritePayload()
323 void PayloadFile::ReportPayloadUsage(uint64_t metadata_size) const { in ReportPayloadUsage()
338 metadata_size)); in ReportPayloadUsage()
339 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.cc588 uint64_t metadata_size; in Main() local
592 &metadata_size)) { in Main()
596 string metadata_size_string = std::to_string(metadata_size); in Main()
/system/update_engine/payload_consumer/
Dinstall_plan.cc48 (metadata_size == that.metadata_size) && in operator ==()
79 << ", metadata size: " << metadata_size in Dump()
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->metadata_size = state->metadata_size; in ApplyDeltaFile()
[all …]
Dinstall_plan.h61 uint64_t metadata_size{0}; // size of the metadata
Ddelta_performer_unittest.cc221 payload_path, blob_path, private_key, &install_plan_.metadata_size)); in GeneratePayload()
288 install_plan_.metadata_size = expected_metadata_size; in DoMetadataSizeTest()
343 install_plan_.metadata_size, in DoMetadataSignatureTest()
374 EXPECT_EQ(install_plan_.metadata_size, performer_.GetMetadataSize()); in DoMetadataSignatureTest()
750 performer_.metadata_size_ = install_plan_.metadata_size; in TEST_F()
Ddelta_performer.cc522 if (install_plan_->metadata_size != metadata_size_) { in ParsePayloadMetadata()
524 << install_plan_->metadata_size in ParsePayloadMetadata()
541 if (install_plan_->metadata_size == metadata_size_) { in ParsePayloadMetadata()
547 << install_plan_->metadata_size in ParsePayloadMetadata()
/system/update_engine/
Domaha_response.h50 off_t metadata_size = 0; member
Domaha_response_handler_action.cc90 install_plan_.metadata_size = response.metadata_size; in PerformAction()
Dupdate_attempter_android.cc156 &install_plan_.metadata_size)) { in ApplyPayload()
157 install_plan_.metadata_size = 0; in ApplyPayload()
Dpayload_state_unittest.cc71 response->metadata_size = 558123; in SetupPayloadStateWith2Urls()
152 response.metadata_size = 58123; in TEST()
205 response.metadata_size = 558123; in TEST()
Dpayload_state.cc824 static_cast<uintmax_t>(response_.metadata_size), in CalculateResponseSignature()
Domaha_request_action.cc905 output_object->metadata_size = ParseInt(attrs[kTagMetadataSize]); in ParseParams()
/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/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 …]