Home
last modified time | relevance | path

Searched refs:host_port (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dadb.py114 def tcp_forward(self, host_port, device_port): argument
130 host_port = self._ssh_connection.create_ssh_tunnel(remote_port, local_port=host_port)
132 output = self.forward(["tcp:%d" % host_port, "tcp:%d" % device_port])
139 return host_port
146 def remove_tcp_forward(self, host_port): argument
153 remote_port = self._ssh_connection.close_ssh_tunnel(host_port)
155 logging.warning("Cannot close unknown forwarded tcp port: %d", host_port)
158 host_port = remote_port
159 self.forward(["--remove", "tcp:%d" % host_port])
Dgd_device.py708 def tcp_forward_or_die(self, host_port, device_port, num_retry=1): argument
716 error_or_port = self.adb.tcp_forward(host_port, device_port)
718 logging.debug("host port %d was already forwarded" % host_port)
719 return host_port
726 (self.label, host_port, device_port, num_retry))
729 return self.tcp_forward_or_die(host_port, device_port, num_retry=num_retry)
731 (host_port, device_port, error_or_port))
734 def tcp_reverse_or_die(self, device_port, host_port, num_retry=1): argument
742 error_or_port = self.adb.reverse(["tcp:%d" % device_port, "tcp:%d" % host_port])
754 (self.label, device_port, host_port, num_retry))
[all …]
/packages/modules/Bluetooth/system/blueberry/utils/
Dmobly_sl4a_utils.py75 …log.info("Clearing host_port to prevent mobly crash {}".format(device.sl4a._sl4a_client.host_port))
76 device.sl4a._sl4a_client.host_port = None