Home
last modified time | relevance | path

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

123456

/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/
Dhost_utils.py31 port = _try_bind(0, socket.SOCK_STREAM, socket.IPPROTO_TCP)
33 if port and _try_bind(port, socket.SOCK_DGRAM, socket.IPPROTO_UDP):
34 return port
37 def is_port_available(port): argument
46 return (_try_bind(port, socket.SOCK_STREAM, socket.IPPROTO_TCP) and
47 _try_bind(port, socket.SOCK_DGRAM, socket.IPPROTO_UDP))
50 def _try_bind(port, socket_type, socket_proto): argument
54 s.bind(('', port))
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dlogserial.py67 for port in self.get_serial_ports():
68 properties = self.get_port_properties(port=port)
85 ports_result.append(port)
88 def get_port_properties(self, port): argument
98 if port in ports:
100 port_address = ports[port][1]
105 command = 'udevadm info -q property -n {}'.format(port)
154 def port_exists(self, port): argument
163 exists = port in self.get_serial_ports()
169 port, argument
[all …]
Db29_lib.py98 self.port = b29_port[0]
110 command = '--serial={}'.format(self.port)
170 command = '--serial=%s --debug_spi=dfu --sqif_partition=8' % self.port
192 command = '--serial={} --ping={}'.format(self.port, component)
213 command = '--serial={} --charger_reset'.format(self.port)
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dsettings.py30 port = config.get('port', 22)
38 return SshSettings(host, user, port=port, identity_file=identity_file,
62 port=22, argument
72 self.port = port
107 current_flags['-p'] = self.port
/tools/netsim/src/core/
Dserver.h28 GrpcServer(std::unique_ptr<grpc::Server> server, std::uint32_t port) in GrpcServer() argument
29 : server(std::move(server)), port(port) {} in GrpcServer()
32 uint32_t GetGrpcPort() const { return port; }; in GetGrpcPort()
36 std::uint32_t port; variable
/tools/ndkports/
DREADME.md15 Each third-party project is called a "port". Ports consist of a description of
19 A port is a subclass of the abstract Kotlin class `com.android.ndkports.Port`.
20 Projects define the name and version of the port, the URL to fetch source from,
23 See the [Port class] for documentation on the port API.
25 Individual port files are kept in `ports/$name/port.kts`. For example, the cURL
26 port is [ports/curl/port.kts](ports/curl/port.kts).
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500_scenario_generator.py174 port = next(
178 if port is None:
183 free_ports.remove(port)
184 configs.append(PortConfiguration(port, converter))
193 for port in free_ports:
195 (c for c in self.CONVERTER_MAPPING[port]
205 configs.append(PortConfiguration(port, converter))
Dcmx500_iperf_measurement.py237 def port(self): member in Cmx500IPerfService
239 return self._perf.port
241 @port.setter
242 def port(self, port): argument
248 self._perf.port = port
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Dsl4a_manager.py157 port = self._get_open_listening_port()
158 if port is None:
162 return port
199 for port in possible_ports:
200 if port not in self._sl4a_ports:
201 self._sl4a_ports.add(port)
202 return int(port)
306 for port in set.union(self._sl4a_ports, ports):
307 self.adb.shell(_SL4A_CLOSE_SERVER_CMD % port)
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py265 def __init__(self, port): argument
266 self._port = port
274 def port(self): member in IPerfServerBase
325 'IPerfServer%s' % self.port)
348 def __init__(self, port=5201): argument
349 super().__init__(port)
350 self._hinted_port = port
356 def port(self): member in IPerfServer
428 port, argument
431 super().__init__(port)
[all …]
Dchameleon_controller.py72 info = {"address": chameleon.address, "port": chameleon.port}
101 def __init__(self, ip="", port=9992): argument
104 self.port = port
105 self.address = "http://{}:{}".format(ip, self.port)
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_service.py73 self.port = None
109 self.port = None
129 if 'Started server!' in line and self.port is not None:
135 if self.port is not None:
139 self.port = match.group(1)
203 self.port)
218 port = self.port
219 self._log.info('stopping bits_service %s on port %s', self.name, port)
223 port)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Drpm_controller_utils.py96 port = '%s%s' % (ID, rpm_port)
97 logging.info('Turning %s port: %s' % (state, port))
98 self.run(RPM_PROMPT, '%s %s' % (state.lower(), port))
99 result = self.run(RPM_PROMPT, 'status %s' % port)
100 if port not in result:
101 raise RpmControllerError('Port %s doesn\'t exist' % port)
/tools/test/connectivity/acts/framework/tests/
Dacts_host_utils_test.py31 port = test_s.getsockname()[1]
33 self.assertFalse(host_utils.is_port_available(port))
40 port = test_s.getsockname()[1]
42 self.assertFalse(host_utils.is_port_available(port))
/tools/netsim/rust/daemon/src/grpc_server/
Dserver.rs25 pub fn start(port: u32) -> (Server, u16) { in start()
29 let addr = format!("127.0.0.1:{}", port); in start()
38 let port = server.add_listening_port(addr.clone(), ServerCredentials::insecure()).unwrap(); in start() localVariable
41 (server, port) in start()
/tools/tradefederation/core/src/com/android/tradefed/device/connection/
DAdbTcpConnection.java131 public boolean adbTcpConnect(String host, String port) { in adbTcpConnect() argument
133 CommandResult result = adbConnect(host, port); in adbTcpConnect()
142 if (confirmAdbTcpConnect(host, port)) { in adbTcpConnect()
176 private boolean confirmAdbTcpConnect(String host, String port) { in confirmAdbTcpConnect() argument
177 CommandResult resultConfirmation = adbConnect(host, port); in confirmAdbTcpConnect()
193 private CommandResult adbConnect(String host, String port) { in adbConnect() argument
204 String.format("%s:%s", host, port)); in adbConnect()
224 public boolean adbTcpDisconnect(String host, String port) { in adbTcpDisconnect() argument
231 String.format("%s:%s", host, port)); in adbTcpDisconnect()
/tools/test/connectivity/acts/framework/acts/controllers/openwrt_lib/
Dopenwrt_authentication.py26 def __init__(self, hostname, username="root", password="root", port=22): argument
43 self.port = port
116 port=self.port,
/tools/tradefederation/core/javatests/com/android/tradefed/util/net/
DHttpHelperFuncTest.java53 final int port = backend.getPort(); // FIXME race condition in testTimeout() local
54 if (port <= 0) { in testTimeout()
65 final String url = String.format("http://localhost:%d/", port); in testTimeout()
94 final int port = backend.getPort(); // FIXME race condition in testNoTimeout() local
95 if (port <= 0) { in testNoTimeout()
106 final String url = String.format("http://localhost:%d/", port); in testNoTimeout()
/tools/acloud/internal/lib/
Demulator_console.py41 def __init__(self, ip_addr, port, ssh_user, ssh_private_key_path, argument
56 logger.debug("Connect to %s:%d", ip_addr, port)
66 [(self._local_port, port)],
70 "Cannot create SSH tunnel to %s:%d." % (ip_addr, port)) from e
81 "Cannot connect to %s:%d." % (ip_addr, port)) from e
/tools/test/connectivity/acts_tests/tests/google/bt/power/
DSetupBTPairingTest.py45 port = int(self.user_params["socket_port"])
51 server_address = ('localhost', port)
52 logging.info("Starting server socket on localhost port %s", port)
53 sock.bind(('localhost', port))
/tools/netsim/src/frontend/
Dfrontend_client_stub.cc35 auto port = netsim::osutils::GetServerAddress(instance_num); in NewFrontendClient() local
36 if (!port.has_value()) { in NewFrontendClient()
39 auto server = "localhost:" + port.value(); in NewFrontendClient()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_retail_ap/
Dnetgear_rax80.py36 port=self.ap_settings['port'])
42 port=self.ap_settings['port'])
50 port=self.ap_settings['port'])
Dnetgear_r8000.py36 port=self.ap_settings['port'])
42 port=self.ap_settings['port'])
50 port=self.ap_settings['port'])
/tools/test/connectivity/acts_tests/tests/google/wifi/
DSetupWifiNetworkTest.py30 port = int(self.user_params["socket_port"])
36 server_address = ('localhost', port)
37 logging.info("Starting server socket on localhost port %s", port)
38 sock.bind(('localhost', port))
DWifiRvrTwTest.py189 port = serial.Serial(com, 9600, timeout=1)
191 return port
193 def get_angle(self, port): argument
203 port.write("DG?;".encode())
205 degree_data = port.readline().decode("utf-8")
213 def set_angle(self, port, angle): argument
226 port.write(input_angle.encode())
229 def check_angle(self, port, angle): argument
238 while self.get_angle(port) != angle and retry < retrytime:
241 "Current angle = " + str(self.get_angle(port)))
[all …]

123456