/system/update_engine/ |
D | boot_control_android_unittest.cc | 117 return os << m.groups; in operator <<() 148 metadata.groups.push_back( in partitionSuffixSizesToMetadata() 156 metadata.groups[suffix_idx].partitions.push_back( in partitionSuffixSizesToMetadata() 168 metadata.groups.push_back({string{kDefaultGroup}, kDefaultGroupSize, {}}); in partitionSizesToMetadata() 170 metadata.groups[0].partitions.push_back({pair.first, pair.second}); in partitionSizesToMetadata() 183 for (const auto& group : metadata.groups) { in NewFakeMetadata() 203 for (const auto& group : partition_metadata_.groups) { in MatchAndExplain() 255 auto groups = arg->ListGroups(); variable 256 return std::find(groups.begin(), groups.end(), group) != groups.end(); 720 {.groups = {SimpleGroup(S("android"), 3_GiB, S("system"), 2_GiB), in SetUp() [all …]
|
D | boot_control_android.cc | 308 std::vector<string> groups = builder->ListGroups(); in UpdatePartitionMetadata() local 309 for (const auto& group_name : groups) { in UpdatePartitionMetadata() 318 for (const auto& group : partition_metadata.groups) { in UpdatePartitionMetadata() 336 for (const auto& group : partition_metadata.groups) { in UpdatePartitionMetadata() 374 for (const auto& group : partition_metadata.groups) { in UnmapTargetPartitions() 411 is_target_dynamic_ = !partition_metadata.groups.empty(); in InitPartitionMetadata()
|
/system/extras/ext4_utils/ |
D | ext4_utils.cpp | 114 aux_info.groups = DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block, in ext4_create_fs_aux_info() 121 DIV_ROUND_UP(aux_info.groups * sizeof(struct ext2_group_desc), in ext4_create_fs_aux_info() 129 if (ext4_bg_has_super_block((int)aux_info.groups - 1)) in ext4_create_fs_aux_info() 132 if (aux_info.groups <= 1 && last_group_size < last_header_size) { in ext4_create_fs_aux_info() 136 aux_info.groups--; in ext4_create_fs_aux_info() 162 aux_info.backup_sb = (struct ext4_super_block **)calloc(aux_info.groups, sizeof(char *)); in ext4_create_fs_aux_info() 177 for (i=0; i<aux_info.groups; i++) { in ext4_free_fs_aux_info() 299 printf(" Block groups: %d\n", aux_info.groups); in read_ext()
|
/system/extras/runconuid/ |
D | runconuid.cpp | 48 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/logd/ |
D | main.cpp | 135 gid_t groups[] = { AID_READPROC }; in drop_privs() local 137 if (setgroups(arraysize(groups), groups) == -1) { in drop_privs() 235 gid_t groups[] = { in reinit_thread_start() local 239 if (setgroups(arraysize(groups), groups) == -1) { in reinit_thread_start()
|
/system/core/fs_mgr/liblp/ |
D | reader.cpp | 189 !ValidateTableBounds(header, header.groups) || in ValidateMetadataHeader() 204 if (header.groups.entry_size != sizeof(LpMetadataPartitionGroup)) { in ValidateMetadataHeader() 267 if (partition.group_index >= header.groups.num_entries) { in ParseMetadata() 290 cursor = buffer.get() + header.groups.offset; in ParseMetadata() 291 for (size_t i = 0; i < header.groups.num_entries; i++) { in ParseMetadata() 294 cursor += header.groups.entry_size; in ParseMetadata() 296 metadata->groups.push_back(group); in ParseMetadata() 382 for (auto& group : metadata->groups) { in AdjustMetadataForSlot()
|
D | writer.cpp | 58 std::string groups(reinterpret_cast<const char*>(metadata.groups.data()), in SerializeMetadata() 59 metadata.groups.size() * sizeof(LpMetadataPartitionGroup)); in SerializeMetadata() 66 header.groups.offset = header.extents.offset + extents.size(); in SerializeMetadata() 67 header.block_devices.offset = header.groups.offset + groups.size(); in SerializeMetadata() 71 std::string tables = partitions + extents + groups + block_devices; in SerializeMetadata()
|
D | io_test.cpp | 647 ASSERT_EQ(metadata->groups.size(), static_cast<size_t>(2)); in TEST() 648 EXPECT_EQ(GetPartitionGroupName(metadata->groups[0]), "default"); in TEST() 649 EXPECT_EQ(GetPartitionGroupName(metadata->groups[1]), "example_b"); in TEST() 650 EXPECT_EQ(metadata->groups[0].flags, 0); in TEST() 651 EXPECT_EQ(metadata->groups[1].flags, 0); in TEST() 659 ASSERT_EQ(metadata->groups.size(), static_cast<size_t>(2)); in TEST() 660 EXPECT_EQ(GetPartitionGroupName(metadata->groups[0]), "default"); in TEST() 661 EXPECT_EQ(GetPartitionGroupName(metadata->groups[1]), "example_a"); in TEST() 662 EXPECT_EQ(metadata->groups[0].flags, 0); in TEST() 663 EXPECT_EQ(metadata->groups[1].flags, 0); in TEST() [all …]
|
D | builder.cpp | 180 metadata->groups.clear(); in NewForUpdate() 229 header_.groups.entry_size = sizeof(LpMetadataPartitionGroup); in MetadataBuilder() 237 for (const auto& group : metadata.groups) { in Init() 245 std::string group_name = GetPartitionGroupName(metadata.groups[partition.group_index]); in Init() 775 group_indices[group->name()] = metadata->groups.size(); in Export() 776 metadata->groups.push_back(out); in Export() 820 metadata->header.groups.num_entries = static_cast<uint32_t>(metadata->groups.size()); in Export() 1022 std::string group_name = GetPartitionGroupName(metadata.groups[source.group_index]); in ImportPartition()
|
/system/core/adb/daemon/ |
D | main.cpp | 123 gid_t groups[] = {AID_ADB, AID_LOG, AID_INPUT, AID_INET, in drop_privileges() local 126 minijail_set_supplementary_gids(jail.get(), arraysize(groups), groups); in drop_privileges()
|
/system/connectivity/wificond/net/ |
D | netlink_manager.cpp | 197 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/ |
D | tun_interface.cpp | 129 sockaddr_nl groups = {.nl_family = AF_NETLINK, in addAddress() local 131 if (bind(s, reinterpret_cast<sockaddr*>(&groups), sizeof(groups)) == -1) return -errno; in addAddress()
|
/system/tools/hidl/docs/src/lexer/ |
D | ILexer.kt | 63 val n1 = matchResult.groups[1]?.value in <lambda>() 64 val n2 = matchResult.groups[2]?.value in <lambda>()
|
D | HidlLexer.kt | 61 val matches = matchToDocEnd.find(line)?.groups in <lambda>()
|
/system/core/init/ |
D | first_stage_init.cpp | 129 gid_t groups[] = {AID_READPROC}; in FirstStageMain() local 130 CHECKCALL(setgroups(arraysize(groups), groups)); in FirstStageMain()
|
/system/netd/server/ |
D | NetlinkManager.h | 63 NetlinkHandler* setupSocket(int *sock, int netlinkFamily, int groups,
|
D | NetlinkManager.cpp | 67 int groups, int format, bool configNflog) { in setupSocket() argument 77 nladdr.nl_groups = groups; in setupSocket()
|
/system/core/liblog/ |
D | logger_write.cpp | 63 gid_t* groups; in check_log_uid_permissions() local 69 groups = static_cast<gid_t*>(calloc(num_groups, sizeof(gid_t))); in check_log_uid_permissions() 70 if (!groups) { in check_log_uid_permissions() 73 num_groups = getgroups(num_groups, groups); in check_log_uid_permissions() 75 if (groups[num_groups - 1] == AID_LOG) { in check_log_uid_permissions() 80 free(groups); in check_log_uid_permissions()
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_unittest.cc | 70 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/extras/partition_tools/ |
D | lpmake.cc | 109 std::vector<std::string> groups; in main() local 145 groups.push_back(optarg); in main() 279 for (const auto& group_info : groups) { in main()
|
/system/update_engine/common/ |
D | boot_control_interface.h | 48 std::vector<Group> groups; member
|
/system/tools/hidl/docs/src/parser/elements/ |
D | AnnotationParser.kt | 63 ?.groups?.get(1) in parseAnnotationValue()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | metadata_format.h | 196 LpMetadataTableDescriptor groups; member
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | wpantund.te | 20 # create sockets to set interfaces up and down, add multicast groups, etc.
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | wpantund.te | 20 # create sockets to set interfaces up and down, add multicast groups, etc.
|