Home
last modified time | relevance | path

Searched refs:attr_name (Results 1 – 6 of 6) sorted by relevance

/system/core/libprocessgroup/
Dtask_profiles_test.cpp139 const char* attr_name; member
162 ProfileAttributeMock pa(params.attr_name); in TEST_P()
192 ProfileAttributeMock pa(params.attr_name); in TEST_P()
213 TestParam{.attr_name = "no-such-attribute",
221 TestParam{.attr_name = "no-such-attribute",
228 TestParam{.attr_name = "cgroup.procs",
238 .attr_name = "cgroup.controllers",
251 TestParam{.attr_name = "no-such-attribute",
256 TestParam{.attr_name = "no-such-attribute",
261 TestParam{.attr_name = "cgroup.procs",
[all …]
Dprocessgroup.cpp108 bool CgroupGetAttributePath(const std::string& attr_name, std::string* path) { in CgroupGetAttributePath() argument
110 const IProfileAttribute* attr = tp.GetAttribute(attr_name); in CgroupGetAttributePath()
123 bool CgroupGetAttributePathForTask(const std::string& attr_name, int tid, std::string* path) { in CgroupGetAttributePathForTask() argument
125 const IProfileAttribute* attr = tp.GetAttribute(attr_name); in CgroupGetAttributePathForTask()
626 static bool SetProcessGroupValue(int tid, const std::string& attr_name, int64_t value) { in SetProcessGroupValue() argument
633 if (!CgroupGetAttributePathForTask(attr_name, tid, &path)) { in SetProcessGroupValue()
634 PLOG(ERROR) << "Failed to find attribute '" << attr_name << "'"; in SetProcessGroupValue()
657 bool getAttributePathForTask(const std::string& attr_name, int tid, std::string* path) { in getAttributePathForTask() argument
658 return CgroupGetAttributePathForTask(attr_name, tid, path); in getAttributePathForTask()
Dtask_profiles.cpp885 std::string attr_name = params_val["Name"].asString(); in Load() local
889 auto iter = attributes_.find(attr_name); in Load()
894 LOG(WARNING) << "SetAttribute: unknown attribute: " << attr_name; in Load()
/system/core/libprocessgroup/include/processgroup/
Dprocessgroup.h34 bool CgroupGetAttributePath(const std::string& attr_name, std::string* path);
35 bool CgroupGetAttributePathForTask(const std::string& attr_name, int tid, std::string* path);
97 bool getAttributePathForTask(const std::string& attr_name, int tid, std::string* path);
/system/media/audio_route/
Daudio_route.c476 const XML_Char *attr_name = NULL; in start_tag() local
493 attr_name = attr[i + 1]; in start_tag()
502 if (attr_name == NULL) { in start_tag()
507 state->path = path_create(ar, (char *)attr_name); in start_tag()
512 struct mixer_path *sub_path = path_get_by_name(ar, attr_name); in start_tag()
514 ALOGW("unable to find sub path '%s'", attr_name); in start_tag()
522 ctl = mixer_get_ctl_by_name(ar->mixer, attr_name); in start_tag()
524 ALOGW("Control '%s' doesn't exist - skipping", attr_name); in start_tag()
531 ALOGE("No value specified for ctl %s", attr_name); in start_tag()
541 ALOGE("No value specified for ctl %s", attr_name); in start_tag()
[all …]
/system/sepolicy/tools/
Dcheckfc.c72 static int get_attr_bit(policydb_t *policydb, const char *attr_name) in get_attr_bit() argument
74 struct type_datum *attr = hashtab_search(policydb->p_types.table, (char *)attr_name); in get_attr_bit()
76 fprintf(stderr, "Error: \"%s\" is not defined in this policy.\n", attr_name); in get_attr_bit()
81 fprintf(stderr, "Error: \"%s\" is not an attribute in this policy.\n", attr_name); in get_attr_bit()