Home
last modified time | relevance | path

Searched refs:partitions (Results 1 – 25 of 97) sorted by relevance

1234

/system/update_engine/payload_generator/
Dpayload_generation_config_unittest.cc29 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(product_services)); in TEST_F()
[all …]
Dpayload_generation_config_android_unittest.cc136 image_config_.partitions.emplace_back("system"); in SetUp()
137 image_config_.partitions[0].path = temp_file_.path(); in SetUp()
149 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F()
151 const VerityConfig& verity = image_config_.partitions[0].verity; in TEST_F()
169 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F()
178 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F()
187 EXPECT_TRUE(image_config_.partitions[0].verity.IsEmpty()); in TEST_F()
194 EXPECT_TRUE(image_config_.partitions[0].verity.IsEmpty()); in TEST_F()
Ddelta_diff_generator.cc80 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile()
81 config.target.partitions.size()); in GenerateUpdatePayloadFile()
84 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile()
86 config.is_delta ? config.source.partitions[i] : empty_part; in GenerateUpdatePayloadFile()
87 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile()
Dpayload_generation_config.cc98 return partitions.empty(); in ValidateIsEmpty()
102 for (PartitionConfig& part : partitions) { in LoadImageSize()
112 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig()
176 auto partition_config = std::find_if(partitions.begin(), in ValidateDynamicPartitionMetadata()
177 partitions.end(), in ValidateDynamicPartitionMetadata()
182 if (partition_config == partitions.end()) { in ValidateDynamicPartitionMetadata()
279 for (const PartitionConfig& part : source.partitions) { in Validate()
298 for (const PartitionConfig& part : target.partitions) { in Validate()
Dgenerate_delta_main.cc222 for (size_t i = 0; i < config.target.partitions.size(); i++) { in ApplyPayload()
223 const string& part_name = config.target.partitions[i].name; in ApplyPayload()
224 const string& target_path = config.target.partitions[i].path; in ApplyPayload()
230 TEST_AND_RETURN_FALSE(config.target.partitions.size() == in ApplyPayload()
231 config.source.partitions.size()); in ApplyPayload()
232 source_path = config.source.partitions[i].path; in ApplyPayload()
528 payload_config.target.partitions.emplace_back(partition_names[i]); in Main()
529 payload_config.target.partitions.back().path = new_partitions[i]; in Main()
531 payload_config.target.partitions.back().mapfile_path = new_mapfiles[i]; in Main()
547 payload_config.source.partitions.emplace_back(partition_names[i]); in Main()
[all …]
/system/core/fs_mgr/liblp/
Dio_test.cpp186 ASSERT_EQ(exported->partitions.size(), imported->partitions.size()); in TEST()
187 EXPECT_EQ(GetPartitionName(exported->partitions[0]), GetPartitionName(imported->partitions[0])); in TEST()
188 EXPECT_EQ(exported->partitions[0].attributes, imported->partitions[0].attributes); in TEST()
189 EXPECT_EQ(exported->partitions[0].first_extent_index, in TEST()
190 imported->partitions[0].first_extent_index); in TEST()
191 EXPECT_EQ(exported->partitions[0].num_extents, imported->partitions[0].num_extents); in TEST()
214 ASSERT_EQ(imported->partitions.size(), 1); in TEST()
215 EXPECT_EQ(GetPartitionName(imported->partitions[0]), "system"); in TEST()
218 strncpy(imported->partitions[0].name, "vendor", sizeof(imported->partitions[0].name)); in TEST()
224 ASSERT_EQ(imported->partitions.size(), 1); in TEST()
[all …]
Dwriter.cpp54 std::string partitions(reinterpret_cast<const char*>(metadata.partitions.data()), in SerializeMetadata()
55 metadata.partitions.size() * sizeof(LpMetadataPartition)); in SerializeMetadata()
64 header.partitions.offset = 0; in SerializeMetadata()
65 header.extents.offset = header.partitions.offset + partitions.size(); in SerializeMetadata()
71 std::string tables = partitions + extents + groups + block_devices; in SerializeMetadata()
143 for (const auto& partition : metadata.partitions) { in ValidateAndSerializeMetadata()
Dreader.cpp187 if (!ValidateTableBounds(header, header.partitions) || in ValidateMetadataHeader()
196 if (header.partitions.entry_size != sizeof(LpMetadataPartition)) { in ValidateMetadataHeader()
249 uint8_t* cursor = buffer.get() + header.partitions.offset; in ParseMetadata()
250 for (size_t i = 0; i < header.partitions.num_entries; i++) { in ParseMetadata()
253 cursor += header.partitions.entry_size; in ParseMetadata()
272 metadata->partitions.push_back(partition); in ParseMetadata()
359 for (auto& partition : metadata->partitions) { in AdjustMetadataForSlot()
/system/core/fs_mgr/
Dfs_mgr_remount.cpp209 android::fs_mgr::Fstab partitions; in main() local
241 if (GetEntryForMountPoint(&partitions, it->mount_point) == nullptr) { in main()
242 partitions.emplace_back(*it); in main()
246 if (partitions.empty() && !retval) { in main()
247 partitions = all; in main()
254 for (auto it = partitions.begin(); it != partitions.end();) { in main()
292 it = partitions.erase(it); in main()
305 it = partitions.erase(it); in main()
311 if (partitions.empty()) { in main()
319 if (!fs_mgr_overlayfs_mount_all(&partitions) && errno) { in main()
[all …]
/system/core/fastboot/device/
Dutility.cpp106 for (const auto& partition : metadata.partitions) { in FindLogicalPartition()
148 std::vector<std::string> partitions; in ListPartitions() local
160 partitions.emplace_back(de->d_name); in ListPartitions()
183 for (const auto& partition : metadata->partitions) { in ListPartitions()
185 if (std::find(partitions.begin(), partitions.end(), partition_name) == in ListPartitions()
186 partitions.end()) { in ListPartitions()
187 partitions.emplace_back(partition_name); in ListPartitions()
191 return partitions; in ListPartitions()
Dvariables.cpp383 auto partitions = ListPartitions(device); in GetAllPartitionArgsWithSlot() local
384 for (const auto& partition : partitions) { in GetAllPartitionArgsWithSlot()
391 auto partitions = ListPartitions(device); in GetAllPartitionArgsNoSlot() local
395 auto names = std::move(partitions); in GetAllPartitionArgsNoSlot()
401 if (std::find(partitions.begin(), partitions.end(), slotless_name) == in GetAllPartitionArgsNoSlot()
402 partitions.end()) { in GetAllPartitionArgsNoSlot()
403 partitions.emplace_back(slotless_name); in GetAllPartitionArgsNoSlot()
409 for (const auto& partition : partitions) { in GetAllPartitionArgsNoSlot()
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc70 partition_weight_.resize(install_plan_.partitions.size()); in PerformAction()
72 for (size_t i = 0; i < install_plan_.partitions.size(); ++i) { in PerformAction()
76 partition_weight_[i] = install_plan_.partitions[i].run_postinstall; in PerformAction()
97 while (current_partition_ < install_plan_.partitions.size() && in PerformPartitionPostinstall()
98 !install_plan_.partitions[current_partition_].run_postinstall) { in PerformPartitionPostinstall()
100 << install_plan_.partitions[current_partition_].name; in PerformPartitionPostinstall()
103 if (current_partition_ == install_plan_.partitions.size()) in PerformPartitionPostinstall()
107 install_plan_.partitions[current_partition_]; in PerformPartitionPostinstall()
324 if (install_plan_.partitions[current_partition_].postinstall_optional) { in CompletePartitionPostinstall()
Dfilesystem_verifier_action.cc53 if (install_plan_.partitions.empty()) { in PerformAction()
83 if (partition_index_ == install_plan_.partitions.size()) { in StartPartitionHashing()
88 install_plan_.partitions[partition_index_]; in StartPartitionHashing()
151 install_plan_.partitions[partition_index_]; in ScheduleRead()
194 << install_plan_.partitions[partition_index_].name; in OnReadDoneCallback()
236 install_plan_.partitions[partition_index_]; in FinishPartitionHashing()
Dinstall_plan.cc47 (target_slot == that.target_slot) && (partitions == that.partitions)); in operator ==()
56 for (const auto& partition : partitions) { in Dump()
100 for (Partition& partition : partitions) { in LoadPartitionsFromSlots()
Ddelta_performer_integration_test.cc493 payload_config.source.partitions.emplace_back(kPartitionNameRoot); in GenerateDeltaFile()
494 payload_config.source.partitions.emplace_back(kPartitionNameKernel); in GenerateDeltaFile()
495 payload_config.source.partitions.front().path = state->a_img; in GenerateDeltaFile()
497 payload_config.source.partitions.back().path = state->old_kernel; in GenerateDeltaFile()
500 for (PartitionConfig& part : payload_config.source.partitions) in GenerateDeltaFile()
507 payload_config.target.partitions.emplace_back(kPartitionNameRoot); in GenerateDeltaFile()
508 payload_config.target.partitions.back().path = state->b_img; in GenerateDeltaFile()
509 payload_config.target.partitions.emplace_back(kPartitionNameKernel); in GenerateDeltaFile()
510 payload_config.target.partitions.back().path = state->new_kernel; in GenerateDeltaFile()
513 for (PartitionConfig& part : payload_config.target.partitions) in GenerateDeltaFile()
[all …]
/system/sepolicy/prebuilts/api/29.0/public/
Ddevice.te74 # 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
Dupdate_engine_common.te7 # Allow read/write on system and boot partitions.
65 # read / write metadata on super device to resize partitions
71 # get physical block device to map logical partitions on device mapper
/system/sepolicy/public/
Ddevice.te74 # 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
Dupdate_engine_common.te7 # Allow read/write on system and boot partitions.
65 # read / write metadata on super device to resize partitions
71 # get physical block device to map logical partitions on device mapper
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp119 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()
DREADME.md71 #### `<partitions>` Element
72 Inside the `<partitions></partitions>` element pairs, one should list all the device's
73 partitions. Each device partition has should be put inside a `<part/>` element.
87 <!-- All the device partitions should be listed here -->
88 <partitions>
93 </partitions>
97 Most devices have pseudo partitions, such as a `bootloader` partition,
98 that in reality is composed of several real partitions.
99 When one of these pseudo partitions is flashed, the bootloader
101 partition. These pseudo partitions should be listed inside a `<part></part>`
[all …]
/system/extras/partition_tools/
Dlpunpack.cc42 std::unordered_set<std::string>&& partitions, const std::string& output_dir);
102 std::unordered_set<std::string> partitions; in main() local
120 partitions.emplace(optarg); in main()
168 ImageExtractor extractor(std::move(fd), std::move(metadata), std::move(partitions), output_dir); in main()
176 std::unordered_set<std::string>&& partitions, in ImageExtractor() argument
180 partitions_(std::move(partitions)), in ImageExtractor()
199 for (const auto& partition : metadata_->partitions) { in BuildPartitionList()
/system/core/fastboot/
Dfastboot.bash105 local partitions
112 partitions="boot bootloader dtbo modem odm oem product radio recovery system vbmeta vendor"
113 COMPREPLY=( $(compgen -W "$partitions" -- $cur) )
/system/update_engine/
Dboot_control_android_unittest.cc113 return os << "{" << g.name << ", " << g.size << ", " << g.partitions << "}"; in operator <<()
156 metadata.groups[suffix_idx].partitions.push_back( in partitionSuffixSizesToMetadata()
170 metadata.groups[0].partitions.push_back({pair.first, pair.second}); in partitionSizesToMetadata()
185 for (const auto& partition : group.partitions) { in NewFakeMetadata()
204 for (const auto& partition : group.partitions) { in MatchAndExplain()
322 void ExpectUnmap(const std::set<string>& partitions) { in ExpectUnmap() argument
327 for (const auto& partition : partitions) { in ExpectUnmap()
336 void ExpectDevicesAreMapped(const std::set<string>& partitions) { in ExpectDevicesAreMapped() argument
337 ASSERT_EQ(partitions.size(), mapped_devices_.size()); in ExpectDevicesAreMapped()
338 for (const auto& partition : partitions) { in ExpectDevicesAreMapped()
[all …]
/system/update_engine/scripts/
Dpayload_info.py73 DisplayValue('Number of partitions', len(manifest.partitions))
74 for partition in manifest.partitions:
174 partitions_operations = [part.operations for part in manifest.partitions]
223 for partition in self.payload.manifest.partitions:

1234