Lines Matching refs:roleName
129 void extractRole(std::string *roleName) { in extractRole() argument
132 first = roleName->find("["); in extractRole()
133 last = roleName->find("]"); in extractRole()
136 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole()
313 std::string roleName; in getCurrentRoleHelper() local
346 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
352 extractRole(&roleName); in getCurrentRoleHelper()
354 if (roleName == "source") { in getCurrentRoleHelper()
356 } else if (roleName == "sink") { in getCurrentRoleHelper()
358 } else if (roleName == "host") { in getCurrentRoleHelper()
363 } else if (roleName == "device") { in getCurrentRoleHelper()
368 } else if (roleName != "none") { in getCurrentRoleHelper()