Lines Matching refs:Status
259 roleSwitch ? Status::SUCCESS : Status::ERROR); in switchRole()
271 Status getAccessoryConnected(const std::string &portName, std::string *accessory) { in getAccessoryConnected()
278 return Status::ERROR; in getAccessoryConnected()
281 return Status::SUCCESS; in getAccessoryConnected()
284 Status getCurrentRoleHelper(const std::string &portName, bool connected, in getCurrentRoleHelper()
302 return Status::ERROR; in getCurrentRoleHelper()
305 if (!connected) return Status::SUCCESS; in getCurrentRoleHelper()
308 if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { in getCurrentRoleHelper()
309 return Status::ERROR; in getCurrentRoleHelper()
313 return Status::SUCCESS; in getCurrentRoleHelper()
316 return Status::SUCCESS; in getCurrentRoleHelper()
323 return Status::ERROR; in getCurrentRoleHelper()
346 return Status::UNRECOGNIZED_ROLE; in getCurrentRoleHelper()
349 return Status::SUCCESS; in getCurrentRoleHelper()
352 Status getTypeCPortNamesHelper(std::unordered_map<std::string, bool> *names) { in getTypeCPortNamesHelper()
373 return Status::SUCCESS; in getTypeCPortNamesHelper()
377 return Status::ERROR; in getTypeCPortNamesHelper()
399 Status getPortStatusHelper(hidl_vec<PortStatus_1_1> *currentPortStatus_1_1, in getPortStatusHelper()
402 Status result = getTypeCPortNamesHelper(&names); in getPortStatusHelper()
405 if (result == Status::SUCCESS) { in getPortStatusHelper()
415 ¤tRole) == Status::SUCCESS) { in getPortStatusHelper()
424 ¤tRole) == Status::SUCCESS) { in getPortStatusHelper()
433 ¤tRole) == Status::SUCCESS) { in getPortStatusHelper()
465 return Status::SUCCESS; in getPortStatusHelper()
468 return Status::ERROR; in getPortStatusHelper()
474 Status status; in queryPortStatus()
541 Status status = getPortStatusHelper(¤tPortStatus_1_1, false); in uevent_event()
545 Status status = getPortStatusHelper(¤tPortStatus_1_1, true); in uevent_event()