Home
last modified time | relevance | path

Searched refs:usbPortStatus (Results 1 – 6 of 6) sorted by relevance

/base/usb/usb_manager/services/native/src/
Dusb_port_manager.cpp121 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/
Dusb_function_port_test.cpp95 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/
Dusb_port.h33 UsbPortStatus usbPortStatus; member
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp738 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/
Dusb_srv_stub.cpp310 …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()
Dusb_srv_proxy.cpp530 port.usbPortStatus = status; in ParseUsbPort()
532 port.usbPortStatus.currentMode); in ParseUsbPort()