Searched refs:usbPortStatus (Results 1 – 6 of 6) sorted by relevance
/base/usb/usb_manager/services/native/src/ |
D | usb_port_manager.cpp | 104 UsbPortStatus usbPortStatus; in QueryPort() local 106 usbPortStatus.currentMode = mode; in QueryPort() 107 usbPortStatus.currentDataRole = dataRole; in QueryPort() 108 usbPortStatus.currentPowerRole = powerRole; in QueryPort() 111 usbPort.usbPortStatus = usbPortStatus; in QueryPort() 123 ReportPortRoleChangeSysEvent(it->second.usbPortStatus.currentPowerRole, powerRole, in UpdatePort() 124 it->second.usbPortStatus.currentDataRole, dataRole); in UpdatePort() 125 it->second.usbPortStatus.currentPowerRole = powerRole; in UpdatePort() 126 it->second.usbPortStatus.currentDataRole = dataRole; in UpdatePort() 127 it->second.usbPortStatus.currentMode = mode; in UpdatePort() [all …]
|
/base/usb/usb_manager/test/tool/ |
D | usb_function_port_test.cpp | 91 if (usbports[0].usbPortStatus.currentMode == HOST_MODE) { in GetPortsInfo() 92 printf("get current port %d: host\n", usbports[0].usbPortStatus.currentMode); in GetPortsInfo() 94 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 | 722 napi_value usbPortStatus; in CoreGetPorts() local 723 napi_create_object(env, &usbPortStatus); in CoreGetPorts() 724 … NapiUtil::SetValueInt32(env, "currentMode", ports[i].usbPortStatus.currentMode, usbPortStatus); in CoreGetPorts() 725 …Util::SetValueInt32(env, "currentPowerRole", ports[i].usbPortStatus.currentPowerRole, usbPortStatu… in CoreGetPorts() 726 …iUtil::SetValueInt32(env, "currentDataRole", ports[i].usbPortStatus.currentDataRole, usbPortStatus… in CoreGetPorts() 727 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 | 502 port.usbPortStatus = status; in ParseUsbPort() 504 port.usbPortStatus.currentMode); in ParseUsbPort()
|