Home
last modified time | relevance | path

Searched refs:srcPort (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DTcpKeepalivePacketDataTest.java43 final int srcPort = 1234; in testV4TcpKeepalivePacket() local
54 testInfo.srcPort = srcPort; in testV4TcpKeepalivePacket()
71 assertEquals(testInfo.srcPort, resultData.getSrcPort()); in testV4TcpKeepalivePacket()
101 assertEquals(buf.getShort(), srcPort); in testV4TcpKeepalivePacket() local
117 final int srcPort = 1234; in testParcel() local
127 testInfo.srcPort = srcPort; in testParcel()
142 assertEquals(resultData.srcPort, srcPort); in testParcel()
/frameworks/base/core/java/android/net/
DNattKeepalivePacketData.java44 public NattKeepalivePacketData(@NonNull InetAddress srcAddress, int srcPort, in NattKeepalivePacketData() argument
47 super(srcAddress, srcPort, dstAddress, dstPort, data); in NattKeepalivePacketData()
55 InetAddress srcAddress, int srcPort, InetAddress dstAddress, int dstPort) in nattKeepalivePacket() argument
78 buf.putShort((short) srcPort); in nattKeepalivePacket()
87 return new NattKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, buf.array()); in nattKeepalivePacket()
111 final int srcPort = in.readInt();
114 return NattKeepalivePacketData.nattKeepalivePacket(srcAddress, srcPort,
DKeepalivePacketData.java65 @IntRange(from = 0, to = 65535) int srcPort, @NonNull InetAddress dstAddress, in KeepalivePacketData()
70 this.mSrcPort = srcPort; in KeepalivePacketData()
82 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
DIConnectivityManager.aidl209 in ISocketKeepaliveCallback cb, String srcAddr, int srcPort, String dstAddr); in startNattKeepalive() argument
DConnectivityManager.java1872 InetAddress srcAddr, int srcPort, InetAddress dstAddr) { in startNattKeepalive() argument
1876 srcAddr.getHostAddress(), srcPort, dstAddr.getHostAddress()); in startNattKeepalive()
/frameworks/base/core/java/android/net/metrics/
DWakeupEvent.java36 public int srcPort; field in WakeupEvent
52 if (srcPort > -1) { in toString()
53 j.add("srcPort=" + srcPort); in toString()
/frameworks/base/services/net/java/android/net/
DTcpKeepalivePacketData.java66 super(InetAddress.getByAddress(tcpDetails.srcAddress), tcpDetails.srcPort, in TcpKeepalivePacketData()
77 private TcpKeepalivePacketData(final InetAddress srcAddress, int srcPort, in TcpKeepalivePacketData() argument
81 super(srcAddress, srcPort, dstAddress, dstPort, data); in TcpKeepalivePacketData()
131 buf.putShort((short) tcpDetails.srcPort); in buildV4Packet()
203 int srcPort = in.readInt(); in readFromParcel() local
212 return new TcpKeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, packet, tcpSeq, in readFromParcel()
242 parcel.srcPort = getSrcPort(); in toStableParcelable()
/frameworks/base/tests/net/common/java/android/net/
DKeepalivePacketDataTest.kt54 srcPort: Int = TEST_SRC_PORT, in address()
58 ) : KeepalivePacketData(srcAddress, srcPort, dstAddress, dstPort, data) in address()
87 data = TestKeepalivePacketData(srcPort = INVALID_PORT) in address()
111 fun testSrcPort() = assertEquals(TEST_SRC_PORT, TestKeepalivePacketData().srcPort)
DNattKeepalivePacketDataTest.kt58 srcPort: Int = TEST_PORT, in address()
61 ) = NattKeepalivePacketData.nattKeepalivePacket(srcAddress, srcPort, dstAddress, dstPort) in address()
105 assertNotEquals(nattKeepalivePacket(srcPort = TEST_PORT2), nattKeepalivePacket()) in testEquals()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioRoute.cpp39 bool AudioRoute::supportsPatch(const sp<PolicyAudioPort> &srcPort, in supportsPatch() argument
47 if (sourcePort == srcPort) { in supportsPatch()
DHwModule.cpp230 bool HwModule::supportsPatch(const sp<PolicyAudioPort> &srcPort, in supportsPatch() argument
233 if (route->supportsPatch(srcPort, dstPort)) { in supportsPatch()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java252 String srcAddr, int srcPort, 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
727 if (!isValidUdpOrTcpPort(srcPort)) { in updateNatTimeout()
728 mLog.e("Invalid src port: " + srcPort); in updateNatTimeout()
745 protoName, srcAddr, srcPort, dstAddr, dstPort); in updateNatTimeout()
752 proto, src, srcPort, dst, dstPort, timeoutSec); in updateNatTimeout()
DOffloadHardwareInterface.java108 String srcAddr, int srcPort, in onNatTimeoutUpdate() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DFrameParser.java196 int srcPort = 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/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java258 byte[] dstHw, String srcIp, String dstIp, int srcPort, int dstPort, long timestampNs) { in onWakeupEvent() argument
276 event.srcPort = srcPort; in onWakeupEvent()
282 uid, iface, ethertype, dstMac, srcIp, dstIp, ipNextHeader, srcPort, dstPort); in onWakeupEvent()
DKeepaliveTracker.java600 int srcPort, in startNattKeepalive() argument
620 srcAddress, srcPort, dstAddress, NATT_PORT); in startNattKeepalive()
702 int srcPort = 0; in startNattKeepalive() local
705 srcPort = ((InetSocketAddress) srcSockAddr).getPort(); in startNattKeepalive()
711 startNattKeepalive(nai, fd, intervalSeconds, cb, srcAddrString, srcPort, in startNattKeepalive()
DTcpKeepaliveController.java145 tcpDetails.srcPort = getPort((InetSocketAddress) srcSockAddr); in switchToRepairMode()
/frameworks/base/services/net/java/android/net/util/
DKeepalivePacketDataUtil.java37 parcel.srcPort = pkt.getSrcPort(); in toStableParcelable()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioRoute.h60 bool supportsPatch(const sp<PolicyAudioPort> &srcPort,
DHwModule.h109 bool supportsPatch(const sp<PolicyAudioPort> &srcPort,
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java4179 final int srcPort = testSocket.getPort(); in doTestNattSocketKeepalivesWithExecutor() local
4432 final int srcPort = testSocket.getPort(); in doTestNattSocketKeepalivesFdWithExecutor() local
4436 assertTrue(isUdpPortInUse(srcPort)); in doTestNattSocketKeepalivesFdWithExecutor()
4451 assertTrue(isUdpPortInUse(srcPort)); in doTestNattSocketKeepalivesFdWithExecutor()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java7495 ISocketKeepaliveCallback cb, String srcAddr, int srcPort, String dstAddr) { in startNattKeepalive() argument
7500 srcAddr, srcPort, dstAddr, NattSocketKeepalive.NATT_PORT); in startNattKeepalive() local
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt43782 Landroid/net/KeepalivePacketData;->srcPort:I
44158 Landroid/net/metrics/WakeupEvent;->srcPort:I