/test/xts/hats/hdf/audio/idl/common/adapter_additional/src/ |
H A D | audio_adapter_common_test.cpp | 650 * 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...] |
/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/udpserver_env/ |
H A D | net_demo.h | 19 void NetDemoTest(unsigned short port, const char* host); 31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument 34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO() 35 testFunc(host, port); \ in CLIENT_TEST_DEMO() 42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument 45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO() 46 testFunc(port); \ in SERVER_TEST_DEMO()
|
H A D | udp_server_test.c | 32 void UdpServerTest(unsigned short port) argument 41 serverAddr.sin_port = htons(port); 50 printf("bind to port %u success!\r\n", port); 56 printf("peer info: ipaddr = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port));
|
/vendor/hisilicon/hispark_pegasus/demo/smart_night_light_demo/udpserver_light/ |
H A D | net_demo.h | 19 void NetDemoTest(unsigned short port, const char* host); 30 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument 33 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO() 34 testFunc(host, port); \ in CLIENT_TEST_DEMO() 41 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument 44 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO() 45 testFunc(port); \ in SERVER_TEST_DEMO()
|
H A D | udp_server_test.c | 30 void UdpServerTest(unsigned short port) argument 39 serverAddr.sin_port = htons(port); 48 printf("bind to port %u success!\r\n", port); 54 printf("peer info: ipaddr = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port));
|
/vendor/hisilicon/hispark_pegasus/demo/tcpclient_demo/ |
H A D | net_demo.h | 20 void NetDemoTest(unsigned short port, const char* host); 32 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument 35 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO() 36 testFunc(host, port); \ in CLIENT_TEST_DEMO() 43 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument 46 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO() 47 testFunc(port); \ in SERVER_TEST_DEMO()
|
/vendor/hisilicon/hispark_pegasus/demo/tcpserver_demo/ |
H A D | net_demo.h | 19 void NetDemoTest(unsigned short port, const char* host); 31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument 34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO() 35 testFunc(host, port); \ in CLIENT_TEST_DEMO() 42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument 45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO() 46 testFunc(port); \ in SERVER_TEST_DEMO()
|
H A D | demo_entry_posix.c | 21 printf("Usage: %s [port] [host]\n", argv[0]); in main() 23 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local 26 NetDemoTest(port, host); in main()
|
/vendor/hisilicon/hispark_pegasus/demo/udpclient_demo/ |
H A D | net_demo.h | 19 void NetDemoTest(unsigned short port, const char* host); 31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument 34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO() 35 testFunc(host, port); \ in CLIENT_TEST_DEMO() 42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument 45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO() 46 testFunc(port); \ in SERVER_TEST_DEMO()
|
H A D | demo_entry_posix.c | 20 printf("Usage: %s [port] [host]\n", argv[0]); in main() 22 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local 25 NetDemoTest(port, host); in main()
|
/vendor/hisilicon/hispark_pegasus/demo/udpserver_demo/ |
H A D | net_demo.h | 19 void NetDemoTest(unsigned short port, const char* host); 31 void NetDemoTest(unsigned short port, const char* host) { \ in CLIENT_TEST_DEMO() argument 34 printf("I will connect to %s:%d\r\n", host, port); \ in CLIENT_TEST_DEMO() 35 testFunc(host, port); \ in CLIENT_TEST_DEMO() 42 void NetDemoTest(unsigned short port, const char* host) { \ in SERVER_TEST_DEMO() argument 45 printf("I will listen on :%d\r\n", port); \ in SERVER_TEST_DEMO() 46 testFunc(port); \ in SERVER_TEST_DEMO()
|
H A D | udp_server_test.c | 23 void UdpServerTest(unsigned short port) argument 32 serverAddr.sin_port = htons(port); 42 printf("bind to port %u success!\r\n", port); 51 printf("peer info: ipaddr = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port));
|
H A D | demo_entry_posix.c | 21 printf("Usage: %s [port] [host]\n", argv[0]); in main() 23 short port = argc > 1 ? atoi(argv[1]) : PARAM_SERVER_PORT; in main() local 26 NetDemoTest(port, host); in main()
|
/test/xts/hats/hdf/codec/hdi_idlomx/ |
H A D | codec_function_utils.cpp | 61 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 ¶m, 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 D | codec_function_utils.h | 125 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 D | dmlib.py | 90 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 D | device.py | 178 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...] |
/test/testfwk/xdevice/plugins/devicetest/utils/ |
H A D | util.py | 107 # 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 D | audio_adapter_benchmarktest.cpp | 223 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 D | audio_adapter_common_test.cpp | 263 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...] |
/vendor/hisilicon/hispark_pegasus/demo/lwip_demo/ |
H A D | lwip_tcp_client.c | 23 void TcpClientTest(const char* host, unsigned short port) in TcpClientTest() argument 29 serverAddr.sin_port = htons(port); // 端口号,从主机字节序转为网络字节序 in TcpClientTest() 60 void NetDemoTest(unsigned short port, const char* host) in NetDemoTest() argument 65 TcpClientTest(host, port); in NetDemoTest()
|
H A D | lwip_tcp_server.c | 24 void TcpServerTest(unsigned short port) in TcpServerTest() argument 33 serverAddr.sin_port = htons(port); // 端口号,从主机字节序转为网络字节序 in TcpServerTest() 42 printf("bind to port success!\r\n"); in TcpServerTest() 64 printf("client addr info: host = %s, port = %d\r\n", inet_ntoa(clientAddr.sin_addr), ntohs(clientAddr.sin_port)); in TcpServerTest() 88 void NetDemoTest(unsigned short port, const char* host) in NetDemoTest() argument 93 TcpServerTest(port); in NetDemoTest()
|
/test/testfwk/developer_test/local_coverage/resident_service/ |
H A D | pull_service_gcda.py | 151 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)
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/ |
H A D | manager_device.py | 98 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...] |
/test/xts/acts/telephony/telephonyjstest/netmanager_base/dns/entry/src/ohosTest/js/test/ |
H A D | NetworkManagerMdns.test.js | 51 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...] |