Home
last modified time | relevance | path

Searched refs:newRole (Results 1 – 7 of 7) sorted by relevance

/device/google/bonito/usb/
DUsb.cpp135 const PortRole &newRole, struct Usb *usb) { in switchMode() argument
137 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
154 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
215 const V1_0::PortRole &newRole) { in switchRole() argument
217 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
230 convertRoletoString(newRole).c_str()); in switchRole()
232 if (newRole.type == PortRoleType::MODE) { in switchRole()
233 roleSwitch = switchMode(portName, newRole, this); in switchRole()
237 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
242 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]
/device/google/crosshatch/usb/
DUsb.cpp137 const PortRole &newRole, struct Usb *usb) { in switchMode() argument
139 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
156 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
217 const V1_0::PortRole &newRole) { in switchRole() argument
219 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
232 convertRoletoString(newRole).c_str()); in switchRole()
234 if (newRole.type == PortRoleType::MODE) { in switchRole()
235 roleSwitch = switchMode(portName, newRole, this); in switchRole()
239 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
244 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]
/device/google/barbet/usb/
DUsb.cpp223 bool switchMode(const hidl_string &portName, const PortRole &newRole, struct Usb *usb) { in switchMode() argument
224 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
241 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
300 Return<void> Usb::switchRole(const hidl_string &portName, const V1_0::PortRole &newRole) { in switchRole() argument
301 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
313 ALOGI("filename write: %s role:%s", filename.c_str(), convertRoletoString(newRole).c_str()); in switchRole()
315 if (newRole.type == PortRoleType::MODE) { in switchRole()
316 roleSwitch = switchMode(portName, newRole, this); in switchRole()
320 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
325 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]
/device/google/coral/usb/
DUsb.cpp224 bool switchMode(const hidl_string &portName, const PortRole &newRole, struct Usb *usb) { in switchMode() argument
225 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
242 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
301 Return<void> Usb::switchRole(const hidl_string &portName, const V1_0::PortRole &newRole) { in switchRole() argument
302 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
314 ALOGI("filename write: %s role:%s", filename.c_str(), convertRoletoString(newRole).c_str()); in switchRole()
316 if (newRole.type == PortRoleType::MODE) { in switchRole()
317 roleSwitch = switchMode(portName, newRole, this); in switchRole()
321 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
326 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]
/device/google/redfin/usb/
DUsb.cpp223 bool switchMode(const hidl_string &portName, const PortRole &newRole, struct Usb *usb) { in switchMode() argument
224 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
241 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
300 Return<void> Usb::switchRole(const hidl_string &portName, const V1_0::PortRole &newRole) { in switchRole() argument
301 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
313 ALOGI("filename write: %s role:%s", filename.c_str(), convertRoletoString(newRole).c_str()); in switchRole()
315 if (newRole.type == PortRoleType::MODE) { in switchRole()
316 roleSwitch = switchMode(portName, newRole, this); in switchRole()
320 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
325 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]
/device/google/bramble/usb/
DUsb.cpp223 bool switchMode(const hidl_string &portName, const PortRole &newRole, struct Usb *usb) { in switchMode() argument
224 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
241 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
300 Return<void> Usb::switchRole(const hidl_string &portName, const V1_0::PortRole &newRole) { in switchRole() argument
301 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
313 ALOGI("filename write: %s role:%s", filename.c_str(), convertRoletoString(newRole).c_str()); in switchRole()
315 if (newRole.type == PortRoleType::MODE) { in switchRole()
316 roleSwitch = switchMode(portName, newRole, this); in switchRole()
320 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
325 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]
/device/google/sunfish/usb/
DUsb.cpp229 bool switchMode(const hidl_string &portName, const PortRole &newRole, struct Usb *usb) { in switchMode() argument
230 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode()
247 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchMode()
306 Return<void> Usb::switchRole(const hidl_string &portName, const V1_0::PortRole &newRole) { in switchRole() argument
307 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole()
319 ALOGI("filename write: %s role:%s", filename.c_str(), convertRoletoString(newRole).c_str()); in switchRole()
321 if (newRole.type == PortRoleType::MODE) { in switchRole()
322 roleSwitch = switchMode(portName, newRole, this); in switchRole()
326 int ret = fputs(convertRoletoString(newRole).c_str(), fp); in switchRole()
331 if (written == convertRoletoString(newRole)) { in switchRole()
[all …]