Lines Matching refs:portName

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()
284 mCallback_1_0->notifyRoleSwitchStatus(portName, newRole, in switchRole()
297 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected() argument
299 "/sys/class/typec/" + portName + "-partner/accessory_mode"; in getAccessoryConnected()
310 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper() argument
319 filename = "/sys/class/typec/" + portName + "/power_role"; in getCurrentRoleHelper()
322 filename = "/sys/class/typec/" + portName + "/data_role"; in getCurrentRoleHelper()
325 filename = "/sys/class/typec/" + portName + "/data_role"; in getCurrentRoleHelper()
334 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
388 std::unordered_map<std::string, bool>::const_iterator portName = in getTypeCPortNamesHelper() local
390 if (portName == names->end()) { in getTypeCPortNamesHelper()
406 bool canSwitchRoleHelper(const std::string &portName, PortRoleType /*type*/) { in canSwitchRoleHelper() argument
408 "/sys/class/typec/" + portName + "-partner/supports_usb_power_delivery"; in canSwitchRoleHelper()
436 (*currentPortStatus_1_1)[i].status.portName = port.first; in getPortStatusHelper()
597 + std::string(currentPortStatus_1_1[i].status.portName.c_str()) in uevent_event()
601 switchToDrp(currentPortStatus_1_1[i].status.portName); in uevent_event()