Home
last modified time | relevance | path

Searched refs:dstPort (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DTcpKeepalivePacketDataTest.java44 final int dstPort = 4321; in testV4TcpKeepalivePacket() local
56 testInfo.dstPort = dstPort; in testV4TcpKeepalivePacket()
72 assertEquals(testInfo.dstPort, resultData.getDstPort()); in testV4TcpKeepalivePacket()
103 assertEquals(buf.getShort(), dstPort); in testV4TcpKeepalivePacket() local
118 final int dstPort = 4321; in testParcel() local
129 testInfo.dstPort = dstPort; in testParcel()
143 assertEquals(resultData.dstPort, dstPort); in testParcel()
/frameworks/base/core/java/android/net/
DNattKeepalivePacketData.java45 @NonNull InetAddress dstAddress, int dstPort, @NonNull byte[] data) throws in NattKeepalivePacketData() argument
47 super(srcAddress, srcPort, dstAddress, dstPort, data); in NattKeepalivePacketData()
55 InetAddress srcAddress, int srcPort, InetAddress dstAddress, int dstPort) in nattKeepalivePacket() argument
62 if (dstPort != NattSocketKeepalive.NATT_PORT) { in nattKeepalivePacket()
79 buf.putShort((short) dstPort); in nattKeepalivePacket()
87 return new NattKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, buf.array()); in nattKeepalivePacket()
112 final int dstPort = in.readInt();
115 dstAddress, dstPort);
DKeepalivePacketData.java66 @IntRange(from = 0, to = 65535) int dstPort, in KeepalivePacketData()
71 this.mDstPort = dstPort; in KeepalivePacketData()
82 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioRoute.cpp40 const sp<PolicyAudioPort> &dstPort) const in supportsPatch()
42 if (mSink == 0 || dstPort == 0 || dstPort != mSink) { in supportsPatch()
DHwModule.cpp231 const sp<PolicyAudioPort> &dstPort) const { in supportsPatch()
233 if (route->supportsPatch(srcPort, dstPort)) { in supportsPatch()
/frameworks/base/core/java/android/net/metrics/
DWakeupEvent.java37 public int dstPort; field in WakeupEvent
55 if (dstPort > -1) { in toString()
56 j.add("dstPort=" + dstPort); in toString()
/frameworks/base/services/net/java/android/net/
DTcpKeepalivePacketData.java67 InetAddress.getByAddress(tcpDetails.dstAddress), tcpDetails.dstPort, data); in TcpKeepalivePacketData()
78 final InetAddress dstAddress, int dstPort, final byte[] data, int tcpSeq, in TcpKeepalivePacketData() argument
81 super(srcAddress, srcPort, dstAddress, dstPort, data); in TcpKeepalivePacketData()
132 buf.putShort((short) tcpDetails.dstPort); in buildV4Packet()
204 int dstPort = in.readInt(); in readFromParcel() local
212 return new TcpKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, packet, tcpSeq, in readFromParcel()
244 parcel.dstPort = getDstPort(); in toStableParcelable()
/frameworks/base/tests/net/common/java/android/net/
DKeepalivePacketDataTest.kt56 dstPort: Int = TEST_DST_PORT, in address()
58 ) : KeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, data) in address()
94 data = TestKeepalivePacketData(dstPort = INVALID_PORT) in address()
115 fun testDstPort() = assertEquals(TEST_DST_PORT, TestKeepalivePacketData().dstPort)
DNattKeepalivePacketDataTest.kt60 dstPort: Int = NATT_PORT in address()
61 ) = NattKeepalivePacketData.nattKeepalivePacket(srcAddress, srcPort, dstAddress, dstPort) in address()
66 nattKeepalivePacket(dstPort = TEST_PORT) in address()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DFrameParser.java180 int dstPort = getUnsignedShort(data); in parseTcpPacket() local
182 if (dstPort == HTTPS_PORT) { in parseTcpPacket()
184 } else if (HTTP_PORTS.contains(dstPort)) { in parseTcpPacket()
197 int dstPort = getUnsignedShort(data); in parseUdpPacket() local
201 if ((srcPort == UDP_PORT_BOOTPC && dstPort == UDP_PORT_BOOTPS) in parseUdpPacket()
202 || (srcPort == UDP_PORT_BOOTPS && dstPort == UDP_PORT_BOOTPC)) { in parseUdpPacket()
206 if (srcPort == UDP_PORT_NTP || dstPort == UDP_PORT_NTP) { in parseUdpPacket()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java253 String dstAddr, int dstPort) { in start()
255 updateNatTimeout(proto, srcAddr, srcPort, dstAddr, dstPort); in start()
714 int proto, String srcAddr, int srcPort, String dstAddr, int dstPort) { in updateNatTimeout() argument
738 if (!isValidUdpOrTcpPort(dstPort)) { in updateNatTimeout()
739 mLog.e("Invalid dst port: " + dstPort); in updateNatTimeout()
745 protoName, srcAddr, srcPort, dstAddr, dstPort); in updateNatTimeout()
752 proto, src, srcPort, dst, dstPort, timeoutSec); in updateNatTimeout()
DOffloadHardwareInterface.java109 String dstAddr, int dstPort) {} in onNatTimeoutUpdate() argument
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java258 byte[] dstHw, String srcIp, String dstIp, int srcPort, int dstPort, long timestampNs) { in onWakeupEvent() argument
277 event.dstPort = dstPort; in onWakeupEvent()
282 uid, iface, ethertype, dstMac, srcIp, dstIp, ipNextHeader, srcPort, dstPort); in onWakeupEvent()
DKeepaliveTracker.java602 int dstPort) { in startNattKeepalive() argument
695 int dstPort) { in startNattKeepalive() argument
712 dstAddrString, dstPort); in startNattKeepalive()
DNetworkDiagnostics.java446 int sockType, int protocol, long writeTimeout, long readTimeout, int dstPort) in setupSocket() argument
467 Os.connect(mFileDescriptor, mTarget, dstPort); in setupSocket()
DTcpKeepaliveController.java159 tcpDetails.dstPort = getPort((InetSocketAddress) dstSockAddr); in switchToRepairMode()
/frameworks/base/services/net/java/android/net/util/
DKeepalivePacketDataUtil.java39 parcel.dstPort = pkt.getDstPort(); in toStableParcelable()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioRoute.h61 const sp<PolicyAudioPort> &dstPort) const;
DHwModule.h110 const sp<PolicyAudioPort> &dstPort) const;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt43776 Landroid/net/KeepalivePacketData;->dstPort:I
44153 Landroid/net/metrics/WakeupEvent;->dstPort:I