/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
D | TestUtils.java | 48 public static void assertTlsConnectionSucceeds(String host, int port) throws Exception { in assertTlsConnectionSucceeds() argument 49 assertSslSocketSucceeds(host, port); in assertTlsConnectionSucceeds() 50 assertHttpClientSucceeds(host, port, true /* https */); in assertTlsConnectionSucceeds() 51 assertUrlConnectionSucceeds(host, port, true /* https */); in assertTlsConnectionSucceeds() 54 public static void assertTlsConnectionFails(String host, int port) throws Exception { in assertTlsConnectionFails() argument 55 assertSslSocketFails(host, port); in assertTlsConnectionFails() 56 assertHttpClientFails(host, port, true /* https */); in assertTlsConnectionFails() 57 assertUrlConnectionFails(host, port, true /* https */); in assertTlsConnectionFails() 60 public static void assertCleartextConnectionSucceeds(String host, int port) throws Exception { in assertCleartextConnectionSucceeds() argument 61 assertHttpClientSucceeds(host, port, false /* http */); in assertCleartextConnectionSucceeds() [all …]
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/targetprep/ |
D | CecPortDiscoverer.java | 124 for (String port : comPorts) { in initValidClient() 125 launchCommand.add(port); in initValidClient() 129 File adapterMapping = new File(mCecMapDir, getPortFilename(port)); in initValidClient() 137 launchCommand.remove(port); in initValidClient() 152 writeMapping(port, serialNo); in initValidClient() 176 launchCommand.remove(port); in initValidClient() 200 private String getPortFilename(String port) { in getPortFilename() argument 202 return new File(port).getName(); in getPortFilename() 205 private void writeMapping(String port, String serialNo) throws TargetSetupError { in writeMapping() argument 207 mPortEntry = new File(mCecMapDir, getPortFilename(port)); in writeMapping() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 112 String addrPort = entry.localAddress.getHostAddress() + ':' + entry.port; in testNoAccessibleListeningPorts() 119 if (isTcp && !isTcpConnectable(entry.localAddress, entry.port)) { in testNoAccessibleListeningPorts() 130 + entry.port + ", UID=" + entry.uid in testNoAccessibleListeningPorts() 148 private boolean isTcpConnectable(InetAddress address, int port) { in isTcpConnectable() argument 153 Log.d(TAG, "Trying to connect " + address + ":" + port); in isTcpConnectable() 155 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable() 170 Log.d(TAG, address + ":" + port + " is connectable."); in isTcpConnectable() 203 private final int port; field in ListeningPortsTest.ParsedProcEntry 207 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 209 this.port = port; in ParsedProcEntry()
|
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/ |
D | JdwpTunnelTest.java | 93 private VirtualMachine getDebuggerConnection(String port) throws Exception { in getDebuggerConnection() argument 102 params.get("port").setValue(port); in getDebuggerConnection() 118 final String port = "15002"; in forwardJdwp() local 119 result = mDevice.executeAdbCommand("forward", "tcp:" + port, "jdwp:" + pid); in forwardJdwp() 121 return port; in forwardJdwp() 145 String port = forwardJdwp(pid); in startupForwarding() local 146 assertTrue(!"".equals(port)); in startupForwarding() 147 return port; in startupForwarding() 292 String port = in testDdmsWaitsForHandshake() local 294 Socket sock = new Socket("localhost", Integer.decode(port).intValue()); in testDdmsWaitsForHandshake()
|
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils.py | 132 def arduino_read_cmd(port): argument 136 cmd.append(port.read()) 140 def arduino_send_cmd(port, cmd): argument 143 port.write(cmd[i]) 146 def arduino_loopback_cmd(port, cmd): argument 148 arduino_send_cmd(port, cmd) 150 return arduino_read_cmd(port) 153 def establish_serial_comm(port): argument 155 logging.debug('Establishing communication with %s', port.name) 160 cmd_read = arduino_loopback_cmd(port, ARDUINO_TEST_CMD)
|
D | its_session_utils.py | 145 port = None 158 port = local_p 164 if port is None: 168 port = p 171 if port is None: 180 self.sock.connect((self.IPADDR, port))
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
D | VpnTestHelper.java | 192 int port = new InetSocketAddress(0).getPort(); in checkPing() local 193 Os.connect(socket, InetAddress.getByName(host), port); in checkPing() 215 port = local.getPort(); in checkPing() 216 echo[4] = (byte) ((port >> 8) & 0xFF); in checkPing() 217 echo[5] = (byte) (port & 0xFF); in checkPing() 235 int port = new InetSocketAddress(0).getPort(); in tryPosixConnect() local 236 Os.connect(socket, InetAddress.getByName(host), port); in tryPosixConnect()
|
/cts/hostsidetests/hdmicec/ |
D | cec_adapter.md | 14 1. Connect "TV" port on the adapter to your TV 15 2. Connect USB mini port to you computer 27 sudo /opt/local/bin/port install libcec 36 no serial port given. trying autodetect: 38 com port: /dev/cu.usbmodemv1 62 Nov 18 16:15:46 no serial port given. trying autodetect: 64 Nov 18 16:15:46 com port: /dev/ttyACM0 102 [p] \{device\} \{port\} 103 : change the HDMI port number of the CEC adapter.
|
D | README.md | 43 It is recommended to connect the CEC adapter to the HDMI ARC port of the TV device.
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/ |
D | PassthroughTestHelper.java | 72 private Socket createHttpConnectConnection(int port) throws Exception { in createHttpConnectConnection() argument 83 mClientPrint.println("CONNECT localhost:" + port + " HTTP/1.0\r\n\r"); in createHttpConnectConnection()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | PostMessageTest.java | 188 public void onMessage(WebMessagePort port, WebMessage message) { in testMessageChannel() 266 public void onMessage(WebMessagePort port, WebMessage message) { in testReceiveMessagePort() 300 public void onMessage(WebMessagePort port, WebMessage message) { in testWebMessageHandler() 331 public void onMessage(WebMessagePort port, WebMessage message) { in testWebMessageDefaultHandler()
|
/cts/suite/audio_quality/lib/include/ |
D | ClientSocket.h | 25 virtual bool init(const char* hostIp, int port, bool enableTimeout = false);
|
/cts/suite/audio_quality/lib/src/ |
D | ClientSocket.cpp | 40 bool ClientSocket::init(const char* hostIp, int port, bool enableTimeout) in init() argument 58 serverAddr.sin_port = htons(port); in init()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
D | DataPathInBandTestCase.java | 304 int port = 0; in executeTestPublisher() local 315 port = server.getLocalPort(); in executeTestPublisher() 317 mContext.getString(R.string.aware_status_socket_server_socket_started, port)); in executeTestPublisher() 318 if (DBG) Log.d(TAG, "executeTestPublisher: server socket started on port=" + port); in executeTestPublisher() 386 nsBuilder.setPort(port).setTransportProtocol(6); // 6 == TCP in executeTestPublisher()
|
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 181 final int port = mContext.getContentResolver().call(PRIVATE_TARGET, "start", null, null) in testTrafficStatsStatsUidSelf() local 193 socket.connect(new InetSocketAddress("localhost", port)); in testTrafficStatsStatsUidSelf()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 87 String port = line.split(":")[1].trim(); in getValidCecClientPorts() local 88 comPorts.add(port); in getValidCecClientPorts() 103 String port = reader.readLine(); in initValidCecClient() local 104 launchCommand.add(port); in initValidCecClient()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | RemoteAudio.h | 47 bool init(int port);
|
/cts/suite/audio_quality/lib/src/audio/ |
D | RemoteAudio.cpp | 59 bool RemoteAudio::init(int port) in init() argument 61 mPort = port; in init()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsManagerTest.java | 667 short port = 19989; in sendDataMessageIfSupported() local 670 sendDataMessage(mDestAddr, port, data, mSentIntent, mDeliveredIntent); in sendDataMessageIfSupported() 843 …protected void sendDataMessage(String destAddr,short port, byte[] data, PendingIntent sentIntent, … in sendDataMessage() argument 844 getSmsManager().sendDataMessage(destAddr, null, port, data, sentIntent, deliveredIntent); in sendDataMessage()
|
D | VisualVoicemailServiceTest.java | 561 private VisualVoicemailSms getSmsFromData(VisualVoicemailSmsFilterSettings settings, short port, in getSmsFromData() argument 570 mTelephonyManager.sendVisualVoicemailSms(mPhoneNumber, port, text, null); in getSmsFromData()
|
/cts/suite/audio_quality/test/ |
D | RemoteAudioFakeTcpTest.cpp | 56 virtual bool init(const char* hostIp, int port, bool enableTimeout = false) { in init() argument
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyPairGeneratorTest.java | 1771 int port = serverSocket.getLocalPort(); in assertSSLConnectionWithClientAuth() local 1772 SSLSocket client = (SSLSocket) clientContext.getSocketFactory().createSocket(host, port); in assertSSLConnectionWithClientAuth()
|