Lines Matching refs:roleName
103 void extractRole(std::string *roleName) { in extractRole() argument
106 first = roleName->find("["); in extractRole()
107 last = roleName->find("]"); in extractRole()
110 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole()
287 std::string roleName; in getCurrentRoleHelper() local
320 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
326 extractRole(&roleName); in getCurrentRoleHelper()
328 if (roleName == "source") { in getCurrentRoleHelper()
330 } else if (roleName == "sink") { in getCurrentRoleHelper()
332 } else if (roleName == "host") { in getCurrentRoleHelper()
337 } else if (roleName == "device") { in getCurrentRoleHelper()
342 } else if (roleName != "none") { in getCurrentRoleHelper()