/tools/test/connectivity/acts/framework/acts/controllers/ |
D | fuchsia_device.py | 143 info = {"ip": fd.ip} 187 self.ip = fd_conf_data["ip"] 198 "FuchsiaDevice | %s" % self.ip) 200 if utils.is_valid_ipv4_address(self.ip): 201 self.address = "http://{}:{}".format(self.ip, self.port) 202 elif utils.is_valid_ipv6_address(self.ip): 203 self.address = "http://[{}]:{}".format(self.ip, self.port) 205 raise ValueError('Invalid IP: %s' % self.ip) 216 self.serial = re.sub('[.:%]', '_', self.ip) 357 if utils.is_pingable(self.ip): [all …]
|
D | chameleon_controller.py | 87 return [ChameleonDevice(ip) for ip in ips] 102 def __init__(self, ip="", port=9992): argument 103 self.ip = ip 106 self.address = "http://{}:{}".format(ip, self.port) 184 cmd = "scp root@{}:/{} {}".format(self.ip, source, destination)
|
D | iperf_client.py | 122 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument 142 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument 163 iperf_cmd = [str(iperf_binary), '-c', ip] + iperf_args.split(' ') 185 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument 206 iperf_cmd = '{} -c {} {}'.format(iperf_binary, ip, iperf_args) 288 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument 312 iperf_cmd = '{} -c {} {}'.format(iperf_binary, ip, iperf_args)
|
/tools/acloud/list/ |
D | instance.py | 194 def __init__(self, name, fullname, display, ip, status=None, adb_port=None, argument 202 self._ip = ip 269 def ip(self): member in Instance 353 name=name, fullname=fullname, display=display, ip="127.0.0.1", 514 name=name, fullname=fullname, display=display, ip="127.0.0.1", 622 ip = None 625 ip = access_config.get("natIP") 645 if ip: 646 forwarded_ports = self.GetAdbVncPortFromSSHTunnel(ip, avd_type) 672 name=name, fullname=fullname, display=display, ip=ip, status=status, [all …]
|
/tools/acloud/public/actions/ |
D | common_operations.py | 100 ip = self._compute_client.GetInstanceIP(instance) 104 avd.AndroidVirtualDevice(ip=ip, instance_name=instance, 234 ip = (device.ip.internal if report_internal_ip 235 else device.ip.external) 237 "ip": ip, 246 ip_addr=ip, 259 ip_addr=ip,
|
D | remote_instance_cf_device_factory.py | 118 ip = ssh.IP(ip=self._avd_spec.remote_host) 120 ip=ip, 127 self._ssh, ip, self._avd_spec.host_user)
|
D | gce_device_factory.py | 91 ip = self._compute_client.GetInstanceIP(instance) 92 self._ssh = ssh.Ssh(ip=ip,
|
/tools/acloud/internal/lib/ |
D | cvd_compute_client_multi_stage.py | 143 def InitRemoteHost(self, ssh, ip, user): argument 156 self._ip = ip 213 self._ssh = Ssh(ip=self._ip, 431 ip = gcompute_client.ComputeClient.GetInstanceIP( 434 return ip 480 ip = gcompute_client.ComputeClient.GetInstanceIP( 482 logger.debug("'instance_ip': %s", ip.internal 483 if self._report_internal_ip else ip.external) 486 return ip
|
D | ssh.py | 165 def __init__(self, external=None, internal=None, ip=None): argument 173 self.external = external or ip 174 self.internal = internal or ip 186 def __init__(self, ip, user, ssh_private_key_path, argument 188 self._ip = ip.internal if report_internal_ip else ip.external
|
D | ssh_test.py | 63 ssh_object = ssh.Ssh(ip=self.FAKE_IP, 180 ssh_object = ssh.Ssh(ip=ssh.IP(external="1.1.1.1", internal="10.1.1.1"), 188 ssh_object = ssh.Ssh(ip=ssh.IP(external="1.1.1.1", internal="10.1.1.1"), 195 ssh_object = ssh.Ssh(ip=ssh.IP(ip="1.1.1.1"), 203 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
|
D | gcompute_client.py | 1502 ip = instance["networkInterfaces"][0]["accessConfigs"][0][ 1504 if ip in ips: 1505 ip_name_map[ip] = instance["name"]
|
/tools/acloud/public/ |
D | device_driver.py | 232 ip = self._compute_client.GetInstanceIP(instance) 234 ip=ip, instance_name=instance)) 394 ip = (device.ip.internal if report_internal_ip 395 else device.ip.external) 397 "ip": ip, 402 ip_addr=ip,
|
D | avd.py | 41 def __init__(self, instance_name, ip=None, time_info=None): argument 50 self._ip = ip 77 def ip(self): member in AndroidVirtualDevice 84 @ip.setter 85 def ip(self, value): member in AndroidVirtualDevice
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiTetheringTest.py | 223 def _verify_ping(self, dut, ip, isIPv6=False): argument 234 self.log.info("Pinging %s from dut %s" % (ip, dut.serial)) 235 if isIPv6 or self._is_ipaddress_ipv6(ip): 236 return dut.droid.pingHost(ip, 5, "ping6") 237 return dut.droid.pingHost(ip) 289 for ip in ip_list: 290 ping_result = self._verify_ping(dut, ip) 292 (iface_name, ip, ping_result))
|
/tools/acloud/reconnect/ |
D | reconnect_test.py | 44 instance_object.ip = "1.1.1.1" 87 utils.AutoConnect.assert_called_with(ip_addr=instance_object.ip, 109 utils.AutoConnect.assert_called_with(ip_addr=instance_object.ip, 156 instance_object.ip = "1.1.1.1" 188 instance_object.ip = "1.1.1.1" 199 utils.AutoConnect.assert_called_with(ip_addr=instance_object.ip, 211 utils.AutoConnect.assert_called_with(ip_addr=instance_object.ip,
|
D | reconnect.py | 65 ssh = ssh_object.Ssh(ip=ssh_object.IP(ip=instance.ip), user=host_user, 183 ip_addr=instance.ip, 207 ip_addr=instance.ip, 217 constants.IP: instance.ip,
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 1530 def is_pingable(ip): argument 1538 if is_valid_ipv4_address(ip): 1540 elif is_valid_ipv6_address(ip): 1543 raise ValueError('Invalid ip addr: %s' % ip) 1547 if is_valid_ipv6_address(ip): 1557 ping_cmd = [ping_binary, *timeout_flag, '-c', '1', ip] 1563 def ip_in_subnet(ip, subnet): argument 1573 return ipaddress.ip_address(ip) in ipaddress.ip_network(subnet)
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | IpSecTest.py | 75 def _test_spi_allocate_release_req_spi(self, dut, ip): argument 77 self.log.info("IP addr: %s" % ip) 79 key = dut.droid.ipSecAllocateSecurityParameterIndex(ip, req_spi) 88 def _test_spi_allocate_release_random_spi(self, dut, ip): argument 89 self.log.info("IP addr: %s" % ip) 90 key = dut.droid.ipSecAllocateSecurityParameterIndex(ip)
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_power_test_utils.py | 255 ip = '0.0.0.0' 257 ip = scapy.get_if_addr(interface_name) 258 if ip == '0.0.0.0': 262 'DHCP address assigned to %s as %s' % (interface_name, ip)) 263 return ip
|
/tools/test/connectivity/acts/framework/acts/test_utils/net/ |
D | socket_test_utils.py | 28 def open_android_socket(ad, domain, sock_type, ip, port): argument 41 fd_key = ad.droid.openSocket(domain, sock_type, ip, port) 112 def open_datagram_socket(ad, ip, port): argument 123 socket_key = ad.droid.openDatagramSocket(ip, port)
|
/tools/test/connectivity/acts_tests/tests/google/usb/ |
D | UsbTetheringThroughputTest.py | 141 ip = self.get_dut_tethering_ip() 143 'ping -c {} {}'.format(count, ip), ignore_status=True).stdout 161 ip = '8.8.8.8' 163 'ping -c {} {}'.format(count, ip), ignore_status=True)
|
D | UsbTetheringFunctionsTest.py | 160 def can_ping(self, ip, extra_params='', count=10): argument 173 'ping -c {} {} {}'.format(count, extra_params, ip), 184 ip = '8.8.8.8' 187 ip, '-I {}'.format(interface), count=self.ping_count):
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | WifiHelper.java | 324 final String ip = getIpAddress(); in hasValidIp() local 325 return ip != null && !ip.isEmpty() && !NULL_IP_ADDR.equals(ip); in hasValidIp()
|
D | DeviceManager.java | 528 for (String ip : getGlobalConfig().getHostOptions().getKnownTcpDeviceIpPool()) { in addNetworkDevices() 530 new TcpDevice(String.format("%s-%d", TCP_DEVICE_SERIAL_PREFIX, index), ip)); in addNetworkDevices() 535 for (String ip : getGlobalConfig().getHostOptions().getKnownGceDeviceIpPool()) { in addNetworkDevices() 538 String.format("%s-%d", GCE_DEVICE_SERIAL_PREFIX, index), ip)); in addNetworkDevices()
|
/tools/acloud/pull/ |
D | pull.py | 59 ssh = Ssh(ip=IP(ip=instance.ip),
|