Home
last modified time | relevance | path

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

12

/system/update_engine/payload_generator/
Dpayload_signer.cc104 uint64_t metadata_size = payload_metadata.GetMetadataSize(); in AddSignatureBlobToPayload() local
114 payload.erase(payload.begin() + metadata_size, in AddSignatureBlobToPayload()
115 payload.begin() + metadata_size + metadata_signature_size); in AddSignatureBlobToPayload()
116 payload.insert(payload.begin() + metadata_size, in AddSignatureBlobToPayload()
142 payload.size() - metadata_size - metadata_signature_size, in AddSignatureBlobToPayload()
151 payload.begin() + metadata_size); in AddSignatureBlobToPayload()
159 metadata_size = serialized_manifest.size() + manifest_offset; in AddSignatureBlobToPayload()
162 LOG(INFO) << "Updated metadata size: " << metadata_size; in AddSignatureBlobToPayload()
165 metadata_size + metadata_signature_size + manifest.signatures_offset(); in AddSignatureBlobToPayload()
173 *out_metadata_size = metadata_size; in AddSignatureBlobToPayload()
[all …]
Dpayload_file.cc203 uint64_t metadata_size = in WritePayload() local
228 metadata_size += sizeof(metadata_signature_size); in WritePayload()
242 payload_file, metadata_size, &metadata_hash)); in WritePayload()
273 metadata_size, in WritePayload()
275 metadata_size + metadata_signature_size + manifest_.signatures_offset(), in WritePayload()
281 ReportPayloadUsage(metadata_size); in WritePayload()
282 *metadata_size_out = metadata_size; in WritePayload()
330 void PayloadFile::ReportPayloadUsage(uint64_t metadata_size) const { in ReportPayloadUsage()
346 object_counts[DeltaObject("<manifest-metadata>", -1, metadata_size)] = 1; in ReportPayloadUsage()
347 total_size += metadata_size; in ReportPayloadUsage()
Dpayload_signer_unittest.cc175 uint64_t metadata_size; in TEST_F() local
177 payload_file.path(), "/dev/null", "", &metadata_size)); in TEST_F()
188 &metadata_size)); in TEST_F()
202 uint64_t metadata_size; in TEST_F() local
207 &metadata_size)); in TEST_F()
Dpayload_properties_unittest.cc93 uint64_t metadata_size; in SetUp() local
95 payload_file_.path(), data_file.path(), "", &metadata_size)); in SetUp()
107 R"("metadata_size":165,)" in TEST_F()
Dpayload_signer.h69 const uint64_t metadata_size,
116 size_t metadata_size,
Ddelta_diff_generator.h42 uint64_t* metadata_size);
Ddelta_diff_generator.cc165 uint64_t* metadata_size) { in GenerateUpdatePayloadFile() argument
252 output_path, data_file.path(), private_key_path, metadata_size)); in GenerateUpdatePayloadFile()
255 << "metadata size = " << *metadata_size; in GenerateUpdatePayloadFile()
Dpayload_file.h81 void ReportPayloadUsage(uint64_t metadata_size) const;
Dgenerate_delta_main.cc710 uint64_t metadata_size; in Main() local
712 payload_config, FLAGS_out_file, FLAGS_private_key, &metadata_size)) { in Main()
716 string metadata_size_string = std::to_string(metadata_size); in Main()
/system/update_engine/scripts/update_payload/
Dpayload.py141 self.metadata_size = None
235 self.metadata_size = self.header.size + self.header.manifest_len
236 self.data_offset = self.metadata_size + self.header.metadata_signature_len
260 metadata_size=0, report_out_file=None, assert_type=None, argument
287 metadata_size=metadata_size,
Dchecker.py1161 def Run(self, pubkey_file_name=None, metadata_sig_file=None, metadata_size=0, argument
1188 if metadata_size and self.payload.metadata_size != metadata_size:
1190 'vs given(%d)' % (self.payload.metadata_size,
1191 metadata_size))
/system/extras/partition_tools/
Dlpmake.cc158 static uint64_t CalculateBlockDeviceSize(uint32_t alignment, uint32_t metadata_size, in CalculateBlockDeviceSize() argument
161 (LP_METADATA_GEOMETRY_SIZE + metadata_size) * 2) + in CalculateBlockDeviceSize()
192 uint32_t metadata_size = 0; in main() local
227 if (!android::base::ParseUint(optarg, &metadata_size)) { in main()
341 blockdevice_size = CalculateBlockDeviceSize(alignment, metadata_size, partitions); in main()
352 if (!metadata_size) { in main()
381 MetadataBuilder::New(block_devices, super_name, metadata_size, metadata_slots); in main()
/system/update_engine/
Ddownload_action_android_unittest.cc113 uint64_t metadata_size; in TEST_F() local
117 manifest_file.path(), blob_file.path(), private_key, &metadata_size); in TEST_F()
123 data.resize(metadata_size + signature_blob_length); in TEST_F()
130 .WillRepeatedly(DoAll(SetArgPointee<1>(metadata_size), Return(true))); in TEST_F()
/system/update_engine/payload_consumer/
Dinstall_plan.h62 uint64_t metadata_size = 0; // size of the metadata member
75 metadata_size == that.metadata_size &&
Ddelta_performer_integration_test.cc92 uint64_t metadata_size; member
587 &state->metadata_size)); in GenerateDeltaFile()
608 signature_size, state->delta_file->path(), &state->metadata_size)); in GenerateDeltaFile()
614 signature_size, state->delta_file->path(), &state->metadata_size)); in GenerateDeltaFile()
626 SignGeneratedPayload(state->delta_file->path(), &state->metadata_size); in GenerateDeltaFile()
649 state->metadata_size = payload_metadata.GetMetadataSize(); in ApplyDeltaFile()
650 LOG(INFO) << "Metadata size: " << state->metadata_size; in ApplyDeltaFile()
665 &state->delta[state->metadata_size + state->metadata_signature_size + in ApplyDeltaFile()
741 EXPECT_CALL(prefs, SetInt64(kPrefsManifestMetadataSize, state->metadata_size)) in ApplyDeltaFile()
764 state->metadata_size))) in ApplyDeltaFile()
[all …]
Ddelta_performer_fuzzer.cc68 .metadata_size = data_provider.ConsumeIntegralInRange<uint64_t>(0, 1000), in FuzzDeltaPerformer()
Dinstall_plan.cc138 {"metadata_size", base::NumberToString(payload.metadata_size)}, in ToString()
Ddelta_performer_unittest.cc251 &payload_.metadata_size)); in GeneratePayload()
343 payload_.metadata_size = expected_metadata_size; in DoMetadataSizeTest()
407 payload_.metadata_size, in DoMetadataSignatureTest()
432 EXPECT_EQ(payload_.metadata_size, performer_.metadata_size_); in DoMetadataSignatureTest()
877 payload_.metadata_size = manifest_offset + manifest_size; in TEST_F()
/system/media/audio_utils/fuzz/sndfile_fuzzer/
Dsndfile_fuzzer.cpp79 size_t metadata_size = sizeof(desired_frame_count) + sizeof(input_format); in LLVMFuzzerTestOneInput() local
80 if (size < metadata_size) { in LLVMFuzzerTestOneInput()
/system/update_engine/scripts/
Dpaycheck.py151 args.part_sizes is not None or args.metadata_size)
229 metadata_size=int(args.metadata_size),
Dupdate_device.py283 metadata_size=payload.metadata_size,
/system/update_engine/cros/
Domaha_response.h47 uint64_t metadata_size = 0; member
Domaha_response_handler_action.cc105 .metadata_size = package.metadata_size, in PerformAction()
Dpayload_state_unittest.cc72 .metadata_size = 558123, in SetupPayloadStateWith2Urls()
157 .metadata_size = 58123, in TEST_F()
209 .metadata_size = 558123, in TEST_F()
1611 .metadata_size = 58123, in TEST_F()
1616 .metadata_size = 58123, in TEST_F()
1640 .metadata_size = 58123, in TEST_F()
1661 .metadata_size = 58123, in TEST_F()
1684 .metadata_size = 58123, in TEST_F()
1692 .metadata_size = 58123, in TEST_F()
1727 .metadata_size = 58123, in TEST_F()
/system/update_engine/aosp/
Dupdate_attempter_android.cc215 &payload.metadata_size)) { in ApplyPayload()
216 payload.metadata_size = 0; in ApplyPayload()
455 uint64_t metadata_size = payload_metadata.GetMetadataSize() + in VerifyPayloadParseManifest() local
457 if (metadata_size < kMaxPayloadHeaderSize || in VerifyPayloadParseManifest()
458 metadata_size > in VerifyPayloadParseManifest()
463 "Invalid metadata size: " + std::to_string(metadata_size)); in VerifyPayloadParseManifest()
465 metadata.resize(metadata_size); in VerifyPayloadParseManifest()

12