Searched refs:TcpInfo (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/ |
D | TcpInfoTest.java | 92 private static final TcpInfo TEST_TCPINFO = 93 new TcpInfo(0 /* retransmits */, 0 /* lost */, 2 /* segsOut */, 1 /* segsIn */); 106 final TcpInfo nullInfo = TcpInfo.parse(buffer, SHORT_TEST_TCP_INFO); in testParseTcpInfo() 109 final TcpInfo parsedInfo = TcpInfo.parse(buffer, TCP_INFO_LENGTH_V1); in testParseTcpInfo() 117 final TcpInfo infoWithHeader = TcpInfo.parse(buffer, TCP_INFO_LENGTH_V1); in testParseTcpInfo() 124 assertEquals(TcpInfo.RETRANSMITS_OFFSET, 2); in testFieldOffset() 125 assertEquals(TcpInfo.LOST_OFFSET, 32); in testFieldOffset() 126 assertEquals(TcpInfo.SEGS_OUT_OFFSET, 136); in testFieldOffset() 127 assertEquals(TcpInfo.SEGS_IN_OFFSET, 140); in testFieldOffset() 133 final TcpInfo parsedInfo = in testParseTcpInfoExpanded() [all …]
|
D | TcpSocketTrackerTest.java | 187 private static final TcpInfo TEST_TCPINFO = 188 new TcpInfo(5 /* retransmits */, 0 /* lost */, 10 /* segsOut */, 0 /* segsIn */);
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpInfo.java | 35 public class TcpInfo { class 114 private TcpInfo(@NonNull ByteBuffer bytes, int infolen) { in TcpInfo() method in TcpInfo 132 TcpInfo(int retransmits, int lost, int segsOut, int segsIn) { in TcpInfo() method in TcpInfo 141 public static TcpInfo parse(@NonNull ByteBuffer bytes, int infolen) { in parse() 143 return new TcpInfo(bytes, infolen); in parse() 179 if (!(obj instanceof TcpInfo)) return false; in equals() 180 TcpInfo other = (TcpInfo) obj; in equals()
|
D | TcpSocketTracker.java | 297 TcpInfo tcpInfo = null; in parseSockInfo() 305 tcpInfo = TcpInfo.parse(bytes, dataLen); in parseSockInfo() 469 public final TcpInfo tcpInfo; 477 SocketInfo(@Nullable final TcpInfo info, final int family, final int mark, in SocketInfo()
|