Home
last modified time | relevance | path

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

/cts/tests/tests/net/src/android/net/cts/
DTrafficStatsTest.java78 long tcpPacketToIpBytes(long packetCount, long bytes) { in tcpPacketToIpBytes() argument
81 return packetCount * (20 + 32 + bytes); in tcpPacketToIpBytes()
120 final int packetCount = 1024; in testTrafficStatsForLocalhost() local
136 for (int i = 0; i < packetCount; i++) { in testTrafficStatsForLocalhost()
163 while (read < byteCount * packetCount) { in testTrafficStatsForLocalhost()
171 assertTrue("Not all data read back", read >= byteCount * packetCount); in testTrafficStatsForLocalhost()
220 … " Wanted: " + uidTxDeltaPackets + ">=" + packetCount + "+" + minExpectedExtraPackets + " && " + in testTrafficStatsForLocalhost()
221 …uidTxDeltaPackets + "<=" + packetCount + "+" + packetCount + "+" + maxExpectedExtraPackets + "+" +… in testTrafficStatsForLocalhost()
222 uidTxDeltaPackets >= packetCount + minExpectedExtraPackets && in testTrafficStatsForLocalhost()
223 … uidTxDeltaPackets <= packetCount + packetCount + maxExpectedExtraPackets + deltaTxOtherPackets); in testTrafficStatsForLocalhost()
[all …]
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java198 final int packetCount = 1024; in createTrafficStatsWithTags() local
211 for (int i = 0; i < packetCount; i++) { in createTrafficStatsWithTags()
230 while (read < byteCount * packetCount) { in createTrafficStatsWithTags()