/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 840 long txBytes, long txPackets, int operations) throws Exception { 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, 858 long txBytes, long txPackets, int operations) throws Exception { 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, txBytes, txPacket 839 assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 845 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 857 assertUidTotal(NetworkTemplate template, int uid, 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...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 173 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) { 190 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 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 D | NetworkStatsHistoryTest.java | 76 assertEquals(6223L, entry.txBytes); 80 assertEquals(838L, entry.txBytes); 84 assertEquals(64314L, entry.txBytes); 322 entry.txBytes = nextPositiveLong(r); 480 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 483 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 487 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 490 assertEquals("unexpected txBytes", txByte 479 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument 486 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument 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...] |
H A D | NetworkStatsTest.java | 314 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 317 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 329 long txBytes, long txPackets, long operations) { 332 assertEquals(txBytes, entry.txBytes); 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 328 assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 158 int tag, long rxBytes, long txBytes) { 162 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { 171 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 157 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument 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 D | NetworkStats.java | 69 private long[] txBytes; field in class:NetworkStats 80 public long txBytes; 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, 94 long txBytes, long txPackets, long operations) { 101 this.txBytes = txBytes; 107 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; 111 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 118 this.txBytes 93 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 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 D | NetworkStatsHistory.java | 76 private long[] txBytes; field in class:NetworkStatsHistory 89 public long txBytes; field in class:NetworkStatsHistory.Entry 108 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; 126 txBytes = readLongArray(in); 140 writeLongArray(out, txBytes, bucketCount); 154 txBytes = readFullLongArray(in); 158 totalBytes = total(rxBytes) + total(txBytes); 169 txBytes = readVarLongArray(in); 173 totalBytes = total(rxBytes) + total(txBytes); 182 || rxPackets.length != bucketCount || txBytes 285 recordData(long start, long end, long rxBytes, long txBytes) argument 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 D | android_net_TrafficStats.cpp | 59 uint64_t txBytes; member in struct:android::IfaceStat 93 uint64_t rxBytes, rxPackets, txBytes, txPackets, devRxBytes, devRxPackets, devTxBytes, local 98 &rxBytes, &rxPackets, &txBytes, &txPackets, &devRxBytes, &devRxPackets, 106 stat->txBytes += txBytes; 112 stat->txBytes += devTxBytes; 136 return stat.txBytes;
|