Home
last modified time | relevance | path

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

/system/core/libprocessgroup/include/processgroup/
Dprocessgroup.h29 bool CgroupGetAttributePath(const std::string& attr_name, std::string* path);
30 bool CgroupGetAttributePathForTask(const std::string& attr_name, int tid, std::string* path);
/system/core/libprocessgroup/
Dprocessgroup.cpp72 bool CgroupGetAttributePath(const std::string& attr_name, std::string* path) { in CgroupGetAttributePath() argument
74 const ProfileAttribute* attr = tp.GetAttribute(attr_name); in CgroupGetAttributePath()
87 bool CgroupGetAttributePathForTask(const std::string& attr_name, int tid, std::string* path) { in CgroupGetAttributePathForTask() argument
89 const ProfileAttribute* attr = tp.GetAttribute(attr_name); in CgroupGetAttributePathForTask()
432 static bool SetProcessGroupValue(int tid, const std::string& attr_name, int64_t value) { in SetProcessGroupValue() argument
439 if (!CgroupGetAttributePathForTask(attr_name, tid, &path)) { in SetProcessGroupValue()
440 PLOG(ERROR) << "Failed to find attribute '" << attr_name << "'"; in SetProcessGroupValue()
Dtask_profiles.cpp385 std::string attr_name = params_val["Name"].asString(); in Load() local
388 auto iter = attributes_.find(attr_name); in Load()
393 LOG(WARNING) << "SetAttribute: unknown attribute: " << attr_name; in Load()
/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()
/system/media/audio_route/
Daudio_route.c455 const XML_Char *attr_name = NULL; in start_tag() local
471 attr_name = attr[i + 1]; in start_tag()
480 if (attr_name == NULL) { in start_tag()
485 state->path = path_create(ar, (char *)attr_name); in start_tag()
490 struct mixer_path *sub_path = path_get_by_name(ar, attr_name); in start_tag()
492 ALOGE("unable to find sub path '%s'", attr_name); in start_tag()
502 ctl = mixer_get_ctl_by_name(ar->mixer, attr_name); in start_tag()
504 ALOGE("Control '%s' doesn't exist - skipping", attr_name); in start_tag()