Lines Matching refs:builder

104   MetadataBuilder* builder;  member
143 auto partition = params.builder->FindPartition(partition_name_suffix); in PerformOpResize()
153 if (!params.builder->ResizePartition(partition, size.value())) { in PerformOpResize()
169 params.builder->RemovePartition(partition_name_suffix); in PerformOpRemove()
178 if (params.builder->AddPartition(partition_name_suffix, group_name_suffix, in PerformOpAdd()
192 auto partition = params.builder->FindPartition(partition_name_suffix); in PerformOpMove()
201 if (!params.builder->ChangePartitionGroup(partition, new_group_name_suffix)) { in PerformOpMove()
216 auto group = params.builder->FindGroup(group_name_suffix); in PerformOpAddGroup()
226 if (!params.builder->AddGroup(group_name_suffix, maximum_size.value())) { in PerformOpAddGroup()
240 auto group = params.builder->FindGroup(group_name_suffix); in PerformOpResizeGroup()
248 if (!params.builder->ChangeGroupSize(group_name_suffix, new_size.value())) { in PerformOpResizeGroup()
257 std::vector<std::string> ListPartitionNamesInGroup(MetadataBuilder* builder, in ListPartitionNamesInGroup() argument
259 auto partitions = builder->ListPartitionsInGroup(group_name_suffix); in ListPartitionNamesInGroup()
270 auto partition_names = ListPartitionNamesInGroup(params.builder, group_name_suffix); in PerformOpRemoveGroup()
277 params.builder->RemoveGroupAndPartitions(group_name_suffix); in PerformOpRemoveGroup()
284 auto group_names = params.builder->ListGroups(); in PerformOpRemoveAllGroups()
286 auto partition_names = ListPartitionNamesInGroup(params.builder, group_name_suffix); in PerformOpRemoveAllGroups()
294 params.builder->RemoveGroupAndPartitions(group_name_suffix); in PerformOpRemoveAllGroups()
303 auto builder = MetadataBuilder::New(PartitionOpener(), super_device, 0); in UpdateDynamicPartitions() local
304 if (builder == nullptr) { in UpdateDynamicPartitions()
338 params.builder = builder.get(); in UpdateDynamicPartitions()
344 auto metadata = builder->Export(); in UpdateDynamicPartitions()