Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkStats.java74 private long[] rxPackets; field in NetworkStats
85 public long rxPackets; field in NetworkStats.Entry
94 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
95 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry()
99 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument
106 this.rxPackets = rxPackets; in Entry()
113 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative()
117 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty()
123 this.rxPackets += another.rxPackets; in add()
137 builder.append(" rxPackets=").append(rxPackets); in toString()
[all …]
DNetworkStatsHistory.java77 private long[] rxPackets; field in NetworkStatsHistory
90 public long rxPackets; field in NetworkStatsHistory.Entry
109 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory()
127 rxPackets = readLongArray(in); in NetworkStatsHistory()
141 writeLongArray(out, rxPackets, bucketCount); in writeToParcel()
155 rxPackets = new long[bucketStart.length]; in NetworkStatsHistory()
170 rxPackets = readVarLongArray(in); in NetworkStatsHistory()
184 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory()
196 writeVarLongArray(out, rxPackets, bucketCount); in writeToStream()
275 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.cpp46 jfieldID rxPackets; member
58 int64_t rxPackets; member
208 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in readNetworkStatsDetail()
243 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, in readNetworkStatsDetail() local
244 gNetworkStatsClassInfo.rxPackets, size, grow)); in readNetworkStatsDetail()
245 if (rxPackets.get() == NULL) return -1; in readNetworkStatsDetail()
264 rxPackets[i] = lines[i].rxPackets; in readNetworkStatsDetail()
277 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray()); in readNetworkStatsDetail()
317 gNetworkStatsClassInfo.rxPackets = env->GetFieldID(clazz, "rxPackets", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java173 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotal() argument
176 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotal()
180 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument
183 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets); in assertSummaryTotalIncludingTags()
187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertEntry() argument
189 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertEntry()
/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/core/java/com/android/internal/net/
DNetworkStatsFactory.java112 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev()
119 entry.rxPackets += reader.nextLong(); in readNetworkStatsSummaryDev()
167 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryXt()
225 entry.rxBytes = entry.rxPackets * 20; in readNetworkStatsDetail()
226 entry.rxPackets = 0; in readNetworkStatsDetail()
296 entry.rxPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkStatsServiceTest.java839 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal() argument
841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
846 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument
849 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal()
853 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
857 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, in assertUidTotal() argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal()
863 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument
867 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal()
873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in assertUidTotal()
[all …]
/frameworks/base/core/tests/coretests/src/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.java324 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in assertValues() argument
327 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
338 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument
341 assertEquals(rxPackets, entry.rxPackets); in assertValues()
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
170 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertStatsEntry()
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java193 public void updatePacketRates(long txPackets, long rxPackets) { in updatePacketRates() argument
203 + ((double) (rxPackets - rxSuccess) * 0.5); in updatePacketRates()
205 rxSuccess = rxPackets; in updatePacketRates()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java993 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
994 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
995 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
1005 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
1006 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
1007 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
DNetworkStatsCollection.java188 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/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileDataControllerImpl.java193 .append(",rxPackets=").append(entry.rxPackets) in historyEntryToString()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java7178 entry.rxPackets); in updateNetworkActivityLocked()
7184 long appPackets = entry.rxPackets + entry.txPackets; in updateNetworkActivityLocked()
7198 entry.rxPackets); in updateNetworkActivityLocked()
7245 entry.rxPackets); in updateNetworkActivityLocked()
7254 entry.rxPackets); in updateNetworkActivityLocked()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1693 entry.rxPackets = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()