Home
last modified time | relevance | path

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

123

/frameworks/libs/net/common/device/com/android/net/module/util/netlink/
DStructInetDiagSockId.java64 byteBuffer.putShort((short) mLocSocketAddress.getPort()); in pack()
65 byteBuffer.putShort((short) mRemSocketAddress.getPort()); in pack()
82 + "idiag_sport{" + mLocSocketAddress.getPort() + "}, " in toString()
83 + "idiag_dport{" + mRemSocketAddress.getPort() + "}, " in toString()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebAsset.java49 int port = url.getPort() != -1 ? url.getPort() : url.getDefaultPort(); in WebAsset()
70 public int getPort() { in getPort() method in WebAsset
71 return mUrl.getPort(); in getPort()
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java165 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra0RServer()
178 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra1Server()
192 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era1ClientEra0Server()
205 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era1ClientEra1Server()
307 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure()
319 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync()
334 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptOnlyServerAndBroadcastModes()
362 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptableStrataOnly()
381 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testZeroTransmitTime()
394 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testNonMatchingOriginateTime()
[all …]
DUriTest.java193 assertEquals(42, uri.getPort()); in testAuthorityParsing()
198 assertEquals(42, uri.getPort()); in testAuthorityParsing()
210 assertEquals(-1, uri.getPort()); in testAuthorityParsing()
215 assertEquals(-1, uri.getPort()); in testAuthorityParsing()
220 assertEquals(-1, uri.getPort()); in testAuthorityParsing()
422 assertEquals(-1, uri.getPort()); in testOpaqueUri()
/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()
DCookiesTest.java99 ConnRoutePNames.DEFAULT_PROXY, new HttpHost("localhost", server.getPort())); in testCookiesWithNonMatchingCase()
/frameworks/base/core/java/android/net/
DProxy.java128 public static final int getPort(Context ctx) { in getPort() method in Proxy
132 return ((InetSocketAddress)(proxy.address())).getPort(); in getPort()
210 port = Integer.toString(p.getPort()); in setHttpProxyConfiguration()
DWebAddress.java182 public int getPort() { in getPort() method in WebAddress
DPacProxySelector.java76 uri = new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), "/", null, null); in select()
/frameworks/native/libs/ui/tests/
DDisplayId_test.cpp28 EXPECT_EQ(port, id.getPort()); in TEST()
43 EXPECT_EQ(port, id.getPort()); in TEST()
/frameworks/base/core/java/android/view/
DDisplayAddress.java97 public int getPort() { in getPort() method in DisplayAddress.Physical
121 .append("port=").append(getPort()); in toString()
/frameworks/base/core/java/android/webkit/
DClientCertRequest.java67 public abstract int getPort(); in getPort() method in ClientCertRequest
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java105 port = url.getPort(); in run()
129 inetSocketAddress.getPort()); in run()
401 public int getPort() { in getPort() method in ProxyServer
/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/media/java/android/media/
DAudioDeviceInfo.java382 return Objects.equals(getPort(), that.getPort()); in equals()
387 return Objects.hash(getPort()); in hashCode()
400 public AudioDevicePort getPort() { in getPort() method in AudioDeviceInfo
DHwAudioSource.java144 mAudioDeviceInfo.getPort().activeConfig(), in start()
/frameworks/base/core/java/android/app/admin/
DConnectEvent.java65 public int getPort() { in getPort() method in ConnectEvent
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DQosCallbackTrackerTest.java77 return startPort <= mLocalAddress.getPort() in matchesLocalAddress()
78 && endPort >= mLocalAddress.getPort() in matchesLocalAddress()
85 && startPort <= mRemoteAddress.getPort() in matchesRemoteAddress()
86 && endPort >= mRemoteAddress.getPort() in matchesRemoteAddress()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DNetworkEventTest.java166 assertThat(unparceledEvent.getPort()).isEqualTo(event.getPort()); in testConnectEventParceling()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java214 final int port = connectionInfo.getPort(); in forceRefresh()
332 public int getPort() { in getPort() method in NtpTrustedTime.NtpConnectionInfo
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipProfile.java113 mProfile.mPort = profile.getPort(); in Builder()
435 public int getPort() { in getPort() method in SipProfile
/frameworks/base/services/core/java/com/android/server/firewall/
DPortFilter.java49 port = uri.getPort(); in matches()
/frameworks/base/telephony/java/android/telephony/data/
DEpsBearerQosSessionAttributes.java210 dest.writeInt(address.getPort()); in writeToParcel()
/frameworks/layoutlib/remote/tests/src/
DRemoteBridgeTest.java68 mClient = RemoteBridgeClient.getRemoteBridge(mServerMain.getPort()); in setupServer()

123