/system/update_engine/payload_generator/ |
D | payload_generation_config_unittest.cc | 29 image_config.partitions.emplace_back("root"); in TEST_F() 37 EXPECT_FALSE(image_config.partitions[0].postinstall.IsEmpty()); in TEST_F() 38 EXPECT_EQ(true, image_config.partitions[0].postinstall.run); in TEST_F() 39 EXPECT_EQ("postinstall", image_config.partitions[0].postinstall.path); in TEST_F() 40 EXPECT_EQ("ext4", image_config.partitions[0].postinstall.filesystem_type); in TEST_F() 41 EXPECT_TRUE(image_config.partitions[0].postinstall.optional); in TEST_F() 46 image_config.partitions.emplace_back("system"); in TEST_F() 53 EXPECT_TRUE(image_config.partitions[0].postinstall.IsEmpty()); in TEST_F() 114 image_config.partitions.push_back(std::move(system)); in TEST_F() 115 image_config.partitions.push_back(std::move(system_ext)); in TEST_F() [all …]
|
D | payload_generation_config_android_unittest.cc | 136 image_config_.partitions.emplace_back("system"); in SetUp() 137 image_config_.partitions[0].path = temp_file_.path(); in SetUp() 148 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F() 150 const VerityConfig& verity = image_config_.partitions[0].verity; in TEST_F() 165 image_config_.partitions[0].disable_fec_computation = true; in TEST_F() 167 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F() 169 const VerityConfig& verity = image_config_.partitions[0].verity; in TEST_F() 186 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F() 195 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F() 204 EXPECT_TRUE(image_config_.partitions[0].verity.IsEmpty()); in TEST_F() [all …]
|
D | delta_diff_generator.cc | 181 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile() 182 config.target.partitions.size()); in GenerateUpdatePayloadFile() 186 all_aops.resize(config.target.partitions.size()); in GenerateUpdatePayloadFile() 189 all_merge_sequences.resize(config.target.partitions.size()); in GenerateUpdatePayloadFile() 191 std::vector<size_t> all_cow_sizes(config.target.partitions.size(), 0); in GenerateUpdatePayloadFile() 195 config.target.partitions.size()); in GenerateUpdatePayloadFile() 198 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile() 200 config.is_delta ? config.source.partitions[i] : empty_part; in GenerateUpdatePayloadFile() 201 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile() 235 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile() [all …]
|
D | generate_delta_main.cc | 203 for (size_t i = 0; i < config.target.partitions.size(); i++) { in ApplyPayload() 204 const string& part_name = config.target.partitions[i].name; in ApplyPayload() 205 const string& target_path = config.target.partitions[i].path; in ApplyPayload() 211 TEST_AND_RETURN_FALSE(config.target.partitions.size() == in ApplyPayload() 212 config.source.partitions.size()); in ApplyPayload() 213 source_path = config.source.partitions[i].path; in ApplyPayload() 295 for (auto&& partition : config->target.partitions) { in ParsePerPartitionTimestamps() 464 for (const auto& part : config.partitions) { in RoundDownPartitions() 479 for (const auto& part : config.partitions) { in RoundUpPartitions() 643 payload_config.target.partitions.emplace_back(partition_names[i]); in Main() [all …]
|
D | payload_generation_config.cc | 125 return partitions.empty(); in ValidateIsEmpty() 129 for (PartitionConfig& part : partitions) { in LoadImageSize() 139 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig() 230 auto partition_config = std::find_if(partitions.begin(), in ValidateDynamicPartitionMetadata() 231 partitions.end(), in ValidateDynamicPartitionMetadata() 236 if (partition_config == partitions.end()) { in ValidateDynamicPartitionMetadata() 323 for (const PartitionConfig& part : source.partitions) { in Validate() 339 for (const PartitionConfig& part : target.partitions) { in Validate()
|
/system/core/fs_mgr/liblp/ |
D | io_test.cpp | 193 ASSERT_EQ(exported->partitions.size(), imported->partitions.size()); in TEST_F() 194 EXPECT_EQ(GetPartitionName(exported->partitions[0]), GetPartitionName(imported->partitions[0])); in TEST_F() 195 EXPECT_EQ(exported->partitions[0].attributes, imported->partitions[0].attributes); in TEST_F() 196 EXPECT_EQ(exported->partitions[0].first_extent_index, in TEST_F() 197 imported->partitions[0].first_extent_index); in TEST_F() 198 EXPECT_EQ(exported->partitions[0].num_extents, imported->partitions[0].num_extents); in TEST_F() 221 ASSERT_EQ(imported->partitions.size(), 1); in TEST_F() 222 EXPECT_EQ(GetPartitionName(imported->partitions[0]), "system"); in TEST_F() 225 strncpy(imported->partitions[0].name, "vendor", sizeof(imported->partitions[0].name)); in TEST_F() 231 ASSERT_EQ(imported->partitions.size(), 1); in TEST_F() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_remount.cpp | 230 Fstab partitions; in GetAllRemountablePartitions() local 233 partitions.emplace_back(entry); in GetAllRemountablePartitions() 236 return partitions; in GetAllRemountablePartitions() 239 bool GetRemountList(const Fstab& fstab, const std::vector<std::string>& argv, Fstab* partitions) { in GetRemountList() argument 268 if (GetEntryForMountPoint(partitions, entry->mount_point) != nullptr) { in GetRemountList() 271 partitions->emplace_back(*entry); in GetRemountList() 285 bool CheckOverlayfs(Fstab* partitions, RemountCheckResult* result) { in CheckOverlayfs() argument 287 for (auto it = partitions->begin(); it != partitions->end();) { in CheckOverlayfs() 294 if (!fs_mgr_overlayfs_setup(*partitions, mount_point.c_str(), &want_reboot, force)) { in CheckOverlayfs() 297 it = partitions->erase(it); in CheckOverlayfs() [all …]
|
/system/core/fastboot/device/ |
D | utility.cpp | 109 for (const auto& partition : metadata.partitions) { in FindLogicalPartition() 151 std::vector<std::string> partitions; in ListPartitions() local 163 partitions.emplace_back(de->d_name); in ListPartitions() 186 for (const auto& partition : metadata->partitions) { in ListPartitions() 188 if (std::find(partitions.begin(), partitions.end(), partition_name) == in ListPartitions() 189 partitions.end()) { in ListPartitions() 190 partitions.emplace_back(partition_name); in ListPartitions() 194 return partitions; in ListPartitions()
|
/system/update_engine/payload_consumer/ |
D | install_plan.cc | 71 (target_slot == that.target_slot) && (partitions == that.partitions)); in operator ==() 109 for (const auto& partition : partitions) { in ToString() 154 for (Partition& partition : partitions) { in LoadPartitionsFromSlots() 229 const PartitinoUpdateArray& partitions, in ParseManifestToInstallPlan() argument 236 for (const PartitionUpdate& partition : partitions) { in ParseManifestToInstallPlan() 273 install_plan->partitions.push_back(install_part); in ParseManifestToInstallPlan() 288 const std::vector<PartitionUpdate>& partitions, in ParsePartitions() argument 293 partitions, boot_control, block_size, this, error); in ParsePartitions() 297 const google::protobuf::RepeatedPtrField<PartitionUpdate>& partitions, in ParsePartitions() argument 302 partitions, boot_control, block_size, this, error); in ParsePartitions()
|
D | postinstall_runner_action.cc | 116 if (!install_plan_.partitions.empty()) { in PerformAction() 138 partition_weight_.resize(install_plan_.partitions.size()); in PerformAction() 140 for (size_t i = 0; i < install_plan_.partitions.size(); ++i) { in PerformAction() 141 auto& partition = install_plan_.partitions[i]; in PerformAction() 210 while (current_partition_ < install_plan_.partitions.size() && in PerformPartitionPostinstall() 211 !install_plan_.partitions[current_partition_].run_postinstall) { in PerformPartitionPostinstall() 213 << install_plan_.partitions[current_partition_].name; in PerformPartitionPostinstall() 223 const auto& partition = install_plan_.partitions[current_partition_]; in PerformPartitionPostinstall() 237 if (current_partition_ == install_plan_.partitions.size()) in PerformPartitionPostinstall() 241 install_plan_.partitions[current_partition_]; in PerformPartitionPostinstall() [all …]
|
D | filesystem_verifier_action.cc | 98 if (install_plan_.partitions.empty()) { in PerformAction() 107 partition_weight_.reserve(install_plan_.partitions.size() + 1); in PerformAction() 109 for (const auto& part : install_plan_.partitions) { in PerformAction() 177 install_plan_.partitions[partition_index_]; in InitializeFdVABC() 364 if (partition_index_ == install_plan_.partitions.size()) { in StartPartitionHashing() 383 install_plan_.partitions[partition_index_]; in StartPartitionHashing() 453 install_plan_.partitions[partition_index_]; in GetPartitionPath() 468 install_plan_.partitions[partition_index_]; in GetPartitionSize() 479 install_plan_.partitions[partition_index_]; in ShouldWriteVerity() 492 install_plan_.partitions[partition_index_]; in FinishPartitionHashing()
|
/system/update_engine/aosp/ |
D | ota_extractor.cc | 52 DEFINE_string(partitions, 102 const std::set<std::string>& partitions) { in ExtractImagesFromOTA() argument 112 for (const auto& partition : manifest.partitions()) { in ExtractImagesFromOTA() 113 if (!partitions.empty() && in ExtractImagesFromOTA() 114 partitions.count(partition.partition_name()) == 0) { in ExtractImagesFromOTA() 201 for (const auto& part : manifest.partitions()) { in IsIncrementalOTA() 217 const std::set<std::string> partitions( in main() local 224 if (!partitions.empty()) { in main() 225 LOG(INFO) << "Extracting " << android::base::Join(partitions, ", "); in main() 279 partitions); in main()
|
D | cow_converter.cc | 39 DEFINE_string(partitions, 89 const std::set<std::string> partitions( in main() local 142 for (const auto& partition : manifest.partitions()) { in main() 146 if (!partitions.empty() && in main() 147 partitions.count(partition.partition_name()) == 0) { in main()
|
D | metrics_reporter_android.cc | 58 install_plan->partitions.begin(), in IsHashTreeEnabled() 59 install_plan->partitions.end(), in IsHashTreeEnabled() 65 install_plan->partitions.begin(), in IsFECEnabled() 66 install_plan->partitions.end(), in IsFECEnabled()
|
/system/sepolicy/tests/ |
D | sepolicy_tests.py | 34 partitions = ["/system/", "/system_ext/", "/product/"] 49 return pol.AssertPathTypesHaveAttr(partitions, exceptions, "system_file_type") 78 partitions = ["/vendor/", "/odm/"] 84 return pol.AssertPathTypesHaveAttr(partitions, exceptions, "vendor_file_type") 97 partitions = [ 112 return pol.AssertPathTypesDoNotHaveAttr(partitions, [], "app_data_file_type",
|
/system/core/fastboot/fuzzy_fastboot/ |
D | extensions.cpp | 119 if (XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPartitions() 126 config->partitions[name] = part_info; in ExtractPartitions() 142 XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPacked() 144 XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPacked() 155 if (XMLAssert(config->partitions.find(text) != config->partitions.end(), child, in ExtractPacked()
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | device.te | 76 # Documented at https://source.android.com/devices/bootloader/partitions-images 80 # Documented at https://source.android.com/devices/bootloader/partitions-images 84 # Documented at https://source.android.com/devices/bootloader/partitions-images 88 # Documented at https://source.android.com/devices/bootloader/partitions-images 92 # Documented at https://source.android.com/devices/bootloader/partitions-images 101 # Documented at https://source.android.com/devices/bootloader/partitions-images 105 # Documented at https://source.android.com/devices/bootloader/partitions-images
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | device.te | 74 # Documented at https://source.android.com/devices/bootloader/partitions-images 78 # Documented at https://source.android.com/devices/bootloader/partitions-images 82 # Documented at https://source.android.com/devices/bootloader/partitions-images 86 # Documented at https://source.android.com/devices/bootloader/partitions-images 90 # Documented at https://source.android.com/devices/bootloader/partitions-images 99 # Documented at https://source.android.com/devices/bootloader/partitions-images 103 # Documented at https://source.android.com/devices/bootloader/partitions-images
|
/system/sepolicy/prebuilts/api/34.0/public/ |
D | device.te | 85 # Documented at https://source.android.com/devices/bootloader/partitions 89 # Documented at https://source.android.com/devices/bootloader/partitions 93 # Documented at https://source.android.com/devices/bootloader/partitions 97 # Documented at https://source.android.com/devices/bootloader/partitions 104 # Documented at https://source.android.com/devices/bootloader/partitions 112 # Documented at https://source.android.com/devices/bootloader/partitions 116 # Documented at https://source.android.com/devices/bootloader/partitions
|
/system/sepolicy/prebuilts/api/33.0/public/ |
D | device.te | 82 # Documented at https://source.android.com/devices/bootloader/partitions 86 # Documented at https://source.android.com/devices/bootloader/partitions 90 # Documented at https://source.android.com/devices/bootloader/partitions 94 # Documented at https://source.android.com/devices/bootloader/partitions 98 # Documented at https://source.android.com/devices/bootloader/partitions 106 # Documented at https://source.android.com/devices/bootloader/partitions 110 # Documented at https://source.android.com/devices/bootloader/partitions
|
/system/sepolicy/public/ |
D | device.te | 85 # Documented at https://source.android.com/devices/bootloader/partitions 89 # Documented at https://source.android.com/devices/bootloader/partitions 93 # Documented at https://source.android.com/devices/bootloader/partitions 97 # Documented at https://source.android.com/devices/bootloader/partitions 104 # Documented at https://source.android.com/devices/bootloader/partitions 112 # Documented at https://source.android.com/devices/bootloader/partitions 116 # Documented at https://source.android.com/devices/bootloader/partitions
|
/system/update_engine/scripts/ |
D | payload_info.py | 73 DisplayValue('Number of partitions', len(manifest.partitions)) 74 for partition in manifest.partitions: 77 for partition in manifest.partitions: 80 for partition in manifest.partitions: 175 for partition in manifest.partitions: 214 for partition in self.payload.manifest.partitions:
|
/system/sepolicy/prebuilts/api/31.0/public/ |
D | device.te | 82 # Documented at https://source.android.com/devices/bootloader/partitions-images 86 # Documented at https://source.android.com/devices/bootloader/partitions-images 90 # Documented at https://source.android.com/devices/bootloader/partitions-images 94 # Documented at https://source.android.com/devices/bootloader/partitions-images 98 # Documented at https://source.android.com/devices/bootloader/partitions-images 107 # Documented at https://source.android.com/devices/bootloader/partitions-images 111 # Documented at https://source.android.com/devices/bootloader/partitions-images
|
/system/sepolicy/prebuilts/api/32.0/public/ |
D | device.te | 82 # Documented at https://source.android.com/devices/bootloader/partitions-images 86 # Documented at https://source.android.com/devices/bootloader/partitions-images 90 # Documented at https://source.android.com/devices/bootloader/partitions-images 94 # Documented at https://source.android.com/devices/bootloader/partitions-images 98 # Documented at https://source.android.com/devices/bootloader/partitions-images 107 # Documented at https://source.android.com/devices/bootloader/partitions-images 111 # Documented at https://source.android.com/devices/bootloader/partitions-images
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 43 std::unordered_set<std::string>&& partitions, const std::string& output_dir); 110 std::unordered_set<std::string> partitions; in main() local 132 partitions.emplace(optarg); in main() 190 … ImageExtractor extractor(std::move(fds), std::move(metadata), std::move(partitions), output_dir); in main() 198 std::unordered_set<std::string>&& partitions, in ImageExtractor() argument 202 partitions_(std::move(partitions)), in ImageExtractor() 222 for (const auto& partition : metadata_->partitions) { in BuildPartitionList()
|