/base/usb/usb_manager/services/native/src/ |
D | usb_port_manager.cpp | 81 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()
|
D | usb_service.cpp | 524 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/ |
D | usb_port_manager.h | 38 int32_t GetPorts(std::vector<UsbPort> &ports);
|
D | usb_service.h | 82 int32_t GetPorts(std::vector<UsbPort> &ports) override;
|
/base/web/webview/test/unittest/common/ |
D | nweb_create_window.h | 201 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/ |
D | nweb.h | 533 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/ |
D | webview_controller.h | 143 ErrCode CreateWebMessagePorts(std::vector<std::string>& ports); 145 …ErrCode PostWebMessage(std::string& message, std::vector<std::string>& ports, std::string& targetU…
|
D | webview_controller.cpp | 438 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()
|
D | napi_webview_controller.cpp | 1394 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/ |
D | iusb_srv.h | 39 virtual int32_t GetPorts(std::vector<UsbPort> &ports) = 0;
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 720 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/ |
D | usb_server_proxy.h | 45 int32_t GetPorts(std::vector<UsbPort> &ports) override;
|
/base/usb/usb_manager/test/native/mock/src/ |
D | usb_core_mock_test.cpp | 544 auto ports = usbSrv_->GetPorts(portList); variable 546 ASSERT_EQ(0, ports);
|
/base/usb/usb_manager/services/zidl/src/ |
D | usb_srv_stub.cpp | 298 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()
|
D | usb_srv_proxy.cpp | 486 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/ |
D | usb_core_test.cpp | 580 auto ports = usbSrvClient.GetPorts(portlist); variable 582 ASSERT_EQ(0, ports);
|