/frameworks/base/core/java/android/net/ |
D | NetworkStatsHistory.java | 85 private long[] txBytes; field in NetworkStatsHistory 103 public long txBytes; field in NetworkStatsHistory.Entry 124 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory() 143 txBytes = readLongArray(in); in NetworkStatsHistory() 157 writeLongArray(out, txBytes, bucketCount); in writeToParcel() 171 txBytes = readFullLongArray(in); in NetworkStatsHistory() 175 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 186 txBytes = readVarLongArray(in); in NetworkStatsHistory() 190 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 199 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() [all …]
|
D | NetworkStats.java | 140 private long[] txBytes; field in NetworkStats 178 public long txBytes; field in NetworkStats.Entry 188 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 189 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 194 long txBytes, long txPackets, long operations) { in Entry() argument 196 rxBytes, rxPackets, txBytes, txPackets, operations); in Entry() 200 int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, in Entry() argument 211 this.txBytes = txBytes; in Entry() 217 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 221 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsService.cpp | 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 136 &txBytes, &txPackets) == 9) { in parseUidStats() 140 stats->txBytes += txBytes; in parseUidStats()
|
D | com_android_server_net_NetworkStatsFactory.cpp | 57 jfieldID txBytes; member 189 &s.txBytes, &s.txPackets) == 6) { in legacyReadNetworkStatsDetail() 240 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 241 gNetworkStatsClassInfo.txBytes, size, grow)); in statsLinesToNetworkStats() 242 if (txBytes.get() == NULL) return -1; in statsLinesToNetworkStats() 260 txBytes[i] = lines[i].txBytes; in statsLinesToNetworkStats() 277 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in statsLinesToNetworkStats() 354 gNetworkStatsClassInfo.txBytes = env->GetFieldID(clazz, "txBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 88 assertEquals(6223L, entry.txBytes); in testReadOriginalVersion() 92 assertEquals(838L, entry.txBytes); in testReadOriginalVersion() 96 assertEquals(64314L, entry.txBytes); in testReadOriginalVersion() 343 entry.txBytes = nextPositiveLong(r); in testFuzzing() 526 entry.txBytes *= 2; in testSetValues() 558 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 561 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 565 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 568 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 572 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { [all …]
|
D | NetworkStatsTest.java | 930 long txBytes, long txPackets, long operations) { in assertContains() argument 934 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 939 long txBytes, long txPackets, long operations) { in assertValues() argument 942 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 958 long txBytes, long txPackets, long operations) { in assertValues() argument 961 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/tests/net/java/com/android/server/net/ |
D | NetworkStatsFactoryTest.java | 252 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument 261 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry() 274 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 284 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
|
D | NetworkStatsCollectionTest.java | 552 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument 557 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal() 561 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 565 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags() 568 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 570 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 573 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 575 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 581 actual.txBytes, actual.txPackets, 0L)); in assertEntry() 588 assertEquals("unexpected txBytes", expected.txBytes, actual.txBytes); in assertEntry()
|
D | NetworkStatsServiceTest.java | 1145 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 1146 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 1151 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 1154 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 1159 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 1163 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument 1165 rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal() 1169 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, in assertUidTotal() argument 1174 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal() 1181 rxBytes, rxPackets, 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 | NetworkStatsFactory.java | 193 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 200 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev() 251 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt() 378 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
|
D | NetworkStatsCollection.java | 307 if (entry.rxBytes == 0 || entry.txBytes == 0) { in getHistory() 313 final long rawBytes = entry.rxBytes + entry.txBytes; in getHistory() 315 final long rawTxBytes = entry.txBytes; in getHistory() 327 entry.txBytes = multiplySafe(targetTxBytes, entry.txBytes, rawTxBytes); in getHistory() 385 entry.txBytes = historyEntry.txBytes; in getSummary() 405 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
D | NetworkStatsService.java | 735 entry.txBytes, entry.txPackets, entry.operations)); in internalGetSummaryForNetwork() 1019 return entry.txBytes; in getTetherStats() 1417 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1418 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1419 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked() 1429 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1430 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1431 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
|
D | NetworkStatsRecorder.java | 253 entry.txBytes = Math.max(entry.txBytes, 0); in recordSnapshotLocked()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 333 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults() 338 results.putLong(label + "tx", totalStats.txBytes); in addStatsToResults()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 391 assertEquals(stats.txBytes, entry.txBytes); in assertNetworkStats() 409 ethernetStats.txBytes = 54321; in testGetForwardedStats() 413 mobileStats.txBytes = 99999; in testGetForwardedStats() 438 ethernetStats.txBytes = 100000; in testGetForwardedStats() 473 ethernetStats.txBytes = 54321 + 100000; in testGetForwardedStats()
|
/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/android/app/usage/ |
D | NetworkStats.java | 620 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes; in fillBucketFromSummaryEntry() 672 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes; in getNextHistoryBucket()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 210 assertEquals(expected.txBytes, actual.getTxBytes()); in assertBucketMatches()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 1032 return entry.rxBytes + entry.txBytes; 1156 return entry.rxBytes + entry.txBytes; 1548 return entry.rxBytes + entry.txBytes;
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 10739 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState() 10743 if (entry.rxBytes == 0 && entry.txBytes == 0) { in updateWifiState() 10768 if (entry.txBytes != 0) { in updateWifiState() 10769 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_DATA, entry.txBytes, in updateWifiState() 10772 u.noteNetworkActivityLocked(NETWORK_WIFI_BG_TX_DATA, entry.txBytes, in updateWifiState() 10776 entry.txBytes); in updateWifiState() 11087 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateMobileRadioState() 11097 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_DATA, entry.txBytes, in updateMobileRadioState() 11103 entry.txBytes, entry.txPackets); in updateMobileRadioState() 11109 entry.txBytes); in updateMobileRadioState() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1582 entry.txBytes = tetherStats.txBytes; in getTetherStats()
|