/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 74 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 …]
|
D | NetworkStatsHistory.java | 77 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/ |
D | android_net_TrafficStats.cpp | 51 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()
|
D | com_android_internal_net_NetworkStatsFactory.cpp | 46 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/ |
D | NetworkStatsCollectionTest.java | 173 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/ |
D | DataIdleTest.java | 97 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/ |
D | NetworkStatsFactory.java | 112 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/ |
D | NetworkStatsServiceTest.java | 839 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/ |
D | NetworkStatsHistoryTest.java | 321 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);
|
D | NetworkStatsTest.java | 324 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/ |
D | NetworkStatsFactoryTest.java | 166 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/ |
D | WifiInfo.java | 193 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/ |
D | NetworkStatsService.java | 993 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()
|
D | NetworkStatsCollection.java | 188 entry.rxPackets = historyEntry.rxPackets; in getSummary()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 151 bundle.putLong(REPORT_KEY_PACKETS_RECEIVED, entry.rxPackets); in getBandwidthStats()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileDataControllerImpl.java | 193 .append(",rxPackets=").append(entry.rxPackets) in historyEntryToString()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 7178 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/ |
D | NetworkManagementService.java | 1693 entry.rxPackets = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()
|