Home
last modified time | relevance | path

Searched refs:PortRole (Results 1 – 25 of 26) sorted by relevance

12

/hardware/interfaces/usb/aidl/default/
DUsb.cpp135 string appendRoleNodeHelper(const string &portName, PortRole::Tag tag) { in appendRoleNodeHelper()
139 case PortRole::dataRole: in appendRoleNodeHelper()
141 case PortRole::powerRole: in appendRoleNodeHelper()
143 case PortRole::mode: in appendRoleNodeHelper()
150 string convertRoletoString(PortRole role) { in convertRoletoString()
151 if (role.getTag() == PortRole::powerRole) { in convertRoletoString()
152 if (role.get<PortRole::powerRole>() == PortPowerRole::SOURCE) in convertRoletoString()
154 else if (role.get<PortRole::powerRole>() == PortPowerRole::SINK) in convertRoletoString()
156 } else if (role.getTag() == PortRole::dataRole) { in convertRoletoString()
157 if (role.get<PortRole::dataRole>() == PortDataRole::HOST) in convertRoletoString()
[all …]
DUsb.h38 using ::aidl::android::hardware::usb::PortRole;
53 ScopedAStatus switchRole(const string& in_portName, const PortRole& in_role,
/hardware/interfaces/usb/aidl/android/hardware/usb/
DIUsb.aidl20 import android.hardware.usb.PortRole;
93 void switchRole(in String portName, in PortRole role, long transactionId); in switchRole()
DIUsbCallback.aidl18 import android.hardware.usb.PortRole;
50 void notifyRoleSwitchStatus(in String portName, in PortRole newRole, in Status retval, in notifyRoleSwitchStatus()
DPortRole.aidl27 union PortRole {
/hardware/interfaces/usb/1.0/vts/functional/
DVtsHalUsbV1_0TargetTest.cpp40 using ::android::hardware::usb::V1_0::PortRole;
88 const PortRole& newRole, in notifyRoleSwitchStatus()
152 PortRole usb_last_port_role;
198 struct PortRole role; in TEST_P()
219 struct PortRole role; in TEST_P()
265 struct PortRole role; in TEST_P()
/hardware/interfaces/usb/1.0/default/
DUsb.h24 using ::android::hardware::usb::V1_0::PortRole;
36 Return<void> switchRole(const hidl_string& portName, const PortRole& role) override;
DUsb.cpp65 std::string convertRoletoString(PortRole role) { in convertRoletoString()
86 const PortRole& newRole) { in switchRole()
/hardware/interfaces/usb/aidl/vts/
DVtsAidlUsbTargetTest.cpp57 using ::aidl::android::hardware::usb::PortRole;
101 ScopedAStatus notifyRoleSwitchStatus(const string& /*portName*/, const PortRole& newRole, in notifyRoleSwitchStatus()
227 PortRole usb_last_port_role;
337 PortRole role; in TEST_P()
338 role.set<PortRole::powerRole>(PortPowerRole::SOURCE); in TEST_P()
359 PortRole role; in TEST_P()
360 role.set<PortRole::powerRole>(PortPowerRole::SOURCE); in TEST_P()
398 PortRole role; in TEST_P()
399 role.set<PortRole::dataRole>(PortDataRole::DEVICE); in TEST_P()
/hardware/interfaces/usb/aidl/aidl_api/android.hardware.usb/2/android/hardware/usb/
DPortRole.aidl36 union PortRole {
DIUsb.aidl42 …oneway void switchRole(in String portName, in android.hardware.usb.PortRole role, long transaction… in switchRole()
DIUsbCallback.aidl38 …oneway void notifyRoleSwitchStatus(in String portName, in android.hardware.usb.PortRole newRole, i… in notifyRoleSwitchStatus()
/hardware/interfaces/usb/aidl/aidl_api/android.hardware.usb/1/android/hardware/usb/
DPortRole.aidl36 union PortRole {
DIUsb.aidl42 …oneway void switchRole(in String portName, in android.hardware.usb.PortRole role, long transaction… in switchRole()
DIUsbCallback.aidl38 …oneway void notifyRoleSwitchStatus(in String portName, in android.hardware.usb.PortRole newRole, i… in notifyRoleSwitchStatus()
/hardware/interfaces/usb/aidl/aidl_api/android.hardware.usb/current/android/hardware/usb/
DPortRole.aidl36 union PortRole {
DIUsb.aidl42 …oneway void switchRole(in String portName, in android.hardware.usb.PortRole role, long transaction… in switchRole()
DIUsbCallback.aidl38 …oneway void notifyRoleSwitchStatus(in String portName, in android.hardware.usb.PortRole newRole, i… in notifyRoleSwitchStatus()
/hardware/interfaces/usb/aidl/aidl_api/android.hardware.usb/3/android/hardware/usb/
DPortRole.aidl36 union PortRole {
DIUsb.aidl42 …oneway void switchRole(in String portName, in android.hardware.usb.PortRole role, long transaction… in switchRole()
DIUsbCallback.aidl38 …oneway void notifyRoleSwitchStatus(in String portName, in android.hardware.usb.PortRole newRole, i… in notifyRoleSwitchStatus()
/hardware/interfaces/usb/1.1/vts/functional/
DVtsHalUsbV1_1TargetTest.cpp41 using ::android::hardware::usb::V1_0::PortRole;
114 const PortRole& /*newRole*/, Status /*retval*/) override { in notifyRoleSwitchStatus() argument
/hardware/interfaces/usb/1.0/
DIUsbCallback.hal44 oneway notifyRoleSwitchStatus(string portName, PortRole newRole, Status retval);
DIUsb.hal32 oneway switchRole(string portName, PortRole role);
/hardware/interfaces/usb/1.2/vts/functional/
DVtsHalUsbV1_2TargetTest.cpp45 using ::android::hardware::usb::V1_0::PortRole;
139 const PortRole& /*newRole*/, Status /*retval*/) override { in notifyRoleSwitchStatus() argument

12