Lines Matching refs:portName

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()
260 mCallback_1_0->notifyRoleSwitchStatus(portName, newRole, in switchRole()
273 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected() argument
275 "/sys/class/typec/" + portName + "-partner/accessory_mode"; in getAccessoryConnected()
286 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper() argument
295 filename = "/sys/class/typec/" + portName + "/power_role"; in getCurrentRoleHelper()
298 filename = "/sys/class/typec/" + portName + "/data_role"; in getCurrentRoleHelper()
301 filename = "/sys/class/typec/" + portName + "/data_role"; in getCurrentRoleHelper()
310 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
364 std::unordered_map<std::string, bool>::const_iterator portName = in getTypeCPortNamesHelper() local
366 if (portName == names->end()) { in getTypeCPortNamesHelper()
382 bool canSwitchRoleHelper(const std::string &portName, PortRoleType /*type*/) { in canSwitchRoleHelper() argument
384 "/sys/class/typec/" + portName + "-partner/supports_usb_power_delivery"; in canSwitchRoleHelper()
412 (*currentPortStatus_1_1)[i].status.portName = port.first; in getPortStatusHelper()
574 + std::string(currentPortStatus_1_1[i].status.portName.c_str()) in uevent_event()
578 switchToDrp(currentPortStatus_1_1[i].status.portName); in uevent_event()