Lines Matching refs:roleName
284 void extractRole(string *roleName) { in extractRole() argument
287 first = roleName->find("["); in extractRole()
288 last = roleName->find("]"); in extractRole()
291 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole()
461 string roleName; in getCurrentRoleHelper() local
493 if (!ReadFileToString(filename, &roleName)) { in getCurrentRoleHelper()
498 roleName = Trim(roleName); in getCurrentRoleHelper()
499 extractRole(&roleName); in getCurrentRoleHelper()
501 if (roleName == "source") { in getCurrentRoleHelper()
503 } else if (roleName == "sink") { in getCurrentRoleHelper()
505 } else if (roleName == "host") { in getCurrentRoleHelper()
510 } else if (roleName == "device") { in getCurrentRoleHelper()
515 } else if (roleName != "none") { in getCurrentRoleHelper()