/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 70 private long[] txBytes; field in NetworkStats 81 public long txBytes; field in NetworkStats.Entry 89 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 90 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 95 long txBytes, long txPackets, long operations) { in Entry() argument 102 this.txBytes = txBytes; in Entry() 108 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 112 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() 119 this.txBytes += another.txBytes; in add() 133 builder.append(" txBytes=").append(txBytes); in toString() [all …]
|
D | NetworkStatsHistory.java | 76 private long[] txBytes; field in NetworkStatsHistory 89 public long txBytes; field in NetworkStatsHistory.Entry 108 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory() 126 txBytes = readLongArray(in); in NetworkStatsHistory() 140 writeLongArray(out, txBytes, bucketCount); in writeToParcel() 154 txBytes = readFullLongArray(in); in NetworkStatsHistory() 158 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 169 txBytes = readVarLongArray(in); in NetworkStatsHistory() 173 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 182 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() [all …]
|
/frameworks/base/core/jni/ |
D | android_net_TrafficStats.cpp | 51 uint64_t txBytes; member 64 return stats->txBytes; in getStatsType() 85 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 91 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats() 99 stats->txBytes += txBytes; in parseIfaceStats() 129 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 133 iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, &txBytes, in parseUidStats() 138 stats->txBytes += txBytes; in parseUidStats()
|
D | com_android_internal_net_NetworkStatsFactory.cpp | 46 jfieldID txBytes; member 59 int64_t txBytes; member 84 &s.txBytes, &s.txPackets) == 9) { in readNetworkStatsDetail() 114 ScopedLongArrayRW txBytes(env, env->NewLongArray(size)); in readNetworkStatsDetail() local 115 if (txBytes.get() == NULL) return -1; in readNetworkStatsDetail() 130 txBytes[i] = lines[i].txBytes; in readNetworkStatsDetail() 141 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in readNetworkStatsDetail() 179 gNetworkStatsClassInfo.txBytes = env->GetFieldID(clazz, "txBytes", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsHistoryTest.java | 76 assertEquals(6223L, entry.txBytes); in testReadOriginalVersion() 80 assertEquals(838L, entry.txBytes); in testReadOriginalVersion() 84 assertEquals(64314L, entry.txBytes); in testReadOriginalVersion() 322 entry.txBytes = nextPositiveLong(r); in testFuzzing() 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", txBytes, entry.txBytes); 494 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 499 assertEquals("unexpected txBytes", txBytes, entry.txBytes); [all …]
|
D | NetworkStatsTest.java | 314 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in assertValues() argument 317 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 329 long txBytes, long txPackets, long operations) { in assertValues() argument 332 assertEquals(txBytes, entry.txBytes); in assertValues()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 173 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotal() argument 176 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotal() 180 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 183 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotalIncludingTags() 187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertEntry() argument 190 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertEntry()
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 96 long txBytes = 0; in reportStats() local 112 txBytes += statsEntry.txBytes; in reportStats() 115 result.putLong("Total tx Bytes", txBytes); in reportStats()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 158 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument 162 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry() 166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 171 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkStatsServiceTest.java | 840 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 846 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 849 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 853 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 858 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument 859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal() 863 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument 867 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal() 873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in assertUidTotal() [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 95 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 102 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev() 150 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt() 222 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 326 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults() 331 results.putLong(label + "tx", totalStats.txBytes); in addStatsToResults()
|
/frameworks/base/core/java/android/content/ |
D | SyncRequest.java | 385 public Builder setTransferSize(long rxBytes, long txBytes) { in setTransferSize() argument 387 mTxBytes = txBytes; in setTransferSize()
|
/frameworks/base/services/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 185 entry.txBytes = historyEntry.txBytes; in getSummary() 205 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
D | NetworkStatsService.java | 1047 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1048 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1049 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked() 1059 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1060 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1061 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 4944 if (entry.rxBytes == 0 || entry.txBytes == 0) continue; in updateNetworkActivityLocked() 4951 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_BYTES, entry.txBytes); in updateNetworkActivityLocked() 4954 mNetworkActivityCounters[NETWORK_MOBILE_TX_BYTES].addCountLocked(entry.txBytes); in updateNetworkActivityLocked() 4958 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_BYTES, entry.txBytes); in updateNetworkActivityLocked() 4961 mNetworkActivityCounters[NETWORK_WIFI_TX_BYTES].addCountLocked(entry.txBytes); in updateNetworkActivityLocked()
|
/frameworks/base/services/java/com/android/server/ |
D | NetworkManagementService.java | 1401 entry.txBytes = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()
|