Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkStats.java101 private long[] rxPackets; field in NetworkStats
124 public long rxPackets; field in NetworkStats.Entry
133 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
134 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry()
138 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument
140 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, rxBytes, rxPackets, txBytes, in Entry()
145 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
153 this.rxPackets = rxPackets; in Entry()
160 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative()
164 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty()
[all …]
DNetworkStatsHistory.java80 private long[] rxPackets; field in NetworkStatsHistory
93 public long rxPackets; field in NetworkStatsHistory.Entry
112 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory()
130 rxPackets = readLongArray(in); in NetworkStatsHistory()
144 writeLongArray(out, rxPackets, bucketCount); in writeToParcel()
158 rxPackets = new long[bucketStart.length]; in NetworkStatsHistory()
173 rxPackets = readVarLongArray(in); in NetworkStatsHistory()
187 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory()
199 writeVarLongArray(out, rxPackets, bucketCount); in writeToStream()
278 entry.rxPackets = getLong(rxPackets, i, UNKNOWN); in getValues()
[all …]
/frameworks/base/core/jni/
Dandroid_net_TrafficStats.cpp51 uint64_t rxPackets; member
63 return stats->rxPackets; in getStatsType()
86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats()
99 stats->rxPackets += rxPackets; in parseIfaceStats()
130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
136 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats()
140 stats->rxPackets += rxPackets; in parseUidStats()
Dcom_android_internal_net_NetworkStatsFactory.cpp49 jfieldID rxPackets; member
61 int64_t rxPackets; member
211 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in readNetworkStatsDetail()
252 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, in readNetworkStatsDetail() local
253 gNetworkStatsClassInfo.rxPackets, size, grow)); in readNetworkStatsDetail()
254 if (rxPackets.get() == NULL) return -1; in readNetworkStatsDetail()
274 rxPackets[i] = lines[i].rxPackets; in readNetworkStatsDetail()
289 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray()); in readNetworkStatsDetail()
322 gNetworkStatsClassInfo.rxPackets = GetFieldIDOrDie(env, clazz, "rxPackets", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
/frameworks/base/core/java/com/android/internal/net/
DNetworkStatsFactory.java118 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev()
125 entry.rxPackets += reader.nextLong(); in readNetworkStatsSummaryDev()
171 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryXt()
216 adjust.rxBytes -= (entry.rxBytes + entry.rxPackets * IPV4V6_HEADER_DELTA); in readNetworkStatsDetail()
218 adjust.rxPackets -= entry.rxPackets; in readNetworkStatsDetail()
235 entry.rxBytes = entry.rxPackets * IPV4V6_HEADER_DELTA; in readNetworkStatsDetail()
237 entry.rxPackets = 0; in readNetworkStatsDetail()
305 entry.rxPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
/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/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java239 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument
244 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotal()
248 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument
252 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotalIncludingTags()
256 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertEntry() argument
258 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertEntry()
DNetworkStatsServiceTest.java960 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal() argument
962 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
967 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument
970 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal()
975 rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal()
978 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, in assertUidTotal() argument
980 assertUidTotal(template, uid, SET_ALL, METERED_ALL, ROAMING_ALL, rxBytes, rxPackets, in assertUidTotal()
985 int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) in assertUidTotal() argument
990 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal()
996 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, rxBytes, rxPackets, in assertUidTotal()
[all …]
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java42 recycle.rxPackets = 60; in setUp()
56 recycle.rxPackets = 40 * mSize; in setUp()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java321 entry.rxPackets = nextPositiveLong(r); in testFuzzing()
528 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
532 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
539 long rxPackets, long txBytes, long txPackets, long operations) {
540 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes,
545 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets,
550 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
DNetworkStatsTest.java613 int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, in assertContains() argument
618 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
622 int tag, int metered, int roaming, long rxBytes, long rxPackets, long txBytes, in assertValues() argument
626 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
640 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument
643 assertEquals(rxPackets, entry.rxPackets); in assertValues()
/frameworks/base/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java242 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
250 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertStatsEntry()
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java233 public void updatePacketRates(long txPackets, long rxPackets) { in updatePacketRates() argument
239 if (txSuccess <= txPackets && rxSuccess <= rxPackets) { in updatePacketRates()
243 + ((double) (rxPackets - rxSuccess) * 0.5); in updatePacketRates()
249 rxSuccess = rxPackets; in updatePacketRates()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java547 bucketOut.mRxPackets = mRecycledSummaryEntry.rxPackets; in fillBucketFromSummaryEntry()
597 bucketOut.mRxPackets = mRecycledHistoryEntry.rxPackets; in getNextHistoryBucket()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java1181 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
1182 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
1183 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
1193 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
1194 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
1195 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
1408 entry.rxPackets = 0; in getNetworkStatsXtAndVt()
DNetworkStatsCollection.java254 entry.rxPackets = historyEntry.rxPackets; in getSummary()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java151 bundle.putLong(REPORT_KEY_PACKETS_RECEIVED, entry.rxPackets); in getBandwidthStats()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java213 .append(",rxPackets=").append(entry.rxPackets) in historyEntryToString()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java9488 SparseLongArray rxPackets = new SparseLongArray(); in updateWifiState() local
9500 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState()
9512 entry.rxPackets); in updateWifiState()
9515 entry.rxPackets); in updateWifiState()
9520 entry.rxPackets); in updateWifiState()
9522 rxPackets.put(u.getUid(), entry.rxPackets); in updateWifiState()
9526 totalRxPackets += entry.rxPackets; in updateWifiState()
9685 for (int i = 0; i < rxPackets.size(); i++) { in updateWifiState()
9686 final Uid uid = getUidStatsLocked(rxPackets.keyAt(i)); in updateWifiState()
9687 final long myRxTimeMs = (rxPackets.valueAt(i) * leftOverRxTimeMs) in updateWifiState()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1807 entry.rxPackets = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()