Lines Matching full:role
57 // Usb Hal will call this object upon role switch or port query.
86 // Callback method for the status of role switch operation.
148 // Status of the last role switch operation.
151 // Port role information of the last role switch operation.
154 // Flag to indicate the invocation of role switch callback.
198 struct PortRole role; in TEST_P() local
199 role.type = PortRoleType::DATA_ROLE; in TEST_P()
201 Return<void> ret = usb->switchRole("", role); in TEST_P()
209 * Test switching the power role of usb port.
211 * If there is atleast one usb port, a power role switch
213 * The callback parametes are checked to see if the power role
219 struct PortRole role; in TEST_P() local
220 role.type = PortRoleType::POWER_ROLE; in TEST_P()
221 role.role = static_cast<uint32_t>(PortPowerRole::SOURCE); in TEST_P()
230 ALOGI("switchPower role portname:%s", portBeingSwitched.c_str()); in TEST_P()
232 Return<void> ret = usb->switchRole(portBeingSwitched.c_str(), role); in TEST_P()
247 static_cast<uint32_t>(usb_last_port_role.role)); in TEST_P()
250 static_cast<uint32_t>(usb_last_port_role.role)); in TEST_P()
256 * Test switching the data role of usb port.
258 * If there is atleast one usb port, a power role switch
260 * The callback parametes are checked to see if the power role
265 struct PortRole role; in TEST_P() local
266 role.type = PortRoleType::DATA_ROLE; in TEST_P()
267 role.role = static_cast<uint32_t>(PortDataRole::HOST); in TEST_P()
278 Return<void> ret = usb->switchRole(portBeingSwitched.c_str(), role); in TEST_P()
293 static_cast<uint32_t>(usb_last_port_role.role)); in TEST_P()
296 static_cast<uint32_t>(usb_last_port_role.role)); in TEST_P()