/frameworks/base/core/java/android/net/ |
D | NetworkStatsHistory.java | 82 private long[] txBytes; field in NetworkStatsHistory 95 public long txBytes; field in NetworkStatsHistory.Entry 114 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory() 132 txBytes = readLongArray(in); in NetworkStatsHistory() 146 writeLongArray(out, txBytes, bucketCount); in writeToParcel() 160 txBytes = readFullLongArray(in); in NetworkStatsHistory() 164 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 175 txBytes = readVarLongArray(in); in NetworkStatsHistory() 179 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 188 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() [all …]
|
D | NetworkStats.java | 107 private long[] txBytes; field in NetworkStats 130 public long txBytes; field in NetworkStats.Entry 138 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 139 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 144 long txBytes, long txPackets, long operations) { in Entry() argument 145 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, rxBytes, rxPackets, txBytes, in Entry() 150 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 159 this.txBytes = txBytes; in Entry() 165 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 169 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() [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() 497 entry.txBytes *= 2; in testSetValues() 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) { 539 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 543 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { [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/services/core/java/com/android/server/connectivity/tethering/ |
D | OffloadHardwareInterface.java | 72 public long txBytes; field in OffloadHardwareInterface.ForwardedStats 76 txBytes = 0; in ForwardedStats() 81 txBytes += other.txBytes; in add() 85 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString() 164 (long rxBytes, long txBytes) -> { in getForwardedStats() 166 stats.txBytes = (txBytes > 0) ? txBytes : 0; in getForwardedStats()
|
D | OffloadController.java | 278 entry.txBytes = value.txBytes; in getTetherStats()
|
/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/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() 223 adjust.txBytes -= (entry.txBytes + entry.txPackets * IPV4V6_HEADER_DELTA); in readNetworkStatsDetail() 233 entry.txBytes = entry.txPackets * IPV4V6_HEADER_DELTA; in readNetworkStatsDetail() 305 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/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 529 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument 534 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal() 538 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 542 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags() 545 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 547 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 550 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 552 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 558 actual.txBytes, actual.txPackets, 0L)); in assertEntry() 565 assertEquals("unexpected txBytes", expected.txBytes, actual.txBytes); in assertEntry()
|
D | NetworkStatsServiceTest.java | 966 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 967 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 972 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 975 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 980 rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 984 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument 986 txBytes, txPackets, operations); in assertUidTotal() 990 int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) in assertUidTotal() argument 995 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal() 1002 txBytes, txPackets, operations); in assertUidTotal() [all …]
|
/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/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 295 if (entry.rxBytes == 0 || entry.txBytes == 0) { in getHistory() 301 final long rawBytes = entry.rxBytes + entry.txBytes; in getHistory() 303 final long rawTxBytes = entry.txBytes; in getHistory() 315 entry.txBytes = multiplySafe(targetTxBytes, entry.txBytes, rawTxBytes); in getHistory() 371 entry.txBytes = historyEntry.txBytes; in getSummary() 391 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
D | NetworkStatsService.java | 670 ROAMING_ALL, entry.rxBytes, entry.rxPackets, entry.txBytes, entry.txPackets, in internalGetSummaryForNetwork() 1239 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1240 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1241 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked() 1251 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1252 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1253 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
|
/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/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 390 assertEquals(stats.txBytes, entry.txBytes); in assertNetworkStats() 408 ethernetStats.txBytes = 54321; in testGetForwardedStats() 412 mobileStats.txBytes = 99999; in testGetForwardedStats() 437 ethernetStats.txBytes = 100000; in testGetForwardedStats() 472 ethernetStats.txBytes = 54321 + 100000; in testGetForwardedStats()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 156 final long totalBytes = entry.rxBytes + entry.txBytes; in getDataUsageInfo() 197 .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/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 | 9781 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState() 9785 if (entry.rxBytes == 0 && entry.txBytes == 0) { in updateWifiState() 9810 if (entry.txBytes != 0) { in updateWifiState() 9811 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_DATA, entry.txBytes, in updateWifiState() 9814 u.noteNetworkActivityLocked(NETWORK_WIFI_BG_TX_DATA, entry.txBytes, in updateWifiState() 9818 entry.txBytes); in updateWifiState() 10045 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateMobileRadioState() 10055 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_DATA, entry.txBytes, in updateMobileRadioState() 10061 entry.txBytes, entry.txPackets); in updateMobileRadioState() 10067 entry.txBytes); in updateMobileRadioState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1901 entry.txBytes = Long.parseLong(tok.nextToken()); in getTetherStats()
|