/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 | 404 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 408 rxBytes, rxPackets, txBytes, txPackets, operations); 412 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 415 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 427 long txBytes, long txPackets, long operations) { 430 assertEquals(txBytes, entry.txBytes); 403 assertContains(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 411 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 426 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 | 48 jfieldID txBytes; member in struct:android::__anon924 60 int64_t txBytes; member in struct:android::stats_line 210 &s.txBytes, &s.txPackets) == 6) { 247 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, 248 gNetworkStatsClassInfo.txBytes, size, grow)); 249 if (txBytes.get() == NULL) return -1; 266 txBytes[i] = lines[i].txBytes; 279 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 84 private long[] txBytes; field in class:NetworkStats 95 public long txBytes; field in class:NetworkStats.Entry 103 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument 104 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 109 long txBytes, long txPackets, long operations) { 116 this.txBytes = txBytes; 122 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; 126 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 133 this.txBytes 108 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 238 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 245 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 327 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 333 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 | 841 long txBytes, long txPackets, int operations) throws Exception { 842 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 847 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { 850 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); 854 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, 859 long txBytes, long txPackets, int operations) throws Exception { 860 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 864 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { 868 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 874 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPacket 840 assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 846 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 858 assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 863 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...] |