/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecBaseTest.java | 204 protected static int getPort(FileDescriptor sock) throws Exception { in getPort() method in IpSecBaseTest 205 return ((InetSocketAddress) Os.getsockname(sock)).getPort(); in getPort() 213 int getPort() throws Exception; in getPort() method 268 public int getPort() throws Exception { in getPort() method in IpSecBaseTest.NativeSocket 269 return IpSecBaseTest.getPort(mFd); in getPort() 297 return new JavaTcpSocket(new AcceptedTcpFileDescriptorSocket(newFd, peer, getPort())); in acceptToJavaSocket() 348 public int getPort() throws Exception { in getPort() method in IpSecBaseTest.JavaUdpSocket 403 public int getPort() throws Exception { in getPort() method in IpSecBaseTest.JavaTcpSocket 438 this.port = remote.getPort(); in FileDescriptorSocketImpl() 588 Os.connect(leftSock.mFd, localAddr, rightSock.getPort()); in getNativeUdpSocketPair() [all …]
|
D | ProxyInfoTest.java | 70 assertEquals(TEST_PORT, proxy1.getPort()); in testBuildDirectProxy() 80 assertEquals(TEST_PORT, proxy2.getPort()); in testBuildDirectProxy() 90 assertEquals(LOCAL_PORT, proxy1.getPort()); in testBuildPacProxy() 98 assertEquals(TEST_PORT, proxy2.getPort()); in testBuildPacProxy() 131 assertEquals(0, proxy.getPort()); in checkEmpty()
|
D | UriTest.java | 108 assertEquals(42, uri.getPort()); in testStringUri() 113 assertEquals(42, uri.getPort()); in testStringUri() 121 assertEquals(-1, uri.getPort()); in testStringUri() 126 assertEquals(-1, uri.getPort()); in testStringUri() 131 assertEquals(-1, uri.getPort()); in testStringUri() 138 assertEquals(-1, uri.getPort()); in testStringUri() 147 assertEquals(-1, uri.getPort()); in testStringUri() 157 assertEquals(1234, uri.getPort()); in testStringUri() 370 assertEquals(-1, uri.getPort()); in testOpaqueUri()
|
D | IkeTunUtils.java | 147 return getPort(pkt, true); in getSrcPort() 151 return getPort(pkt, false); in getDstPort() 154 private static int getPort(byte[] pkt, boolean getSrcPort) { in getPort() method in IkeTunUtils
|
D | IpSecManagerTunnelTest.java | 389 int innerSocketPort = socket.getPort(); in getIpSecTunnelTestRunnable() 399 socket.sendTo(TEST_DATA, remoteInner, socket.getPort()); in getIpSecTunnelTestRunnable() 529 socket.getPort(), 530 encapSocket != null ? encapSocket.getPort() : 0, 540 socket.getPort(), 541 encapSocket != null ? encapSocket.getPort() : 0, 711 transformBuilder.setIpv4Encapsulation(encapSocket, encapSocket.getPort()); 1125 transformBuilder.setIpv4Encapsulation(encapSocket, encapSocket.getPort()); 1766 int innerSocketPort = socket.getPort(); 1815 int innerSocketPort = outSocket.getPort();
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | DnsSvcbPacketTest.java | 278 assertEquals(5353, record.getPort()); in testDnsSvcbRecord_svcParamPort() 346 assertEquals(5353, record.getPort()); in testDnsSvcbRecord() 526 assertEquals(5353, pkt.getPort("http/1.1")); in testDnsSvcbPacket() 527 assertEquals(5353, pkt.getPort("h2")); in testDnsSvcbPacket() 528 assertEquals(-1, pkt.getPort("doq")); in testDnsSvcbPacket() 529 assertEquals(-1, pkt.getPort("http")); in testDnsSvcbPacket() 530 assertEquals(-1, pkt.getPort("h3")); in testDnsSvcbPacket() 531 assertEquals(-1, pkt.getPort("")); in testDnsSvcbPacket() 566 assertEquals(-1, pkt.getPort("doq")); in testDnsSvcbPacket_noIpHint()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | StructInetDiagSockId.java | 147 byteBuffer.putShort((short) locSocketAddress.getPort()); in pack() 148 byteBuffer.putShort((short) remSocketAddress.getPort()); in pack() 165 + "idiag_sport{" + locSocketAddress.getPort() + "}, " in toString() 166 + "idiag_dport{" + remSocketAddress.getPort() + "}, " in toString()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | StructInetDiagSockIdTest.java | 185 assertEquals(SRC_PORT, sockId.locSocketAddress.getPort()); in testParseStructInetDiagSockIdWithIpv4() 187 assertEquals(DST_PORT, sockId.remSocketAddress.getPort()); in testParseStructInetDiagSockIdWithIpv4() 198 assertEquals(SRC_PORT, sockId.locSocketAddress.getPort()); in testParseStructInetDiagSockIdWithIpv6() 200 assertEquals(DST_PORT, sockId.remSocketAddress.getPort()); in testParseStructInetDiagSockIdWithIpv6()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeTunUtils.java | 139 int srcPort = getPort(request, false /* shouldGetSource */); in awaitReqAndInjectResp() 140 int dstPort = getPort(request, true /* shouldGetSource */); in awaitReqAndInjectResp() 319 getPort(outboundIkePkt, true /* shouldGetSource */), in getSrcDestPortPair() 320 getPort(outboundIkePkt, false /* shouldGetSource */)); in getSrcDestPortPair() 335 private static int getPort(byte[] pkt, boolean shouldGetSource) { in getPort() method
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/ |
D | AudioManagerHelper.java | 85 AudioGain audioGain = getAudioGain(deviceInfo.getPort()); in setAudioDeviceGain() 98 return AudioManager.setAudioPortGain(deviceInfo.getPort(), audioGainConfig) in setAudioDeviceGain() 160 return new AudioGainInfo(getAudioGain(deviceInfo.getPort())); in getAudioGainInfo() 177 AudioDevicePort sinkPort = Preconditions.checkNotNull(sinkDevice.getPort(), in createAudioPatch() 189 AudioGain audioGain = Objects.requireNonNull(getAudioGain(sourceDevice.getPort()), in createAudioPatch() 198 AudioPortConfig sourceConfig = sourceDevice.getPort().buildConfig(0, in createAudioPatch()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ServiceDiscoveryTest.java | 202 assertThat(resolvedService.getPort()).isEqualTo(12345); in advertisingProxy_multipleSrpClientsRegisterServices_servicesResolvableByMdns() 254 s -> s.getPort() == 11111 && s.getHostAddresses().size() == 2); in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns() 257 assertThat(resolvedService.getPort()).isEqualTo(11111); in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns() 385 assertThat(browsedService.getPort()).isEqualTo(12345); in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns() 389 assertThat(resolvedService.getPort()).isEqualTo(12345); in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns() 430 assertThat(browsedService.getPort()).isEqualTo(12345); in discoveryProxy_browseAndResolveServiceAtSrpServer() 441 assertThat(resolvedService.getPort()).isEqualTo(12345); in discoveryProxy_browseAndResolveServiceAtSrpServer()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothServerSocket.java | 152 mChannel = mSocket.getPort(); in BluetoothServerSocket() 275 if (mSocket.getPort() != newChannel) { in setChannel() 279 + mSocket.getPort() in setChannel()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | QosSocketFilter.java | 93 if (sa == null || (sa.getAddress().isAnyLocalAddress() && sa.getPort() == 0)) { in validate() 231 return startPort <= filterSocketAddress.getPort() in matchesAddress() 232 && endPort >= filterSocketAddress.getPort() in matchesAddress()
|
D | ConnectionInfo.java | 52 out.writeInt(local.getPort()); in writeToParcel() 54 out.writeInt(remote.getPort()); in writeToParcel()
|
D | QosSocketInfo.java | 227 dest.writeInt(mLocalSocketAddress.getPort()); in writeToParcelInternal() 233 dest.writeInt(mRemoteSocketAddress.getPort()); in writeToParcelInternal()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | HttpsServiceConnection.java | 126 public int getPort() { in getPort() method in HttpsServiceConnection 127 return mConnection.getURL().getPort(); in getPort()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | GetCapabilitiesTask.java | 58 InetSocketAddress a = new InetSocketAddress(uri.getHost(), uri.getPort()); in isDeviceOnline() 116 mUri.getPort(), mUri.getPath(), mUri.getScheme(), mTimeout, printerCaps); in doInBackground()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 236 tcpDetails.srcPort = getPort((InetSocketAddress) srcSockAddr); in switchToRepairMode() 250 tcpDetails.dstPort = getPort((InetSocketAddress) dstSockAddr); in switchToRepairMode() 391 private static int getPort(InetSocketAddress inetAddr) { in getPort() method in TcpKeepaliveController 392 return inetAddr.getPort(); in getPort()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | DnsSvcbPacket.java | 87 public int getPort(@NonNull String alpn) { in getPort() method in DnsSvcbPacket 89 return (record != null) ? record.getPort() : -1; in getPort()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AdbIpAddressPreferenceController.java | 95 protected int getPort() { in getPort() method in AdbIpAddressPreferenceController 123 int port = getPort(); in updateConnectivity()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | QosSocketInfoTest.java | 62 clientAddr.getAddress(), clientAddr.getPort()); in testConstructWithSock() 64 clientAddr6.getAddress(), clientAddr6.getPort()); in testConstructWithSock()
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/ |
D | MeasurementCtsDebuggableTest.java | 379 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + SOURCE_PATH; in executeRegisterSource() 409 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + TRIGGER_PATH; in executeRegisterTrigger() 438 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + SOURCE_PATH; in executeRegisterWebSource() 473 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + TRIGGER_PATH; in executeRegisterWebTrigger()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/ |
D | MeasurementRegisterCalls.java | 358 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + SOURCE_PATH; in executeRegisterSource() 383 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + TRIGGER_PATH; in executeRegisterTrigger() 407 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + SOURCE_PATH; in executeRegisterWebSource() 437 final String path = SERVER_BASE_URI + ":" + mockWebServer.getPort() + TRIGGER_PATH; in executeRegisterWebTrigger()
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | ManualDiscovery.java | 99 int givenPort = printerUri.getPort(); in addManualPrinter() 112 String authority = hostname + ":" + (givenPort == -1 ? uri.getPort() : givenPort); in addManualPrinter()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | HttpsServiceConnectionTest.java | 197 assertEquals(mUrl.getPort(), mHttpsServiceConnection.getPort()); in verifyGetPort()
|