Home
last modified time | relevance | path

Searched refs:getPort (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java90 protected static int getPort(FileDescriptor sock) throws Exception { in getPort() method in IpSecBaseTest
91 return ((InetSocketAddress) Os.getsockname(sock)).getPort(); in getPort()
99 int getPort() throws Exception; in getPort() method
154 public int getPort() throws Exception { in getPort() method in IpSecBaseTest.NativeSocket
155 return IpSecBaseTest.getPort(mFd); in getPort()
217 public int getPort() throws Exception { in getPort() method in IpSecBaseTest.JavaUdpSocket
272 public int getPort() throws Exception { in getPort() method in IpSecBaseTest.JavaTcpSocket
326 Os.connect(leftSock.mFd, localAddr, rightSock.getPort()); in getNativeUdpSocketPair()
327 Os.connect(rightSock.mFd, localAddr, leftSock.getPort()); in getNativeUdpSocketPair()
348 Os.connect(client.mFd, localAddr, server.getPort()); in getNativeTcpSocketPair()
[all …]
DUriTest.java98 assertEquals(42, uri.getPort()); in testStringUri()
103 assertEquals(42, uri.getPort()); in testStringUri()
111 assertEquals(-1, uri.getPort()); in testStringUri()
116 assertEquals(-1, uri.getPort()); in testStringUri()
121 assertEquals(-1, uri.getPort()); in testStringUri()
288 assertEquals(-1, uri.getPort()); in testOpaqueUri()
DIpSecManagerTest.java164 sockLeft.sendTo(TEST_DATA, local, sockRight.getPort()); in checkUnconnectedUdp()
168 sockRight.sendTo(TEST_DATA, local, sockLeft.getPort()); in checkUnconnectedUdp()
491 transformBuilder.setIpv4Encapsulation(encapSocket, encapSocket.getPort()); in checkTransform()
596 remoteSocket.sendTo(dataWithEspHeader, localAddr, wrappedEncapSocket.getPort()); in checkIkePacket()
601 wrappedEncapSocket.sendTo(dataWithEspHeader, localAddr, remoteSocket.getPort()); in checkIkePacket()
641 .setIpv4Encapsulation(encapSocket, encapSocket.getPort()) in testIkeOverUdpEncapSocket()
1132 assertTrue("Returned invalid port", encapSocket.getPort() == port); in testOpenUdpEncapSocketSpecificPort()
1137 assertTrue("Returned invalid port", encapSocket.getPort() != 0); in testOpenUdpEncapSocketRandomPort()
/cts/tests/tests/content/src/android/content/cts/
DIntentFilter_AuthorityEntryTest.java41 assertEquals(mPort, mAuthorityEntry.getPort()); in testConstructor()
46 assertEquals(Integer.valueOf(mPort).intValue(), mAuthorityEntry.getPort()); in testConstructor()
50 assertEquals(Integer.valueOf(mPort).intValue(), mAuthorityEntry.getPort()); in testAuthorityEntryProperties()
DIntentFilterTest.java442 assertEquals(PORT + i, actual.getPort()); in testAuthorities()
445 assertEquals(ae.getPort(), mIntentFilter.getDataAuthority(i).getPort()); in testAuthorities()
601 assertEquals(PORT, intentFilter.getDataAuthority(0).getPort()); in testWriteToXml()
661 assertEquals(80, mIntentFilter.getDataAuthority(0).getPort()); in testReadFromXml()
879 assertEquals(mIntentFilter.getDataAuthority(0).getPort(), in testWriteToParcel()
880 target.getDataAuthority(0).getPort()); in testWriteToParcel()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/
DVpnTestHelper.java153 int port = new InetSocketAddress(0).getPort(); in checkPing()
176 port = local.getPort(); in checkPing()
196 int port = new InetSocketAddress(0).getPort(); in tryPosixConnect()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNetworkLoggingTest.java247 assertTrue(connectEvent.getPort() >= 0 && connectEvent.getPort() <= 65535); in verifyNetworkLogs()
/cts/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java141 int id = ((InetSocketAddress) Os.getsockname(s)).getPort(); in checkResponse()
/cts/tests/tests/net/src/android/net/wifi/cts/
DNsdManagerTest.java449 String.valueOf(lastEvent.mInfo.getPort())); in testNDSManager()
451 assertTrue(lastEvent.mInfo.getPort() == localPort); in testNDSManager()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java376 socket.getInetAddress().getHostName(), socket.getPort(), in chooseClientAlias()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java325 port = local.getPort(); in checkPing()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...