/base/usb/usb_manager/test/native/js_unittest/ |
D | UsbPortJsunitEx.test.js | 72 var powerRole = usb.SINK; 75 usb.setPortRoles(portId, powerRole, dataRole).then(data => { 95 var powerRole = usb.NONE - 1; 98 usb.setPortRoles(portId, powerRole, dataRole).then(data => { 118 var powerRole = usb.SINK; 121 usb.setPortRoles(portId, powerRole, dataRole).then(data => { 141 var powerRole = usb.NONE - 1; 144 usb.setPortRoles(portId, powerRole, dataRole).then(data => { 165 var powerRole = usb.NONE - 1; 168 usb.setPortRoles(portId, powerRole, dataRole).then(data => { [all …]
|
/base/usb/usb_manager/test/native/mock/src/ |
D | usb_impl_mock.cpp | 75 int32_t MockUsbImpl::QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mod… in QueryPort() argument 79 powerRole = UsbSrvSupport::POWER_ROLE_SINK; in QueryPort() 98 int32_t MockUsbImpl::SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) in SetPortRole() argument 105 if (powerRole <= UsbSrvSupport::POWER_ROLE_NONE || powerRole > UsbSrvSupport::POWER_ROLE_SINK) { in SetPortRole() 112 … if (powerRole == UsbSrvSupport::POWER_ROLE_SOURCE && dataRole == UsbSrvSupport::DATA_ROLE_HOST) { in SetPortRole() 116 … if (powerRole == UsbSrvSupport::POWER_ROLE_SINK && dataRole == UsbSrvSupport::DATA_ROLE_DEVICE) { in SetPortRole() 121 portInfo_.powerRole = powerRole; in SetPortRole()
|
D | usb_event_mock_test.cpp | 271 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SOURCE; variable 273 auto ret = mockUsbImpl_->SetPortRole(portId, powerRole, dataRole); 305 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SINK; variable 307 auto ret = mockUsbImpl_->SetPortRole(portId, powerRole, dataRole);
|
/base/usb/usb_manager/services/native/src/ |
D | usb_port_manager.cpp | 106 int32_t powerRole = 0; in QueryPort() local 114 int32_t ret = usbd_->QueryPort(portId, powerRole, dataRole, mode); in QueryPort() 116 portId, powerRole, dataRole, mode); in QueryPort() 125 usbPortStatus.currentPowerRole = powerRole; in QueryPort() 133 void UsbPortManager::UpdatePort(int32_t portId, int32_t powerRole, int32_t dataRole, int32_t mode) in UpdatePort() argument 140 ReportPortRoleChangeSysEvent(it->second.usbPortStatus.currentPowerRole, powerRole, in UpdatePort() 142 it->second.usbPortStatus.currentPowerRole = powerRole; in UpdatePort()
|
D | usb_service_subscriber.cpp | 46 port["powerRole"] = info.powerRole; in PortChangedEvent() 56 pms->UpdateUsbPort(info.portId, info.powerRole, info.dataRole, info.mode); in PortChangedEvent()
|
D | usb_service.cpp | 499 int32_t UsbService::SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) in SetPortRole() argument 514 return usbd_->SetPortRole(portId, powerRole, dataRole); in SetPortRole() 967 void UsbService::UpdateUsbPort(int32_t portId, int32_t powerRole, int32_t dataRole, int32_t mode) in UpdateUsbPort() argument 974 usbPortManager_->UpdatePort(portId, powerRole, dataRole, mode); in UpdateUsbPort()
|
/base/usb/usb_manager/services/native/include/ |
D | usb_port_manager.h | 40 void SetPortRoles(int32_t portId, int32_t powerRole, int32_t dataRole); 42 void UpdatePort(int32_t portId, int32_t powerRole, int32_t dataRole, int32_t mode);
|
D | usb_service.h | 79 int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) override; 102 void UpdateUsbPort(int32_t portId, int32_t powerRole, int32_t dataRole, int32_t mode);
|
/base/usb/usb_manager/interfaces/kits/js/napi/include/ |
D | usb_async_context.h | 81 int32_t powerRole; member
|
/base/usb/usb_manager/test/native/mock/include/ |
D | usb_impl_mock.h | 59 … int32_t QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mode) override; 60 int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) override;
|
/base/usb/usb_manager/interfaces/kits/js/ |
D | @ohos.usbManager.d.ts | 171 …function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise<v…
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
D | usb_srv_client.h | 53 int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole);
|
D | iusb_srv.h | 40 virtual int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) = 0;
|
/base/usb/usb_manager/services/zidl/include/ |
D | usb_server_proxy.h | 46 int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) override;
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_srv_client.cpp | 200 int32_t UsbSrvClient::SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) in SetPortRole() argument 204 int32_t ret = proxy_->SetPortRole(portId, powerRole, dataRole); in SetPortRole()
|
/base/usb/usb_manager/ |
D | README_zh.md | 70 | int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole); | 设置端口工作模式 |
|
D | README.md | 78 | int32_t SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole); | Sets the port role. …
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 782 …int32_t ret = g_usbClient.SetPortRole(asyncContext->portId, asyncContext->powerRole, asyncContext-… in __anonfdf92cdc0502() 823 int32_t powerRole = 0; in PortSetPortRole() local 824 napi_get_value_int32(env, args[INDEX_1], &powerRole); in PortSetPortRole() 837 asyncContext->powerRole = powerRole; in PortSetPortRole()
|
/base/usb/usb_manager/services/zidl/src/ |
D | usb_srv_stub.cpp | 333 int32_t powerRole = 0; in DoSetPortRole() local 336 READ_PARCEL_WITH_RET(data, Int32, powerRole, UEC_SERVICE_READ_PARCEL_ERROR); in DoSetPortRole() 338 return SetPortRole(portId, powerRole, dataRole); in DoSetPortRole()
|
D | usb_srv_proxy.cpp | 559 int32_t UsbServerProxy::SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) in SetPortRole() argument 571 WRITE_PARCEL_WITH_RET(data, Int32, powerRole, UEC_INTERFACE_WRITE_PARCEL_ERROR); in SetPortRole()
|