/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/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 106 String addrPort = entry.localAddress.getHostAddress() + ':' + entry.port; in testNoAccessibleListeningPorts() 113 if (isTcp && !isTcpConnectable(entry.localAddress, entry.port)) { in testNoAccessibleListeningPorts() 124 + entry.port + ", UID=" + entry.uid in testNoAccessibleListeningPorts() 142 private boolean isTcpConnectable(InetAddress address, int port) { in isTcpConnectable() argument 147 Log.d(TAG, "Trying to connect " + address + ":" + port); in isTcpConnectable() 149 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable() 164 Log.d(TAG, address + ":" + port + " is connectable."); in isTcpConnectable() 197 private final int port; field in ListeningPortsTest.ParsedProcEntry 201 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 203 this.port = port; in ParsedProcEntry()
|
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/ |
D | JdwpTunnelTest.java | 89 private VirtualMachine getDebuggerConnection(String port) throws Exception { in getDebuggerConnection() argument 98 params.get("port").setValue(port); in getDebuggerConnection() 114 final String port = "15002"; in forwardJdwp() local 115 result = mDevice.executeAdbCommand("forward", "tcp:" + port, "jdwp:" + pid); in forwardJdwp() 117 return port; in forwardJdwp() 135 String port = forwardJdwp(pid); in startupTest() local 136 assertTrue(!"".equals(port)); in startupTest() 137 return getDebuggerConnection(port); in startupTest()
|
/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.
|
/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/tests/tests/net/src/android/net/cts/ |
D | IpSecManagerTunnelTest.java | 657 int spi, InetAddress src, InetAddress dst, int port, Payload payload) throws Exception { 674 int port, 705 int port, 708 UdpHeader udp = new UdpHeader(port, port, new BytePayload(TEST_DATA)); 712 spi, srcInner, dstInner, srcOuter, dstOuter, port, encapPort, udp); 723 int port, 726 UdpHeader udp = new UdpHeader(port, port, new BytePayload(TEST_DATA)); 728 EspHeader espPayload = buildTransportModeEspPacket(spiInner, srcInner, dstInner, port, udp); 736 port,
|
D | IpSecBaseTest.java | 128 void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception; in sendTo() argument 203 public void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception { in sendTo() argument 204 Os.sendto(mFd, data, 0, data.length, 0, dstAddr, port); in sendTo() 211 public JavaUdpSocket(InetAddress localAddr, int port) { in JavaUdpSocket() argument 213 mSocket = new DatagramSocket(port, localAddr); in JavaUdpSocket() 239 public void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception { in sendTo() argument 240 mSocket.send(new DatagramPacket(data, data.length, dstAddr, port)); in sendTo()
|
D | IpSecManagerTest.java | 112 int port = s.getLocalPort(); in findUnusedPort() local 114 return port; in findUnusedPort() 123 int port = findUnusedPort(); in getBoundUdpSocket() local 124 Os.bind(sock, address, port); in getBoundUdpSocket() 1157 int port = -1; in testOpenUdpEncapSocketSpecificPort() local 1160 port = findUnusedPort(); in testOpenUdpEncapSocketSpecificPort() 1161 encapSocket = mISM.openUdpEncapsulationSocket(port); in testOpenUdpEncapSocketSpecificPort() 1180 assertTrue("Returned invalid port", encapSocket.getPort() == port); in testOpenUdpEncapSocketSpecificPort()
|
/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/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | RemoteSocketFactoryService.java | 38 public ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs) { 40 Socket s = new Socket(host, port);
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | RemoteSocketFactoryClient.java | 83 public FileDescriptor openSocketFd(String host, int port, int timeoutMs) in openSocketFd() argument 87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); in openSocketFd()
|
D | VpnTest.java | 337 int port = random.nextInt(65534) + 1; in checkPing() local 338 Os.connect(s, address, port); in checkPing() 354 port = local.getPort(); in checkPing() 355 packet[4] = (byte) ((port >> 8) & 0xff); in checkPing() 356 packet[5] = (byte) (port & 0xff); in checkPing() 529 private FileDescriptor openSocketFd(String host, int port, int timeoutMs) throws Exception { in openSocketFd() argument 530 Socket s = new Socket(host, port); in openSocketFd() 540 String host, int port, int timeoutMs) throws Exception { in openSocketFdInOtherApp() argument 543 FileDescriptor fd = mRemoteSocketFactoryClient.openSocketFd(host, port, TIMEOUT_MS); in openSocketFdInOtherApp()
|
/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 | 293 int port = 0; in executeTestPublisher() local 304 port = server.getLocalPort(); in executeTestPublisher() 306 mContext.getString(R.string.aware_status_socket_server_socket_started, port)); in executeTestPublisher() 307 if (DBG) Log.d(TAG, "executeTestPublisher: server socket started on port=" + port); in executeTestPublisher() 362 nsBuilder.setPskPassphrase(PASSPHRASE).setPort(port).setTransportProtocol( in executeTestPublisher()
|
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
D | PingTest.java | 101 int port = (int) (Math.random() * 2048); in sendPing() local 104 int ret = Os.sendto(s, ByteBuffer.wrap(packet), 0, address, port); in sendPing()
|
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/ |
D | IRemoteSocketFactory.aidl | 22 ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs); in openSocketFd() argument
|
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 162 …final int port = InstrumentationRegistry.getContext().getContentResolver().call(PRIVATE_TARGET, "s… in testTrafficStatsStatsUidSelf() local 174 socket.connect(new InetSocketAddress("localhost", port)); in testTrafficStatsStatsUidSelf()
|
/cts/suite/audio_quality/lib/include/ |
D | ClientSocket.h | 25 virtual bool init(const char* hostIp, int port, bool enableTimeout = false);
|
/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 137 port = None 150 port = local_p 156 if port is None: 171 port = p 174 if port is None: 183 self.sock.connect((self.IPADDR, port))
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsManagerTest.java | 634 short port = 19989; in sendDataMessageIfSupported() local 637 sendDataMessage(mDestAddr, port, data, mSentIntent, mDeliveredIntent); in sendDataMessageIfSupported() 717 …protected void sendDataMessage(String destAddr,short port, byte[] data, PendingIntent sentIntent, … in sendDataMessage() argument 718 getSmsManager().sendDataMessage(destAddr, null, port, data, sentIntent, deliveredIntent); in sendDataMessage()
|
D | VisualVoicemailServiceTest.java | 557 private VisualVoicemailSms getSmsFromData(VisualVoicemailSmsFilterSettings settings, short port, in getSmsFromData() argument 566 mTelephonyManager.sendVisualVoicemailSms(mPhoneNumber, port, text, null); in getSmsFromData()
|
/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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NetworkLoggingTest.java | 355 private int makeDummyRequests(int port) { in makeDummyRequests() argument 357 final String DUMMY_SERVER = "127.0.0.1:" + port; in makeDummyRequests()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | RemoteAudio.h | 47 bool init(int port);
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 390 private Socket getBoundSocket(Network network, String host, int port) throws IOException { in getBoundSocket() argument 391 InetSocketAddress addr = new InetSocketAddress(host, port); in getBoundSocket()
|