/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsHistory.java | 102 private long[] rxBytes; field in NetworkStatsHistory 111 long[] rxBytes, long[] rxPackets, long[] txBytes, long[] txPackets, in NetworkStatsHistory() argument 116 this.rxBytes = rxBytes; in NetworkStatsHistory() 143 public long rxBytes; field in NetworkStatsHistory.Entry 176 public Entry(long bucketStart, long activeTime, long rxBytes, in Entry() argument 180 this.rxBytes = rxBytes; in Entry() 203 return rxBytes; in getRxBytes() 232 && activeTime == entry.activeTime && rxBytes == entry.rxBytes in equals() 241 + rxBytes * 5 in hashCode() 253 + ", rxBytes=" + rxBytes in toString() [all …]
|
D | NetworkStats.java | 236 private long[] rxBytes; field in NetworkStats 290 public long rxBytes; field in NetworkStats.Entry 337 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 345 this.rxBytes = rxBytes; in Entry() 354 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 359 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() 365 this.rxBytes += another.rxBytes; in add() 429 return rxBytes; in getRxBytes() 485 private Entry setValues(long rxBytes, long rxPackets, long txBytes, long txPackets, in setValues() argument 487 this.rxBytes = rxBytes; in setValues() [all …]
|
D | NetworkStatsCollection.java | 327 if (entry.rxBytes == 0 || entry.txBytes == 0) { in getHistory() 334 final long rawBytes = (entry.rxBytes + entry.txBytes) == 0 ? 1 : in getHistory() 335 (entry.rxBytes + entry.txBytes); in getHistory() 336 final long rawRxBytes = entry.rxBytes == 0 ? 1 : entry.rxBytes; in getHistory() 350 entry.rxBytes = multiplySafeByRational( in getHistory() 351 targetRxBytes, entry.rxBytes, rawRxBytes); in getHistory() 416 entry.rxBytes = historyEntry.rxBytes; in getSummary() 439 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/util/ |
D | TetheringUtils.java | 73 public final long rxBytes; field in TetheringUtils.ForwardedStats 79 rxBytes = 0; in ForwardedStats() 85 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument 86 this.rxBytes = rxBytes; in ForwardedStats() 92 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument 93 this.rxBytes = rxBytes; in ForwardedStats() 100 rxBytes = tetherStats.rxBytes; in ForwardedStats() 107 rxBytes = tetherStats.rxBytes; in ForwardedStats() 114 rxBytes = other.rxBytes; in ForwardedStats() 123 return new ForwardedStats(rxBytes + other.rxBytes, rxPackets + other.rxPackets, in add() [all …]
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | BpfNetworkStatsTest.cpp | 125 EXPECT_EQ(target.rxBytes, result.rxBytes); in expectStatsEqual() 137 EXPECT_EQ(target.rxBytes, (uint64_t)result.rxBytes); in expectStatsLineEqual() 197 .rxBytes = 0, in TEST_F() 212 .rxBytes = TEST_BYTES0, in TEST_F() 218 .rxBytes = TEST_BYTES0 * 2, in TEST_F() 245 .rxBytes = TEST_BYTES0, in TEST_F() 251 .rxBytes = TEST_BYTES1, in TEST_F() 274 .rxBytes = TEST_BYTES0 * 2 + TEST_BYTES1, in TEST_F() 284 .rxBytes = TEST_BYTES0, in TEST_F() 300 .rxBytes = TEST_BYTES0, in TEST_F() [all …]
|
D | BpfNetworkStats.cpp | 143 newLine.rxBytes = statsEntry.rxBytes; in populateStatsEntry() 323 rxBytes = rhs.rxBytes; in operator =() 331 rxBytes += rhs.rxBytes; in operator +=()
|
/packages/modules/Connectivity/tests/unit/java/android/net/netstats/ |
D | NetworkStatsDataMigrationUtilsTest.kt | 74 var rxBytes = 0L in assertValues() variable 82 rxBytes += historyEntry.rxBytes in assertValues() 89 expectedRxBytes != rxBytes || in assertValues() 95 "rxb=$rxBytes rxp=$rxPackets") in assertValues() 97 assertEquals(txBytes + rxBytes, collection.totalBytes) in assertValues()
|
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | NetworkStatsIntegrationTest.kt | 355 val rxBytes: Long, in <lambda>() constant in com.android.server.net.integrationtests.NetworkStatsIntegrationTest.BareStats 362 this.rxBytes + other.rxBytes, in <lambda>() 371 this.rxBytes - other.rxBytes, in <lambda>() 380 rxBytes = txBytes, in <lambda>() 382 txBytes = rxBytes, in <lambda>() 387 return "BareStats{rx/txBytes=$rxBytes/$txBytes, rx/txPackets=$rxPackets/$txPackets}" in <lambda>() 394 if (rxBytes != other.rxBytes) return false in <lambda>() 403 return (rxBytes * 11 + rxPackets * 13 + txBytes * 17 + txPackets * 19).toInt() in <lambda>() 458 it.rxBytes, in <lambda>() 614 return value.rxBytes in lower.rxBytes..upper.rxBytes && in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 98 assertEquals(29143L, entry.rxBytes); in testReadOriginalVersion() 102 assertEquals(1476L, entry.rxBytes); in testReadOriginalVersion() 106 assertEquals(332401L, entry.rxBytes); in testReadOriginalVersion() 361 entry.rxBytes = nextPositiveLong(r); in testFuzzing() 558 entry.rxBytes /= 2; in testSetValues() 591 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 593 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); 598 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 600 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); 605 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { [all …]
|
D | NetworkStatsCollectionTest.java | 237 entry.rxBytes = 32; in testStartEndAtomicBuckets() 259 entry.rxBytes = 32; in testAccessLevels() 264 entry.rxBytes = 64; in testAccessLevels() 269 entry.rxBytes = 128; in testAccessLevels() 274 entry.rxBytes = 256; in testAccessLevels() 678 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument 683 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal() 687 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 691 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags() 694 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | StatsMapValue.java | 31 public final long rxBytes; field in StatsMapValue 39 public StatsMapValue(final long rxPackets, final long rxBytes, final long txPackets, in StatsMapValue() argument 42 this.rxBytes = rxBytes; in StatsMapValue()
|
/packages/modules/Connectivity/service-t/jni/ |
D | com_android_server_net_NetworkStatsFactory.cpp | 56 jfieldID rxBytes; member 123 ScopedLongArrayRW rxBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 124 gNetworkStatsClassInfo.rxBytes, size, grow)); in statsLinesToNetworkStats() 125 if (rxBytes.get() == NULL) return -1; in statsLinesToNetworkStats() 147 rxBytes[i] = lines[i].rxBytes; in statsLinesToNetworkStats() 164 env->SetObjectField(stats, gNetworkStatsClassInfo.rxBytes, rxBytes.getJavaArray()); in statsLinesToNetworkStats() 215 gNetworkStatsClassInfo.rxBytes = env->GetFieldID(clazz, "rxBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
|
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/ |
D | TetherStatsValue.java | 31 public final long rxBytes; field in TetherStatsValue 41 public TetherStatsValue(final long rxPackets, final long rxBytes, final long rxErrors, in TetherStatsValue() argument 44 this.rxBytes = rxBytes; in TetherStatsValue()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadHardwareInterface.java | 144 public long rxBytes; field in OffloadHardwareInterface.ForwardedStats 148 rxBytes = 0; in ForwardedStats() 153 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument 154 this.rxBytes = rxBytes; in ForwardedStats() 160 rxBytes += other.rxBytes; in add() 166 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString()
|
D | OffloadHalHidlImpl.java | 133 (long rxBytes, long txBytes) -> { in getForwardedStats() 134 stats.rxBytes = (rxBytes > 0) ? rxBytes : 0; in getForwardedStats()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsBaseTest.java | 53 void assertValues(NetworkStats stats, String iface, int uid, long rxBytes, in assertValues() argument 57 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues() 61 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 106 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertValues()
|
D | NetworkStatsFactoryTest.java | 541 entry.rxBytes = reader.nextLong(); in parseNetworkStatsFromGoldenSample() 548 entry.rxBytes += reader.nextLong(); in parseNetworkStatsFromGoldenSample() 580 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument 588 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry() 602 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 604 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry() 608 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument 618 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry()
|
D | NetworkStatsServiceTest.java | 380 private static TetherStatsParcel buildTetherStatsParcel(String iface, long rxBytes, in buildTetherStatsParcel() argument 384 parcel.rxBytes = rxBytes; in buildTetherStatsParcel() 2490 private void mockTrafficStatsValues(long rxBytes, long rxPackets, in mockTrafficStatsValues() argument 2496 rxBytes, rxPackets, txBytes, txPackets, 0L); in mockTrafficStatsValues() 2501 private void assertTrafficStatsValues(String iface, int uid, long rxBytes, long rxPackets, in assertTrafficStatsValues() argument 2503 assertTrafficStatsValuesThat(rxBytes, rxPackets, txBytes, txPackets, in assertTrafficStatsValues() 2505 assertTrafficStatsValuesThat(rxBytes, rxPackets, txBytes, txPackets, in assertTrafficStatsValues() 2507 assertTrafficStatsValuesThat(rxBytes, rxPackets, txBytes, txPackets, in assertTrafficStatsValues() 2511 private void assertTrafficStatsValuesThat(long rxBytes, long rxPackets, long txBytes, in assertTrafficStatsValuesThat() argument 2513 assertEquals(rxBytes, (long) fetcher.apply(TrafficStats.TYPE_RX_BYTES)); in assertTrafficStatsValuesThat() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 1238 long rxBytes = 4_000_000L; in makeUpdateLinkBandwidthExample() local 1241 addTotalBytes(txBytes, rxBytes); in makeUpdateLinkBandwidthExample() 1247 rxBytes = 1000L; in makeUpdateLinkBandwidthExample() 1249 addTotalBytes(txBytes, rxBytes); in makeUpdateLinkBandwidthExample() 1597 private void addTotalBytes(long txBytes, long rxBytes) { in addTotalBytes() argument 1599 mTotalRxBytes += rxBytes; in addTotalBytes() 1602 private void subtractTotalBytes(long txBytes, long rxBytes) { in subtractTotalBytes() argument 1604 mTotalRxBytes -= rxBytes; in subtractTotalBytes() 1625 long rxBytes = 4_000_000L; in testLinkBandwidthTwoRadioStatsVariousTxTraffic() local 1627 addTotalBytes(txBytes, rxBytes); in testLinkBandwidthTwoRadioStatsVariousTxTraffic() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | NetworkStatsUtilsTest.kt | 105 rxBytes: Long, in makeMockBucket() 118 doReturn(rxBytes).`when`(ret).getRxBytes() in makeMockBucket() 136 assertEquals(left.rxBytes, right.rxBytes) in assertEntryEquals()
|
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
D | BpfCoordinatorShimImpl.java | 248 long rxBytes, txBytes; in tetherOffloadSetInterfaceQuota() local 262 rxBytes = statsValue.rxBytes; in tetherOffloadSetInterfaceQuota() 277 rxBytes = 0; in tetherOffloadSetInterfaceQuota() 282 long newLimit = rxBytes + txBytes + quotaBytes; in tetherOffloadSetInterfaceQuota() 285 if (newLimit < rxBytes + txBytes) newLimit = QUOTA_UNLIMITED; in tetherOffloadSetInterfaceQuota()
|
/packages/modules/Connectivity/bpf_progs/ |
D | netd.h | 53 uint64_t rxBytes; member 62 lhs.rxBytes += rhs.rxBytes;
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiDataStall.java | 327 long txBytes, long rxBytes) { in checkDataStallAndThroughputSufficiency() argument 430 isTxTrafficHigh, isRxTrafficHigh, timeDeltaLastTwoPollsMs, txBytes, rxBytes); in checkDataStallAndThroughputSufficiency() 528 long txBytes, long rxBytes) { in isThroughputSufficientInternal() argument 532 mLastRxBytes = rxBytes; in isThroughputSufficientInternal() 537 int l3RxTputKbps = (int) ((rxBytes - mLastRxBytes) * 8 / timeDeltaLastTwoPollsMs); in isThroughputSufficientInternal() 540 mLastRxBytes = rxBytes; in isThroughputSufficientInternal()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/ |
D | FakeNetworkStats.java | 66 long rxBytes, in CustomBucket() argument 72 mRxBytes = rxBytes; in CustomBucket()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/ |
D | BpfNetworkStats.h | 46 int64_t rxBytes; member 95 *unknownIfaceBytesTotal += (statsEntry.value().rxBytes + statsEntry.value().txBytes); in maybeLogUnknownIface()
|