/system/update_engine/payload_generator/ |
D | payload_generation_config_android.cc | 35 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 …]
|
D | payload_file.cc | 102 Partition part; in AddPartition() local 103 part.name = new_conf.name; in AddPartition() 104 part.aops = std::move(aops); in AddPartition() 105 part.cow_merge_sequence = std::move(merge_sequence); in AddPartition() 106 part.postinstall = new_conf.postinstall; in AddPartition() 107 part.verity = new_conf.verity; in AddPartition() 108 part.version = new_conf.version; in AddPartition() 109 part.cow_info = cow_info; in AddPartition() 113 diff_utils::InitializePartitionInfo(old_conf, &part.old_info)); in AddPartition() 115 diff_utils::InitializePartitionInfo(new_conf, &part.new_info)); in AddPartition() [all …]
|
D | payload_generation_config_android_unittest.cc | 123 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 …]
|
D | payload_generation_config.cc | 129 for (PartitionConfig& part : partitions) { in LoadImageSize() 130 if (part.path.empty()) in LoadImageSize() 132 part.size = utils::FileSize(part.path); in LoadImageSize() 139 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig() 141 if (!store.GetBoolean("RUN_POSTINSTALL_" + part.name, &run_postinstall) || in LoadPostInstallConfig() 145 part.postinstall.run = true; in LoadPostInstallConfig() 146 store.GetString("POSTINSTALL_PATH_" + part.name, &part.postinstall.path); in LoadPostInstallConfig() 147 store.GetString("FILESYSTEM_TYPE_" + part.name, in LoadPostInstallConfig() 148 &part.postinstall.filesystem_type); in LoadPostInstallConfig() 149 store.GetBoolean("POSTINSTALL_OPTIONAL_" + part.name, in LoadPostInstallConfig() [all …]
|
D | generate_delta_main.cc | 469 for (const auto& part : config.partitions) { in RoundDownPartitions() local 470 if (part.path.empty()) { in RoundDownPartitions() 473 const auto size = std::max<size_t>(utils::FileSize(part.path), kBlockSize); in RoundDownPartitions() 476 truncate(part.path.c_str(), size / kBlockSize * kBlockSize); in RoundDownPartitions() 477 CHECK_EQ(err, 0) << "Failed to truncate " << part.path << ", error " in RoundDownPartitions() 484 for (const auto& part : config.partitions) { in RoundUpPartitions() local 485 if (part.path.empty()) { in RoundUpPartitions() 488 const auto size = utils::FileSize(part.path); in RoundUpPartitions() 491 part.path.c_str(), (size + kBlockSize - 1) / kBlockSize * kBlockSize); in RoundUpPartitions() 492 CHECK_EQ(err, 0) << "Failed to truncate " << part.path << ", error " in RoundUpPartitions() [all …]
|
D | deflate_utils.cc | 311 bool PreprocessPartitionFiles(const PartitionConfig& part, in PreprocessPartitionFiles() argument 316 part.fs_interface->GetFiles(&tmp_files); in PreprocessPartitionFiles() 322 if (is_regular_file && IsSquashfsImage(part.path, file)) { in PreprocessPartitionFiles() 328 CopyExtentsToFile(part.path, file.extents, path.value(), kBlockSize)); in PreprocessPartitionFiles() 362 part.path, in PreprocessPartitionFiles() 377 << part.name; in PreprocessPartitionFiles()
|
D | payload_properties.cc | 126 [](const PartitionUpdate& part) { in LoadFromPayload() argument 127 return part.has_old_partition_info(); in LoadFromPayload()
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action_unittest.cc | 115 InstallPlan::Partition& part = install_plan->partitions.emplace_back(); in AddFakePartition() local 116 part.name = name; in AddFakePartition() 117 part.target_path = target_part_.path(); in AddFakePartition() 118 part.readonly_target_path = part.target_path; in AddFakePartition() 119 part.target_size = PARTITION_SIZE; in AddFakePartition() 120 part.block_size = BLOCK_SIZE; in AddFakePartition() 121 part.source_path = source_part_.path(); in AddFakePartition() 122 part.source_size = PARTITION_SIZE; in AddFakePartition() 124 HashCalculator::RawHashOfFile(source_part_.path(), &part.source_hash)); in AddFakePartition() 126 HashCalculator::RawHashOfFile(target_part_.path(), &part.target_hash)); in AddFakePartition() [all …]
|
D | postinstall_runner_action_unittest.cc | 194 InstallPlan::Partition part; in RunPostinstallAction() local 195 part.name = "part"; in RunPostinstallAction() 196 part.target_path = device_path; in RunPostinstallAction() 197 part.readonly_target_path = device_path; in RunPostinstallAction() 198 part.run_postinstall = true; in RunPostinstallAction() 199 part.postinstall_path = postinstall_program; in RunPostinstallAction() 201 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 …]
|
D | delta_performer_unittest.cc | 680 auto part = manifest.add_partitions(); in TEST_F() local 681 part->set_partition_name(part_name); in TEST_F() 682 part->mutable_new_partition_info(); in TEST_F() 696 auto part = manifest.add_partitions(); in TEST_F() local 697 part->set_partition_name(part_name); in TEST_F() 698 part->mutable_old_partition_info(); in TEST_F() 699 part->mutable_new_partition_info(); in TEST_F() 713 auto part = manifest.add_partitions(); in TEST_F() local 714 part->set_partition_name(part_name); in TEST_F() 715 part->mutable_old_partition_info(); in TEST_F() [all …]
|
/system/update_engine/scripts/ |
D | brillo_update_payload | 454 local part varname 455 for part in kernel root; do 456 varname="${partitions_array}[${part}]" 470 local part="$3" 478 if unzip -l "${image}" "${path}/${part}.img" >/dev/null; then 483 [[ -n "${path_in_zip}" ]] || die "Failed to find ${part}.img" 484 extract_file "${image}" "${path_in_zip}/${part}.img" "${part_file}" 490 local temp_sparse=$(create_tempfile "${part}.sparse.XXXXXX") 491 echo "Converting Android sparse image ${part}.img to RAW." 498 if unzip -l "${image}" "${path_in_zip}/${part}.map" > /dev/null; then [all …]
|
D | simulate_ota.py | 97 for part in payload.manifest.partitions: 98 name = part.partition_name 101 if part.HasField("old_partition_info"): 115 fp.truncate(part.new_partition_info.size) 120 part.partition_name for part in payload.manifest.partitions 134 for part in new_partitions: 135 print("Output written to", part) 136 shutil.copy(part, output_dir)
|
/system/core/fastboot/fuzzy_fastboot/ |
D | extensions.cpp | 102 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 …]
|
D | main.cpp | 101 bool PartitionHash(FastBootDriver* fb, const std::string& part, std::string* hash, int* retcode, in PartitionHash() argument 109 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 …]
|
D | README.md | 73 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/update_engine/scripts/update_payload/ |
D | checker.py | 629 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 …]
|
D | payload.py | 169 return any([part.HasField("old_partition_info") for part in self.manifest.partitions]) 345 for part in self.manifest.partitions: 346 for op in part.operations:
|
/system/linkerconfig/modules/ |
D | stringutil.cc | 39 for (const auto& part : libs) { in MergeLibs() local 40 const char* part_str = part.c_str(); in MergeLibs() 41 const char* part_end = part.c_str() + part.size(); in MergeLibs()
|
/system/incremental_delivery/incfs/ |
D | path.cpp | 94 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/apex/tools/ |
D | apexd_host.py | 71 for part in PARTITIONS: 195 for part in PARTITIONS: 197 partitions[part] = vars(args).get(f'{part}_path')
|
/system/update_engine/update_payload_key/ |
D | README | 2 baked into the system image as part of update_engine install.
|
/system/extras/pinner/tests/ |
D | Android.bp | 24 // Required for reading-writing files which are part of the tests. 63 // Required for reading-writing files which are part of the tests.
|
/system/tools/aidl/build/ |
D | aidl_rust_glue.py | 66 for part in in_path.parts[:-1]: 67 node = node.nested[part]
|
/system/media/camera/docs/ |
D | ndk_name_to_tag.mako | 31 * Do not reference types that are not part of the NDK. 32 * Do not #include files that aren't part of the NDK.
|
/system/chre/host/msm/daemon/ |
D | README.md | 5 proprietary header files distributed as part of the Hexagon SDK. Therefore, it
|