/frameworks/base/core/java/android/net/ |
D | NetworkStatsHistory.java | 83 private long[] rxBytes; field in NetworkStatsHistory 99 public long rxBytes; field in NetworkStatsHistory.Entry 122 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize]; in NetworkStatsHistory() 141 rxBytes = readLongArray(in); in NetworkStatsHistory() 155 writeLongArray(out, rxBytes, bucketCount); in writeToParcel() 169 rxBytes = readFullLongArray(in); in NetworkStatsHistory() 175 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 184 rxBytes = readVarLongArray(in); in NetworkStatsHistory() 190 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 198 if (bucketStart.length != bucketCount || rxBytes.length != bucketCount in NetworkStatsHistory() [all …]
|
D | NetworkStats.java | 136 private long[] rxBytes; field in NetworkStats 174 public long rxBytes; 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() 193 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, 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 209 this.rxBytes = rxBytes; 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 | 60 return stats->rxBytes; in getStatsType() 85 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 90 "%*u %" SCNu64 " %*u %*u %*u %*u", cur_iface, &rxBytes, in parseIfaceStats() 97 stats->rxBytes += rxBytes; in parseIfaceStats() 129 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 135 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats() 138 stats->rxBytes += rxBytes; in parseUidStats()
|
D | com_android_server_net_NetworkStatsFactory.cpp | 55 jfieldID rxBytes; member 188 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in legacyReadNetworkStatsDetail() 234 ScopedLongArrayRW rxBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 235 gNetworkStatsClassInfo.rxBytes, size, grow)); in statsLinesToNetworkStats() 236 if (rxBytes.get() == NULL) return -1; in statsLinesToNetworkStats() 258 rxBytes[i] = lines[i].rxBytes; in statsLinesToNetworkStats() 275 env->SetObjectField(stats, gNetworkStatsClassInfo.rxBytes, rxBytes.getJavaArray()); in statsLinesToNetworkStats() 352 gNetworkStatsClassInfo.rxBytes = env->GetFieldID(clazz, "rxBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 87 assertEquals(29143L, entry.rxBytes); in testReadOriginalVersion() 91 assertEquals(1476L, entry.rxBytes); in testReadOriginalVersion() 95 assertEquals(332401L, entry.rxBytes); in testReadOriginalVersion() 341 entry.rxBytes = nextPositiveLong(r); in testFuzzing() 525 entry.rxBytes /= 2; in testSetValues() 558 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 560 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); 565 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 567 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); 572 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { [all …]
|
D | NetworkStatsTest.java | 929 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument 934 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 938 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 942 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 957 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument 959 assertEquals(rxBytes, entry.rxBytes); in assertValues()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | OffloadHardwareInterface.java | 71 public long rxBytes; field in OffloadHardwareInterface.ForwardedStats 75 rxBytes = 0; in ForwardedStats() 80 rxBytes += other.rxBytes; in add() 85 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString() 164 (long rxBytes, long txBytes) -> { in getForwardedStats() 165 stats.rxBytes = (rxBytes > 0) ? rxBytes : 0; in getForwardedStats()
|
D | OffloadController.java | 277 entry.rxBytes = value.rxBytes; in getTetherStats()
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 95 long rxBytes = 0; in reportStats() local 110 rxBytes += statsEntry.rxBytes; in reportStats() 114 result.putLong("Total rx Bytes", rxBytes); in reportStats()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 201 entry.rxBytes = 32; in testStartEndAtomicBuckets() 223 entry.rxBytes = 32; in testAccessLevels() 228 entry.rxBytes = 64; in testAccessLevels() 233 entry.rxBytes = 128; in testAccessLevels() 238 entry.rxBytes = 256; in testAccessLevels() 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 [all …]
|
D | NetworkStatsFactoryTest.java | 252 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument 260 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry() 274 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 282 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry()
|
D | NetworkStatsServiceTest.java | 1144 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal() argument 1146 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 1150 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, 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() 1162 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, 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 | 41 recycle.rxBytes = 60000; in setUp() 55 recycle.rxBytes = 90000 * mSize; in setUp()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsFactory.java | 191 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 198 entry.rxBytes += reader.nextLong(); in readNetworkStatsSummaryDev() 249 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryXt() 376 entry.rxBytes = 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() 314 final long rawRxBytes = entry.rxBytes; in getHistory() 326 entry.rxBytes = multiplySafe(targetRxBytes, entry.rxBytes, rawRxBytes); in getHistory() 383 entry.rxBytes = historyEntry.rxBytes; in getSummary() 405 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
D | NetworkStatsService.java | 734 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, entry.rxBytes, entry.rxPackets, in internalGetSummaryForNetwork() 1015 return entry.rxBytes; 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 | 251 entry.rxBytes = Math.max(entry.rxBytes, 0); in recordSnapshotLocked()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 332 totalStats.rxBytes += statsEntry.rxBytes; in addStatsToResults() 339 results.putLong(label + "rx", totalStats.rxBytes); in addStatsToResults()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 390 assertEquals(stats.rxBytes, entry.rxBytes); in assertNetworkStats() 408 ethernetStats.rxBytes = 12345; in testGetForwardedStats() 412 mobileStats.rxBytes = 999; in testGetForwardedStats() 437 ethernetStats.rxBytes = 100000; in testGetForwardedStats() 472 ethernetStats.rxBytes = 12345 + 100000; in testGetForwardedStats()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 149 bundle.putLong(REPORT_KEY_BYTES_RECEIVED, entry.rxBytes); in getBandwidthStats()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 618 bucketOut.mRxBytes = mRecycledSummaryEntry.rxBytes; in fillBucketFromSummaryEntry() 670 bucketOut.mRxBytes = mRecycledHistoryEntry.rxBytes; in getNextHistoryBucket()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 208 assertEquals(expected.rxBytes, actual.getRxBytes()); 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 | 10738 Slog.d(TAG, "Wifi uid " + entry.uid + ": delta rx=" + entry.rxBytes in updateWifiState() 10743 if (entry.rxBytes == 0 && entry.txBytes == 0) { in updateWifiState() 10749 if (entry.rxBytes != 0) { in updateWifiState() 10750 u.noteNetworkActivityLocked(NETWORK_WIFI_RX_DATA, entry.rxBytes, in updateWifiState() 10753 u.noteNetworkActivityLocked(NETWORK_WIFI_BG_RX_DATA, entry.rxBytes, in updateWifiState() 10757 entry.rxBytes); in updateWifiState() 11086 Slog.d(TAG, "Mobile uid " + entry.uid + ": delta rx=" + entry.rxBytes in updateMobileRadioState() 11095 u.noteNetworkActivityLocked(NETWORK_MOBILE_RX_DATA, entry.rxBytes, in updateMobileRadioState() 11101 entry.rxBytes, entry.rxPackets); in updateMobileRadioState() 11107 entry.rxBytes); in updateMobileRadioState() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1580 entry.rxBytes = tetherStats.rxBytes; in getTetherStats()
|