Home
last modified time | relevance | path

Searched refs:group_name (Results 1 – 21 of 21) sorted by relevance

/system/extras/simpleperf/
DProbeEvents_test.cpp29 ASSERT_EQ(event.group_name, "kprobes"); in TEST()
33 ASSERT_EQ(event.group_name, "mygroup"); in TEST()
37 ASSERT_EQ(event.group_name, "kprobes"); in TEST()
41 ASSERT_EQ(event.group_name, "kprobes"); in TEST()
45 ASSERT_EQ(event.group_name, "kprobes"); in TEST()
49 ASSERT_EQ(event.group_name, "kprobes"); in TEST()
DProbeEvents.cpp57 event->group_name = "kprobes"; in ParseKprobeEventName()
62 event->group_name = matches[1].str(); in ParseKprobeEventName()
63 event->group_name.pop_back(); in ParseKprobeEventName()
135 if (!WriteKprobeCmd("-:" + kprobe_event.group_name + "/" + kprobe_event.event_name)) { in Clear()
136 LOG(WARNING) << "failed to delete kprobe event " << kprobe_event.group_name << ":" in Clear()
139 EventTypeManager::Instance().RemoveProbeType(kprobe_event.group_name + ":" + in Clear()
DProbeEvents.h26 std::string group_name; member
/system/update_engine/aosp/
Ddynamic_partition_utils.cc31 for (const auto& group_name : groups) { in DeleteGroupsWithSuffix() local
32 if (base::EndsWith(group_name, suffix, base::CompareCase::SENSITIVE)) { in DeleteGroupsWithSuffix()
33 LOG(INFO) << "Removing group " << group_name; in DeleteGroupsWithSuffix()
34 builder->RemoveGroupAndPartitions(group_name); in DeleteGroupsWithSuffix()
Ddynamic_partition_test_utils.h238 if (p->group_name() != group.name()) { in MatchAndExplain()
242 << p->group_name() << ", expected " << group.name(); in MatchAndExplain()
/system/update_engine/payload_generator/
Dpayload_generation_config.cc150 for (const auto& group_name : group_names) { in LoadDynamicPartitionMetadata() local
152 group->set_name(group_name); in LoadDynamicPartitionMetadata()
153 if (!store.GetString("super_" + group_name + "_group_size", &buf) && in LoadDynamicPartitionMetadata()
154 !store.GetString(group_name + "_size", &buf)) { in LoadDynamicPartitionMetadata()
155 LOG(ERROR) << "Missing super_" << group_name + "_group_size or " in LoadDynamicPartitionMetadata()
156 << group_name << "_size."; in LoadDynamicPartitionMetadata()
162 LOG(ERROR) << "Group size for " << group_name << " = " << buf in LoadDynamicPartitionMetadata()
168 if (store.GetString("super_" + group_name + "_partition_list", &buf) || in LoadDynamicPartitionMetadata()
169 store.GetString(group_name + "_partition_list", &buf)) { in LoadDynamicPartitionMetadata()
/system/core/fs_mgr/liblp/
Dbuilder.cpp98 Partition::Partition(std::string_view name, std::string_view group_name, uint32_t attributes) in Partition() argument
99 : name_(name), group_name_(group_name), attributes_(attributes), size_(0) {} in Partition()
327 std::string group_name = GetPartitionGroupName(group); in Init() local
328 if (!AddGroup(group_name, group.maximum_size)) { in Init()
334 std::string group_name = GetPartitionGroupName(metadata.groups[partition.group_index]); in Init() local
336 AddPartition(GetPartitionName(partition), group_name, partition.attributes); in Init()
516 bool MetadataBuilder::AddGroup(std::string_view group_name, uint64_t maximum_size) { in AddGroup() argument
517 if (FindGroup(group_name)) { in AddGroup()
518 LERROR << "Group already exists: " << group_name; in AddGroup()
521 groups_.push_back(std::make_unique<PartitionGroup>(group_name, maximum_size)); in AddGroup()
[all …]
Dutility.cpp233 std::string group_name = GetPartitionGroupName(group); in UpdateMetadataForInPlaceSnapshot() local
234 std::string slot_suffix = GetPartitionSlotSuffix(group_name); in UpdateMetadataForInPlaceSnapshot()
239 std::string new_name = group_name.substr(0, group_name.size() - slot_suffix.size()) + in UpdateMetadataForInPlaceSnapshot()
Dreader.cpp427 std::string group_name = GetPartitionGroupName(group) + slot_suffix; in AdjustMetadataForSlot() local
428 if (!UpdatePartitionGroupName(&group, group_name)) { in AdjustMetadataForSlot()
429 LERROR << __PRETTY_FUNCTION__ << " group name too long: " << group_name; in AdjustMetadataForSlot()
Dbuilder_test.cpp945 const std::string& partition_name, const std::string& group_name, in AddPartition() argument
948 Partition* p = builder->AddPartition(partition_name, group_name, 0); in AddPartition()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_metadata_updater.cpp128 if (existing_partition->group_name() == partition_update.group_name) { in MovePartitionsToDefault()
229 builder_->AddPartition(partition_update.name, partition_update.group_name, in AddPartitions()
263 if (existing_partition->group_name() == partition_update.group_name) { in MovePartitionsToCorrectGroup()
266 if (!builder_->ChangePartitionGroup(existing_partition, partition_update.group_name)) { in MovePartitionsToCorrectGroup()
Dsnapshot_metadata_updater_test.cpp121 AssertionResult CheckGroupName(std::string_view partition_name, std::string_view group_name) { in CheckGroupName() argument
126 if (p->group_name() != T(group_name)) { in CheckGroupName()
128 << T(group_name) << ", but is in " << p->group_name() << "."; in CheckGroupName()
130 return AssertionSuccess() << "Partition" << T(partition_name) << " is in " << T(group_name) in CheckGroupName()
Dsnapshot_metadata_updater.h73 std::string group_name; member
Dsnapshot.cpp2744 for (const auto& group_name : current_metadata->ListGroups()) { in CreateUpdateSnapshots() local
2745 if (android::base::EndsWith(group_name, target_suffix)) { in CreateUpdateSnapshots()
2746 current_metadata->RemoveGroupAndPartitions(group_name); in CreateUpdateSnapshots()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h130 Partition(std::string_view name, std::string_view group_name, uint32_t attributes);
143 const std::string& group_name() const { return group_name_; } in group_name() function
157 void set_group_name(std::string_view group_name) { group_name_ = group_name; } in set_group_name() argument
276 bool AddGroup(std::string_view group_name, uint64_t maximum_size);
284 Partition* AddPartition(std::string_view name, std::string_view group_name,
321 std::vector<Partition*> ListPartitionsInGroup(std::string_view group_name);
327 bool ChangePartitionGroup(Partition* partition, std::string_view group_name);
333 bool ChangeGroupSize(const std::string& group_name, uint64_t maximum_size);
343 void RemoveGroupAndPartitions(std::string_view group_name);
/system/extras/partition_tools/
Dlpdump.cc144 for (const auto& group_name : builder->ListGroups()) { in MergeMetadata() local
145 auto group = builder->FindGroup(group_name); in MergeMetadata()
147 if (!base::EndsWith(group_name, slot_suffix)) continue; in MergeMetadata()
149 group_proto->set_name(RemoveSuffix(group_name, slot_suffix)); in MergeMetadata()
152 for (auto partition : builder->ListPartitionsInGroup(group_name)) { in MergeMetadata()
157 partition_proto->set_group_name(RemoveSuffix(group_name, slot_suffix)); in MergeMetadata()
320 std::string group_name = GetPartitionGroupName(pt.groups[partition.group_index]); in PrintMetadata() local
322 cout << " Group: " << group_name << "\n"; in PrintMetadata()
375 std::string group_name = GetPartitionGroupName(group); in PrintMetadata() local
376 cout << " Name: " << group_name << "\n"; in PrintMetadata()
Dlpmake.cc123 std::string group_name; member
149 std::string group_name = "default"; in Parse() local
151 group_name = parts[3]; in Parse()
154 return PartitionInfo{name, size, attribute_flags, group_name}; in Parse()
420 Partition* partition = builder->AddPartition(partition_info.name, partition_info.group_name, in main()
Ddynamic_partitions_device_info.proto31 string group_name = 2 [json_name = "group_name"]; field
Dlpadd.cc107 bool AddPartition(const std::string& partition_name, const std::string& group_name,
160 bool SuperHelper::AddPartition(const std::string& partition_name, const std::string& group_name, in AddPartition() argument
167 auto partition = builder_->AddPartition(partition_name, group_name, attributes); in AddPartition()
451 std::string group_name = argv[optind++]; in main() local
474 if (!super.AddPartition(partition_name, group_name, attributes, image_path)) { in main()
/system/core/fastboot/device/
Dflashing.cpp212 std::string group_name = GetPartitionGroupName(old_metadata->groups[partition.group_index]); in UpdateSuper() local
214 if (group_name == android::snapshot::kCowGroupName) { in UpdateSuper()
/system/connectivity/wificond/net/
Dnetlink_manager.cpp202 string group_name; in OnNewFamily() local
204 if (!group.GetAttributeValue(CTRL_ATTR_MCAST_GRP_NAME, &group_name)) { in OnNewFamily()
212 message_types_[family_name].groups[group_name] = group_id; in OnNewFamily()