Home
last modified time | relevance | path

Searched refs:currentRole (Results 1 – 2 of 2) 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/automotive/occupant_awareness/aidl/mock/
DDetectionGenerator.cpp40 int currentRole = remainingRoles & (~(remainingRoles - 1)); in GetNextDetections() local
44 occupantDetection.role = static_cast<Role>(currentRole); in GetNextDetections()