/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 51 uint64_t txBytes; member in struct:android::Stats 64 return stats->txBytes; 85 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; local 91 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); 99 stats->txBytes += txBytes; 129 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; local 133 iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, &txBytes, 138 stats->txBytes += txBytes; [all...] |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 46 jfieldID txBytes; member in struct:android::__anon1056 59 int64_t txBytes; member in struct:android::stats_line 84 &s.txBytes, &s.txPackets) == 9) { 114 ScopedLongArrayRW txBytes(env, env->NewLongArray(size)); 115 if (txBytes.get() == NULL) return -1; 130 txBytes[i] = lines[i].txBytes; 141 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); 179 gNetworkStatsClassInfo.txBytes [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 70 private long[] txBytes; field in class:NetworkStats 81 public long txBytes; field in class:NetworkStats.Entry 89 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument 90 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 95 long txBytes, long txPackets, long operations) { 102 this.txBytes = txBytes; 108 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; 112 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 119 this.txBytes 94 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 207 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 214 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 291 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 297 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/tests/DataIdleTest/src/com/android/tests/dataidle/ |
H A D | DataIdleTest.java | 96 long txBytes = 0; 107 result.putLong(String.format(labelTemplate, "txBytes"), statsEntry.txBytes); 112 txBytes += statsEntry.txBytes; 115 result.putLong("Total tx Bytes", txBytes);
|
/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/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/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/java/com/android/internal/net/ |
H A D | NetworkStatsFactory.java | 95 entry.txBytes = reader.nextLong(); 102 entry.txBytes += reader.nextLong(); 150 entry.txBytes = reader.nextLong(); 222 entry.txBytes = reader.nextLong();
|
/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...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
H A D | BandwidthTest.java | 326 totalStats.txBytes += statsEntry.txBytes; 331 results.putLong(label + "tx", totalStats.txBytes);
|
/frameworks/base/core/java/android/content/ |
H A D | SyncRequest.java | 383 * @param txBytes Bytes expected to be uploaded. 385 public Builder setTransferSize(long rxBytes, long txBytes) { argument 387 mTxBytes = txBytes;
|
/frameworks/base/core/tests/utillib/src/android/test/ |
H A D | BandwidthTestCase.java | 36 private static final String REPORT_KEY_BYTES_SENT = "txBytes"; 150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes);
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 185 entry.txBytes = historyEntry.txBytes; 205 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes);
|
H A D | NetworkStatsService.java | 1047 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1048 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1049 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, 1059 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1060 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1061 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 4944 if (entry.rxBytes == 0 || entry.txBytes == 0) continue; 4951 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_BYTES, entry.txBytes); 4954 mNetworkActivityCounters[NETWORK_MOBILE_TX_BYTES].addCountLocked(entry.txBytes); 4958 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_BYTES, entry.txBytes); 4961 mNetworkActivityCounters[NETWORK_WIFI_TX_BYTES].addCountLocked(entry.txBytes);
|
/frameworks/base/services/java/com/android/server/ |
H A D | NetworkManagementService.java | 1401 entry.txBytes = Long.parseLong(tok.nextToken());
|