/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | logserial.py | 67 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 …]
|
D | b29_lib.py | 98 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_tests/tests/google/wifi/ |
D | WifiRvrTwTest.py | 134 port=serial.Serial(com,9600,timeout=1) 136 return port 138 def getdB(self,port): argument 144 port.write('V?;'.encode()) 145 dB=port.readline().decode() 150 def setdB(self,port,dB): argument 163 port.write(InputdB.encode()) 182 def checkdB(self,port,dB): argument 190 while self.getdB(port)!=dB and retry<10: 192 self.log.info("Current dB = "+str(self.getdB(port))) [all …]
|
D | SetupWifiNetworkTest.py | 31 port = int(self.user_params["socket_port"]) 37 server_address = ('localhost', port) 38 logging.info("Starting server socket on localhost port %s", port) 39 sock.bind(('localhost', port))
|
/tools/ndkports/src/main/kotlin/com/android/ndkports/ |
D | PrefabPackageBuilder.kt | 34 private val port: Port, in <lambda>() constant in com.android.ndkports.PrefabPackageBuilder 51 port.name in <lambda>() 60 it.name = port.name in <lambda>() 65 it.version = port.mavenVersion in <lambda>() 69 license.name = port.license.name in <lambda>() 70 license.url = port.license.url in <lambda>() 83 it.dependencies = port.dependencies.map { depName -> in <lambda>() 115 port.name, in <lambda>() 117 dependencies = port.dependencies, in <lambda>() 118 version = port.prefabVersion.toString() in <lambda>() [all …]
|
D | Cli.kt | 76 for (port in portsByName.values) { in run() method 78 outDir.resolve(port.name).also { it.mkdirs() } in run() 82 portDirectoryFor(port.name).resolve("src.tar.gz") in run() 84 port.extractSource(sourceTarball, sourceDirectory, workingDirectory) in run() 102 port.name, workingDirectory, toolchain in run() 105 port.run( in run() 118 port, in run()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | iperf_server.py | 263 def __init__(self, port): argument 264 self._port = port 272 def port(self): member in IPerfServerBase 323 'IPerfServer%s' % self.port) 345 def __init__(self, port=5201): argument 346 super().__init__(port) 347 self._hinted_port = port 353 def port(self): member in IPerfServer 424 port, argument 427 super().__init__(port) [all …]
|
D | arduino_wifi_dongle.py | 131 self.port = self._get_serial_port() 165 for port in serial_ports: 166 if 'USB' not in port: 168 tty_port = '%s%s' % (DEV, port) 193 cmd = arduino + file_path + ' --upload --port ' + self.port 228 cmd = "%s %s --upload --port %s" % (arduino, tmp_file, self.port) 268 ser = Serial(self.port, BAUD_RATE)
|
D | chameleon_controller.py | 73 info = {"address": chameleon.address, "port": chameleon.port} 102 def __init__(self, ip="", port=9992): argument 105 self.port = port 106 self.address = "http://{}:{}".format(ip, self.port)
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ |
D | host_utils.py | 31 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/bits_lib/ |
D | bits_client.py | 100 self._service.port, 111 self._service.port, 125 self._service.port, 142 self._service.port, 184 self._service.port, 210 self._service.port, 243 self._service.port, 259 self._service.port, 276 self._service.port, 294 self._service.port,
|
D | bits_service.py | 73 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/ndkports/ |
D | README.md | 15 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).
|
D | build.gradle.kts | 66 for (port in allPorts) { in port() method 68 create(port) { in port() 71 from(portsBuildDir.resolve(port)) { in port() 110 for (port in allPorts) { in <lambda>() method
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | sl4a_manager.py | 155 port = self._get_open_listening_port() 156 if port is None: 160 return port 197 for port in possible_ports: 198 if port not in self._sl4a_ports: 199 self._sl4a_ports.add(port) 200 return int(port) 297 for port in set.union(self._sl4a_ports, ports): 298 self.adb.shell(_SL4A_CLOSE_SERVER_CMD % port)
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/ |
D | settings.py | 30 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
|
D | connection.py | 329 def create_ssh_tunnel(self, port, local_port=None): argument 347 if tunnel.remote_port == port: 354 '-L': '%d:localhost:%d' % (local_port, port), 368 local_port, port, tunnel_proc.pid) 369 self._tunnels.append(_Tunnel(local_port, port, tunnel_proc)) 438 port = int(self.run(free_port_cmd).stdout) 441 return port
|
/tools/acloud/internal/lib/ |
D | utils.py | 769 port = tcp_socket.getsockname()[1] 771 return port 774 def CheckPortFree(port): argument 785 tcp_socket.bind(("", port)) 788 "port." % port) 811 def ReleasePort(port): argument 819 subprocess.check_call(_RELEASE_PORT_CMD % port, 844 "local_port":port["local"], 845 "target_port":port["target"]} for port in WEBRTC_PORTS_MAPPING] 994 def LaunchBrowser(ip_addr, port): argument [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/ |
D | rpm_controller_utils.py | 96 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_tests/tests/google/net/ |
D | IpSecTest.py | 115 port = random.randint(5000, 6000) 124 self.log.info("Port: %s" % port) 133 fd_a = sutils.open_android_socket(dut_a, domain, sock_type, ip_a, port) 134 fd_b = sutils.open_android_socket(dut_b, domain, sock_type, ip_b, port) 172 dut_a.droid.connectSocket(fd_a, ip_b, port) 178 dut_a, dut_b, fd_a, fd_b, ip_b, port) 202 dut_a, dut_b, fd_a, fd_b, ip_b, port) 236 port = dut_b.droid.getPortOfDatagramSocket(socket_b) 271 dut_a, dut_b, socket_a, socket_b, ip_b, port) 295 dut_a, dut_b, socket_a, socket_b, ip_b, port) [all …]
|
/tools/acloud/public/actions/ |
D | common_operations.py | 154 port=constants.DEFAULT_SERIAL_PORT): argument 167 device.instance_name, port, output_file) 169 instance=device.instance_name, port=port) 170 file_name = "%s_serial_%s.log" % (device.instance_name, port) 264 serial_log_file, port=constants.DEFAULT_SERIAL_PORT)
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_host_utils_test.py | 31 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/test/connectivity/acts_tests/tests/google/bt/power/ |
D | SetupBTPairingTest.py | 46 port = int(self.user_params["socket_port"]) 52 server_address = ('localhost', port) 53 logging.info("Starting server socket on localhost port %s", port) 54 sock.bind(('localhost', port))
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_retail_ap/ |
D | netgear_r8000.py | 36 port=self.ap_settings['port']) 42 port=self.ap_settings['port']) 50 port=self.ap_settings['port'])
|
D | netgear_rax80.py | 36 port=self.ap_settings['port']) 42 port=self.ap_settings['port']) 50 port=self.ap_settings['port'])
|