/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 138 private long[] rxPackets; field in NetworkStats 176 public long rxPackets; field in NetworkStats.Entry 188 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 189 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 193 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument 196 rxBytes, rxPackets, txBytes, txPackets, operations); in Entry() 200 int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, in Entry() argument 210 this.rxPackets = rxPackets; in Entry() 217 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 221 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() [all …]
|
D | NetworkStatsHistory.java | 84 private long[] rxPackets; field in NetworkStatsHistory 101 public long rxPackets; field in NetworkStatsHistory.Entry 123 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory() 142 rxPackets = readLongArray(in); in NetworkStatsHistory() 156 writeLongArray(out, rxPackets, bucketCount); in writeToParcel() 170 rxPackets = new long[bucketStart.length]; in NetworkStatsHistory() 185 rxPackets = readVarLongArray(in); in NetworkStatsHistory() 199 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() 211 writeVarLongArray(out, rxPackets, bucketCount); in writeToStream() 295 entry.rxPackets = getLong(rxPackets, i, UNKNOWN); in getValues() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsService.cpp | 62 return stats->rxPackets; in getStatsType() 85 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 91 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats() 98 stats->rxPackets += rxPackets; in parseIfaceStats() 129 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 135 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats() 139 stats->rxPackets += rxPackets; in parseUidStats()
|
D | com_android_server_net_NetworkStatsFactory.cpp | 56 jfieldID rxPackets; member 188 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in legacyReadNetworkStatsDetail() 237 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 238 gNetworkStatsClassInfo.rxPackets, size, grow)); in statsLinesToNetworkStats() 239 if (rxPackets.get() == NULL) return -1; in statsLinesToNetworkStats() 259 rxPackets[i] = lines[i].rxPackets; in statsLinesToNetworkStats() 276 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray()); in statsLinesToNetworkStats() 353 gNetworkStatsClassInfo.rxPackets = env->GetFieldID(clazz, "rxPackets", "[J"); in register_android_server_net_NetworkStatsFactory()
|
/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/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 552 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument 557 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal() 561 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument 565 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags() 568 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 570 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 573 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument 575 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry() 580 assertEntry(expected, new NetworkStats.Entry(actual.rxBytes, actual.rxPackets, in assertEntry() 587 assertEquals("unexpected rxPackets", expected.rxPackets, actual.rxPackets); in assertEntry()
|
D | NetworkStatsServiceTest.java | 1144 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal() argument 1146 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 1151 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 1154 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 1159 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal() 1162 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, in assertUidTotal() argument 1165 rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal() 1169 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, in assertUidTotal() argument 1174 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal() 1181 rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal() [all …]
|
D | NetworkStatsFactoryTest.java | 274 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument 283 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); in assertStatsEntry()
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 42 recycle.rxPackets = 60; in setUp() 56 recycle.rxPackets = 40 * mSize; in setUp()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 342 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);
|
D | NetworkStatsTest.java | 929 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument 934 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 938 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 942 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 957 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument 960 assertEquals(rxPackets, entry.rxPackets); in assertValues()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ExtendedWifiInfo.java | 64 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/ |
D | NetworkStatsFactory.java | 192 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 199 entry.rxPackets += reader.nextLong(); in readNetworkStatsSummaryDev() 250 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryXt() 377 entry.rxPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
|
D | NetworkStatsService.java | 734 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, entry.rxBytes, entry.rxPackets, in internalGetSummaryForNetwork() 1017 return entry.rxPackets; in getTetherStats() 1417 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1418 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1419 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked() 1429 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked() 1430 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked() 1431 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
|
D | NetworkStatsRecorder.java | 252 entry.rxPackets = Math.max(entry.rxPackets, 0); in recordSnapshotLocked()
|
D | NetworkStatsCollection.java | 330 entry.rxPackets = 0; in getHistory() 384 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/core/java/android/app/usage/ |
D | NetworkStats.java | 619 bucketOut.mRxPackets = mRecycledSummaryEntry.rxPackets; in fillBucketFromSummaryEntry() 671 bucketOut.mRxPackets = mRecycledHistoryEntry.rxPackets; in getNextHistoryBucket()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 209 assertEquals(expected.rxPackets, actual.getRxPackets()); in assertBucketMatches()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 10727 SparseLongArray rxPackets = new SparseLongArray(); in updateWifiState() local 10739 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState() 10751 entry.rxPackets); in updateWifiState() 10754 entry.rxPackets); in updateWifiState() 10759 entry.rxPackets); in updateWifiState() 10761 rxPackets.put(u.getUid(), entry.rxPackets); in updateWifiState() 10765 totalRxPackets += entry.rxPackets; in updateWifiState() 10926 for (int i = 0; i < rxPackets.size(); i++) { in updateWifiState() 10927 final Uid uid = getUidStatsLocked(rxPackets.keyAt(i)); in updateWifiState() 10928 final long myRxTimeMs = (rxPackets.valueAt(i) * leftOverRxTimeMs) in updateWifiState() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1581 entry.rxPackets = tetherStats.rxPackets; in getTetherStats()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 789 e.writeLong(entry.rxPackets); in addNetworkStats() 820 entry.rxPackets = recycle.rxPackets; in rollupNetworkStatsByFGBG()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 48053 Landroid/net/NetworkStatsHistory;->rxPackets:[J
|