Lines Matching full:portname
70 std::string appendRoleNodeHelper(const std::string &portName,
72 std::string node("/sys/class/typec/" + portName);
114 void switchToDrp(const std::string &portName) {
116 appendRoleNodeHelper(std::string(portName.c_str()), PortRoleType::MODE);
134 bool switchMode(const hidl_string &portName,
137 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type);
184 switchToDrp(std::string(portName.c_str()));
191 Return<void> Usb::switchRole(const hidl_string &portName,
194 appendRoleNodeHelper(std::string(portName.c_str()), newRole.type);
210 roleSwitch = switchMode(portName, newRole, this);
235 mCallback_1_0->notifyRoleSwitchStatus(portName, newRole,
248 Status getAccessoryConnected(const std::string &portName, std::string *accessory) {
250 "/sys/class/typec/" + portName + "-partner/accessory_mode";
261 Status getCurrentRoleHelper(const std::string &portName, bool connected,
270 filename = "/sys/class/typec/" + portName + "/power_role";
273 filename = "/sys/class/typec/" + portName + "/data_role";
276 filename = "/sys/class/typec/" + portName + "/data_role";
285 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) {
339 std::unordered_map<std::string, bool>::const_iterator portName =
341 if (portName == names->end()) {
357 bool canSwitchRoleHelper(const std::string &portName, PortRoleType /*type*/) {
359 "/sys/class/typec/" + portName + "-partner/supports_usb_power_delivery";
387 (*currentPortStatus_1_1)[i].status.portName = port.first;
547 + std::string(currentPortStatus_1_1[i].status.portName.c_str())
551 switchToDrp(currentPortStatus_1_1[i].status.portName);