/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/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/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerFuncTest.java | 84 int port = mRemoteMgr.getPort(); in testAllocateFree() local 85 assertTrue(port != -1); in testAllocateFree() 86 mRemoteClient = RemoteClient.connect(port); in testAllocateFree() 102 int port = mRemoteMgr.getPort(); in testAddCommand() local 103 assertTrue(port != -1); in testAddCommand() 104 mRemoteClient = RemoteClient.connect(port); in testAddCommand() 120 int port = mRemoteMgr.getPort(); in testAddCommandFile() local 121 assertTrue(port != -1); in testAddCommandFile() 122 mRemoteClient = RemoteClient.connect(port); in testAddCommandFile() 142 int port = mRemoteMgr.getPort(); in testAllocateClose() local [all …]
|
/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
|
/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 | 73 for (port in portsByName.values) { in run() method 75 outDir.resolve(port.name).also { it.mkdirs() } in run() 78 port.fetchSource(sourceDirectory, workingDirectory).onFailure { in run() 99 port.name, workingDirectory, toolchain in run() 102 port.run( in run() 115 port, in run()
|
/tools/test/connectivity/acts/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/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/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/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/framework/acts/controllers/ |
D | iperf_server.py | 262 def __init__(self, port): argument 263 self._port = port 271 def port(self): member in IPerfServerBase 322 'IPerfServer%s' % self.port) 344 def __init__(self, port=5201): argument 345 super().__init__(port) 346 self._hinted_port = port 352 def port(self): member in IPerfServer 421 def __init__(self, ssh_config, port, test_interface=None): argument 422 super().__init__(port) [all …]
|
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/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, 58 Individual port files are kept in `ports/$name/port.kts`. For example, the cURL 59 port is [ports/curl/port.kts](ports/curl/port.kts).
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | RemoteAndroidDevice.java | 186 public boolean adbTcpConnect(String host, String port) { in adbTcpConnect() argument 188 CommandResult result = adbConnect(host, port); in adbTcpConnect() 197 if(confirmAdbTcpConnect(host, port)) { in adbTcpConnect() 212 private boolean confirmAdbTcpConnect(String host, String port) { in confirmAdbTcpConnect() argument 213 CommandResult resultConfirmation = adbConnect(host, port); in confirmAdbTcpConnect() 234 public boolean adbTcpDisconnect(String host, String port) { in adbTcpDisconnect() argument 237 String.format("%s:%s", host, port)); in adbTcpDisconnect() 286 private CommandResult adbConnect(String host, String port) { in adbConnect() argument 297 String.format("%s:%s", host, port)); in adbConnect()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/ |
D | HttpHelperFuncTest.java | 52 final int port = backend.getPort(); // FIXME race condition in testTimeout() local 53 if (port <= 0) { in testTimeout() 64 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/test/connectivity/acts/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/google/net/ |
D | IpSecTest.py | 109 port = random.randint(5000, 6000) 118 self.log.info("Port: %s" % port) 127 fd_a = sutils.open_android_socket(dut_a, domain, sock_type, ip_a, port) 128 fd_b = sutils.open_android_socket(dut_b, domain, sock_type, ip_b, port) 166 dut_a.droid.connectSocket(fd_a, ip_b, port) 172 dut_a, dut_b, fd_a, fd_b, ip_b, port) 196 dut_a, dut_b, fd_a, fd_b, ip_b, port) 212 port = random.randint(5000, 6000) 221 self.log.info("Port: %s" % port) 230 socket_a = sutils.open_datagram_socket(dut_a, ip_a, port) [all …]
|
/tools/acloud/public/actions/ |
D | common_operations.py | 130 port=constants.DEFAULT_SERIAL_PORT): argument 143 device.instance_name, port, output_file) 145 instance=device.instance_name, port=port) 146 file_name = "%s_serial_%s.log" % (device.instance_name, port) 220 serial_log_file, port=constants.DEFAULT_SERIAL_PORT)
|
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
D | sain_smart_8_channel_usb_relay_board.py | 80 bb.port &= ~(self.address[relay_position]) 82 bb.port |= self.address[relay_position]
|
D | rdl_relay_board.py | 32 bb.port |= self.address[relay_position] 34 bb.port &= ~(self.address[relay_position])
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | StartHandoverOp.java | 29 StartHandoverOp(int port) { in StartHandoverOp() argument 30 mPort = port; in StartHandoverOp()
|
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/ |
D | IsolationRunner.java | 171 public RunnerConfig(int port, String address, int timeout) { in RunnerConfig() argument 172 if (port > 0) { in RunnerConfig() 173 mPort = port; in RunnerConfig() 230 int port = -1; in parseFlags() local 238 port = Integer.parseInt(portStr); in parseFlags() 244 return new RunnerConfig(port, address, timeout); in parseFlags()
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/ |
D | http.py | 46 def open(self, host, port=80, timeout=2): argument 56 self._port = port 141 'http://{}:{}/CHAN:{}:ATT?'.format(self._ip_address, self.port,
|