Lines Matching refs:Status
285 roleSwitch ? Status::SUCCESS : Status::ERROR); in switchRole()
297 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected()
304 return Status::ERROR; in getAccessoryConnected()
307 return Status::SUCCESS; in getAccessoryConnected()
310 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper()
328 return Status::ERROR; in getCurrentRoleHelper()
331 if (!connected) return Status::SUCCESS; in getCurrentRoleHelper()
334 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
335 return Status::ERROR; in getCurrentRoleHelper()
339 return Status::SUCCESS; in getCurrentRoleHelper()
342 return Status::SUCCESS; in getCurrentRoleHelper()
349 return Status::ERROR; in getCurrentRoleHelper()
372 return Status::UNRECOGNIZED_ROLE; in getCurrentRoleHelper()
375 return Status::SUCCESS; in getCurrentRoleHelper()
378 Status getTypeCPortNamesHelper(std::unordered_map<std::string, bool> *names) { in getTypeCPortNamesHelper()
399 return Status::SUCCESS; in getTypeCPortNamesHelper()
403 return Status::ERROR; in getTypeCPortNamesHelper()
425 Status getPortStatusHelper(hidl_vec<PortStatus_1_1> *currentPortStatus_1_1, in getPortStatusHelper()
428 Status result = getTypeCPortNamesHelper(&names); in getPortStatusHelper()
431 if (result == Status::SUCCESS) { in getPortStatusHelper()
441 ¤tRole) == Status::SUCCESS) { in getPortStatusHelper()
450 ¤tRole) == Status::SUCCESS) { in getPortStatusHelper()
459 ¤tRole) == Status::SUCCESS) { in getPortStatusHelper()
491 return Status::SUCCESS; in getPortStatusHelper()
494 return Status::ERROR; in getPortStatusHelper()
500 Status status; in queryPortStatus()
568 Status status = getPortStatusHelper(¤tPortStatus_1_1, false); in uevent_event()
572 Status status = getPortStatusHelper(¤tPortStatus_1_1, true); in uevent_event()