/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 142 private long[] txPackets; field in NetworkStats 180 public long txPackets; 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() 194 long txBytes, long txPackets, long operations) { 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 212 this.txPackets = txPackets; 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 | 86 private long[] txPackets; field in NetworkStatsHistory 105 public long txPackets; field in NetworkStatsHistory.Entry 125 if ((fields & FIELD_TX_PACKETS) != 0) txPackets = new long[initialSize]; in NetworkStatsHistory() 144 txPackets = readLongArray(in); in NetworkStatsHistory() 158 writeLongArray(out, txPackets, bucketCount); in writeToParcel() 172 txPackets = new long[bucketStart.length]; in NetworkStatsHistory() 187 txPackets = readVarLongArray(in); in NetworkStatsHistory() 200 || txPackets.length != bucketCount || operations.length != bucketCount) { in NetworkStatsHistory() 213 writeVarLongArray(out, txPackets, bucketCount); in writeToStream() 297 entry.txPackets = getLong(txPackets, i, UNKNOWN); in getValues() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsService.cpp | 66 return stats->txPackets; in getStatsType() 85 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 91 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats() 100 stats->txPackets += txPackets; in parseIfaceStats() 129 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 136 &txBytes, &txPackets) == 9) { in parseUidStats() 141 stats->txPackets += txPackets; in parseUidStats()
|
D | com_android_server_net_NetworkStatsFactory.cpp | 58 jfieldID txPackets; member 189 &s.txBytes, &s.txPackets) == 6) { in legacyReadNetworkStatsDetail() 243 ScopedLongArrayRW txPackets(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 244 gNetworkStatsClassInfo.txPackets, size, grow)); in statsLinesToNetworkStats() 245 if (txPackets.get() == NULL) return -1; in statsLinesToNetworkStats() 261 txPackets[i] = lines[i].txPackets; in statsLinesToNetworkStats() 278 env->SetObjectField(stats, gNetworkStatsClassInfo.txPackets, txPackets.getJavaArray()); in statsLinesToNetworkStats() 355 gNetworkStatsClassInfo.txPackets = env->GetFieldID(clazz, "txPackets", "[J"); in register_android_server_net_NetworkStatsFactory()
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 98 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/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() 581 actual.txBytes, actual.txPackets, 0L)); in assertEntry() 589 assertEquals("unexpected txPackets", expected.txPackets, actual.txPackets); in assertEntry()
|
D | NetworkStatsServiceTest.java | 1145 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument 1147 txPackets, operations); 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() 1163 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument 1165 rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal() 1170 long txPackets, int operations) throws Exception { in assertUidTotal() argument 1175 txPackets, operations); 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 285 assertEquals("unexpected txPackets", txPackets, entry.txPackets); in assertStatsEntry()
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 44 recycle.txPackets = 1500; in setUp() 58 recycle.txPackets = 1200 * mSize; in setUp()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 344 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);
|
D | NetworkStatsTest.java | 930 long txBytes, long txPackets, long operations) { in assertContains() argument 934 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains() 939 long txBytes, long txPackets, long operations) { in assertValues() argument 942 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues() 958 long txBytes, long txPackets, long operations) { in assertValues() argument 962 assertEquals(txPackets, entry.txPackets); 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 | 194 entry.txPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 201 entry.txPackets += reader.nextLong(); in readNetworkStatsSummaryDev() 252 entry.txPackets = reader.nextLong(); in readNetworkStatsSummaryXt() 379 entry.txPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
|
D | NetworkStatsService.java | 735 entry.txBytes, entry.txPackets, entry.operations)); in internalGetSummaryForNetwork() 1021 return entry.txPackets; 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 | 254 entry.txPackets = Math.max(entry.txPackets, 0); in recordSnapshotLocked()
|
D | NetworkStatsCollection.java | 331 entry.txPackets = 0; in getHistory() 386 entry.txPackets = historyEntry.txPackets; in getSummary()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 152 bundle.putLong(REPORT_KEY_PACKETS_SENT, entry.txPackets); in getBandwidthStats()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 621 bucketOut.mTxPackets = mRecycledSummaryEntry.txPackets; in fillBucketFromSummaryEntry() 673 bucketOut.mTxPackets = mRecycledHistoryEntry.txPackets; in getNextHistoryBucket()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 211 assertEquals(expected.txPackets, actual.getTxPackets()); in assertBucketMatches()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 10728 SparseLongArray txPackets = new SparseLongArray(); in updateWifiState() local 10740 + " txPackets=" + entry.txPackets); in updateWifiState() 10770 entry.txPackets); in updateWifiState() 10773 entry.txPackets); in updateWifiState() 10778 entry.txPackets); in updateWifiState() 10780 txPackets.put(u.getUid(), entry.txPackets); in updateWifiState() 10784 totalTxPackets += entry.txPackets; in updateWifiState() 10913 for (int i = 0; i < txPackets.size(); i++) { in updateWifiState() 10914 final Uid uid = getUidStatsLocked(txPackets.keyAt(i)); in updateWifiState() 10915 final long myTxTimeMs = (txPackets.valueAt(i) * leftOverTxTimeMs) in updateWifiState() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1583 entry.txPackets = tetherStats.txPackets; in getTetherStats()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 791 e.writeLong(entry.txPackets); in addNetworkStats() 822 entry.txPackets = recycle.txPackets; in rollupNetworkStatsByFGBG()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 48058 Landroid/net/NetworkStatsHistory;->txPackets:[J
|