/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 102 private long[] txBytes; field in NetworkStats 125 public long txBytes; field in NetworkStats.Entry 133 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 134 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 139 long txBytes, long txPackets, long operations) { in Entry() argument 140 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, rxBytes, rxPackets, txBytes, in Entry() 145 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 154 this.txBytes = txBytes; in Entry() 160 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 164 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() [all …]
|
D | NetworkStatsHistory.java | 81 private long[] txBytes; field in NetworkStatsHistory 94 public long txBytes; field in NetworkStatsHistory.Entry 113 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory() 131 txBytes = readLongArray(in); in NetworkStatsHistory() 145 writeLongArray(out, txBytes, bucketCount); in writeToParcel() 159 txBytes = readFullLongArray(in); in NetworkStatsHistory() 163 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 174 txBytes = readVarLongArray(in); in NetworkStatsHistory() 178 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 187 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() [all …]
|
/frameworks/base/core/jni/ |
D | android_net_TrafficStats.cpp | 52 uint64_t txBytes; member 65 return stats->txBytes; in getStatsType() 86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats() 100 stats->txBytes += txBytes; in parseIfaceStats() 130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 137 &txBytes, &txPackets) == 9) { in parseUidStats() 141 stats->txBytes += txBytes; in parseUidStats()
|
D | com_android_internal_net_NetworkStatsFactory.cpp | 50 jfieldID txBytes; member 62 int64_t txBytes; member 212 &s.txBytes, &s.txPackets) == 6) { in readNetworkStatsDetail() 255 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in readNetworkStatsDetail() local 256 gNetworkStatsClassInfo.txBytes, size, grow)); in readNetworkStatsDetail() 257 if (txBytes.get() == NULL) return -1; in readNetworkStatsDetail() 275 txBytes[i] = lines[i].txBytes; in readNetworkStatsDetail() 290 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in readNetworkStatsDetail() 323 gNetworkStatsClassInfo.txBytes = GetFieldIDOrDie(env, clazz, "txBytes", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
|
/frameworks/base/tests/net/java/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() 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", txBytes, entry.txBytes); 528 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 533 assertEquals("unexpected txBytes", txBytes, entry.txBytes); [all …]
|
D | NetworkStatsTest.java | 613 int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, in assertContains() argument 618 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 622 int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, in assertValues() argument 626 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 641 long txBytes, long txPackets, long operations) { in assertValues() argument 644 assertEquals(txBytes, entry.txBytes); in assertValues()
|
/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/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 239 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument 244 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotal() 248 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 252 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotalIncludingTags() 256 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertEntry() argument 259 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertEntry()
|
D | NetworkStatsServiceTest.java | 961 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 962 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 967 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 970 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 975 rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 979 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument 981 txBytes, txPackets, operations); in assertUidTotal() 985 int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) in assertUidTotal() argument 990 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal() 997 txBytes, txPackets, operations); in assertUidTotal() [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 119 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 126 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev() 172 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt() 217 adjust.txBytes -= (entry.txBytes + entry.txPackets * IPV4V6_HEADER_DELTA); in readNetworkStatsDetail() 236 entry.txBytes = entry.txPackets * IPV4V6_HEADER_DELTA; in readNetworkStatsDetail() 306 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
|
/frameworks/base/tests/net/java/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 230 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument 238 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry() 242 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 251 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 43 recycle.txBytes = 150000; in setUp() 57 recycle.txBytes = 180000 * mSize; in setUp()
|
/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/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 173 final long totalBytes = entry.rxBytes + entry.txBytes; in getDataUsageInfo() 214 .append(",txBytes=").append(entry.txBytes) in historyEntryToString()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 548 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes; in fillBucketFromSummaryEntry() 598 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes; in getNextHistoryBucket()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsService.java | 1181 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1182 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1183 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked() 1193 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1194 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1195 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked() 1409 entry.txBytes = usage - entry.rxBytes; in getNetworkStatsXtAndVt()
|
D | NetworkStatsCollection.java | 255 entry.txBytes = historyEntry.txBytes; in getSummary() 275 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
/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 | 9500 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState() 9504 if (entry.rxBytes == 0 && entry.txBytes == 0) { in updateWifiState() 9529 if (entry.txBytes != 0) { in updateWifiState() 9530 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_DATA, entry.txBytes, in updateWifiState() 9533 u.noteNetworkActivityLocked(NETWORK_WIFI_BG_TX_DATA, entry.txBytes, in updateWifiState() 9537 entry.txBytes); in updateWifiState() 9764 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateMobileRadioState() 9774 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_DATA, entry.txBytes, in updateMobileRadioState() 9780 entry.txBytes, entry.txPackets); in updateMobileRadioState() 9786 entry.txBytes); in updateMobileRadioState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1808 entry.txBytes = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()
|