Home
last modified time | relevance | path

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

12

/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java42 public final long txPackets; field in TetheringUtils.ForwardedStats
48 txPackets = 0; in ForwardedStats()
55 this.txPackets = 0; in ForwardedStats()
58 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument
62 this.txPackets = txPackets; in ForwardedStats()
69 txPackets = tetherStats.txPackets; in ForwardedStats()
76 txPackets = other.txPackets; in ForwardedStats()
83 txBytes + other.txBytes, txPackets + other.txPackets); in add()
93 final long txPacketsDiff = Math.max(txPackets - other.txPackets, 0); in subtract()
101 rxPackets, txBytes, txPackets); in toString()
/frameworks/base/core/java/android/net/
DNetworkStats.java247 private long[] txPackets; field in NetworkStats
304 public long txPackets; 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()
323 long txBytes, long txPackets, long operations) { 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
370 this.txPackets = txPackets; 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.java87 private long[] txPackets; field in NetworkStatsHistory
106 public long txPackets; field in NetworkStatsHistory.Entry
126 if ((fields & FIELD_TX_PACKETS) != 0) txPackets = new long[initialSize]; in NetworkStatsHistory()
145 txPackets = readLongArray(in); in NetworkStatsHistory()
159 writeLongArray(out, txPackets, bucketCount); in writeToParcel()
173 txPackets = new long[bucketStart.length]; in NetworkStatsHistory()
188 txPackets = readVarLongArray(in); in NetworkStatsHistory()
201 || txPackets.length != bucketCount || operations.length != bucketCount) { in NetworkStatsHistory()
214 writeVarLongArray(out, txPackets, bucketCount); in writeToStream()
298 entry.txPackets = getLong(txPackets, i, UNKNOWN); in getValues()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp65 return stats->txPackets; in getStatsType()
84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
90 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats()
99 stats->txPackets += txPackets; in parseIfaceStats()
128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
135 &txBytes, &txPackets) == 9) { in parseUidStats()
140 stats->txPackets += txPackets; in parseUidStats()
Dcom_android_server_net_NetworkStatsFactory.cpp59 jfieldID txPackets; member
190 &s.txBytes, &s.txPackets) == 6) { in legacyReadNetworkStatsDetail()
244 ScopedLongArrayRW txPackets(env, get_long_array(env, stats, in statsLinesToNetworkStats() local
245 gNetworkStatsClassInfo.txPackets, size, grow)); in statsLinesToNetworkStats()
246 if (txPackets.get() == NULL) return -1; in statsLinesToNetworkStats()
262 txPackets[i] = lines[i].txPackets; in statsLinesToNetworkStats()
279 env->SetObjectField(stats, gNetworkStatsClassInfo.txPackets, txPackets.getJavaArray()); in statsLinesToNetworkStats()
356 gNetworkStatsClassInfo.txPackets = env->GetFieldID(clazz, "txPackets", "[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()
60 long txBytes, long txPackets, long operations) { in assertValues() argument
107 assertEquals("unexpected txPackets", txPackets, entry.txPackets); 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()
584 actual.txBytes, actual.txPackets, 0L)); in assertEntry()
592 assertEquals("unexpected txPackets", expected.txPackets, actual.txPackets); in assertEntry()
DNetworkStatsFactoryTest.java548 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
550 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry()
555 long txBytes, long txPackets) { in assertStatsEntry() argument
567 assertEquals("unexpected txPackets", txPackets, entry.txPackets); in assertStatsEntry()
DNetworkStatsServiceTest.java1314 long txBytes, long txPackets, int operations) throws Exception {
1316 txPackets, operations);
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);
1332 long txBytes, long txPackets, int operations) throws Exception {
1334 rxBytes, rxPackets, txBytes, txPackets, operations);
1339 long txPackets, int operations) throws Exception {
1344 txPackets, operations);
1350 rxBytes, rxPackets, txBytes, txPackets, operations);
[all …]
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java98 long txPackets = 0; in reportStats() local
111 txPackets += statsEntry.txPackets; in reportStats()
117 result.putLong("Total tx Packets", txPackets); in reportStats()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java344 entry.txPackets = nextPositiveLong(r); in testFuzzing()
572 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
578 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
583 long rxPackets, long txBytes, long txPackets, long operations) {
585 txPackets, operations);
589 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets,
596 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
DNetworkStatsTest.java987 long txBytes, long txPackets, long operations) { in assertContains() argument
991 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
996 long txBytes, long txPackets, long operations) { in assertValues() argument
999 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
1015 long txBytes, long txPackets, long operations) { in assertValues() argument
1019 assertEquals(txPackets, entry.txPackets); in assertValues()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java55 recycle.txPackets = 1500; in setUp()
71 recycle.txPackets = 1200 * 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.java220 entry.txPackets = reader.nextLong(); in readNetworkStatsSummaryDev()
227 entry.txPackets += reader.nextLong(); in readNetworkStatsSummaryDev()
278 entry.txPackets = reader.nextLong(); in readNetworkStatsSummaryXt()
434 entry.txPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
DNetworkStatsRecorder.java239 entry.txPackets = Math.max(entry.txPackets, 0); in recordSnapshotLocked()
DNetworkStatsService.java851 entry.txBytes, entry.txPackets, entry.operations));
1130 return entry.txPackets;
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.java307 entry.txPackets = 0; in getHistory()
362 entry.txPackets = historyEntry.txPackets; 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
176 parcel.txPackets = txPackets; in buildTestTetherStatsParcel()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java621 bucketOut.mTxPackets = mRecycledSummaryEntry.txPackets; in fillBucketFromSummaryEntry()
673 bucketOut.mTxPackets = mRecycledHistoryEntry.txPackets; in getNextHistoryBucket()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java152 bundle.putLong(REPORT_KEY_PACKETS_SENT, entry.txPackets); in getBandwidthStats()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java210 assertEquals(expected.txPackets, actual.getTxPackets()); in assertBucketMatches()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java676 diff.txBytes, diff.txPackets, 0L /* operations */)); in buildNetworkStats()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java10741 SparseLongArray txPackets = new SparseLongArray(); in updateWifiState() local
10753 + " txPackets=" + entry.txPackets); in updateWifiState()
10783 entry.txPackets); in updateWifiState()
10786 entry.txPackets); in updateWifiState()
10791 entry.txPackets); in updateWifiState()
10793 txPackets.put(u.getUid(), entry.txPackets); in updateWifiState()
10797 totalTxPackets += entry.txPackets; in updateWifiState()
10926 for (int i = 0; i < txPackets.size(); i++) { in updateWifiState()
10927 final Uid uid = getUidStatsLocked(txPackets.keyAt(i)); in updateWifiState()
10928 final long myTxTimeMs = (txPackets.valueAt(i) * leftOverTxTimeMs) in updateWifiState()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1518 entry.txPackets = tetherStats.txPackets; in getTetherStats()

12