Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 25 of 76) sorted by relevance

1234

/system/extras/ext4_utils/
Dext4_utils.cpp116 aux_info.groups = DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block, in ext4_create_fs_aux_info()
123 DIV_ROUND_UP(aux_info.groups * sizeof(struct ext2_group_desc), in ext4_create_fs_aux_info()
131 if (ext4_bg_has_super_block((int)aux_info.groups - 1)) in ext4_create_fs_aux_info()
134 if (aux_info.groups <= 1 && last_group_size < last_header_size) { in ext4_create_fs_aux_info()
138 aux_info.groups--; in ext4_create_fs_aux_info()
164 aux_info.backup_sb = (struct ext4_super_block **)calloc(aux_info.groups, sizeof(char *)); in ext4_create_fs_aux_info()
179 for (i=0; i<aux_info.groups; i++) { in ext4_free_fs_aux_info()
301 printf(" Block groups: %d\n", aux_info.groups); in read_ext()
/system/update_engine/
Ddynamic_partition_utils.cc30 std::vector<std::string> groups = builder->ListGroups(); in DeleteGroupsWithSuffix() local
31 for (const auto& group_name : groups) { in DeleteGroupsWithSuffix()
Ddynamic_partition_test_utils.h108 VectorToStream(os, m.dynamic_partition_metadata().groups());
181 for (const auto& group : manifest.dynamic_partition_metadata().groups()) {
207 for (const auto& group : manifest_.dynamic_partition_metadata().groups()) { in MatchAndExplain()
271 auto groups = arg->ListGroups(); variable
272 return std::find(groups.begin(), groups.end(), group) != groups.end();
/system/extras/runconuid/
Drunconuid.cpp48 static gid_t* groups = nullptr; variable
71 if (ngroups && setgroups(ngroups, groups) < 0) { in do_child()
134 groups = (gid_t*)calloc(ngroups, sizeof(gid_t)); in lookup_groups()
139 groups[n] = lookup_gid(group); in lookup_groups()
/system/core/fs_mgr/liblp/
Dwriter.cpp59 std::string groups(reinterpret_cast<const char*>(metadata.groups.data()), in SerializeMetadata()
60 metadata.groups.size() * sizeof(LpMetadataPartitionGroup)); in SerializeMetadata()
67 header.groups.offset = header.extents.offset + extents.size(); in SerializeMetadata()
68 header.block_devices.offset = header.groups.offset + groups.size(); in SerializeMetadata()
72 std::string tables = partitions + extents + groups + block_devices; in SerializeMetadata()
Dreader.cpp222 !ValidateTableBounds(header, header.groups) || in ReadMetadataHeader()
237 if (header.groups.entry_size != sizeof(LpMetadataPartitionGroup)) { in ReadMetadataHeader()
308 if (partition.group_index >= header.groups.num_entries) { in ParseMetadata()
331 cursor = buffer.get() + header.groups.offset; in ParseMetadata()
332 for (size_t i = 0; i < header.groups.num_entries; i++) { in ParseMetadata()
335 cursor += header.groups.entry_size; in ParseMetadata()
337 metadata->groups.push_back(group); in ParseMetadata()
423 for (auto& group : metadata->groups) { in AdjustMetadataForSlot()
Dio_test.cpp650 ASSERT_EQ(metadata->groups.size(), static_cast<size_t>(2)); in TEST_F()
651 EXPECT_EQ(GetPartitionGroupName(metadata->groups[0]), "default"); in TEST_F()
652 EXPECT_EQ(GetPartitionGroupName(metadata->groups[1]), "example_b"); in TEST_F()
653 EXPECT_EQ(metadata->groups[0].flags, 0); in TEST_F()
654 EXPECT_EQ(metadata->groups[1].flags, 0); in TEST_F()
662 ASSERT_EQ(metadata->groups.size(), static_cast<size_t>(2)); in TEST_F()
663 EXPECT_EQ(GetPartitionGroupName(metadata->groups[0]), "default"); in TEST_F()
664 EXPECT_EQ(GetPartitionGroupName(metadata->groups[1]), "example_a"); in TEST_F()
665 EXPECT_EQ(metadata->groups[0].flags, 0); in TEST_F()
666 EXPECT_EQ(metadata->groups[1].flags, 0); in TEST_F()
[all …]
Dutility.cpp232 for (auto& group : metadata->groups) { in UpdateMetadataForInPlaceSnapshot()
267 &metadata->groups[partition.group_index]); in UpdateMetadataForInPlaceSnapshot()
270 << GetPartitionGroupName(metadata->groups[partition.group_index]) in UpdateMetadataForInPlaceSnapshot()
285 metadata->groups = std::move(new_groups); in UpdateMetadataForInPlaceSnapshot()
Dbuilder.cpp267 metadata->groups.clear(); in UpdateMetadataForOtherSuper()
312 header_.groups.entry_size = sizeof(LpMetadataPartitionGroup); in MetadataBuilder()
326 for (const auto& group : metadata.groups) { in Init()
334 std::string group_name = GetPartitionGroupName(metadata.groups[partition.group_index]); in Init()
911 group_indices[group->name()] = metadata->groups.size(); in Export()
912 metadata->groups.push_back(out); in Export()
961 metadata->header.groups.num_entries = static_cast<uint32_t>(metadata->groups.size()); in Export()
1184 std::string group_name = GetPartitionGroupName(metadata.groups[source.group_index]); in ImportPartition()
/system/connectivity/wificond/net/
Dnetlink_manager.cpp197 vector<NL80211NestedAttr> groups; in OnNewFamily() local
198 if (!multicast_groups.GetListOfNestedAttributes(&groups)) { in OnNewFamily()
201 for (auto& group : groups) { in OnNewFamily()
212 message_types_[family_name].groups[group_name] = group_id; in OnNewFamily()
469 auto groups = message_types_[NL80211_GENL_NAME].groups; in SubscribeToEvents() local
470 if (groups.find(group) == groups.end()) { in SubscribeToEvents()
474 uint32_t group_id = groups[group]; in SubscribeToEvents()
/system/netd/tests/
Dtun_interface.cpp131 sockaddr_nl groups = {.nl_family = AF_NETLINK, in addAddress() local
133 if (bind(s, reinterpret_cast<sockaddr*>(&groups), sizeof(groups)) == -1) return -errno; in addAddress()
/system/core/fs_mgr/libsnapshot/corpus/
Dlaunch_device.txt32 groups {
88 groups {
/system/core/liblog/
Dlogger_write.cpp72 gid_t* groups; in check_log_uid_permissions() local
78 groups = static_cast<gid_t*>(calloc(num_groups, sizeof(gid_t))); in check_log_uid_permissions()
79 if (!groups) { in check_log_uid_permissions()
82 num_groups = getgroups(num_groups, groups); in check_log_uid_permissions()
84 if (groups[num_groups - 1] == AID_LOG) { in check_log_uid_permissions()
89 free(groups); in check_log_uid_permissions()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h219 LpMetadataTableDescriptor groups; member
393 LpMetadataTableDescriptor groups; member
/system/core/adb/daemon/
Dmain.cpp111 gid_t groups[] = {AID_ADB, AID_LOG, AID_INPUT, AID_INET, in drop_privileges() local
114 minijail_set_supplementary_gids(jail.get(), arraysize(groups), groups); in drop_privileges()
/system/netd/server/
DNetlinkManager.h63 NetlinkHandler* setupSocket(int *sock, int netlinkFamily, int groups,
DNetlinkManager.cpp68 int groups, int format, bool configNflog) { in setupSocket() argument
78 nladdr.nl_groups = groups; in setupSocket()
/system/update_engine/payload_generator/
Dpayload_generation_config_unittest.cc70 const auto& group_a = image_config.dynamic_partition_metadata->groups(0); in TEST_F()
77 const auto& group_b = image_config.dynamic_partition_metadata->groups(1); in TEST_F()
/system/core/init/
Dfirst_stage_init.cpp203 gid_t groups[] = {AID_READPROC}; in FirstStageMain() local
204 CHECKCALL(setgroups(arraysize(groups), groups)); in FirstStageMain()
/system/extras/partition_tools/
Dlpmake.cc142 std::vector<std::string> groups; in main() local
180 groups.push_back(optarg); in main()
323 for (const auto& group_info : groups) { in main()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h111 u32 groups; member
/system/sepolicy/prebuilts/api/28.0/public/
Dwpantund.te20 # create sockets to set interfaces up and down, add multicast groups, etc.
/system/sepolicy/prebuilts/api/29.0/public/
Dwpantund.te20 # create sockets to set interfaces up and down, add multicast groups, etc.
/system/sepolicy/prebuilts/api/30.0/public/
Dwpantund.te20 # create sockets to set interfaces up and down, add multicast groups, etc.
/system/sepolicy/public/
Dwpantund.te20 # create sockets to set interfaces up and down, add multicast groups, etc.

1234