Searched refs:roleName (Results 1 – 8 of 8) sorted by relevance
/device/google/sunfish/usb/usb/ |
D | Usb.cpp | 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() [all …]
|
/device/google/barbet/usb/usb/ |
D | Usb.cpp | 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() [all …]
|
/device/google/redfin/usb/usb/ |
D | Usb.cpp | 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() [all …]
|
/device/google/coral/usb/usb/ |
D | Usb.cpp | 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() [all …]
|
/device/google/gs201/usb/usb/ |
D | Usb.cpp | 391 void extractRole(string *roleName) { in extractRole() argument 394 first = roleName->find("["); in extractRole() 395 last = roleName->find("]"); in extractRole() 398 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole() 738 string roleName; in getCurrentRoleHelper() local 772 if (!ReadFileToString(filename, &roleName)) { in getCurrentRoleHelper() 777 roleName = Trim(roleName); in getCurrentRoleHelper() 778 extractRole(&roleName); in getCurrentRoleHelper() 780 if (roleName == "source") { in getCurrentRoleHelper() 782 } else if (roleName == "sink") { in getCurrentRoleHelper() [all …]
|
/device/google/gs101/usb/usb/ |
D | Usb.cpp | 442 void extractRole(string *roleName) { in extractRole() argument 445 first = roleName->find("["); in extractRole() 446 last = roleName->find("]"); in extractRole() 449 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole() 725 string roleName; in getCurrentRoleHelper() local 759 if (!ReadFileToString(filename, &roleName)) { in getCurrentRoleHelper() 764 roleName = Trim(roleName); in getCurrentRoleHelper() 765 extractRole(&roleName); in getCurrentRoleHelper() 767 if (roleName == "source") { in getCurrentRoleHelper() 769 } else if (roleName == "sink") { in getCurrentRoleHelper() [all …]
|
/device/google/zuma/usb/usb/ |
D | Usb.cpp | 430 void extractRole(string *roleName) { in extractRole() argument 433 first = roleName->find("["); in extractRole() 434 last = roleName->find("]"); in extractRole() 437 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole() 723 string roleName; in getCurrentRoleHelper() local 757 if (!ReadFileToString(filename, &roleName)) { in getCurrentRoleHelper() 762 roleName = Trim(roleName); in getCurrentRoleHelper() 763 extractRole(&roleName); in getCurrentRoleHelper() 765 if (roleName == "source") { in getCurrentRoleHelper() 767 } else if (roleName == "sink") { in getCurrentRoleHelper() [all …]
|
/device/google/zumapro/usb/usb/ |
D | Usb.cpp | 438 void extractRole(string *roleName) { in extractRole() argument 441 first = roleName->find("["); in extractRole() 442 last = roleName->find("]"); in extractRole() 445 *roleName = roleName->substr(first + 1, last - first - 1); in extractRole() 814 string roleName; in getCurrentRoleHelper() local 848 if (!ReadFileToString(filename, &roleName)) { in getCurrentRoleHelper() 853 roleName = Trim(roleName); in getCurrentRoleHelper() 854 extractRole(&roleName); in getCurrentRoleHelper() 856 if (roleName == "source") { in getCurrentRoleHelper() 858 } else if (roleName == "sink") { in getCurrentRoleHelper() [all …]
|