Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 81) sorted by relevance

1234

/test/xts/hats/hdf/audio/idl/common/adapter_additional/src/
Daudio_adapter_common_test.cpp703 struct AudioPort port = {}; variable
704 port = adapterDescs_->ports[0];
706 int32_t ret = adapter_->GetPassthroughMode(adapter_, &port, &mode);
719 struct AudioPort port = {}; variable
720 port.dir = PORT_OUT;
721 port.portId = 0;
722 port.portName = const_cast<char *>("primary");
725 ret = adapter_->SetPassthroughMode(adapter_, &port, mode);
738 struct AudioPort port = {}; variable
740 port.dir = PORT_OUT;
[all …]
/test/xts/hats/hdf/audio/idl/benchmarktest/adapter/
Daudio_adapter_benchmarktest.cpp221 struct AudioPort port = {}; in BENCHMARK_F() local
223 port.dir = PORT_OUT; in BENCHMARK_F()
224 port.portId = 0; in BENCHMARK_F()
225 port.portName = const_cast<char*>("primary"); in BENCHMARK_F()
228 ret = adapter_->GetPortCapability(adapter_, &port, &capability); in BENCHMARK_F()
239 struct AudioPort port = {}; in BENCHMARK_F() local
240 port.dir = PORT_OUT; in BENCHMARK_F()
241 port.portId = 0; in BENCHMARK_F()
242 port.portName = const_cast<char*>("primary"); in BENCHMARK_F()
246 ret = adapter_->SetPassthroughMode(adapter_, &port, mode); in BENCHMARK_F()
[all …]
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
Ddmlib.py89 def __init__(self, host="127.0.0.1", port=None, device_connector=None): argument
92 self.channel.setdefault("port", port)
103 def get_instance(host, port=None, device_connector=None): argument
105 monitor = HdcMonitor(host, port, device_connector)
133 port = DEFAULT_STD_PORT
137 "port", port))
230 device_instance.port = self.channel.get("port")
234 … device_instance.device_sn, device_instance.host, device_instance.port, items[3]))
237 … device_instance.device_sn, device_instance.host, device_instance.port, items[3]))
387 def __init__(self, device, host=None, port=None): argument
[all …]
Ddevice.py157 port = None variable in Device
300 cmd = [HdcHelper.CONNECTOR_NAME, "-s", "{}:{}".format(self.host, self.port),
566 port = self.d_port if not start_abc else self.abc_d_port
569 self._h_port, port)
572 "get_proxy d_port:{} {}".format(self._h_port, port))
576 rpc_proxy = OpenHarmony(port=self._h_port, addr=self.host, device=self)
739 def is_harmony_rpc_socket_running(self, port, check_server=True): argument
740 out = self.execute_shell_command("netstat -anp | grep {}".format(port))
746 if "LISTEN" in data and str(port) in data:
749 if "hdcd" in data and str(port) in data:
[all …]
/test/xts/acts/commonlibrary/ets_utils/uri_lib_standard/src/main/js/test/
Duri.test.js247 expect(gaogao.port).assertEqual("99");
269 expect(gaogao.port).assertEqual("99");
291 expect(gaogao.port).assertEqual("88");
313 expect(gaogao.port).assertEqual("99");
335 expect(gaogao.port).assertEqual("99");
357 expect(gaogao.port).assertEqual("99");
379 expect(gaogao.port).assertEqual("99");
402 expect(gaogao.port).assertEqual("99");
424 expect(gaogao.port).assertEqual("99");
446 expect(gaogao.port).assertEqual("99");
[all …]
/test/testfwk/developer_test/localCoverage/resident_service/
Dpull_service_gcda.py148 ip, port, sn = get_config_ip(os.path.join(developer_test_path, "config/user_config.xml")) variable
149 if not port:
150 port = "8710" variable
155 device_sn_list = get_sn_list("hdc -s %s:%s list targets" % (ip, port))
160 developer_test_path, service_path, root_path, port)
161 restore_config(ip, port, sn_str, config_path)
Dpublic_method.py28 port = ""
41 port = data_dic.get("port", "")
45 return ip_config, port, sn
Dinit_gcov.py351 ip, port, sn = get_config_ip(os.path.join(developer_test_path, "config/user_config.xml")) variable
352 if not port:
353 port = "8710" variable
358 sn_list = get_sn_list("hdc -s %s:%s list targets" % (ip, port))
365 system_dict, home_paths, port)
/test/testfwk/xdevice/
DREADME_zh.md80 <ip></ip> <!-- ip: 远端设备地址,ip和port为空时使用本地设备,非空时使用远端设备 -->
81 <port></port> <!-- port: 远端设备端口号 -->
115 <port></port>
132 <port></port> <!-- 挂载环境端口 -->
DREADME.md16 …onfigurations and provides different configuration options for the serial port connection and USB …
76 …/port**: IP address and port of a remote device. By default, the parameter is left blank, indicati…
79 …- For devices that support serial port connection, refer to the following note to configure the …
82 …connection mode. The **com** mode indicates that the device is connected through the serial port.
84 >**serial**: serial port
85 >- **serial/com**: serial port for local connection, for example, **COM20**
86 …*serial/type**: serial port type. The value can be **cmd** \(serial port for test case execution…
88 …> **serial/baud\_rate, data\_bits, stop\_bits** and **timeout**: serial port parameters. You c…
100 >**server/port**: port number of the mounting environment
/test/xts/acts/telephony/telephonyjstest/netmanager_base/socket/src/main/js/test/
DNetStackSocket.test.js40 port: 0 property
64 port: 0 property
89 port: 0 property
116 port: 0 property
334 port: 0 property
358 port: 0 property
656 port: 0 property
682 port: 0 property
/test/xts/hats/hdf/audio/idl/common/adapter/src/
Daudio_adapter_common_test.cpp263 struct AudioPort port = {}; variable
265 EXPECT_NE(HDF_SUCCESS, adapter_->GetPortCapability(nullptr, &port, &capability));
276 struct AudioPort port = {}; variable
277 EXPECT_EQ(HDF_ERR_INVALID_PARAM, adapter_->GetPortCapability(adapter_, &port, nullptr));
282 struct AudioPort port = {}; variable
284 port.dir = PORT_OUT;
285 port.portId = 0;
286 port.portName = const_cast<char*>("primary");
287 int32_t ret = adapter_->GetPortCapability(adapter_, &port, &capability);
293 struct AudioPort port = adapterDescs_[0].ports[0]; variable
[all …]
/test/xts/acts/telephony/telephonyjstest/netmanagerhttp/httpproxy/entry/src/main/ets/test/
DNetworkManagerAppProxy.test.ets22 port: 5555,
27 port: 8888,
32 port: 5555,
37 port: 5555,
42 port: 5555,
162 expect(data.port).assertEqual(5555);
/test/testfwk/developer_test/
DREADME.md48 5. NFS version: V4 or later \(required when device supports connection using the serial port but n…
49 …3.3 or later \(required when the device supports connection using the serial port but not the hdc\)
108 5. Run the following command to install the serial port plug-in pySerial for Python on the local P…
120 6. If the device supports test result output only using the serial port, install the NFS server.
181 … with the **"usb-hdc"** attribute, including the test device IP address and the matched hdc port.
186 <port>9111</port>
191 …3. For devices that only support the serial port connection, modify the configuration file as fol…
193 …\[device\] \# Configure the serial port information with the **"ipcamera"** attribute, includ…
218 …2. For devices that only support serial port connection, specify the NFS directory on the PC \(**…
228 …eck that the test environment is ready if the tested device only supports serial port connection.\)
[all …]
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/
Dmanager_device.py230 device_instance.port = idevice.port
235 device_instance.port, device_instance.device_sn,
251 (device, device.host, device.port, device.device_sn,
320 device.host, device.port))
360 idevice.device_os_type, idevice.host, idevice.port))
379 idevice.host, idevice.port, test_device.test_device_state))
395 disconnected_device.host, disconnected_device.port))
/test/xts/acts/telephony/telephonyjstest/netmanager_base/dns/src/main/js/test/
DNetworkManagerMdns.test.js51 port: 5555, property
55 port: 5555, property
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);
702 expect(data.port).assertEqual(localServiceInfo.port);
705 expect(data.host.port).assertEqual(localServiceInfo.host.port);
/test/xts/hats/hdf/codec/hdi_v1.0/
Dcodec_proxy_test.cpp129 HDF_LOGI("minSize.width:%{public}d", cap->port.video.minSize.width); in PrintCapability()
130 HDF_LOGI("minSize.height:%{public}d", cap->port.video.minSize.height); in PrintCapability()
131 HDF_LOGI("maxSize.width:%{public}d", cap->port.video.maxSize.width); in PrintCapability()
132 HDF_LOGI("maxSize.height:%{public}d", cap->port.video.maxSize.height); in PrintCapability()
133 HDF_LOGI("widthAlignment:%{public}d", cap->port.video.whAlignment.widthAlignment); in PrintCapability()
134 HDF_LOGI("heightAlignment:%{public}d", cap->port.video.whAlignment.heightAlignment); in PrintCapability()
135 …HDF_LOGI("supportPixFmts:%{public}s", GetArrayStr(cap->port.video.supportPixFmts, PIX_FMT_NUM, 0)); in PrintCapability()
137 HDF_LOGI(":%{public}s", GetArrayStr(cap->port.audio.sampleFormats, SAMPLE_FORMAT_NUM, 0)); in PrintCapability()
138 HDF_LOGI(":%{public}s", GetArrayStr(cap->port.audio.sampleRate, SAMPLE_RATE_NUM, 0)); in PrintCapability()
139 HDF_LOGI(":%{public}s", GetArrayStr(cap->port.audio.channelLayouts, CHANNEL_NUM, -1)); in PrintCapability()
/test/xts/tools/lite/hcpptest/
DBUILD.gn51 "//third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h",
60 "//third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h",
61 "//third_party/googletest/googletest/include/gtest/internal/gtest-port.h",
69 "//third_party/googletest/googletest/src/gtest-port.cc",
122 "//third_party/googletest/googlemock/include/gmock/internal/custom/gmock-port.h",
125 "//third_party/googletest/googlemock/include/gmock/internal/gmock-port.h",
/test/xts/acts/telephony/telephonyjstest/netmanager_socket/entry/src/main/ets/test/
DSocketJsunit.test.ets30 port: 32123
36 port: 32123
41 port: 32123
124 port: 8080
128 expect(netAddress.port === 8080).assertTrue()
150 port: 8080
274 * @tc.name : SocketRemoteInfo.port
275 * @tc.desc : SocketRemoteInfo.port
287 port: 8080,
290 expect(socketRemoteInfo.port === 8080).assertTrue()
[all …]
/test/testfwk/developer_test/third_party/lib/cpp/
DBUILD.gn45 "//third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h",
54 "//third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h",
55 "//third_party/googletest/googletest/include/gtest/internal/gtest-port.h",
63 "//third_party/googletest/googletest/src/gtest-port.cc",
/test/xts/hats/hdf/codec/hdi_adapter/
Dcodec_hdi_adapter_test.cpp218 HDF_LOGI("minSize.width:%{public}d", cap->port.video.minSize.width); in PrintCapability()
219 HDF_LOGI("minSize.height:%{public}d", cap->port.video.minSize.height); in PrintCapability()
220 HDF_LOGI("maxSize.width:%{public}d", cap->port.video.maxSize.width); in PrintCapability()
221 HDF_LOGI("maxSize.height:%{public}d", cap->port.video.maxSize.height); in PrintCapability()
222 HDF_LOGI("widthAlignment:%{public}d", cap->port.video.whAlignment.widthAlignment); in PrintCapability()
223 HDF_LOGI("heightAlignment:%{public}d", cap->port.video.whAlignment.heightAlignment); in PrintCapability()
224 HDF_LOGI("blockCount.min:%{public}d", cap->port.video.blockCount.min); in PrintCapability()
225 HDF_LOGI("blockCount.max:%{public}d", cap->port.video.blockCount.max); in PrintCapability()
226 HDF_LOGI("blocksPerSecond.min:%{public}d", cap->port.video.blocksPerSecond.min); in PrintCapability()
227 HDF_LOGI("blocksPerSecond.max:%{public}d", cap->port.video.blocksPerSecond.max); in PrintCapability()
[all …]
/test/xts/device_attest_lite/services/core/include/network/
Dattest_channel.h51 char port[MAX_PORT_LEN + 1]; member
/test/xts/device_attest/services/core/network/
Dattest_network.c232 msgHttpPack->reqPort = serverInfo->port; in BuildSocketInfo()
280 if (getaddrinfo(serverInfo->hostName, serverInfo->port, &hints, &returnAddr) != ATTEST_OK) { in InitAddrInfo()
1125 networkServerInfo->port, MAX_PORT_LEN); in SplitNetworkInfoSymbol()
1129 networkServerInfo->hostName, networkServerInfo->port); in SplitNetworkInfoSymbol()
1264 static int32_t MergeDomain(char* hostName, char* port, char** resultDomain) in MergeDomain() argument
1266 if (hostName == NULL || port == NULL || resultDomain == NULL) { in MergeDomain()
1274 (strlen(port) >= MAX_ATTEST_MALLOC_BUFF_SIZE) ||\ in MergeDomain()
1276 (strlen(hostName) + strlen(port) + strlen(CONNECTOR)) >= MAX_ATTEST_MALLOC_BUFF_SIZE) { in MergeDomain()
1279 int newDomainSize = strlen(hostName) + strlen(port) + strlen(CONNECTOR) + 1; in MergeDomain()
1288 strcat_s(newDomain, newDomainSize, port) != 0) { in MergeDomain()
[all …]
/test/xts/device_attest_lite/services/core/network/
Dattest_network.c180 memcpy_s(session->serverInfo.port, MAX_PORT_LEN, networkInfo->port, in CustomConfig()
181 strlen(networkInfo->port)) != 0) { in CustomConfig()
1004 networkServerInfo->port, MAX_PORT_LEN); in SplitNetworkInfoSymbol()
1008 networkServerInfo->hostName, networkServerInfo->port); in SplitNetworkInfoSymbol()
1147 static int32_t MergeDomain(char* hostName, char* port, char** resultDomain) in MergeDomain() argument
1149 if (hostName == NULL || port == NULL || resultDomain == NULL) { in MergeDomain()
1156 int newDomainSize = strlen(hostName) + strlen(port) + strlen(CONNECTOR) + 1; in MergeDomain()
1165 strcat_s(newDomain, newDomainSize, port) != 0) { in MergeDomain()
1232 if (MergeDomain(serverInfo->hostName, serverInfo->port, &curDomain) != ATTEST_OK || in CheckDomain()
1233 MergeDomain(newHost, serverInfo->port, &newDomain) != ATTEST_OK) { in CheckDomain()
/test/xts/device_attest/services/core/include/network/
Dattest_network.h79 char port[MAX_PORT_LEN + 1]; member

1234