Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 173) sorted by relevance

1234567

/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc35 PartitionConfig* part = static_cast<PartitionConfig*>(user_data); in AvbDescriptorCallback() local
48 part->verity.hash_tree_algorithm = in AvbDescriptorCallback()
54 part->verity.hash_tree_salt.assign(salt, salt + hashtree.salt_len); in AvbDescriptorCallback()
57 part->fs_interface->GetBlockSize()); in AvbDescriptorCallback()
58 part->verity.hash_tree_data_extent = in AvbDescriptorCallback()
62 part->fs_interface->GetBlockSize()); in AvbDescriptorCallback()
63 part->verity.hash_tree_extent = ExtentForBytes( in AvbDescriptorCallback()
66 if (!part->disable_fec_computation) { in AvbDescriptorCallback()
67 part->verity.fec_data_extent = in AvbDescriptorCallback()
69 part->verity.fec_extent = ExtentForBytes( in AvbDescriptorCallback()
[all …]
Dpayload_file.cc100 Partition part; in AddPartition() local
101 part.cow_size = cow_size; in AddPartition()
102 part.name = new_conf.name; in AddPartition()
103 part.aops = std::move(aops); in AddPartition()
104 part.cow_merge_sequence = std::move(merge_sequence); in AddPartition()
105 part.postinstall = new_conf.postinstall; in AddPartition()
106 part.verity = new_conf.verity; in AddPartition()
107 part.version = new_conf.version; in AddPartition()
111 diff_utils::InitializePartitionInfo(old_conf, &part.old_info)); in AddPartition()
113 diff_utils::InitializePartitionInfo(new_conf, &part.new_info)); in AddPartition()
[all …]
Dpayload_generation_config_android_unittest.cc123 brillo::Blob part(kImageSize); in GetAVBPartition() local
124 memcpy(part.data() + kHashTreeOffset, kHashTree, sizeof(kHashTree)); in GetAVBPartition()
125 memcpy(part.data() + kFECOffset, kFEC, sizeof(kFEC)); in GetAVBPartition()
126 memcpy(part.data() + kVBMetaImageOffset, kVBMetaImage, sizeof(kVBMetaImage)); in GetAVBPartition()
127 memcpy(part.data() + kAVBFooterOffset, kAVBFooter, sizeof(kAVBFooter)); in GetAVBPartition()
128 return part; in GetAVBPartition()
145 brillo::Blob part = GetAVBPartition(); in TEST_F() local
146 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
163 brillo::Blob part = GetAVBPartition(); in TEST_F() local
164 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
[all …]
Dpayload_generation_config.cc111 for (PartitionConfig& part : partitions) { in LoadImageSize()
112 if (part.path.empty()) in LoadImageSize()
114 part.size = utils::FileSize(part.path); in LoadImageSize()
121 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig()
123 if (!store.GetBoolean("RUN_POSTINSTALL_" + part.name, &run_postinstall) || in LoadPostInstallConfig()
127 part.postinstall.run = true; in LoadPostInstallConfig()
128 store.GetString("POSTINSTALL_PATH_" + part.name, &part.postinstall.path); in LoadPostInstallConfig()
129 store.GetString("FILESYSTEM_TYPE_" + part.name, in LoadPostInstallConfig()
130 &part.postinstall.filesystem_type); in LoadPostInstallConfig()
131 store.GetBoolean("POSTINSTALL_OPTIONAL_" + part.name, in LoadPostInstallConfig()
[all …]
Ddelta_diff_utils_unittest.cc71 void CreatePartition(PartitionConfig* part, in CreatePartition() argument
75 part->path = part_file->path(); in CreatePartition()
78 part->fs_interface.reset(new FakeFilesystem(block_size, size / block_size)); in CreatePartition()
79 part->size = size; in CreatePartition()
87 bool InitializePartitionWithUniqueBlocks(const PartitionConfig& part, in InitializePartitionWithUniqueBlocks() argument
90 TEST_AND_RETURN_FALSE(part.size % block_size == 0); in InitializePartitionWithUniqueBlocks()
91 size_t num_blocks = part.size / block_size; in InitializePartitionWithUniqueBlocks()
92 brillo::Blob file_data(part.size); in InitializePartitionWithUniqueBlocks()
103 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
Dpayload_properties.cc118 [](const PartitionUpdate& part) { in LoadFromPayload() argument
119 return part.has_old_partition_info(); in LoadFromPayload()
Ddeflate_utils.cc268 bool PreprocessPartitionFiles(const PartitionConfig& part, in PreprocessPartitionFiles() argument
273 part.fs_interface->GetFiles(&tmp_files); in PreprocessPartitionFiles()
279 if (is_regular_file && IsSquashfsImage(part.path, file)) { in PreprocessPartitionFiles()
285 CopyExtentsToFile(part.path, file.extents, path.value(), kBlockSize)); in PreprocessPartitionFiles()
320 part.path, in PreprocessPartitionFiles()
Dgenerate_delta_main.cc643 for (PartitionConfig& part : payload_config.target.partitions) in Main()
644 CHECK(part.OpenFilesystem()); in Main()
645 for (PartitionConfig& part : payload_config.source.partitions) in Main()
646 CHECK(part.OpenFilesystem()); in Main()
659 for (const PartitionConfig& part : payload_config.source.partitions) { in Main() local
660 if (part.fs_interface && part.fs_interface->LoadSettings(&store) && in Main()
Ddeflate_utils.h33 bool PreprocessPartitionFiles(const PartitionConfig& part,
/system/update_engine/scripts/
Dbrillo_update_payload434 local part varname
435 for part in kernel root; do
436 varname="${partitions_array}[${part}]"
450 local part="$3"
458 if unzip -l "${image}" "${path}/${part}.img" >/dev/null; then
463 [[ -n "${path_in_zip}" ]] || die "Failed to find ${part}.img"
464 extract_file "${image}" "${path_in_zip}/${part}.img" "${part_file}"
470 local temp_sparse=$(create_tempfile "${part}.sparse.XXXXXX")
471 echo "Converting Android sparse image ${part}.img to RAW."
478 if unzip -l "${image}" "${path_in_zip}/${part}.map" > /dev/null; then
[all …]
Dsimulate_ota.py70 for part in payload.manifest.partitions:
71 name = part.partition_name
83 fp.truncate(part.new_partition_info.size)
88 part.partition_name for part in payload.manifest.partitions
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc116 InstallPlan::Partition& part = install_plan->partitions.emplace_back(); in AddFakePartition() local
117 part.name = name; in AddFakePartition()
118 part.target_path = target_part_.path(); in AddFakePartition()
119 part.readonly_target_path = part.target_path; in AddFakePartition()
120 part.target_size = PARTITION_SIZE; in AddFakePartition()
121 part.block_size = BLOCK_SIZE; in AddFakePartition()
122 part.source_path = source_part_.path(); in AddFakePartition()
123 part.source_size = PARTITION_SIZE; in AddFakePartition()
125 HashCalculator::RawHashOfFile(source_part_.path(), &part.source_hash)); in AddFakePartition()
127 HashCalculator::RawHashOfFile(target_part_.path(), &part.target_hash)); in AddFakePartition()
[all …]
Dpostinstall_runner_action_unittest.cc195 InstallPlan::Partition part; in RunPostinstallAction() local
196 part.name = "part"; in RunPostinstallAction()
197 part.target_path = device_path; in RunPostinstallAction()
198 part.readonly_target_path = device_path; in RunPostinstallAction()
199 part.run_postinstall = true; in RunPostinstallAction()
200 part.postinstall_path = postinstall_program; in RunPostinstallAction()
202 install_plan.partitions = {part}; in RunPostinstallAction()
360 InstallPlan::Partition part; in TEST_F() local
361 part.name = "part"; in TEST_F()
362 part.target_path = "/dev/null"; in TEST_F()
[all …]
Ddelta_performer_unittest.cc682 auto part = manifest.add_partitions(); in TEST_F() local
683 part->set_partition_name(part_name); in TEST_F()
684 part->mutable_new_partition_info(); in TEST_F()
698 auto part = manifest.add_partitions(); in TEST_F() local
699 part->set_partition_name(part_name); in TEST_F()
700 part->mutable_old_partition_info(); in TEST_F()
701 part->mutable_new_partition_info(); in TEST_F()
715 auto part = manifest.add_partitions(); in TEST_F() local
716 part->set_partition_name(part_name); in TEST_F()
717 part->mutable_old_partition_info(); in TEST_F()
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp102 const tinyxml2::XMLElement* part = handle.FirstChildElement("part").ToElement(); in ExtractPartitions() local
103 while (part) { in ExtractPartitions()
105 const std::string name = XMLAttribute(part, "value"); in ExtractPartitions()
106 const std::string test = XMLAttribute(part, "test"); in ExtractPartitions()
107 if (XMLAssert(!name.empty(), part, "The name of a partition can not be empty") || in ExtractPartitions()
108 XMLAssert(XMLYesNo(part, "slots", &part_info.slots), part, in ExtractPartitions()
110 XMLAssert(XMLYesNo(part, "hashable", &part_info.hashable, true), part, in ExtractPartitions()
112 XMLAssert(XMLYesNo(part, "parsed", &part_info.parsed), part, in ExtractPartitions()
117 if (XMLAssert(allowed, part, "The test attribute must be 'yes' 'no-writes' or 'no'")) in ExtractPartitions()
119 if (XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPartitions()
[all …]
Dmain.cpp100 bool PartitionHash(FastBootDriver* fb, const std::string& part, std::string* hash, int* retcode, in PartitionHash() argument
108 const std::string cmd = config.checksum + ' ' + part; in PartitionHash()
426 std::string part(std::get<0>(p)); in TEST_F() local
429 EXPECT_EQ(fb->GetVar("partition-type:" + part, &resp), SUCCESS); in TEST_F()
430 EXPECT_NE(allowed.find(resp), allowed.end()) << "getvar:partition-type:" + part << " was '" in TEST_F()
432 const std::string cmd = "partition-size:" + part; in TEST_F()
464 std::string part(std::get<0>(p)); in TEST_F() local
468 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F()
480 EXPECT_EQ(fb->GetVar("has-slot:" + part, &var), SUCCESS) in TEST_F()
481 << "'getvar:has-slot:" << part << "' failed"; in TEST_F()
[all …]
DREADME.md73 partitions. Each device partition has should be put inside a `<part/>` element.
74 The `<part/>` element supports the following attributes:
89 <part value="boot" slots="yes" test="yes" hashable="yes" parsed="yes"/>
90 <part value="modem" slots="yes" test="yes" hashable="yes"/>
91 <part value="userdata" slots="no" test="yes" hashable="no"/>
101 partition. These pseudo partitions should be listed inside a `<part></part>`
102 element pair. Each element `<part>` has a mandatory attribute `value`,
105 Additionally, inside the `<part></part>` element pair, one should list
113 <part value="bootloader" slots="yes">
121 </part>
[all …]
/system/core/libdiskconfig/
Ddiskconfig.c348 struct part_info *part = &dinfo->part_lst[cnt]; in validate() local
349 if (part->len_kb != (uint32_t)-1) { in validate()
350 total_size += part->len_kb * 1024; in validate()
351 } else if (part->len_kb == 0) { in validate()
352 ALOGE("Zero-size partition '%s' is invalid.", part->name); in validate()
363 if ((part->type != PC_PART_TYPE_LINUX) && in validate()
364 (part->type != PC_PART_TYPE_FAT32)) { in validate()
366 "'%s'\n", part->type, part->name); in validate()
462 struct part_info *part; in dump_disk_config() local
485 part = &dinfo->part_lst[cnt]; in dump_disk_config()
[all …]
/system/update_engine/scripts/update_payload/
Dchecker.py629 for part in manifest.partitions:
630 name = part.partition_name
632 part, 'old_partition_info', report)
634 part, 'new_partition_info', report, 'manifest.partitions')
637 for _, part in common.CROS_PARTITIONS:
638 self._CheckElemNotPresent(manifest, 'old_%s_info' % part, 'manifest')
639 self._CheckElemNotPresent(manifest, 'new_%s_info' % part, 'manifest')
643 old_part_msgs = [part.msg for part in self.old_part_info.values() if part]
647 is_delta = any(part and part.msg for part in self.old_part_info.values())
655 for part, (msg, part_report) in self.old_part_info.items():
[all …]
Dapplier.py591 for part in manifest.partitions:
592 name = part.partition_name
593 new_part_info[name] = part.new_partition_info
594 old_part_info[name] = part.old_partition_info
595 install_operations.append((name, part.operations))
/system/incremental_delivery/incfs/
Dpath.cpp94 auto part = path.substr(start, end - start); in normalize() local
95 if (part.empty() || part == "."sv) { in normalize()
98 if (part == ".."sv) { in normalize()
111 result += part; in normalize()
/system/update_engine/update_payload_key/
DREADME2 baked into the system image as part of update_engine install.
/system/tools/aidl/build/
Daidl_rust_glue.py66 for part in in_path.parts[:-1]:
67 node = node.nested[part]
/system/chre/host/msm/daemon/
DREADME.md5 proprietary header files distributed as part of the Hexagon SDK. Therefore, it
/system/timezone/output_data/android/
DAndroid.bp27 // never be shipped by default (i.e. should never be part of
43 // never be shipped by default (i.e. should never be part of

1234567