Searched refs:usbPortStatus (Results 1 – 6 of 6) sorted by relevance
/base/usb/usb_manager/services/native/src/ |
D | usb_port_manager.cpp | 121 UsbPortStatus usbPortStatus; in QueryPort() local 123 usbPortStatus.currentMode = mode; in QueryPort() 124 usbPortStatus.currentDataRole = dataRole; in QueryPort() 125 usbPortStatus.currentPowerRole = powerRole; in QueryPort() 128 usbPort.usbPortStatus = usbPortStatus; in QueryPort() 140 ReportPortRoleChangeSysEvent(it->second.usbPortStatus.currentPowerRole, powerRole, in UpdatePort() 141 it->second.usbPortStatus.currentDataRole, dataRole); in UpdatePort() 142 it->second.usbPortStatus.currentPowerRole = powerRole; in UpdatePort() 143 it->second.usbPortStatus.currentDataRole = dataRole; in UpdatePort() 144 it->second.usbPortStatus.currentMode = mode; in UpdatePort() [all …]
|
/base/usb/usb_manager/test/tool/ |
D | usb_function_port_test.cpp | 95 if (usbports[0].usbPortStatus.currentMode == HOST_MODE) { in GetPortsInfo() 96 printf("get current port %d: host\n", usbports[0].usbPortStatus.currentMode); in GetPortsInfo() 98 printf("get current port %d: device\n", usbports[0].usbPortStatus.currentMode); in GetPortsInfo()
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
D | usb_port.h | 33 UsbPortStatus usbPortStatus; member
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 738 napi_value usbPortStatus; in CoreGetPorts() local 739 napi_create_object(env, &usbPortStatus); in CoreGetPorts() 740 … NapiUtil::SetValueInt32(env, "currentMode", ports[i].usbPortStatus.currentMode, usbPortStatus); in CoreGetPorts() 741 …Util::SetValueInt32(env, "currentPowerRole", ports[i].usbPortStatus.currentPowerRole, usbPortStatu… in CoreGetPorts() 742 …iUtil::SetValueInt32(env, "currentDataRole", ports[i].usbPortStatus.currentDataRole, usbPortStatus… in CoreGetPorts() 743 napi_set_named_property(env, port, "status", usbPortStatus); in CoreGetPorts()
|
/base/usb/usb_manager/services/zidl/src/ |
D | usb_srv_stub.cpp | 310 …WRITE_PARCEL_WITH_RET(reply, Int32, port.usbPortStatus.currentMode, UEC_SERVICE_WRITE_PARCEL_ERROR… in WriteUsbPort() 311 …WRITE_PARCEL_WITH_RET(reply, Int32, port.usbPortStatus.currentPowerRole, UEC_SERVICE_WRITE_PARCEL_… in WriteUsbPort() 312 …WRITE_PARCEL_WITH_RET(reply, Int32, port.usbPortStatus.currentDataRole, UEC_SERVICE_WRITE_PARCEL_E… in WriteUsbPort()
|
D | usb_srv_proxy.cpp | 530 port.usbPortStatus = status; in ParseUsbPort() 532 port.usbPortStatus.currentMode); in ParseUsbPort()
|