Lines Matching refs:portName
52 std::string appendRoleNodeHelper(const std::string portName, PortRoleType type) { in appendRoleNodeHelper() argument
53 std::string node("/sys/class/dual_role_usb/" + portName); in appendRoleNodeHelper()
85 Return<void> Usb::switchRole(const hidl_string& portName, in switchRole() argument
87 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), in switchRole()
102 mCallback->notifyRoleSwitchStatus(portName, newRole, in switchRole()
111 Return<void> ret = mCallback->notifyRoleSwitchStatus(portName, newRole, Status::ERROR); in switchRole()
118 Status getCurrentRoleHelper(std::string portName, in getCurrentRoleHelper() argument
125 portName + "/power_role"; in getCurrentRoleHelper()
129 portName + "/data_role"; in getCurrentRoleHelper()
133 portName + "/mode"; in getCurrentRoleHelper()
207 bool canSwitchRoleHelper(const std::string portName, PortRoleType type) { in canSwitchRoleHelper() argument
208 std::string filename = appendRoleNodeHelper(portName, type); in canSwitchRoleHelper()
218 Status getPortModeHelper(const std::string portName, PortMode& portMode) { in getPortModeHelper() argument
220 std::string(portName.c_str()) + "/supported_modes"; in getPortModeHelper()
248 currentPortStatus[i].portName = names[i]; in getPortStatusHelper()