Home
last modified time | relevance | path

Searched refs:txBytes (Results 1 – 25 of 73) sorted by relevance

123

/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsHistory.java104 private long[] txBytes; field in NetworkStatsHistory
111 long[] rxBytes, long[] rxPackets, long[] txBytes, long[] txPackets, in NetworkStatsHistory() argument
118 this.txBytes = txBytes; in NetworkStatsHistory()
149 public long txBytes; field in NetworkStatsHistory.Entry
177 long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
182 this.txBytes = txBytes; in Entry()
213 return txBytes; in getTxBytes()
233 && rxPackets == entry.rxPackets && txBytes == entry.txBytes in equals()
243 + txBytes * 11 in hashCode()
255 + ", txBytes=" + txBytes in toString()
[all …]
DNetworkStats.java240 private long[] txBytes; field in NetworkStats
296 public long txBytes; field in NetworkStats.Entry
337 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
347 this.txBytes = txBytes; 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()
367 this.txBytes += another.txBytes; in add()
443 return txBytes; in getTxBytes()
485 private Entry setValues(long rxBytes, long rxPackets, long txBytes, long txPackets, in setValues() argument
489 this.txBytes = txBytes; in setValues()
[all …]
DNetworkStatsCollection.java327 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()
337 final long rawTxBytes = entry.txBytes == 0 ? 1 : entry.txBytes; in getHistory()
352 entry.txBytes = multiplySafeByRational( in getHistory()
353 targetTxBytes, entry.txBytes, rawTxBytes); in getHistory()
418 entry.txBytes = historyEntry.txBytes; in getSummary()
439 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/util/
DTetheringUtils.java75 public final long txBytes; field in TetheringUtils.ForwardedStats
81 txBytes = 0; in ForwardedStats()
85 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument
88 this.txBytes = txBytes; in ForwardedStats()
92 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument
95 this.txBytes = txBytes; in ForwardedStats()
102 txBytes = tetherStats.txBytes; in ForwardedStats()
109 txBytes = tetherStats.txBytes; in ForwardedStats()
116 txBytes = other.txBytes; in ForwardedStats()
124 txBytes + other.txBytes, txPackets + other.txPackets); in add()
[all …]
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DBpfNetworkStatsTest.cpp127 EXPECT_EQ(target.txBytes, result.txBytes); in expectStatsEqual()
139 EXPECT_EQ(target.txBytes, (uint64_t)result.txBytes); in expectStatsLineEqual()
199 .txBytes = 0, in TEST_F()
214 .txBytes = TEST_BYTES1, in TEST_F()
220 .txBytes = TEST_BYTES1 * 2, in TEST_F()
247 .txBytes = TEST_BYTES1, in TEST_F()
253 .txBytes = TEST_BYTES0, in TEST_F()
276 .txBytes = TEST_BYTES1 * 2 + TEST_BYTES0, in TEST_F()
286 .txBytes = TEST_BYTES1, in TEST_F()
302 .txBytes = TEST_BYTES1, in TEST_F()
[all …]
DBpfNetworkStats.cpp144 newLine.txBytes = statsEntry.txBytes; in populateStatsEntry()
324 txBytes = rhs.txBytes; in operator =()
332 txBytes += rhs.txBytes; in operator +=()
/packages/modules/Connectivity/tests/unit/java/android/net/netstats/
DNetworkStatsDataMigrationUtilsTest.kt72 var txBytes = 0L in assertValues() variable
80 txBytes += historyEntry.txBytes in assertValues()
87 expectedTxBytes != txBytes || in assertValues()
94 "size=${entries.size} txb=$txBytes txp=$txPackets " + in assertValues()
97 assertEquals(txBytes + rxBytes, collection.totalBytes) in assertValues()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt357 val txBytes: Long, in <lambda>() constant in com.android.server.net.integrationtests.NetworkStatsIntegrationTest.BareStats
364 this.txBytes + other.txBytes, in <lambda>()
373 this.txBytes - other.txBytes, 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>()
396 if (txBytes != other.txBytes) return false in <lambda>()
403 return (rxBytes * 11 + rxPackets * 13 + txBytes * 17 + txPackets * 19).toInt() in <lambda>()
460 it.txBytes, in <lambda>()
616 value.txBytes in lower.txBytes..upper.txBytes && in <lambda>()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java99 assertEquals(6223L, entry.txBytes); in testReadOriginalVersion()
103 assertEquals(838L, entry.txBytes); in testReadOriginalVersion()
107 assertEquals(64314L, entry.txBytes); in testReadOriginalVersion()
363 entry.txBytes = nextPositiveLong(r); in testFuzzing()
559 entry.txBytes *= 2; in testSetValues()
591 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
594 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
598 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
601 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
605 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
[all …]
DNetworkStatsCollectionTest.java678 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
697 ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, rxPackets, txBytes, txPackets, 0L), in assertEntry()
701 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument
704 ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, rxPackets, txBytes, txPackets, 0L), in assertEntry()
712 actual.txBytes, actual.txPackets, 0L)); in assertEntry()
719 actual.txBytes, actual.txPackets, 0L), in assertEntry()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DStatsMapValue.java37 public final long txBytes; field in StatsMapValue
40 final long txBytes) { in StatsMapValue() argument
44 this.txBytes = txBytes; in StatsMapValue()
/packages/modules/Connectivity/service-t/jni/
Dcom_android_server_net_NetworkStatsFactory.cpp58 jfieldID txBytes; member
129 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local
130 gNetworkStatsClassInfo.txBytes, size, grow)); in statsLinesToNetworkStats()
131 if (txBytes.get() == NULL) return -1; in statsLinesToNetworkStats()
149 txBytes[i] = lines[i].txBytes; in statsLinesToNetworkStats()
166 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in statsLinesToNetworkStats()
217 gNetworkStatsClassInfo.txBytes = env->GetFieldID(clazz, "txBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTetherStatsValue.java37 public final long txBytes; field in TetherStatsValue
42 final long txPackets, final long txBytes, final long txErrors) { in TetherStatsValue() argument
47 this.txBytes = txBytes; in TetherStatsValue()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java145 public long txBytes; field in OffloadHardwareInterface.ForwardedStats
149 txBytes = 0; in ForwardedStats()
153 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument
155 this.txBytes = txBytes; in ForwardedStats()
161 txBytes += other.txBytes; in add()
166 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString()
DOffloadHalHidlImpl.java133 (long rxBytes, long txBytes) -> { in getForwardedStats()
135 stats.txBytes = (txBytes > 0) ? txBytes : 0; in getForwardedStats()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsBaseTest.java54 long rxPackets, long txBytes, long txPackets) { in assertValues() argument
57 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues()
62 long txBytes, long txPackets, long operations) { in assertValues() argument
108 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertValues()
DNetworkStatsFactoryTest.java543 entry.txBytes = reader.nextLong(); in parseNetworkStatsFromGoldenSample()
550 entry.txBytes += reader.nextLong(); in parseNetworkStatsFromGoldenSample()
580 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument
589 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
602 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
604 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry()
609 long txBytes, long txPackets) { in assertStatsEntry() argument
620 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
DNetworkStatsServiceTest.java381 long rxPackets, long txBytes, long txPackets, int ifIndex) { in buildTetherStatsParcel() argument
386 parcel.txBytes = txBytes; in buildTetherStatsParcel()
2491 long txBytes, long txPackets) { in mockTrafficStatsValues() argument
2496 rxBytes, rxPackets, txBytes, txPackets, 0L); in mockTrafficStatsValues()
2502 long txBytes, long txPackets) { 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
2515 assertEquals(txBytes, (long) fetcher.apply(TrafficStats.TYPE_TX_BYTES)); in assertTrafficStatsValuesThat()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java1237 long txBytes = 2_000_000L; in makeUpdateLinkBandwidthExample() local
1241 addTotalBytes(txBytes, rxBytes); in makeUpdateLinkBandwidthExample()
1246 txBytes = 5_000_000L; in makeUpdateLinkBandwidthExample()
1249 addTotalBytes(txBytes, rxBytes); in makeUpdateLinkBandwidthExample()
1597 private void addTotalBytes(long txBytes, long rxBytes) { in addTotalBytes() argument
1598 mTotalTxBytes += txBytes; in addTotalBytes()
1602 private void subtractTotalBytes(long txBytes, long rxBytes) { in subtractTotalBytes() argument
1603 mTotalTxBytes -= txBytes; in subtractTotalBytes()
1624 long txBytes = 350_000L; in testLinkBandwidthTwoRadioStatsVariousTxTraffic() local
1627 addTotalBytes(txBytes, rxBytes); in testLinkBandwidthTwoRadioStatsVariousTxTraffic()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkStatsUtilsTest.kt107 txBytes: Long, in makeMockBucket()
120 doReturn(txBytes).`when`(ret).getTxBytes() in makeMockBucket()
138 assertEquals(left.txBytes, right.txBytes) in assertEntryEquals()
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java248 long rxBytes, txBytes; in tetherOffloadSetInterfaceQuota() local
263 txBytes = statsValue.txBytes; in tetherOffloadSetInterfaceQuota()
278 txBytes = 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/
Dnetd.h55 uint64_t txBytes; member
64 lhs.txBytes += rhs.txBytes;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDataStall.java327 long txBytes, long rxBytes) { in checkDataStallAndThroughputSufficiency() argument
430 isTxTrafficHigh, isRxTrafficHigh, timeDeltaLastTwoPollsMs, txBytes, rxBytes); in checkDataStallAndThroughputSufficiency()
528 long txBytes, long rxBytes) { in isThroughputSufficientInternal() argument
531 mLastTxBytes = txBytes; in isThroughputSufficientInternal()
536 int l3TxTputKbps = (int) ((txBytes - mLastTxBytes) * 8 / timeDeltaLastTwoPollsMs); in isThroughputSufficientInternal()
539 mLastTxBytes = txBytes; in isThroughputSufficientInternal()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/
DFakeNetworkStats.java67 long txBytes, in CustomBucket() argument
73 mTxBytes = txBytes; in CustomBucket()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/
DBpfNetworkStats.h48 int64_t txBytes; member
95 *unknownIfaceBytesTotal += (statsEntry.value().rxBytes + statsEntry.value().txBytes); in maybeLogUnknownIface()

123