Home
last modified time | relevance | path

Searched refs:rxPackets (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java40 public final long rxPackets; field in TetheringUtils.ForwardedStats
46 rxPackets = 0; in ForwardedStats()
53 this.rxPackets = 0; in ForwardedStats()
58 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument
60 this.rxPackets = rxPackets; in ForwardedStats()
67 rxPackets = tetherStats.rxPackets; in ForwardedStats()
74 rxPackets = other.rxPackets; in ForwardedStats()
82 return new ForwardedStats(rxBytes + other.rxBytes, rxPackets + other.rxPackets, in add()
91 final long rxPacketsDiff = Math.max(rxPackets - other.rxPackets, 0); in subtract()
101 rxPackets, txBytes, txPackets); in toString()
/frameworks/base/core/java/android/net/
DNetworkStats.java243 private long[] rxPackets; field in NetworkStats
298 public long rxPackets; 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()
322 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, 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
368 this.rxPackets = rxPackets; 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 …]
DNetworkStatsHistory.java85 private long[] rxPackets; field in NetworkStatsHistory
102 public long rxPackets; field in NetworkStatsHistory.Entry
124 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory()
143 rxPackets = readLongArray(in); in NetworkStatsHistory()
157 writeLongArray(out, rxPackets, bucketCount); in writeToParcel()
171 rxPackets = new long[bucketStart.length]; in NetworkStatsHistory()
186 rxPackets = readVarLongArray(in); in NetworkStatsHistory()
200 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory()
212 writeVarLongArray(out, rxPackets, bucketCount); in writeToStream()
296 entry.rxPackets = getLong(rxPackets, i, UNKNOWN); in getValues()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp61 return stats->rxPackets; in getStatsType()
84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
90 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats()
97 stats->rxPackets += rxPackets; in parseIfaceStats()
128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
134 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats()
138 stats->rxPackets += rxPackets; in parseUidStats()
Dcom_android_server_net_NetworkStatsFactory.cpp57 jfieldID rxPackets; member
189 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in legacyReadNetworkStatsDetail()
238 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, in statsLinesToNetworkStats() local
239 gNetworkStatsClassInfo.rxPackets, size, grow)); in statsLinesToNetworkStats()
240 if (rxPackets.get() == NULL) return -1; in statsLinesToNetworkStats()
260 rxPackets[i] = lines[i].rxPackets; in statsLinesToNetworkStats()
277 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray()); in statsLinesToNetworkStats()
354 gNetworkStatsClassInfo.rxPackets = env->GetFieldID(clazz, "rxPackets", "[J"); in register_android_server_net_NetworkStatsFactory()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsBaseTest.java52 long rxPackets, long txBytes, long txPackets) { in assertValues() argument
55 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues()
59 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
105 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertValues()
DNetworkStatsCollectionTest.java555 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()
583 assertEntry(expected, new NetworkStats.Entry(actual.rxBytes, actual.rxPackets, in assertEntry()
590 assertEquals("unexpected rxPackets", expected.rxPackets, actual.rxPackets); in assertEntry()
DNetworkStatsFactoryTest.java548 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
550 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry()
554 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument
565 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertStatsEntry()
DNetworkStatsServiceTest.java1313 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets,
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);
1331 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets,
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/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java97 long rxPackets = 0; in reportStats() local
109 rxPackets += statsEntry.rxPackets; in reportStats()
116 result.putLong("Total rx Packets", rxPackets); in reportStats()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java342 entry.rxPackets = nextPositiveLong(r); in testFuzzing()
572 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
576 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
583 long rxPackets, long txBytes, long txPackets, long operations) {
584 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes,
589 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets,
594 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
DNetworkStatsTest.java986 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument
991 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
995 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
999 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
1014 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument
1017 assertEquals(rxPackets, entry.rxPackets); in assertValues()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java53 recycle.rxPackets = 60; in setUp()
69 recycle.rxPackets = 40 * mSize; in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java64 public void updatePacketRates(long txPackets, long rxPackets, long timeStamp) { in updatePacketRates() argument
65 update(SOURCE_TRAFFIC_COUNTERS, txPackets, 0, 0, rxPackets, timeStamp); in updatePacketRates()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsFactory.java218 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev()
225 entry.rxPackets += reader.nextLong(); in readNetworkStatsSummaryDev()
276 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryXt()
432 entry.rxPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
DNetworkStatsRecorder.java237 entry.rxPackets = Math.max(entry.rxPackets, 0); in recordSnapshotLocked()
DNetworkStatsService.java850 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, entry.rxBytes, entry.rxPackets,
1126 return entry.rxPackets;
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,
DNetworkStatsCollection.java306 entry.rxPackets = 0; in getHistory()
360 entry.rxPackets = historyEntry.rxPackets; in getSummary()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java162 @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
174 parcel.rxPackets = rxPackets; in buildTestTetherStatsParcel()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java619 bucketOut.mRxPackets = mRecycledSummaryEntry.rxPackets; in fillBucketFromSummaryEntry()
671 bucketOut.mRxPackets = mRecycledHistoryEntry.rxPackets; in getNextHistoryBucket()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java151 bundle.putLong(REPORT_KEY_PACKETS_RECEIVED, entry.rxPackets); in getBandwidthStats()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java208 assertEquals(expected.rxPackets, actual.getRxPackets()); in assertBucketMatches()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java675 ROAMING_NO, DEFAULT_NETWORK_NO, diff.rxBytes, diff.rxPackets, in buildNetworkStats()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java10740 SparseLongArray rxPackets = new SparseLongArray(); in updateWifiState() local
10752 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState()
10764 entry.rxPackets); in updateWifiState()
10767 entry.rxPackets); in updateWifiState()
10772 entry.rxPackets); in updateWifiState()
10774 rxPackets.put(u.getUid(), entry.rxPackets); in updateWifiState()
10778 totalRxPackets += entry.rxPackets; in updateWifiState()
10939 for (int i = 0; i < rxPackets.size(); i++) { in updateWifiState()
10940 final Uid uid = getUidStatsLocked(rxPackets.keyAt(i)); in updateWifiState()
10941 final long myRxTimeMs = (rxPackets.valueAt(i) * leftOverRxTimeMs) in updateWifiState()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1516 entry.rxPackets = tetherStats.rxPackets; in getTetherStats()

12