/frameworks/base/packages/Tethering/src/android/net/util/ |
D | TetheringUtils.java | 41 public final long txBytes; field in TetheringUtils.ForwardedStats 47 txBytes = 0; in ForwardedStats() 51 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument 54 this.txBytes = txBytes; in ForwardedStats() 58 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument 61 this.txBytes = txBytes; in ForwardedStats() 68 txBytes = tetherStats.txBytes; in ForwardedStats() 75 txBytes = other.txBytes; in ForwardedStats() 83 txBytes + other.txBytes, txPackets + other.txPackets); in add() 92 final long txBytesDiff = Math.max(txBytes - other.txBytes, 0); in subtract() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkStatsHistory.java | 86 private long[] txBytes; field in NetworkStatsHistory 104 public long txBytes; field in NetworkStatsHistory.Entry 125 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory() 144 txBytes = readLongArray(in); in NetworkStatsHistory() 158 writeLongArray(out, txBytes, bucketCount); in writeToParcel() 172 txBytes = readFullLongArray(in); in NetworkStatsHistory() 176 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 187 txBytes = readVarLongArray(in); in NetworkStatsHistory() 191 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory() 200 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() [all …]
|
D | NetworkStats.java | 245 private long[] txBytes; field in NetworkStats 301 public long txBytes; field in NetworkStats.Entry 316 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 317 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 323 long txBytes, long txPackets, long operations) { in Entry() argument 325 rxBytes, rxPackets, txBytes, txPackets, operations); in Entry() 359 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 369 this.txBytes = txBytes; in Entry() 376 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 381 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsService.cpp | 63 return stats->txBytes; in getStatsType() 84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 90 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats() 98 stats->txBytes += txBytes; in parseIfaceStats() 128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 135 &txBytes, &txPackets) == 9) { in parseUidStats() 139 stats->txBytes += txBytes; in parseUidStats()
|
D | com_android_server_net_NetworkStatsFactory.cpp | 58 jfieldID txBytes; member 190 &s.txBytes, &s.txPackets) == 6) { in legacyReadNetworkStatsDetail() 241 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 242 gNetworkStatsClassInfo.txBytes, size, grow)); in statsLinesToNetworkStats() 243 if (txBytes.get() == NULL) return -1; in statsLinesToNetworkStats() 261 txBytes[i] = lines[i].txBytes; in statsLinesToNetworkStats() 278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in statsLinesToNetworkStats() 355 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 | 987 long txBytes, long txPackets, long operations) { in assertContains() argument 991 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 996 long txBytes, long txPackets, long operations) { in assertValues() argument 999 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 1015 long txBytes, long txPackets, long operations) { in assertValues() argument 1018 assertEquals(txBytes, entry.txBytes); in assertValues()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsBaseTest.java | 52 long rxPackets, long txBytes, long txPackets) { in assertValues() argument 55 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues() 60 long txBytes, long txPackets, long operations) { in assertValues() argument 106 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertValues()
|
D | NetworkStatsFactoryTest.java | 526 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument 535 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry() 548 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 550 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry() 555 long txBytes, long txPackets) { in assertStatsEntry() argument 566 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
|
D | NetworkStatsCollectionTest.java | 555 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument 560 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal() 564 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 568 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags() 571 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 573 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 576 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 578 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 584 actual.txBytes, actual.txPackets, 0L)); in assertEntry() 591 assertEquals("unexpected txBytes", expected.txBytes, actual.txBytes); in assertEntry()
|
D | NetworkStatsServiceTest.java | 1314 long txBytes, long txPackets, int operations) throws Exception { 1315 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 1320 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { 1323 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); 1328 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 1332 long txBytes, long txPackets, int operations) throws Exception { 1334 rxBytes, rxPackets, txBytes, txPackets, operations); 1338 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, 1343 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 1350 rxBytes, rxPackets, txBytes, txPackets, operations); [all …]
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadHardwareInterface.java | 115 public long txBytes; field in OffloadHardwareInterface.ForwardedStats 119 txBytes = 0; in ForwardedStats() 123 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument 125 this.txBytes = txBytes; in ForwardedStats() 131 txBytes += other.txBytes; in add() 136 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString() 357 (long rxBytes, long txBytes) -> { in getForwardedStats() 359 stats.txBytes = (txBytes > 0) ? txBytes : 0; in getForwardedStats()
|
D | OffloadController.java | 314 ROAMING_NO, DEFAULT_NETWORK_NO, value.rxBytes, 0L, value.txBytes, 0L, 0L); in getTetherStats() 402 final long usedAlertQuota = diff.rxBytes + diff.txBytes; in maybeUpdateStats()
|
D | BpfCoordinator.java | 676 diff.txBytes, diff.txPackets, 0L /* operations */)); in buildNetworkStats() 700 usedAlertQuota += diff.rxBytes + diff.txBytes; in updateQuotaAndStatsFromSnapshot()
|
/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/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 54 recycle.txBytes = 150000; in setUp() 70 recycle.txBytes = 180000 * mSize; in setUp()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 279 if (entry.rxBytes == 0 || entry.txBytes == 0) { in getHistory() 285 final long rawBytes = entry.rxBytes + entry.txBytes; in getHistory() 287 final long rawTxBytes = entry.txBytes == 0 ? 1 : entry.txBytes; in getHistory() 302 entry.txBytes = multiplySafeByRational( in getHistory() 303 targetTxBytes, entry.txBytes, rawTxBytes); in getHistory() 361 entry.txBytes = historyEntry.txBytes; in getSummary() 381 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
D | NetworkStatsFactory.java | 219 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 226 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev() 277 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt() 433 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
|
D | NetworkStatsRecorder.java | 238 entry.txBytes = Math.max(entry.txBytes, 0); in recordSnapshotLocked()
|
D | NetworkStatsService.java | 851 entry.txBytes, entry.txPackets, entry.operations)); 1128 return entry.txBytes; 1595 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1596 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1597 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, 1607 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1608 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1609 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
|
/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/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 162 @NonNull String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestEntry() argument 165 rxPackets, txBytes, txPackets, 0L); in buildTestEntry() 170 long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestTetherStatsParcel() argument 175 parcel.txBytes = txBytes; in buildTestTetherStatsParcel()
|
/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/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 209 assertEquals(expected.txBytes, actual.getTxBytes()); in assertBucketMatches()
|