Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 164) 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.cc90 Partition part; in AddPartition() local
91 part.name = new_conf.name; in AddPartition()
92 part.aops = std::move(aops); in AddPartition()
93 part.postinstall = new_conf.postinstall; in AddPartition()
94 part.verity = new_conf.verity; in AddPartition()
98 diff_utils::InitializePartitionInfo(old_conf, &part.old_info)); in AddPartition()
100 diff_utils::InitializePartitionInfo(new_conf, &part.new_info)); in AddPartition()
101 part_vec_.push_back(std::move(part)); in AddPartition()
118 for (const auto& part : part_vec_) { in WritePayload() local
119 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()
164 brillo::Blob part = GetAVBPartition(); in TEST_F() local
165 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
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.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()
Dpayload_properties.cc125 [](const PartitionUpdate& part) { in LoadFromPayload() argument
126 return part.has_old_partition_info(); in LoadFromPayload()
Dgenerate_delta_main.cc664 for (PartitionConfig& part : payload_config.target.partitions) in Main()
665 CHECK(part.OpenFilesystem()); in Main()
666 for (PartitionConfig& part : payload_config.source.partitions) in Main()
667 CHECK(part.OpenFilesystem()); in Main()
680 for (const PartitionConfig& part : payload_config.source.partitions) { in Main() local
681 if (part.fs_interface && part.fs_interface->LoadSettings(&store) && in Main()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action_unittest.cc125 InstallPlan::Partition part; in DoTest() local
126 part.name = "part"; in DoTest()
127 part.target_size = kLoopFileSize - (hash_fail ? 1 : 0); in DoTest()
128 part.target_path = a_dev; in DoTest()
129 if (!HashCalculator::RawHashOfData(a_loop_data, &part.target_hash)) { in DoTest()
133 part.source_size = kLoopFileSize; in DoTest()
134 part.source_path = a_dev; in DoTest()
135 if (!HashCalculator::RawHashOfData(a_loop_data, &part.source_hash)) { in DoTest()
139 install_plan.partitions = {part}; in DoTest()
244 InstallPlan::Partition part; in TEST_F() local
[all …]
Dpostinstall_runner_action_unittest.cc185 InstallPlan::Partition part; in RunPostinstallAction() local
186 part.name = "part"; in RunPostinstallAction()
187 part.target_path = device_path; in RunPostinstallAction()
188 part.run_postinstall = true; in RunPostinstallAction()
189 part.postinstall_path = postinstall_program; in RunPostinstallAction()
191 install_plan.partitions = {part}; in RunPostinstallAction()
346 InstallPlan::Partition part; in TEST_F() local
347 part.name = "part"; in TEST_F()
348 part.target_path = "/dev/null"; in TEST_F()
349 part.run_postinstall = true; in TEST_F()
[all …]
Ddelta_performer_unittest.cc772 auto part = manifest.add_partitions(); in TEST_F() local
773 part->set_partition_name(part_name); in TEST_F()
774 part->mutable_new_partition_info(); in TEST_F()
788 auto part = manifest.add_partitions(); in TEST_F() local
789 part->set_partition_name(part_name); in TEST_F()
790 part->mutable_old_partition_info(); in TEST_F()
791 part->mutable_new_partition_info(); in TEST_F()
805 auto part = manifest.add_partitions(); in TEST_F() local
806 part->set_partition_name(part_name); in TEST_F()
807 part->mutable_old_partition_info(); in TEST_F()
[all …]
/system/update_engine/scripts/
Dbrillo_update_payload419 local part varname
420 for part in kernel root; do
421 varname="${partitions_array}[${part}]"
435 local part="$3"
443 if unzip -l "${image}" "${path}/${part}.img" >/dev/null; then
448 [[ -n "${path_in_zip}" ]] || die "Failed to find ${part}.img"
449 extract_file "${image}" "${path_in_zip}/${part}.img" "${part_file}"
455 local temp_sparse=$(create_tempfile "${part}.sparse.XXXXXX")
456 echo "Converting Android sparse image ${part}.img to RAW."
463 if unzip -l "${image}" "${path_in_zip}/${part}.map" > /dev/null; then
[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()
411 std::string part(std::get<0>(p)); in TEST_F() local
414 EXPECT_EQ(fb->GetVar("partition-type:" + part, &resp), SUCCESS); in TEST_F()
415 EXPECT_NE(allowed.find(resp), allowed.end()) << "getvar:partition-type:" + part << " was '" in TEST_F()
417 const std::string cmd = "partition-size:" + part; in TEST_F()
449 std::string part(std::get<0>(p)); in TEST_F() local
453 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F()
465 EXPECT_EQ(fb->GetVar("has-slot:" + part, &var), SUCCESS) in TEST_F()
466 << "'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/core/adb/daemon/
Dlogging.cpp48 for (const auto& part : android::base::Split(std::string(str), ",")) { in ParseLogStatus() local
49 if (part == "cnxn") { in ParseLogStatus()
51 } else if (part == "service") { in ParseLogStatus()
53 } else if (part == "shell") { in ParseLogStatus()
55 } else if (part == "all") { in ParseLogStatus()
/system/update_engine/scripts/update_payload/
Dchecker.py627 for part in manifest.partitions:
628 name = part.partition_name
630 part, 'old_partition_info', report)
632 part, 'new_partition_info', report, 'manifest.partitions')
635 for _, part in common.CROS_PARTITIONS:
636 self._CheckElemNotPresent(manifest, 'old_%s_info' % part, 'manifest')
637 self._CheckElemNotPresent(manifest, 'new_%s_info' % part, 'manifest')
641 old_part_msgs = [part.msg for part in self.old_part_info.values() if part]
645 is_delta = any(part and part.msg for part in self.old_part_info.values())
653 for part, (msg, part_report) in self.old_part_info.items():
[all …]
/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/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/core/adb/
DSOCKET-ACTIVATION.txt16 # FD 3 is part of the systemd interface
36 configured analogously. The important part is that adb be started with
/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.bp19 // never be shipped by default (i.e. should never be part of
35 // never be shipped by default (i.e. should never be part of

1234567