Home
last modified time | relevance | path

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

123456

/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 part->verity.fec_data_extent = in AvbDescriptorCallback()
68 part->verity.fec_extent = ExtentForBytes( in AvbDescriptorCallback()
70 part->verity.fec_roots = hashtree.fec_num_roots; in AvbDescriptorCallback()
[all …]
Dpayload_file.cc96 Partition part; in AddPartition() local
97 part.name = new_conf.name; in AddPartition()
98 part.aops = aops; in AddPartition()
99 part.postinstall = new_conf.postinstall; in AddPartition()
100 part.verity = new_conf.verity; in AddPartition()
104 diff_utils::InitializePartitionInfo(old_conf, &part.old_info)); in AddPartition()
106 diff_utils::InitializePartitionInfo(new_conf, &part.new_info)); in AddPartition()
107 part_vec_.push_back(std::move(part)); in AddPartition()
124 for (const auto& part : part_vec_) { in WritePayload() local
125 for (const auto& aop : part.aops) { in WritePayload()
[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()
146 brillo::Blob part = GetAVBPartition(); in TEST_F() local
147 test_utils::WriteFileVector(temp_file_.path(), part); in TEST_F()
165 brillo::Blob part = GetAVBPartition(); in TEST_F() local
166 part[kHashTreeOffset] ^= 1; // flip one bit in TEST_F()
[all …]
Dpayload_generation_config.cc102 for (PartitionConfig& part : partitions) { in LoadImageSize()
103 if (part.path.empty()) in LoadImageSize()
105 part.size = utils::FileSize(part.path); in LoadImageSize()
112 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig()
114 if (!store.GetBoolean("RUN_POSTINSTALL_" + part.name, &run_postinstall) || in LoadPostInstallConfig()
118 part.postinstall.run = true; in LoadPostInstallConfig()
119 store.GetString("POSTINSTALL_PATH_" + part.name, &part.postinstall.path); in LoadPostInstallConfig()
120 store.GetString("FILESYSTEM_TYPE_" + part.name, in LoadPostInstallConfig()
121 &part.postinstall.filesystem_type); in LoadPostInstallConfig()
122 store.GetBoolean("POSTINSTALL_OPTIONAL_" + part.name, in LoadPostInstallConfig()
[all …]
Ddeflate_utils.cc259 bool PreprocessPartitionFiles(const PartitionConfig& part, in PreprocessPartitionFiles() argument
264 part.fs_interface->GetFiles(&tmp_files); in PreprocessPartitionFiles()
268 if (IsSquashfsImage(part.path, file)) { in PreprocessPartitionFiles()
274 CopyExtentsToFile(part.path, file.extents, path.value(), kBlockSize)); in PreprocessPartitionFiles()
308 part.path, in PreprocessPartitionFiles()
Dgenerate_delta_main.cc611 for (PartitionConfig& part : payload_config.target.partitions) in Main()
612 CHECK(part.OpenFilesystem()); in Main()
613 for (PartitionConfig& part : payload_config.source.partitions) in Main()
614 CHECK(part.OpenFilesystem()); in Main()
627 for (const PartitionConfig& part : payload_config.source.partitions) { in Main() local
628 if (part.fs_interface && part.fs_interface->LoadSettings(&store) && in Main()
Ddelta_diff_utils_unittest.cc71 void CreatePartition(PartitionConfig* part, in CreatePartition() argument
76 ASSERT_TRUE(utils::MakeTempFile(pattern.c_str(), &part->path, &fd)); in CreatePartition()
79 part->fs_interface.reset(new FakeFilesystem(block_size, size / block_size)); in CreatePartition()
80 part->size = size; in CreatePartition()
88 bool InitializePartitionWithUniqueBlocks(const PartitionConfig& part, in InitializePartitionWithUniqueBlocks() argument
91 TEST_AND_RETURN_FALSE(part.size % block_size == 0); in InitializePartitionWithUniqueBlocks()
92 size_t num_blocks = part.size / block_size; in InitializePartitionWithUniqueBlocks()
93 brillo::Blob file_data(part.size); in InitializePartitionWithUniqueBlocks()
104 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
Ddeflate_utils.h33 bool PreprocessPartitionFiles(const PartitionConfig& part,
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc123 InstallPlan::Partition part; in DoTest() local
124 part.name = "part"; in DoTest()
125 part.target_size = kLoopFileSize - (hash_fail ? 1 : 0); in DoTest()
126 part.target_path = a_dev; in DoTest()
127 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest()
131 part.source_size = kLoopFileSize; in DoTest()
132 part.source_path = a_dev; in DoTest()
133 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
137 install_plan.partitions = {part}; in DoTest()
240 InstallPlan::Partition part; in TEST_F() local
[all …]
Dpostinstall_runner_action_unittest.cc177 InstallPlan::Partition part; in RunPostinstallAction() local
178 part.name = "part"; in RunPostinstallAction()
179 part.target_path = device_path; in RunPostinstallAction()
180 part.run_postinstall = true; in RunPostinstallAction()
181 part.postinstall_path = postinstall_program; in RunPostinstallAction()
183 install_plan.partitions = {part}; in RunPostinstallAction()
/system/update_engine/scripts/
Dbrillo_update_payload390 local part varname
391 for part in kernel root; do
392 varname="${partitions_array}[${part}]"
406 local part="$3"
414 if unzip -l "${image}" "${path}/${part}.img" >/dev/null; then
419 [[ -n "${path_in_zip}" ]] || die "Failed to find ${part}.img"
420 unzip -p "${image}" "${path_in_zip}/${part}.img" >"${part_file}"
426 local temp_sparse=$(create_tempfile "${part}.sparse.XXXXXX")
427 echo "Converting Android sparse image ${part}.img to RAW."
434 unzip -p "${image}" "${path_in_zip}/${part}.map" >"${part_map_file}" \
[all …]
Dtest_paycheck.sh58 OLD_KERN_PART=old_kern.part
59 OLD_ROOT_PART=old_root.part
60 NEW_DELTA_KERN_PART=new_delta_kern.part
61 NEW_DELTA_ROOT_PART=new_delta_root.part
62 NEW_FULL_KERN_PART=new_full_kern.part
63 NEW_FULL_ROOT_PART=new_full_root.part
/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.cpp98 bool PartitionHash(FastBootDriver* fb, const std::string& part, std::string* hash, int* retcode, in PartitionHash() argument
106 const std::string cmd = config.checksum + ' ' + part; in PartitionHash()
431 std::string part(std::get<0>(p)); in TEST_F() local
434 EXPECT_EQ(fb->GetVar("partition-type:" + part, &resp), SUCCESS); in TEST_F()
435 EXPECT_NE(allowed.find(resp), allowed.end()) << "getvar:partition-type:" + part << " was '" in TEST_F()
437 const std::string cmd = "partition-size:" + part; in TEST_F()
469 std::string part(std::get<0>(p)); in TEST_F() local
473 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F()
485 EXPECT_EQ(fb->GetVar("has-slot:" + part, &var), SUCCESS) in TEST_F()
486 << "'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.py643 for part in manifest.partitions:
644 name = part.partition_name
646 part, 'old_partition_info', report)
648 part, 'new_partition_info', report, 'manifest.partitions')
651 for _, part in common.CROS_PARTITIONS:
652 self._CheckElemNotPresent(manifest, 'old_%s_info' % part, 'manifest')
653 self._CheckElemNotPresent(manifest, 'new_%s_info' % part, 'manifest')
657 old_part_msgs = [part.msg for part in self.old_part_info.values() if part]
661 is_delta = any(part and part.msg for part in self.old_part_info.values())
669 for part, (msg, part_report) in self.old_part_info.iteritems():
[all …]
Dapplier.py651 for part in manifest.partitions:
652 name = part.partition_name
653 new_part_info[name] = part.new_partition_info
654 old_part_info[name] = part.old_partition_info
655 install_operations.append((name, part.operations))
/system/tools/aidl/docs/
Dconstants.md1 # Defining constants as part of an interface
4 as part of an interface.
/system/iorap/tests/src/inode2filename/
Dsearch_directories_test.cc344 VisitSplitStringView(what, separator, [&vec](auto&& part) { in VisitSplitStringViewVec() argument
345 vec.push_back(std::string{part}); in VisitSplitStringViewVec()
518 for (auto&& part : IterateParts()) { in Name()
519 if (count++ == 0 && part == kRoot) { in Name()
522 DCHECK_NE(part, kRoot); in Name()
525 component = part; in Name()
545 for (auto&& part : IterateParts()) { in Parent()
548 if (part == "..") { in Parent()
594 for (auto&& part : IterateParts()) { in Parent()
596 last = part; in Parent()
[all …]
/system/update_engine/update_payload_key/
DREADME2 baked into the system image as part of update_engine install.
/system/chre/host/msm/daemon/
DREADME.md5 proprietary header files distributed as part of the Hexagon SDK. Therefore, it
/system/core/fs_mgr/liblp/
Dbuilder.cpp782 LpMetadataPartition part; in Export() local
783 memset(&part, 0, sizeof(part)); in Export()
785 if (partition->name().size() > sizeof(part.name)) { in Export()
794 strncpy(part.name, partition->name().c_str(), sizeof(part.name)); in Export()
795 part.first_extent_index = static_cast<uint32_t>(metadata->extents.size()); in Export()
796 part.num_extents = static_cast<uint32_t>(partition->extents().size()); in Export()
797 part.attributes = partition->attributes(); in Export()
799 part.attributes |= LP_PARTITION_ATTR_SLOT_SUFFIXED; in Export()
808 part.group_index = iter->second; in Export()
815 metadata->partitions.push_back(part); in Export()
/system/sepolicy/tools/
DREADME17 property_contexts configuration file. Used as part of the policy
39 checking the validity of the configurations. Used as part of the
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/app/
Dprofiling.gradle2 // Set when building only part of the abis in the apk.

123456