/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 | NetworkStatsTest.java | 324 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 327 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 339 long txBytes, long txPackets, long operations) { 342 assertEquals(txBytes, entry.txBytes); 323 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 338 assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
|
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); 514 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 517 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 521 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 524 assertEquals("unexpected txBytes", txByte 513 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument 520 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument 527 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 538 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 544 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 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/jni/ |
H A D | android_net_TrafficStats.cpp | 52 uint64_t txBytes; member in struct:android::Stats 65 return stats->txBytes; 86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; local 92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); 100 stats->txBytes += txBytes; 130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; local 137 &txBytes, &txPackets) == 9) { 141 stats->txBytes += txBytes; [all...] |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 47 jfieldID txBytes; member in struct:android::__anon882 59 int64_t txBytes; member in struct:android::stats_line 209 &s.txBytes, &s.txPackets) == 6) { 246 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, 247 gNetworkStatsClassInfo.txBytes, size, grow)); 248 if (txBytes.get() == NULL) return -1; 265 txBytes[i] = lines[i].txBytes; 278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 75 private long[] txBytes; field in class:NetworkStats 86 public long txBytes; field in class:NetworkStats.Entry 94 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument 95 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 100 long txBytes, long txPackets, long operations) { 107 this.txBytes = txBytes; 113 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; 117 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 124 this.txBytes 99 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 229 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 236 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 318 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 324 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 | 78 private long[] txBytes; field in class:NetworkStatsHistory 91 public long txBytes; field in class:NetworkStatsHistory.Entry 110 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; 128 txBytes = readLongArray(in); 142 writeLongArray(out, txBytes, bucketCount); 156 txBytes = readFullLongArray(in); 160 totalBytes = total(rxBytes) + total(txBytes); 171 txBytes = readVarLongArray(in); 175 totalBytes = total(rxBytes) + total(txBytes); 184 || rxPackets.length != bucketCount || txBytes 287 recordData(long start, long end, long rxBytes, long txBytes) argument 547 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument [all...] |
/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 971 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 994 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument [all...] |