/packages/modules/Connectivity/Tethering/src/android/net/util/ |
D | TetheringUtils.java | 68 public final long rxPackets; field in TetheringUtils.ForwardedStats 74 rxPackets = 0; in ForwardedStats() 81 this.rxPackets = 0; in ForwardedStats() 86 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument 88 this.rxPackets = rxPackets; in ForwardedStats() 95 rxPackets = tetherStats.rxPackets; in ForwardedStats() 102 rxPackets = tetherStats.rxPackets; in ForwardedStats() 109 rxPackets = other.rxPackets; in ForwardedStats() 117 return new ForwardedStats(rxBytes + other.rxBytes, rxPackets + other.rxPackets, in add() 126 final long rxPacketsDiff = Math.max(rxPackets - other.rxPackets, 0); in subtract() [all …]
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetherStatsValue.java | 29 public final long rxPackets; field in TetherStatsValue 41 public TetherStatsValue(final long rxPackets, final long rxBytes, final long rxErrors, in TetherStatsValue() argument 43 this.rxPackets = rxPackets; in TetherStatsValue() 60 return rxPackets == that.rxPackets in equals() 70 return Long.hashCode(rxPackets) ^ Long.hashCode(rxBytes) ^ Long.hashCode(rxErrors) in hashCode() 77 + "txBytes: %s, txErrors: %s", rxPackets, rxBytes, rxErrors, txPackets, in toString()
|
D | BpfCoordinator.java | 1788 ROAMING_NO, DEFAULT_NETWORK_NO, diff.rxBytes, diff.rxPackets, in buildNetworkStats()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsBaseTest.java | 53 long rxPackets, long txBytes, long txPackets) { in assertValues() argument 56 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues() 60 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 106 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertValues()
|
D | NetworkStatsCollectionTest.java | 558 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() 586 assertEntry(expected, new NetworkStats.Entry(actual.rxBytes, actual.rxPackets, in assertEntry() 593 assertEquals("unexpected rxPackets", expected.rxPackets, actual.rxPackets); in assertEntry()
|
D | NetworkStatsFactoryTest.java | 554 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 556 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry() 560 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument 571 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertStatsEntry()
|
D | NetworkStatsServiceTest.java | 1607 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, 1609 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 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); 1625 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, 1628 rxBytes, rxPackets, txBytes, txPackets, operations); 1632 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, 1637 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 1644 rxBytes, rxPackets, txBytes, txPackets, operations); [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 345 entry.rxPackets = nextPositiveLong(r); in testFuzzing() 575 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 579 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); 586 long rxPackets, long txBytes, long txPackets, long operations) { 587 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes, 592 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, 597 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
|
D | NetworkStatsTest.java | 1041 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument 1046 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 1050 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 1054 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 1069 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument 1072 assertEquals(rxPackets, entry.rxPackets); in assertValues()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ExtendedWifiInfo.java | 71 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/ |
D | BpfCoordinatorShimImpl.java | 130 tetherStatsList.put(p.ifIndex, new TetherStatsValue(p.rxPackets, p.rxBytes, in toTetherStatsValueSparseArray() 143 return new TetherStatsValue(stats.rxPackets, stats.rxBytes, 0 /* rxErrors */, in tetherOffloadGetAndClearStats()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 345 @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 357 parcel.rxPackets = rxPackets; in buildTestTetherStatsParcel() 366 final TetherStatsValue value = new TetherStatsValue(stats.rxPackets, stats.rxBytes, in updateStatsEntryToStatsMap()
|
/packages/modules/Connectivity/Tethering/bpf_progs/ |
D | bpf_tethering.h | 83 uint64_t rxPackets; member
|
D | offload.c | 264 __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/ |
D | NetworkStatsManagerTest.java | 226 assertEquals(expected.rxPackets, actual.getRxPackets()); in assertBucketMatches()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | TrafficStatsTest.java | 242 assertInRange("rxPackets detail", entry.rxPackets, packetCount + minExpectedExtraPackets, in testTrafficStatsForLocalhost()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | RadioInfo.java | 1177 long rxPackets = TrafficStats.getMobileRxPackets(); in updateDataStats2() local 1185 mReceived.setText(rxPackets + " " + packets + ", " + rxBytes + " " + bytes); in updateDataStats2()
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 1080 Landroid/net/NetworkStatsHistory;->rxPackets:[J
|