Home
last modified time | relevance | path

Searched refs:ports (Results 1 – 16 of 16) sorted by relevance

/base/usb/usb_manager/services/native/src/
Dusb_port_manager.cpp81 int32_t UsbPortManager::GetPorts(std::vector<UsbPort> &ports) in GetPorts() argument
86 ports.push_back(it->second); in GetPorts()
94 ports.push_back(it->second); in GetPorts()
219 std::vector<UsbPort> ports; in DumpGetSupportPort() local
220 if (GetPorts(ports) != UEC_OK) { in DumpGetSupportPort()
225 if (ports.size() == 0) { in DumpGetSupportPort()
229 for (size_t i = 0; i < ports.size(); ++i) { in DumpGetSupportPort()
231 ports[i].id, ports[i].supportedModes, ports[i].usbPortStatus.currentMode, in DumpGetSupportPort()
232 ports[i].usbPortStatus.currentPowerRole, ports[i].usbPortStatus.currentDataRole); in DumpGetSupportPort()
Dusb_service.cpp524 int32_t UsbService::GetPorts(std::vector<UsbPort> &ports) in GetPorts() argument
539 return usbPortManager_->GetPorts(ports); in GetPorts()
/base/usb/usb_manager/services/native/include/
Dusb_port_manager.h38 int32_t GetPorts(std::vector<UsbPort> &ports);
Dusb_service.h82 int32_t GetPorts(std::vector<UsbPort> &ports) override;
/base/web/webview/test/unittest/common/
Dnweb_create_window.h201 void CreateWebMessagePorts(std::vector<std::string>& ports) override in CreateWebMessagePorts() argument
203 …void PostWebMessage(std::string& message, std::vector<std::string>& ports, std::string& targetUri)… in PostWebMessage() argument
/base/web/webview/ohos_nweb/include/
Dnweb.h533 virtual void CreateWebMessagePorts(std::vector<std::string>& ports) = 0;
541 …virtual void PostWebMessage(std::string& message, std::vector<std::string>& ports, std::string& ta…
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.h143 ErrCode CreateWebMessagePorts(std::vector<std::string>& ports);
145 …ErrCode PostWebMessage(std::string& message, std::vector<std::string>& ports, std::string& targetU…
Dwebview_controller.cpp438 ErrCode WebviewController::CreateWebMessagePorts(std::vector<std::string>& ports) in CreateWebMessagePorts() argument
445 nweb_ptr->CreateWebMessagePorts(ports); in CreateWebMessagePorts()
449 ErrCode WebviewController::PostWebMessage(std::string& message, std::vector<std::string>& ports, st… in PostWebMessage() argument
456 nweb_ptr->PostWebMessage(message, ports, targetUrl); in PostWebMessage()
Dnapi_webview_controller.cpp1394 std::vector<std::string> ports; in CreateWebMessagePorts() local
1395 webviewController->CreateWebMessagePorts(ports); in CreateWebMessagePorts()
1396 if (ports.size() != INTEGER_TWO) { in CreateWebMessagePorts()
1407 …NAPI_CALL(env, napi_create_string_utf8(env, ports[i].c_str(), ports[i].length(), &consParam[i][INT… in CreateWebMessagePorts()
/base/usb/usb_manager/interfaces/innerkits/native/include/
Diusb_srv.h39 virtual int32_t GetPorts(std::vector<UsbPort> &ports) = 0;
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp720 std::vector<UsbPort> ports; in CoreGetPorts() local
721 int32_t ret = g_usbClient.GetPorts(ports); in CoreGetPorts()
733 for (uint32_t i = 0; i < ports.size(); ++i) { in CoreGetPorts()
736 NapiUtil::SetValueInt32(env, "id", ports[i].id, port); in CoreGetPorts()
737 NapiUtil::SetValueInt32(env, "supportedModes", ports[i].supportedModes, port); in CoreGetPorts()
740 … NapiUtil::SetValueInt32(env, "currentMode", ports[i].usbPortStatus.currentMode, usbPortStatus); in CoreGetPorts()
741 …NapiUtil::SetValueInt32(env, "currentPowerRole", ports[i].usbPortStatus.currentPowerRole, usbPortS… in CoreGetPorts()
742 …NapiUtil::SetValueInt32(env, "currentDataRole", ports[i].usbPortStatus.currentDataRole, usbPortSta… in CoreGetPorts()
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h45 int32_t GetPorts(std::vector<UsbPort> &ports) override;
/base/usb/usb_manager/test/native/mock/src/
Dusb_core_mock_test.cpp544 auto ports = usbSrv_->GetPorts(portList); variable
546 ASSERT_EQ(0, ports);
/base/usb/usb_manager/services/zidl/src/
Dusb_srv_stub.cpp298 std::vector<UsbPort> ports; in DoGetPorts() local
299 int32_t ret = GetPorts(ports); in DoGetPorts()
304 uint32_t size = ports.size(); in DoGetPorts()
308 ret = WriteUsbPort(reply, ports[i]); in DoGetPorts()
Dusb_srv_proxy.cpp486 int32_t UsbServerProxy::GetPorts(std::vector<UsbPort> &ports) in GetPorts() argument
512 ret = ParseUsbPort(reply, ports); in GetPorts()
520 int32_t UsbServerProxy::ParseUsbPort(MessageParcel &reply, std::vector<UsbPort> &ports) in ParseUsbPort() argument
533 ports.push_back(port); in ParseUsbPort()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_core_test.cpp580 auto ports = usbSrvClient.GetPorts(portlist); variable
582 ASSERT_EQ(0, ports);