Home
last modified time | relevance | path

Searched refs:roleName (Results 1 – 4 of 4) sorted by relevance

/device/google/bonito/usb/
DUsb.cpp103 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()
[all …]
/device/google/wahoo/usb/
DUsb.cpp129 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()
[all …]
/device/google/crosshatch/usb/
DUsb.cpp105 void extractRole(std::string *roleName) { in extractRole() argument
108 first = roleName->find("["); in extractRole()
109 last = roleName->find("]"); in extractRole()
112 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole()
289 std::string roleName; in getCurrentRoleHelper() local
322 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
328 extractRole(&roleName); in getCurrentRoleHelper()
330 if (roleName == "source") { in getCurrentRoleHelper()
332 } else if (roleName == "sink") { in getCurrentRoleHelper()
334 } else if (roleName == "host") { in getCurrentRoleHelper()
[all …]
/device/google/coral/usb/
DUsb.cpp194 void extractRole(std::string *roleName) { in extractRole() argument
197 first = roleName->find("["); in extractRole()
198 last = roleName->find("]"); in extractRole()
201 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole()
368 std::string roleName; in getCurrentRoleHelper() local
402 if (readFile(filename, &roleName)) { in getCurrentRoleHelper()
407 extractRole(&roleName); in getCurrentRoleHelper()
409 if (roleName == "source") { in getCurrentRoleHelper()
411 } else if (roleName == "sink") { in getCurrentRoleHelper()
413 } else if (roleName == "host") { in getCurrentRoleHelper()
[all …]