Home
last modified time | relevance | path

Searched refs:txPackets (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Connectivity/Tethering/src/android/net/util/
DTetheringUtils.java70 public final long txPackets; field in TetheringUtils.ForwardedStats
76 txPackets = 0; in ForwardedStats()
83 this.txPackets = 0; in ForwardedStats()
86 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument
90 this.txPackets = txPackets; in ForwardedStats()
97 txPackets = tetherStats.txPackets; in ForwardedStats()
104 txPackets = tetherStats.txPackets; in ForwardedStats()
111 txPackets = other.txPackets; in ForwardedStats()
118 txBytes + other.txBytes, txPackets + other.txPackets); in add()
128 final long txPacketsDiff = Math.max(txPackets - other.txPackets, 0); in subtract()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetherStatsValue.java35 public final long txPackets; field in TetherStatsValue
42 final long txPackets, final long txBytes, final long txErrors) { in TetherStatsValue() argument
46 this.txPackets = txPackets; in TetherStatsValue()
63 && txPackets == that.txPackets in equals()
71 ^ Long.hashCode(txPackets) ^ Long.hashCode(txBytes) ^ Long.hashCode(txErrors); in hashCode()
77 + "txBytes: %s, txErrors: %s", rxPackets, rxBytes, rxErrors, txPackets, in toString()
DBpfCoordinator.java1789 diff.txBytes, diff.txPackets, 0L /* operations */)); in buildNetworkStats()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsBaseTest.java53 long rxPackets, long txBytes, long txPackets) { in assertValues() argument
56 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues()
61 long txBytes, long txPackets, long operations) { in assertValues() argument
108 assertEquals("unexpected txPackets", txPackets, entry.txPackets); in assertValues()
DNetworkStatsCollectionTest.java558 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument
563 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal()
567 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument
571 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags()
574 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument
576 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry()
579 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument
581 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry()
587 actual.txBytes, actual.txPackets, 0L)); in assertEntry()
595 assertEquals("unexpected txPackets", expected.txPackets, actual.txPackets); in assertEntry()
DNetworkStatsFactoryTest.java554 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
556 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry()
561 long txBytes, long txPackets) { in assertStatsEntry() argument
573 assertEquals("unexpected txPackets", txPackets, entry.txPackets); in assertStatsEntry()
DNetworkStatsServiceTest.java1608 long txBytes, long txPackets, int operations) throws Exception {
1610 txPackets, operations);
1614 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
1617 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
1622 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
1626 long txBytes, long txPackets, int operations) throws Exception {
1628 rxBytes, rxPackets, txBytes, txPackets, operations);
1633 long txPackets, int operations) throws Exception {
1638 txPackets, operations);
1644 rxBytes, rxPackets, txBytes, txPackets, operations);
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java347 entry.txPackets = nextPositiveLong(r); in testFuzzing()
575 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
581 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
586 long rxPackets, long txBytes, long txPackets, long operations) {
588 txPackets, operations);
592 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets,
599 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
DNetworkStatsTest.java1042 long txBytes, long txPackets, long operations) { in assertContains() argument
1046 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
1051 long txBytes, long txPackets, long operations) { in assertValues() argument
1054 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
1070 long txBytes, long txPackets, long operations) { in assertValues() argument
1074 assertEquals(txPackets, entry.txPackets); in assertValues()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java71 public void updatePacketRates(long txPackets, long rxPackets, long timeStamp) { in updatePacketRates() argument
72 update(SOURCE_TRAFFIC_COUNTERS, txPackets, 0, 0, rxPackets, timeStamp); in updatePacketRates()
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/
DBpfCoordinatorShimImpl.java131 0 /* rxErrors */, p.txPackets, p.txBytes, 0 /* txErrors */)); in toTetherStatsValueSparseArray()
144 stats.txPackets, stats.txBytes, 0 /* txErrors */); in tetherOffloadGetAndClearStats()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java345 @NonNull String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestEntry() argument
348 rxPackets, txBytes, txPackets, 0L); in buildTestEntry()
353 long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestTetherStatsParcel() argument
359 parcel.txPackets = txPackets; in buildTestTetherStatsParcel()
367 0L /* rxErrors */, stats.txPackets, stats.txBytes, 0L /* txErrors */); in updateStatsEntryToStatsMap()
/packages/modules/Connectivity/Tethering/bpf_progs/
Dbpf_tethering.h86 uint64_t txPackets; member
Doffload.c264 __sync_fetch_and_add(downstream ? &stat_v->rxPackets : &stat_v->txPackets, packets);
613 __sync_fetch_and_add(downstream ? &stat_v->rxPackets : &stat_v->txPackets, packets); in do_forward4()
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java228 assertEquals(expected.txPackets, actual.getTxPackets()); in assertBucketMatches()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DTrafficStatsTest.java240 assertInRange("txPackets detail", entry.txPackets, packetCount + minExpectedExtraPackets, in testTrafficStatsForLocalhost()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1176 long txPackets = TrafficStats.getMobileTxPackets(); in updateDataStats2() local
1184 mSent.setText(txPackets + " " + packets + ", " + txBytes + " " + bytes); in updateDataStats2()
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1085 Landroid/net/NetworkStatsHistory;->txPackets:[J