Searched defs:rxPackets (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java173 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
176 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets);
180 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
183 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets);
187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) {
189 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
172 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
179 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
186 assertEntry( NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsTest.java314 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
317 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations);
328 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, argument
331 assertEquals(rxPackets, entry.rxPackets);
313 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
H A DNetworkStatsHistoryTest.java321 entry.rxPackets = nextPositiveLong(r);
494 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
498 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
505 long rxPackets, long txBytes, long txPackets, long operations) {
506 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes,
511 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets,
516 assertEquals("unexpected rxPackets", rxPackets, entr
493 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
504 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
510 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) {
170 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
165 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
/frameworks/base/core/java/android/net/
H A DNetworkStats.java68 private long[] rxPackets; field in class:NetworkStats
79 public long rxPackets; field in class:NetworkStats.Entry
88 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument
89 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets,
93 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument
100 this.rxPackets = rxPackets;
107 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0;
111 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0
117 this.rxPackets
194 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
201 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
278 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
284 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
H A DNetworkStatsHistory.java75 private long[] rxPackets; field in class:NetworkStatsHistory
88 public long rxPackets; field in class:NetworkStatsHistory.Entry
107 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize];
125 rxPackets = readLongArray(in);
139 writeLongArray(out, rxPackets, bucketCount);
153 rxPackets = new long[bucketStart.length];
168 rxPackets = readVarLongArray(in);
182 || rxPackets.length != bucketCount || txBytes.length != bucketCount
194 writeVarLongArray(out, rxPackets, bucketCount);
273 entry.rxPackets
545 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp58 uint64_t rxPackets; member in struct:android::IfaceStat
93 uint64_t rxBytes, rxPackets, txBytes, txPackets, devRxBytes, devRxPackets, devTxBytes, local
98 &rxBytes, &rxPackets, &txBytes, &txPackets, &devRxBytes, &devRxPackets,
105 stat->rxPackets += rxPackets;
111 stat->rxPackets += devRxPackets;
134 return stat.rxPackets;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkStatsServiceTest.java839 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument
841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
846 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
849 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
853 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes,
857 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
863 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
867 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txByte
845 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
862 assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
972 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
995 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
[all...]

Completed in 109 milliseconds