Searched refs:portName (Results 1 – 8 of 8) sorted by relevance
/device/google/bonito/usb/ |
D | Usb.cpp | 70 std::string appendRoleNodeHelper(const std::string &portName, in appendRoleNodeHelper() argument 72 std::string node("/sys/class/typec/" + portName); in appendRoleNodeHelper() 114 void switchToDrp(const std::string &portName) { in switchToDrp() argument 116 appendRoleNodeHelper(std::string(portName.c_str()), PortRoleType::MODE); in switchToDrp() 134 bool switchMode(const hidl_string &portName, in switchMode() argument 137 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode() 184 switchToDrp(std::string(portName.c_str())); in switchMode() 214 Return<void> Usb::switchRole(const hidl_string &portName, in switchRole() argument 217 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole() 233 roleSwitch = switchMode(portName, newRole, this); in switchRole() [all …]
|
D | Usb.h | 45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
|
/device/google/wahoo/usb/ |
D | Usb.cpp | 96 std::string appendRoleNodeHelper(const std::string &portName, in appendRoleNodeHelper() argument 98 std::string node("/sys/class/typec/" + portName); in appendRoleNodeHelper() 140 void switchToDrp(const std::string &portName) { in switchToDrp() argument 142 appendRoleNodeHelper(std::string(portName.c_str()), PortRoleType::MODE); in switchToDrp() 160 bool switchMode(const hidl_string &portName, in switchMode() argument 163 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode() 210 switchToDrp(std::string(portName.c_str())); in switchMode() 240 Return<void> Usb::switchRole(const hidl_string &portName, in switchRole() argument 243 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole() 259 roleSwitch = switchMode(portName, newRole, this); in switchRole() [all …]
|
D | Usb.h | 45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
|
/device/google/crosshatch/usb/ |
D | Usb.cpp | 72 std::string appendRoleNodeHelper(const std::string &portName, in appendRoleNodeHelper() argument 74 std::string node("/sys/class/typec/" + portName); in appendRoleNodeHelper() 116 void switchToDrp(const std::string &portName) { in switchToDrp() argument 118 appendRoleNodeHelper(std::string(portName.c_str()), PortRoleType::MODE); in switchToDrp() 136 bool switchMode(const hidl_string &portName, in switchMode() argument 139 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode() 186 switchToDrp(std::string(portName.c_str())); in switchMode() 216 Return<void> Usb::switchRole(const hidl_string &portName, in switchRole() argument 219 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchRole() 235 roleSwitch = switchMode(portName, newRole, this); in switchRole() [all …]
|
D | Usb.h | 45 Return<void> switchRole(const hidl_string& portName, const V1_0::PortRole& role) override;
|
/device/google/coral/usb/ |
D | Usb.cpp | 159 std::string appendRoleNodeHelper(const std::string &portName, PortRoleType type) { in appendRoleNodeHelper() argument 160 std::string node("/sys/class/typec/" + portName); in appendRoleNodeHelper() 205 void switchToDrp(const std::string &portName) { in switchToDrp() argument 206 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), PortRoleType::MODE); in switchToDrp() 224 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() 272 switchToDrp(std::string(portName.c_str())); 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() 317 roleSwitch = switchMode(portName, newRole, this); in switchRole() [all …]
|
D | Usb.h | 53 Return<void> switchRole(const hidl_string &portName, const V1_0::PortRole &role) override; 56 Return<void> enableContaminantPresenceDetection(const hidl_string& portName, bool enable); 57 Return<void> enableContaminantPresenceProtection(const hidl_string& portName, bool enable);
|