Home
last modified time | relevance | path

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

123456

/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(system_ext)); 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()
166 image_config_.partitions[0].disable_fec_computation = true; in TEST_F()
168 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F()
170 const VerityConfig& verity = image_config_.partitions[0].verity; in TEST_F()
187 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F()
196 EXPECT_TRUE(image_config_.partitions[0].OpenFilesystem()); in TEST_F()
205 EXPECT_TRUE(image_config_.partitions[0].verity.IsEmpty()); in TEST_F()
[all …]
Ddelta_diff_generator.cc120 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile()
121 config.target.partitions.size()); in GenerateUpdatePayloadFile()
125 all_aops.resize(config.target.partitions.size()); in GenerateUpdatePayloadFile()
128 config.target.partitions.size()); in GenerateUpdatePayloadFile()
131 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile()
133 config.is_delta ? config.source.partitions[i] : empty_part; in GenerateUpdatePayloadFile()
134 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile()
164 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile()
166 config.is_delta ? config.source.partitions[i] : empty_part; in GenerateUpdatePayloadFile()
167 const PartitionConfig& new_part = config.target.partitions[i]; in GenerateUpdatePayloadFile()
Dpayload_generation_config.cc107 return partitions.empty(); in ValidateIsEmpty()
111 for (PartitionConfig& part : partitions) { in LoadImageSize()
121 for (PartitionConfig& part : partitions) { in LoadPostInstallConfig()
194 auto partition_config = std::find_if(partitions.begin(), in ValidateDynamicPartitionMetadata()
195 partitions.end(), in ValidateDynamicPartitionMetadata()
200 if (partition_config == partitions.end()) { in ValidateDynamicPartitionMetadata()
286 for (const PartitionConfig& part : source.partitions) { in Validate()
305 for (const PartitionConfig& part : target.partitions) { in Validate()
Dgenerate_delta_main.cc225 for (size_t i = 0; i < config.target.partitions.size(); i++) { in ApplyPayload()
226 const string& part_name = config.target.partitions[i].name; in ApplyPayload()
227 const string& target_path = config.target.partitions[i].path; in ApplyPayload()
233 TEST_AND_RETURN_FALSE(config.target.partitions.size() == in ApplyPayload()
234 config.source.partitions.size()); in ApplyPayload()
235 source_path = config.source.partitions[i].path; in ApplyPayload()
580 payload_config.target.partitions.emplace_back(partition_names[i]); in Main()
581 payload_config.target.partitions.back().path = new_partitions[i]; in Main()
582 payload_config.target.partitions.back().disable_fec_computation = in Main()
585 payload_config.target.partitions.back().mapfile_path = new_mapfiles[i]; in Main()
[all …]
/system/core/fs_mgr/libsnapshot/corpus/
Dlaunch_device.txt13 partitions {
19 partitions {
25 partitions {
48 partitions {
61 partitions {
74 partitions {
/system/core/fs_mgr/liblp/
Dio_test.cpp189 ASSERT_EQ(exported->partitions.size(), imported->partitions.size()); in TEST_F()
190 EXPECT_EQ(GetPartitionName(exported->partitions[0]), GetPartitionName(imported->partitions[0])); in TEST_F()
191 EXPECT_EQ(exported->partitions[0].attributes, imported->partitions[0].attributes); in TEST_F()
192 EXPECT_EQ(exported->partitions[0].first_extent_index, in TEST_F()
193 imported->partitions[0].first_extent_index); in TEST_F()
194 EXPECT_EQ(exported->partitions[0].num_extents, imported->partitions[0].num_extents); in TEST_F()
217 ASSERT_EQ(imported->partitions.size(), 1); in TEST_F()
218 EXPECT_EQ(GetPartitionName(imported->partitions[0]), "system"); in TEST_F()
221 strncpy(imported->partitions[0].name, "vendor", sizeof(imported->partitions[0].name)); in TEST_F()
227 ASSERT_EQ(imported->partitions.size(), 1); in TEST_F()
[all …]
Dwriter.cpp55 std::string partitions(reinterpret_cast<const char*>(metadata.partitions.data()), in SerializeMetadata()
56 metadata.partitions.size() * sizeof(LpMetadataPartition)); in SerializeMetadata()
65 header.partitions.offset = 0; in SerializeMetadata()
66 header.extents.offset = header.partitions.offset + partitions.size(); in SerializeMetadata()
72 std::string tables = partitions + extents + groups + block_devices; in SerializeMetadata()
150 for (const auto& partition : metadata.partitions) { in ValidateAndSerializeMetadata()
/system/core/fs_mgr/
Dfs_mgr_remount.cpp248 android::fs_mgr::Fstab partitions; in do_remount() local
280 if (GetEntryForMountPoint(&partitions, it->mount_point) == nullptr) { in do_remount()
281 partitions.emplace_back(*it); in do_remount()
285 if (partitions.empty() && !retval) { in do_remount()
286 partitions = all; in do_remount()
294 for (auto it = partitions.begin(); it != partitions.end();) { in do_remount()
320 it = partitions.erase(it); in do_remount()
337 it = partitions.erase(it); in do_remount()
343 if (partitions.empty() || just_disabled_verity) { in do_remount()
354 if (!fs_mgr_overlayfs_mount_all(&partitions) && errno) { in do_remount()
[all …]
/system/core/fastboot/device/
Dutility.cpp115 for (const auto& partition : metadata.partitions) { in FindLogicalPartition()
157 std::vector<std::string> partitions; in ListPartitions() local
169 partitions.emplace_back(de->d_name); in ListPartitions()
192 for (const auto& partition : metadata->partitions) { in ListPartitions()
194 if (std::find(partitions.begin(), partitions.end(), partition_name) == in ListPartitions()
195 partitions.end()) { in ListPartitions()
196 partitions.emplace_back(partition_name); in ListPartitions()
200 return partitions; in ListPartitions()
Dvariables.cpp398 auto partitions = ListPartitions(device); in GetAllPartitionArgsWithSlot() local
399 for (const auto& partition : partitions) { in GetAllPartitionArgsWithSlot()
406 auto partitions = ListPartitions(device); in GetAllPartitionArgsNoSlot() local
410 auto names = std::move(partitions); in GetAllPartitionArgsNoSlot()
416 if (std::find(partitions.begin(), partitions.end(), slotless_name) == in GetAllPartitionArgsNoSlot()
417 partitions.end()) { in GetAllPartitionArgsNoSlot()
418 partitions.emplace_back(slotless_name); in GetAllPartitionArgsNoSlot()
424 for (const auto& partition : partitions) { in GetAllPartitionArgsNoSlot()
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc76 partition_weight_.resize(install_plan_.partitions.size()); in PerformAction()
78 for (size_t i = 0; i < install_plan_.partitions.size(); ++i) { in PerformAction()
79 auto& partition = install_plan_.partitions[i]; in PerformAction()
105 while (current_partition_ < install_plan_.partitions.size() && in PerformPartitionPostinstall()
106 !install_plan_.partitions[current_partition_].run_postinstall) { in PerformPartitionPostinstall()
108 << install_plan_.partitions[current_partition_].name; in PerformPartitionPostinstall()
111 if (current_partition_ == install_plan_.partitions.size()) in PerformPartitionPostinstall()
115 install_plan_.partitions[current_partition_]; in PerformPartitionPostinstall()
326 if (install_plan_.partitions[current_partition_].postinstall_optional) { in CompletePartitionPostinstall()
Dfilesystem_verifier_action.cc54 if (install_plan_.partitions.empty()) { in PerformAction()
92 if (partition_index_ == install_plan_.partitions.size()) { in StartPartitionHashing()
111 install_plan_.partitions[partition_index_]; in StartPartitionHashing()
174 install_plan_.partitions[partition_index_]; in ScheduleRead()
216 << install_plan_.partitions[partition_index_].name; in OnReadDoneCallback()
233 install_plan_.partitions.size()); in OnReadDoneCallback()
265 install_plan_.partitions[partition_index_]; in FinishPartitionHashing()
Dinstall_plan.cc53 (target_slot == that.target_slot) && (partitions == that.partitions)); in operator ==()
62 for (const auto& partition : partitions) { in Dump()
114 for (Partition& partition : partitions) { in LoadPartitionsFromSlots()
Ddelta_performer_integration_test.cc545 payload_config.source.partitions.emplace_back(kPartitionNameRoot); in GenerateDeltaFile()
546 payload_config.source.partitions.emplace_back(kPartitionNameKernel); in GenerateDeltaFile()
547 payload_config.source.partitions.front().path = state->a_img; in GenerateDeltaFile()
549 payload_config.source.partitions.back().path = state->old_kernel; in GenerateDeltaFile()
552 for (PartitionConfig& part : payload_config.source.partitions) in GenerateDeltaFile()
559 payload_config.target.partitions.emplace_back(kPartitionNameRoot); in GenerateDeltaFile()
560 payload_config.target.partitions.back().path = state->b_img; in GenerateDeltaFile()
561 payload_config.target.partitions.emplace_back(kPartitionNameKernel); in GenerateDeltaFile()
562 payload_config.target.partitions.back().path = state->new_kernel; in GenerateDeltaFile()
565 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
/system/sepolicy/prebuilts/api/30.0/public/
Ddevice.te76 # 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/public/
Ddevice.te77 # Documented at https://source.android.com/devices/bootloader/partitions-images
81 # Documented at https://source.android.com/devices/bootloader/partitions-images
85 # Documented at https://source.android.com/devices/bootloader/partitions-images
89 # Documented at https://source.android.com/devices/bootloader/partitions-images
93 # Documented at https://source.android.com/devices/bootloader/partitions-images
102 # Documented at https://source.android.com/devices/bootloader/partitions-images
106 # Documented at https://source.android.com/devices/bootloader/partitions-images
/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()
/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/update_engine/common/
Ddynamic_partition_control_stub.h52 uint32_t current_slot, std::vector<std::string>* partitions) override;
58 const std::vector<std::string>& partitions) override;
Ddynamic_partition_control_stub.cc71 uint32_t current_slot, std::vector<std::string>* partitions) { in ListDynamicPartitionsForSlot() argument
82 const std::vector<std::string>& partitions) { in VerifyExtentsForUntouchedPartitions() argument
Ddynamic_partition_control_interface.h127 uint32_t current_slot, std::vector<std::string>* partitions) = 0;
139 const std::vector<std::string>& partitions) = 0;
/system/core/fastboot/
Dfastboot.bash105 local partitions
112partitions="boot bootloader dtbo modem odm odm_dlkm oem product radio recovery system vbmeta vendo…
113 COMPREPLY=( $(compgen -W "$partitions" -- $cur) )
/system/update_engine/scripts/
Dpayload_info.py73 DisplayValue('Number of partitions', len(manifest.partitions))
74 for partition in manifest.partitions:
170 for partition in manifest.partitions:
209 for partition in self.payload.manifest.partitions:

123456