Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java85 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testBasicWorkingSntpClientQuery()
98 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure()
108 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync()
121 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptOnlyServerAndBroadcastModes()
147 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptableStrataOnly()
164 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testZeroTransmitTime()
245 public int getPort() { return mPort; } in getPort() method in SntpClientTest.SntpTestServer
DUriTest.java175 assertEquals(42, uri.getPort()); in testAuthorityParsing()
180 assertEquals(42, uri.getPort()); in testAuthorityParsing()
192 assertEquals(-1, uri.getPort()); in testAuthorityParsing()
197 assertEquals(-1, uri.getPort()); in testAuthorityParsing()
202 assertEquals(-1, uri.getPort()); in testAuthorityParsing()
404 assertEquals(-1, uri.getPort()); in testOpaqueUri()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebAsset.java47 int port = url.getPort() != -1 ? url.getPort() : url.getDefaultPort(); in WebAsset()
68 public int getPort() { in getPort() method in WebAsset
69 return mUrl.getPort(); in getPort()
/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java73 .register(new Scheme("https", sslSocketFactory, server.getPort())); in testConnectToHttps()
76 new HttpGet("https://localhost:" + server.getPort() + "/foo")); in testConnectToHttps()
243 System.setProperty("proxyPort", Integer.toString(server.getPort())); in PROXY_SYSTEM_PROPERTY()
249 System.setProperty("http.proxyPort", Integer.toString(server.getPort())); in HTTP_PROXY_SYSTEM_PROPERTY()
255 System.setProperty("https.proxyPort", Integer.toString(server.getPort())); in HTTPS_PROXY_SYSTEM_PROPERTY()
261 new HttpHost("localhost", server.getPort())); in CLIENT_PARAMETER()
267 new HttpHost("localhost", server.getPort())); in REQUEST_PARAMETER()
/frameworks/base/core/java/android/bluetooth/
DBluetoothServerSocket.java143 mChannel = mSocket.getPort(); in BluetoothServerSocket()
234 if (mSocket.getPort() != newChannel) { in setChannel()
236 + mSocket.getPort() + " requested newChannel: " + newChannel); in setChannel()
/frameworks/base/core/java/android/net/
DConnectionInfo.java52 out.writeInt(local.getPort()); in writeToParcel()
54 out.writeInt(remote.getPort()); in writeToParcel()
DProxy.java155 public static final int getPort(Context ctx) { in getPort() method in Proxy
159 return ((InetSocketAddress)(proxy.address())).getPort(); in getPort()
252 port = Integer.toString(p.getPort()); in setHttpProxySystemProperty()
DProxyInfo.java166 mPort = source.getPort(); in ProxyInfo()
210 public int getPort() { in getPort() method in ProxyInfo
/frameworks/base/services/core/java/com/android/server/connectivity/
DTcpKeepaliveController.java145 tcpDetails.srcPort = getPort((InetSocketAddress) srcSockAddr); in switchToRepairMode()
159 tcpDetails.dstPort = getPort((InetSocketAddress) dstSockAddr); in switchToRepairMode()
298 private static int getPort(InetSocketAddress inetAddr) { in getPort() method in TcpKeepaliveController
299 return inetAddr.getPort(); in getPort()
/frameworks/base/core/java/android/view/
DDisplayAddress.java74 public byte getPort() { in getPort() method in DisplayAddress.Physical
98 .append("port=").append(getPort() & PORT_MASK); in toString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java126 public int getPort() { in getPort() method in HttpsServiceConnection
127 return mConnection.getURL().getPort(); in getPort()
/frameworks/base/media/java/android/media/
DAudioDeviceInfo.java265 return Objects.equals(getPort(), that.getPort()); in equals()
270 return Objects.hash(getPort()); in hashCode()
283 public AudioDevicePort getPort() { in getPort() method in AudioDeviceInfo
DHwAudioSource.java135 mAudioDeviceInfo.getPort().activeConfig(), in start()
/frameworks/base/core/java/android/webkit/
DClientCertRequest.java67 public abstract int getPort(); in getPort() method in ClientCertRequest
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnectionTest.java195 assertEquals(mUrl.getPort(), mHttpsServiceConnection.getPort()); in verifyGetPort()
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java106 port = url.getPort(); in run()
130 inetSocketAddress.getPort()); in run()
402 public int getPort() { in getPort() method in ProxyServer
/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java170 assertTrue(original.getPort() == result.getPort()); in checkParcelable()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiHotplugEvent.java51 public int getPort() { in getPort() method in HdmiHotplugEvent
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/
DServerMain.java59 public int getPort() { in getPort() method in ServerMain
211 System.out.println(RUNNING_SERVER_STR + server.getPort());
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DNetworkEventTest.java156 assertEquals(event.getPort(), unparceledEvent.getPort()); in testConnectEventParceling()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DProtocolPortTuple.java76 public int getPort() { in getPort() method in ProtocolPortTuple
/frameworks/base/core/java/android/app/admin/
DConnectEvent.java65 public int getPort() { in getPort() method in ConnectEvent
/frameworks/base/tests/net/java/android/net/
DIpSecManagerTest.java193 assertEquals(TEST_UDP_ENCAP_PORT, encapSocket.getPort()); in testOpenEncapsulationSocket()
243 assertEquals(TEST_UDP_ENCAP_PORT, encapSocket.getPort()); in testOpenEncapsulationSocketOnRandomPort()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipProfile.java111 mProfile.mPort = profile.getPort(); in Builder()
433 public int getPort() { in getPort() method in SipProfile
/frameworks/base/services/core/java/com/android/server/firewall/
DPortFilter.java49 port = uri.getPort(); in matches()

123