/frameworks/base/tests/net/java/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 230 int tag, long rxBytes, long txBytes) { 238 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 242 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { 251 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 229 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument 241 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 | 50 jfieldID txBytes; member in struct:android::__anon1107 62 int64_t txBytes; member in struct:android::stats_line 212 &s.txBytes, &s.txPackets) == 6) { 255 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, 256 gNetworkStatsClassInfo.txBytes, size, grow)); 257 if (txBytes.get() == NULL) return -1; 275 txBytes[i] = lines[i].txBytes; 290 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes [all...] |
/frameworks/base/tests/net/java/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); 497 entry.txBytes *= 2; 529 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 532 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 536 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 528 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument 535 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument 542 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 553 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 559 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 | 613 int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, 618 rxBytes, rxPackets, txBytes, txPackets, operations); 622 int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, 626 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 641 long txBytes, long txPackets, long operations) { 644 assertEquals(txBytes, entry.txBytes); 612 assertContains(NetworkStats stats, String iface, int uid, int set, int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 621 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 640 assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
|
/frameworks/base/tests/net/java/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 529 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, 534 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); 538 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { 542 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); 545 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, argument 547 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); 550 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, argument 552 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); 558 actual.txBytes, actual.txPackets, 0L)); 565 assertEquals("unexpected txBytes", expecte 528 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument 537 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
H A D | NetworkStatsServiceTest.java | 966 long txBytes, long txPackets, int operations) throws Exception { 967 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 972 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { 975 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); 980 rxBytes, rxPackets, txBytes, txPackets, operations); 984 long txBytes, long txPackets, int operations) throws Exception { 986 txBytes, txPackets, operations); 990 int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) 995 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 1002 txBytes, txPacket 965 assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 971 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 983 assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 989 assertUidTotal(NetworkTemplate template, int uid, int set, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1099 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1142 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
H A D | OffloadHardwareInterface.java | 72 public long txBytes; field in class:OffloadHardwareInterface.ForwardedStats 76 txBytes = 0; 81 txBytes += other.txBytes; 85 return String.format("rx:%s tx:%s", rxBytes, txBytes); 164 (long rxBytes, long txBytes) -> { 166 stats.txBytes = (txBytes > 0) ? txBytes : 0;
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.java | 82 private long[] txBytes; field in class:NetworkStatsHistory 95 public long txBytes; field in class:NetworkStatsHistory.Entry 114 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; 132 txBytes = readLongArray(in); 146 writeLongArray(out, txBytes, bucketCount); 160 txBytes = readFullLongArray(in); 164 totalBytes = total(rxBytes) + total(txBytes); 175 txBytes = readVarLongArray(in); 179 totalBytes = total(rxBytes) + total(txBytes); 188 || rxPackets.length != bucketCount || txBytes 309 recordData(long start, long end, long rxBytes, long txBytes) argument 569 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument [all...] |
H A D | NetworkStats.java | 107 private long[] txBytes; field in class:NetworkStats 130 public long txBytes; field in class:NetworkStats.Entry 138 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument 139 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 144 long txBytes, long txPackets, long operations) { 145 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, rxBytes, rxPackets, txBytes, 150 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 159 this.txBytes = txBytes; 165 return rxBytes < 0 || rxPackets < 0 || txBytes < 143 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 149 Entry(String iface, int uid, int set, int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 296 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 303 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 310 addValues(String iface, int uid, int set, int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 399 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 406 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument [all...] |