Home
last modified time | relevance | path

Searched refs:currentRole (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/usb/1.0/default/
DUsb.cpp119 PortRoleType type, uint32_t &currentRole) { in getCurrentRoleHelper() argument
126 currentRole = static_cast<uint32_t>(PortPowerRole::NONE); in getCurrentRoleHelper()
130 currentRole = static_cast<uint32_t> (PortDataRole::NONE); in getCurrentRoleHelper()
134 currentRole = static_cast<uint32_t> (PortMode::NONE); in getCurrentRoleHelper()
143 currentRole = static_cast<uint32_t> (PortMode::DFP); in getCurrentRoleHelper()
145 currentRole = static_cast<uint32_t> (PortMode::UFP); in getCurrentRoleHelper()
147 currentRole = static_cast<uint32_t> (PortPowerRole::SOURCE); in getCurrentRoleHelper()
149 currentRole = static_cast<uint32_t> (PortPowerRole::SINK); in getCurrentRoleHelper()
151 currentRole = static_cast<uint32_t> (PortDataRole::HOST); in getCurrentRoleHelper()
153 currentRole = static_cast<uint32_t> (PortDataRole::DEVICE); in getCurrentRoleHelper()
[all …]
/hardware/interfaces/usb/aidl/default/
DUsb.cpp363 Status getCurrentRoleHelper(const string &portName, bool connected, PortRole *currentRole) { in getCurrentRoleHelper() argument
370 if (currentRole->getTag() == PortRole::powerRole) { in getCurrentRoleHelper()
372 currentRole->set<PortRole::powerRole>(PortPowerRole::NONE); in getCurrentRoleHelper()
373 } else if (currentRole->getTag() == PortRole::dataRole) { in getCurrentRoleHelper()
375 currentRole->set<PortRole::dataRole>(PortDataRole::NONE); in getCurrentRoleHelper()
376 } else if (currentRole->getTag() == PortRole::mode) { in getCurrentRoleHelper()
378 currentRole->set<PortRole::mode>(PortMode::NONE); in getCurrentRoleHelper()
386 if (currentRole->getTag() == PortRole::mode) { in getCurrentRoleHelper()
391 currentRole->set<PortRole::mode>(PortMode::AUDIO_ACCESSORY); in getCurrentRoleHelper()
394 currentRole->set<PortRole::mode>(PortMode::DEBUG_ACCESSORY); in getCurrentRoleHelper()
[all …]
/hardware/interfaces/automotive/occupant_awareness/aidl/mock/
DDetectionGenerator.cpp40 int currentRole = remainingRoles & (~(remainingRoles - 1)); in GetNextDetections() local
44 occupantDetection.role = static_cast<Role>(currentRole); in GetNextDetections()