Home
last modified time | relevance | path

Searched refs:tcpInfo (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java297 TcpInfo tcpInfo = null; in parseSockInfo() local
305 tcpInfo = TcpInfo.parse(bytes, dataLen); in parseSockInfo()
315 final SocketInfo info = new SocketInfo(tcpInfo, family, mark, time); in parseSockInfo()
340 if (current.tcpInfo == null) { in calculateLatestPacketsStat()
345 stat.sentCount = current.tcpInfo.mSegsOut; in calculateLatestPacketsStat()
346 stat.receivedCount = current.tcpInfo.mSegsIn; in calculateLatestPacketsStat()
347 stat.lostCount = current.tcpInfo.mLost; in calculateLatestPacketsStat()
348 stat.retransmitCount = current.tcpInfo.mRetransmits; in calculateLatestPacketsStat()
350 if (previous != null && previous.tcpInfo != null) { in calculateLatestPacketsStat()
351 stat.sentCount -= previous.tcpInfo.mSegsOut; in calculateLatestPacketsStat()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java270 assertEquals(parsed.tcpInfo, TEST_TCPINFO); in testParseSockInfo()