Home
last modified time | relevance | path

Searched refs:port (Results 1 - 25 of 38) sorted by relevance

12

/test/xts/hats/hdf/audio/idl/common/adapter_additional/src/
H A Daudio_adapter_common_test.cpp650 * port as ports.
654 struct AudioPort port = {}; in HWTEST_F() local
655 port = adapterDescs_->ports[0]; in HWTEST_F()
657 int32_t ret = adapter_->GetPassthroughMode(adapter_, &port, &mode); in HWTEST_F()
673 struct AudioPort port = {}; in HWTEST_F() local
675 port.dir = PORT_OUT; in HWTEST_F()
676 port.portId = 0; in HWTEST_F()
677 port.portName = const_cast<char *>("primary"); in HWTEST_F()
678 int32_t ret = adapter_->GetPortCapability(adapter_, &port, &capability); in HWTEST_F()
785 struct AudioPort port in HWTEST_F() local
801 struct AudioPort port = {}; HWTEST_F() local
821 struct AudioPort port = {}; HWTEST_F() local
837 struct AudioPort port = {}; HWTEST_F() local
853 struct AudioPort port = {}; HWTEST_F() local
869 struct AudioPort port = {}; HWTEST_F() local
885 struct AudioPort port = {}; HWTEST_F() local
901 struct AudioPort port = {}; HWTEST_F() local
921 struct AudioPort port = {}; HWTEST_F() local
937 struct AudioPort port = {}; HWTEST_F() local
953 struct AudioPort port = {}; HWTEST_F() local
973 struct AudioPort port = {}; HWTEST_F() local
989 struct AudioPort port = {}; HWTEST_F() local
1005 struct AudioPort port = {}; HWTEST_F() local
1021 struct AudioPort port = {}; HWTEST_F() local
1037 struct AudioPort port = {}; HWTEST_F() local
1053 struct AudioPort port = {}; HWTEST_F() local
1073 struct AudioPort port = {}; HWTEST_F() local
1089 struct AudioPort port = {}; HWTEST_F() local
1105 struct AudioPort port = {}; HWTEST_F() local
1125 struct AudioPort port = {}; HWTEST_F() local
1141 struct AudioPort port = {}; HWTEST_F() local
1157 struct AudioPort port = {}; HWTEST_F() local
1173 struct AudioPort port = {}; HWTEST_F() local
1189 struct AudioPort port = {}; HWTEST_F() local
1207 struct AudioPort port = {}; HWTEST_F() local
1225 struct AudioPort port = {}; HWTEST_F() local
1241 struct AudioPort port = {}; HWTEST_F() local
1257 struct AudioPort port = {}; HWTEST_F() local
1273 struct AudioPort port = {}; HWTEST_F() local
1289 struct AudioPort port = {}; HWTEST_F() local
1305 struct AudioPort port = {}; HWTEST_F() local
1321 struct AudioPort port = {}; HWTEST_F() local
1337 struct AudioPort port = {}; HWTEST_F() local
1353 struct AudioPort port = {}; HWTEST_F() local
1369 struct AudioPort port = {}; HWTEST_F() local
1385 struct AudioPort port = {}; HWTEST_F() local
1401 struct AudioPort port = {}; HWTEST_F() local
1417 struct AudioPort port = {}; HWTEST_F() local
1433 struct AudioPort port = {}; HWTEST_F() local
1449 struct AudioPort port = {}; HWTEST_F() local
1465 struct AudioPort port = {}; HWTEST_F() local
1481 struct AudioPort port = {}; HWTEST_F() local
1497 struct AudioPort port = {}; HWTEST_F() local
1513 struct AudioPort port = {}; HWTEST_F() local
1529 struct AudioPort port = {}; HWTEST_F() local
1545 struct AudioPort port = {}; HWTEST_F() local
1561 struct AudioPort port = {}; HWTEST_F() local
1577 struct AudioPort port = {}; HWTEST_F() local
1593 struct AudioPort port = {}; HWTEST_F() local
1609 struct AudioPort port = {}; HWTEST_F() local
1625 struct AudioPort port = {}; HWTEST_F() local
1641 struct AudioPort port = {}; HWTEST_F() local
1657 struct AudioPort port = {}; HWTEST_F() local
1674 struct AudioPort port = {}; HWTEST_F() local
1691 struct AudioPort port = {}; HWTEST_F() local
1708 struct AudioPort port = {}; HWTEST_F() local
1725 struct AudioPort port = {}; HWTEST_F() local
1742 struct AudioPort port = {}; HWTEST_F() local
1759 struct AudioPort port = {}; HWTEST_F() local
1776 struct AudioPort port = {}; HWTEST_F() local
1793 struct AudioPort port = {}; HWTEST_F() local
1810 struct AudioPort port = {}; HWTEST_F() local
1827 struct AudioPort port = {}; HWTEST_F() local
1844 struct AudioPort port = {}; HWTEST_F() local
1861 struct AudioPort port = {}; HWTEST_F() local
1878 struct AudioPort port = {}; HWTEST_F() local
1895 struct AudioPort port = {}; HWTEST_F() local
1912 struct AudioPort port = {}; HWTEST_F() local
1929 struct AudioPort port = {}; HWTEST_F() local
1946 struct AudioPort port = {}; HWTEST_F() local
1963 struct AudioPort port = {}; HWTEST_F() local
1980 struct AudioPort port = {}; HWTEST_F() local
1997 struct AudioPort port = {}; HWTEST_F() local
2014 struct AudioPort port = {}; HWTEST_F() local
2031 struct AudioPort port = {}; HWTEST_F() local
2048 struct AudioPort port = {}; HWTEST_F() local
2065 struct AudioPort port = {}; HWTEST_F() local
2170 struct AudioPort port = {}; HWTEST_F() local
2186 struct AudioPort port = {}; HWTEST_F() local
2202 struct AudioPort port = {}; HWTEST_F() local
2218 struct AudioPort port = {}; HWTEST_F() local
2234 struct AudioPort port = {}; HWTEST_F() local
2250 struct AudioPort port = {}; HWTEST_F() local
2266 struct AudioPort port = {}; HWTEST_F() local
2282 struct AudioPort port = {}; HWTEST_F() local
2298 struct AudioPort port = {}; HWTEST_F() local
2315 struct AudioPort port = {}; HWTEST_F() local
2332 struct AudioPort port = {}; HWTEST_F() local
2349 struct AudioPort port = {}; HWTEST_F() local
2366 struct AudioPort port = {}; HWTEST_F() local
2383 struct AudioPort port = {}; HWTEST_F() local
2400 struct AudioPort port = {}; HWTEST_F() local
2417 struct AudioPort port = {}; HWTEST_F() local
2434 struct AudioPort port = {}; HWTEST_F() local
2451 struct AudioPort port = {}; HWTEST_F() local
2468 struct AudioPort port = {}; HWTEST_F() local
2485 struct AudioPort port = {}; HWTEST_F() local
2502 struct AudioPort port = {}; HWTEST_F() local
[all...]
/test/xts/hats/hdf/codec/hdi_idlomx/
H A Dcodec_function_utils.cpp61 void FunctionUtil::InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, shared_ptr<OmxCodecBuffer> omxBuffer, in InitCodecBufferWithAshMem() argument
67 if (port == PortIndex::INDEX_INPUT) { in InitCodecBufferWithAshMem()
77 uint32_t port, CodecBufferType bufferType) in InitBufferHandleParameter()
80 param.nPortIndex = port; in InitBufferHandleParameter()
108 type.portIndex = port; in InitBufferHandleParameter()
140 bool FunctionUtil::UseDynaBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, in UseDynaBuffer() argument
155 auto ret = component->UseBuffer(static_cast<uint32_t>(port), *omxBuffer.get(), outBuffer); in UseDynaBuffer()
169 bool FunctionUtil::UseHandleBuffer(sptr<ICodecComponent> component, enum PortIndex port, in UseHandleBuffer() argument
184 int32_t ret = component->UseBuffer(static_cast<uint32_t>(port), *omxBuffer.get(), outBuffer); in UseHandleBuffer()
198 bool FunctionUtil::UseBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, in UseBufferOnPort() argument
76 InitBufferHandleParameter(sptr<ICodecComponent> component, OMX_PARAM_PORTDEFINITIONTYPE &param, uint32_t port, CodecBufferType bufferType) InitBufferHandleParameter() argument
229 AllocateBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount, int32_t bufferSize) AllocateBufferOnPort() argument
268 FreeBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port) FreeBufferOnPort() argument
[all...]
H A Dcodec_function_utils.h125 void InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, std::shared_ptr<OmxCodecBuffer> omxBuffer,
129 uint32_t port, CodecBufferType bufferType);
133 bool UseDynaBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize);
135 bool UseHandleBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize);
137 bool UseBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount,
140 bool AllocateBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount,
143 bool FreeBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port);
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
H A Ddmlib.py90 def __init__(self, host="127.0.0.1", port=None, device_connector=None):
93 self.channel.setdefault("port", port)
104 def get_instance(host, port=None, device_connector=None):
106 monitor = HdcMonitor(host, port, device_connector)
135 port = DEFAULT_STD_PORT
139 "port", port))
228 device_instance.port = self.channel.get("port")
[all...]
H A Ddevice.py178 port = None variable in Device
396 cmd = [HdcHelper.CONNECTOR_NAME, "-s", "{}:{}".format(self.host, self.port), "-t", self.device_sn]
714 # clear old port,because abc and fast mode will not remove port
719 rpc_proxy = OpenHarmony(port=self._h_port, addr=self.host, timeout=self.rpc_timeout, device=self)
927 def is_harmony_rpc_socket_running(self, port: int, check_server: bool = True, is_print: bool = True) -> bool:
930 out = self.execute_shell_command("netstat -atn | grep :{}".format(port))
937 if "LISTEN" in data and str(port) in data:
940 if "hdcd" in data and str(port) in data:
945 port
[all...]
H A Ddevice_lite.py153 if "ip" in item.keys() and "port" in item.keys():
155 (item.get("ip"), item.get("port"))
230 if "port" in item.keys() and item.get("port") and not item.get(
231 "port").isnumeric():
233 elif "port" not in item.keys():
406 self.port = int(device[1].get("port"))
416 self.telnet = telnetlib.Telnet(self.host, self.port,
420 convert_ip(self.host), self.port, st
[all...]
/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dutil.py107 # clear reverse port first Example: 'tcp:8011 tcp:9963' [Reverse]
124 def is_port_idle(host: str = "127.0.0.1", port: int = None) -> bool:
131 s.connect((host, port))
141 def get_forward_port(self, host: str = None, port: int = None, filter_ports: list = None):
147 port = 9999 - secrets.randbelow(99)
149 while cnt < 10 and port > 1024:
150 if port not in filter_ports and port not in ports_list and is_port_idle(host, port):
154 port
[all...]
/test/xts/hats/hdf/audio/idl/benchmarktest/adapter/
H A Daudio_adapter_benchmarktest.cpp223 struct AudioPort port = {}; in BENCHMARK_F() local
225 port.dir = PORT_OUT; in BENCHMARK_F()
226 port.portId = 0; in BENCHMARK_F()
227 port.portName = const_cast<char*>("primary"); in BENCHMARK_F()
230 ret = adapter_->GetPortCapability(adapter_, &port, &capability); in BENCHMARK_F()
246 struct AudioPort port = {}; in BENCHMARK_F() local
247 port.dir = PORT_OUT; in BENCHMARK_F()
248 port.portId = 0; in BENCHMARK_F()
249 port.portName = const_cast<char*>("primary"); in BENCHMARK_F()
253 ret = adapter_->SetPassthroughMode(adapter_, &port, mod in BENCHMARK_F()
265 struct AudioPort port = {}; BENCHMARK_F() local
[all...]
/test/xts/hats/hdf/audio/idl/common/adapter/src/
H A Daudio_adapter_common_test.cpp263 struct AudioPort port = {}; in HWTEST_F() local
265 EXPECT_NE(HDF_SUCCESS, adapter_->GetPortCapability(nullptr, &port, &capability)); in HWTEST_F()
276 struct AudioPort port = {}; in HWTEST_F() local
277 EXPECT_EQ(HDF_ERR_INVALID_PARAM, adapter_->GetPortCapability(adapter_, &port, nullptr)); in HWTEST_F()
282 struct AudioPort port = {}; in HWTEST_F() local
284 port.dir = PORT_OUT; in HWTEST_F()
285 port.portId = 0; in HWTEST_F()
286 port.portName = const_cast<char*>("primary"); in HWTEST_F()
287 int32_t ret = adapter_->GetPortCapability(adapter_, &port, &capability); in HWTEST_F()
293 struct AudioPort port in HWTEST_F() local
307 struct AudioPort port = {}; HWTEST_F() local
320 struct AudioPort port = {}; HWTEST_F() local
336 struct AudioPort port = {}; HWTEST_F() local
349 struct AudioPort port = {}; HWTEST_F() local
[all...]
/test/testfwk/developer_test/local_coverage/resident_service/
H A Dpull_service_gcda.py151 ip, port, sn = get_config_ip(os.path.join(developer_test_path, "config/user_config.xml"))
152 if not port:
153 port = "8710" variable
158 device_sn_list = get_sn_list("hdc -s %s:%s list targets" % (ip, port))
163 developer_test_path, service_path, root_path, port)
164 restore_config(ip, port, sn_str, config_path)
H A Dpublic_method.py28 port = ""
41 port = data_dic.get("port", "")
45 return ip_config, port, sn
H A Dinit_gcov.py354 ip, port, sn = get_config_ip(os.path.join(developer_test_path, "config/user_config.xml"))
355 if not port:
356 port = "8710" variable
361 sn_list = get_sn_list("hdc -s %s:%s list targets" % (ip, port))
368 system_dict, home_paths, port)
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/
H A Dmanager_device.py98 device.get("ip"), device.get("port"), device.get("usb_type"))
111 device.get("ip"), device.get("port"),
253 device_instance.port = idevice.port
256 "port is %s, device sn is %s, usb type is %s" %
258 device_instance.port, device_instance.device_sn,
273 "port is %s, device sn is %s, usb type is %s" %
274 (device, device.host, device.port, device.device_sn,
339 "port"))
348 device.host, device.port))
[all...]
H A Dmanager_lite.py146 convert_port(device.device.port),
182 def add_address(self, host, port):
184 port_ele = self.create_node("port")
186 port_ele.text = port
/test/xts/acts/telephony/telephonyjstest/netmanager_base/dns/entry/src/ohosTest/js/test/
H A DNetworkManagerMdns.test.js51 port: 5555,
55 port: 5555,
68 expect(value.port).assertEqual(localServiceInfo.port);
71 expect(value.host.port).assertEqual(localServiceInfo.host.port);
617 expect(data.port).assertEqual(localServiceInfo.port);
620 expect(data.host.port).assertEqual(localServiceInfo.host.port);
[all...]
/test/testfwk/arkxtest/uitest/test/
H A Ddummy_extension.cpp26 extern "C" RetCode UiTestExtension_OnInit(UiTestPort port, size_t argc, char **argv) in UiTestExtension_OnInit() argument
40 return impl(port, argc, argv); in UiTestExtension_OnInit()
H A Dextension_test.cpp76 static RetCode ExtensionOnInitImpl(UiTestPort port, size_t argc, const char **argv) in ExtensionOnInitImpl() argument
78 portCapture = port; in ExtensionOnInitImpl()
235 static RetCode PrintLog(UiTestPort &port, int32_t level, const char *format, ...) in PrintLog() argument
241 auto ret = port.printLog(level, tag, fmt, ap); in PrintLog()
/test/xts/device_attest/services/core/network/
H A Dattest_network.c232 msgHttpPack->reqPort = serverInfo->port; in BuildSocketInfo()
280 if (getaddrinfo(serverInfo->hostName, serverInfo->port, &hints, &returnAddr) != ATTEST_OK) { in InitAddrInfo()
1130 networkServerInfo->port, MAX_PORT_LEN); in SplitNetworkInfoSymbol()
1133 ATTEST_LOG_ERROR("[SplitNetworkInfoSymbol] failed to split NetworkInfo, host[%s] port[%s]", in SplitNetworkInfoSymbol()
1134 networkServerInfo->hostName, networkServerInfo->port); in SplitNetworkInfoSymbol()
1269 static int32_t MergeDomain(char* hostName, char* port, char** resultDomain) in MergeDomain() argument
1271 if (hostName == NULL || port == NULL || resultDomain == NULL) { in MergeDomain()
1279 (strlen(port) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in MergeDomain()
1281 (strlen(hostName) + strlen(port) + strlen(CONNECTOR)) >= MAX_ATTEST_MALLOC_BUFF_SIZE) { in MergeDomain()
1284 int newDomainSize = strlen(hostName) + strlen(port) in MergeDomain()
[all...]
/test/xts/device_attest_lite/services/core/network/
H A Dattest_network.c182 memcpy_s(session->serverInfo.port, MAX_PORT_LEN, networkInfo->port, in CustomConfig()
183 strlen(networkInfo->port)) != 0) { in CustomConfig()
1011 networkServerInfo->port, MAX_PORT_LEN); in SplitNetworkInfoSymbol()
1014 ATTEST_LOG_ERROR("[SplitNetworkInfoSymbol] failed to split NetworkInfo, host[%s] port[%s]", in SplitNetworkInfoSymbol()
1015 networkServerInfo->hostName, networkServerInfo->port); in SplitNetworkInfoSymbol()
1158 static int32_t MergeDomain(char* hostName, char* port, char** resultDomain) in MergeDomain() argument
1160 if (hostName == NULL || port == NULL || resultDomain == NULL) { in MergeDomain()
1167 int newDomainSize = strlen(hostName) + strlen(port) + strlen(CONNECTOR) + 1; in MergeDomain()
1176 strcat_s(newDomain, newDomainSize, port) ! in MergeDomain()
[all...]
/test/testfwk/xdevice/src/xdevice/_core/
H A Dutils.py492 def convert_port(port):
493 _port = str(port)
723 def get_netstat_proc_pid(device, port):
730 cmd = 'netstat -atn | grep :{}'.format(port)
734 if str(port) in data and "grep" not in data:
737 device.log.debug('{} proc:{}'.format(port, data))
/test/xts/device_attest_lite/services/core/include/network/
H A Dattest_channel.h51 char port[MAX_PORT_LEN + 1]; member
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dinetndk.cpp69 uint16_t port = PORT; in InetAton() local
70 adr_inet.sin_port = htons(port); in InetAton()
/test/testfwk/arkxtest/uitest/addon/
H A Dextension_c_api.h64 // proto of UiTestExtensionOnInitCallback: void (UiTestPort port, size_t argc, char **argv)
65 typedef RetCode (*UiTestExtensionOnInitCallback)(UiTestPort port, size_t argc, char **argv);
/test/xts/device_attest/services/core/include/network/
H A Dattest_network.h79 char port[MAX_PORT_LEN + 1]; member
/test/testfwk/xdevice/src/xdevice/_core/environment/
H A Denv_pool.py140 # clear device rpc port
350 self.get_root_node().append(self.create_node("port"))
357 def add_address(self, host, port):
359 port_ele = self.get_root_node().find("port")
361 port_ele.text = port

Completed in 21 milliseconds

12