/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/tests/tests/net/src/android/net/cts/ |
D | SSLCertificateSocketFactoryTest.java | 56 int port = 443; in testCreateSocket() local 61 mFactory.createSocket(inetAddress, port); in testCreateSocket() 70 mFactory.createSocket(inetAddress1, port, inetAddress2, port); in testCreateSocket() 78 mFactory.createSocket(socket, host, port, true); in testCreateSocket() 84 socket = mFactory.createSocket(host, port); in testCreateSocket()
|
D | IpSecManagerTunnelTest.java | 735 int spi, InetAddress src, InetAddress dst, int port, Payload payload) throws Exception { 752 int port, 783 int port, 786 UdpHeader udp = new UdpHeader(port, port, new BytePayload(TEST_DATA)); 790 spi, srcInner, dstInner, srcOuter, dstOuter, port, encapPort, udp); 801 int port, 804 UdpHeader udp = new UdpHeader(port, port, new BytePayload(TEST_DATA)); 806 EspHeader espPayload = buildTransportModeEspPacket(spiInner, srcInner, dstInner, port, udp); 814 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/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 | 82 private VirtualMachine getDebuggerConnection(String port) throws Exception { in getDebuggerConnection() argument 91 params.get("port").setValue(port); in getDebuggerConnection() 107 final String port = "15002"; in forwardJdwp() local 108 result = mDevice.executeAdbCommand("forward", "tcp:" + port, "jdwp:" + pid); in forwardJdwp() 110 return port; in forwardJdwp() 128 String port = forwardJdwp(pid); in startupTest() local 129 assertTrue(!"".equals(port)); in startupTest() 130 return getDebuggerConnection(port); in startupTest()
|
/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/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/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/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 | 320 int port = random.nextInt(65534) + 1; in checkPing() local 321 Os.connect(s, address, port); in checkPing() 337 port = local.getPort(); in checkPing() 338 packet[4] = (byte) ((port >> 8) & 0xff); in checkPing() 339 packet[5] = (byte) (port & 0xff); in checkPing() 512 private FileDescriptor openSocketFd(String host, int port, int timeoutMs) throws Exception { in openSocketFd() argument 513 Socket s = new Socket(host, port); in openSocketFd() 523 String host, int port, int timeoutMs) throws Exception { in openSocketFdInOtherApp() argument 526 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/hostsidetests/net/aidl/com/android/cts/net/hostside/ |
D | IRemoteSocketFactory.aidl | 22 ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs); in openSocketFd() argument
|
/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/suite/audio_quality/lib/include/ |
D | ClientSocket.h | 25 virtual bool init(const char* hostIp, int port, bool enableTimeout = false);
|
/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/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/apps/CameraITS/pymodules/its/ |
D | device.py | 135 port = None 148 port = local_p 154 if port is None: 169 port = p 172 if port is None: 181 self.sock.connect((self.IPADDR, port))
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 233 private Socket getBoundSocket(Network network, String host, int port) throws IOException { in getBoundSocket() argument 234 InetSocketAddress addr = new InetSocketAddress(host, port); in getBoundSocket()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | RemoteAudio.h | 47 bool init(int port);
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsManagerTest.java | 644 short port = 19989; in sendDataMessageIfSupported() local 647 sendDataMessage(mDestAddr, port, data, mSentIntent, mDeliveredIntent); in sendDataMessageIfSupported() 671 …protected void sendDataMessage(String destAddr,short port, byte[] data, PendingIntent sentIntent, … in sendDataMessage() argument 672 getSmsManager().sendDataMessage(destAddr, null, port, data, sentIntent, deliveredIntent); in sendDataMessage()
|
/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/src/audio/ |
D | RemoteAudio.cpp | 59 bool RemoteAudio::init(int port) in init() argument 61 mPort = port; in init()
|
/cts/suite/audio_quality/test/ |
D | RemoteAudioFakeTcpTest.cpp | 56 virtual bool init(const char* hostIp, int port, bool enableTimeout = false) { in init() argument
|