/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 | 55 int port = 443; in testCreateSocket() local 60 mFactory.createSocket(inetAddress, port); in testCreateSocket() 69 mFactory.createSocket(inetAddress1, port, inetAddress2, port); in testCreateSocket() 77 mFactory.createSocket(socket, host, port, true); in testCreateSocket() 83 socket = mFactory.createSocket(host, port); in testCreateSocket()
|
D | IpSecBaseTest.java | 112 void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception; in sendTo() argument 187 public void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception { in sendTo() argument 188 Os.sendto(mFd, data, 0, data.length, 0, dstAddr, port); in sendTo() 212 public void sendTo(byte[] data, InetAddress dstAddr, int port) throws Exception { in sendTo() argument 213 mSocket.send(new DatagramPacket(data, data.length, dstAddr, port)); in sendTo()
|
D | IpSecManagerTest.java | 118 int port = s.getLocalPort(); in findUnusedPort() local 120 return port; in findUnusedPort() 129 int port = findUnusedPort(); in getBoundUdpSocket() local 130 Os.bind(sock, address, port); in getBoundUdpSocket() 1109 int port = -1; in testOpenUdpEncapSocketSpecificPort() local 1112 port = findUnusedPort(); in testOpenUdpEncapSocketSpecificPort() 1113 encapSocket = mISM.openUdpEncapsulationSocket(port); in testOpenUdpEncapSocketSpecificPort() 1132 assertTrue("Returned invalid port", encapSocket.getPort() == port); in testOpenUdpEncapSocketSpecificPort()
|
D | ConnectivityManagerTest.java | 701 private Socket getBoundSocket(Network network, String host, int port) throws IOException { in getBoundSocket() argument 702 InetSocketAddress addr = new InetSocketAddress(host, port); in getBoundSocket()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ListeningPortsTest.java | 212 String addrPort = entry.localAddress.getHostAddress() + ':' + entry.port; in assertNoAccessibleListeningPorts() 219 if (isTcp && !isTcpConnectable(entry.localAddress, entry.port)) { in assertNoAccessibleListeningPorts() 225 + entry.port + ", UID=" + entry.uid in assertNoAccessibleListeningPorts() 244 private boolean isTcpConnectable(InetAddress address, int port) { in isTcpConnectable() argument 249 Log.d(TAG, "Trying to connect " + address + ":" + port); in isTcpConnectable() 251 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable() 266 Log.d(TAG, address + ":" + port + " is connectable."); in isTcpConnectable() 299 private final int port; field in ListeningPortsTest.ParsedProcEntry 303 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 305 this.port = port; in ParsedProcEntry()
|
D | SSLConscryptPlainTextExposureTest.java | 101 public int port = 9000; field in TestSSLConnection 180 clientEngine = sslc.createSSLEngine(remoteAddress, port); in StartConnect() 201 socketChannel.connect(new InetSocketAddress(remoteAddress, port)); in StartConnect() 495 public int port = 9000; field in SSLServer 604 serverSocketChannel.socket().bind(new InetSocketAddress(hostAddress, port)); in runServer()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
D | VpnTestHelper.java | 153 int port = new InetSocketAddress(0).getPort(); in checkPing() local 154 Os.connect(socket, InetAddress.getByName(host), port); in checkPing() 176 port = local.getPort(); in checkPing() 177 echo[4] = (byte) ((port >> 8) & 0xFF); in checkPing() 178 echo[5] = (byte) (port & 0xFF); in checkPing() 196 int port = new InetSocketAddress(0).getPort(); in tryPosixConnect() local 197 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/telephony/src/android/telephony/gsm/cts/ |
D | SmsManagerTest.java | 48 …protected void sendDataMessage(String destAddr,short port, byte[] data, PendingIntent sentIntent, … in sendDataMessage() argument 49 getSmsManager().sendDataMessage(destAddr, null, port, data, sentIntent, deliveredIntent); in sendDataMessage()
|
/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/suite/audio_quality/lib/include/ |
D | ClientSocket.h | 25 virtual bool init(const char* hostIp, int port, bool enableTimeout = false);
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 308 int port = random.nextInt(65534) + 1; in checkPing() local 309 Os.connect(s, address, port); in checkPing() 325 port = local.getPort(); in checkPing() 326 packet[4] = (byte) ((port >> 8) & 0xff); in checkPing() 327 packet[5] = (byte) (port & 0xff); in checkPing() 480 private FileDescriptor openSocketFd(String host, int port, int timeoutMs) throws Exception { in openSocketFd() argument 481 Socket s = new Socket(host, port); in openSocketFd() 491 String host, int port, int timeoutMs) throws Exception { in openSocketFdInOtherApp() argument 494 FileDescriptor fd = mRemoteSocketFactoryClient.openSocketFd(host, port, TIMEOUT_MS); in openSocketFdInOtherApp()
|
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()
|
/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/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 | 144 final int port = getContext().getContentResolver().call(PRIVATE_TARGET, "start", null, null) in testTrafficStatsStatsUidSelf() local 156 socket.connect(new InetSocketAddress("localhost", port)); in testTrafficStatsStatsUidSelf()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | PostMessageTest.java | 160 public void onMessage(WebMessagePort port, WebMessage message) { in testMessageChannel() 229 public void onMessage(WebMessagePort port, WebMessage message) { in testReceiveMessagePort()
|
/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 132 port = None 145 port = local_p 151 if port is None: 166 port = p 169 if port is None: 178 self.sock.connect((self.IPADDR, port))
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | SmsManagerTest.java | 367 short port = 19989; in sendDataMessageIfSupported() local 370 sendDataMessage(mDestAddr, port, data, mSentIntent, mDeliveredIntent); in sendDataMessageIfSupported() 393 …protected void sendDataMessage(String destAddr,short port, byte[] data, PendingIntent sentIntent, … in sendDataMessage() argument 394 getSmsManager().sendDataMessage(destAddr, null, port, data, sentIntent, deliveredIntent); in sendDataMessage()
|
D | VisualVoicemailServiceTest.java | 528 private VisualVoicemailSms getSmsFromData(VisualVoicemailSmsFilterSettings settings, short port, in getSmsFromData() argument 537 mTelephonyManager.sendVisualVoicemailSms(mPhoneNumber, port, text, null); in getSmsFromData()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NetworkLoggingTest.java | 293 private int makeDummyRequests(int port) { in makeDummyRequests() argument 295 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/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
|