Lines Matching refs:roleName
170 void extractRole(string *roleName) { in extractRole() argument
173 first = roleName->find("["); in extractRole()
174 last = roleName->find("]"); in extractRole()
177 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole()
365 string roleName; in getCurrentRoleHelper() local
399 if (!ReadFileToString(filename, &roleName)) { in getCurrentRoleHelper()
404 roleName = Trim(roleName); in getCurrentRoleHelper()
405 extractRole(&roleName); in getCurrentRoleHelper()
407 if (roleName == "source") { in getCurrentRoleHelper()
409 } else if (roleName == "sink") { in getCurrentRoleHelper()
411 } else if (roleName == "host") { in getCurrentRoleHelper()
416 } else if (roleName == "device") { in getCurrentRoleHelper()
421 } else if (roleName != "none") { in getCurrentRoleHelper()