/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 246 private long[] rxPackets; field in NetworkStats 301 public long rxPackets; field in NetworkStats.Entry 319 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 320 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 325 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument 328 rxBytes, rxPackets, txBytes, txPackets, operations); in Entry() 362 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument 371 this.rxPackets = rxPackets; in Entry() 379 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative() 384 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty() [all …]
|
D | NetworkStatsHistory.java | 86 private long[] rxPackets; field in NetworkStatsHistory 103 public long rxPackets; field in NetworkStatsHistory.Entry 125 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; in NetworkStatsHistory() 144 rxPackets = readLongArray(in); in NetworkStatsHistory() 158 writeLongArray(out, rxPackets, bucketCount); in writeToParcel() 172 rxPackets = new long[bucketStart.length]; in NetworkStatsHistory() 187 rxPackets = readVarLongArray(in); in NetworkStatsHistory() 201 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory() 213 writeVarLongArray(out, rxPackets, bucketCount); in writeToStream() 297 entry.rxPackets = getLong(rxPackets, i, UNKNOWN); in getValues() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsService.cpp | 61 return stats->rxPackets; in getStatsType() 84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local 90 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats() 97 stats->rxPackets += rxPackets; in parseIfaceStats() 128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local 134 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats() 138 stats->rxPackets += rxPackets; in parseUidStats()
|
D | com_android_server_net_NetworkStatsFactory.cpp | 57 jfieldID rxPackets; member 189 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in legacyReadNetworkStatsDetail() 238 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, in statsLinesToNetworkStats() local 239 gNetworkStatsClassInfo.rxPackets, size, grow)); in statsLinesToNetworkStats() 240 if (rxPackets.get() == NULL) return -1; in statsLinesToNetworkStats() 260 rxPackets[i] = lines[i].rxPackets; in statsLinesToNetworkStats() 277 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray()); in statsLinesToNetworkStats() 354 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/core/tests/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 53 recycle.rxPackets = 60; in setUp() 69 recycle.rxPackets = 40 * mSize; in setUp()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsFactory.java | 218 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 225 entry.rxPackets += reader.nextLong(); in readNetworkStatsSummaryDev() 276 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryXt() 433 entry.rxPackets = reader.nextLong(); in javaReadNetworkStatsDetail()
|
D | NetworkStatsRecorder.java | 236 entry.rxPackets = Math.max(entry.rxPackets, 0); in recordSnapshotLocked()
|
D | NetworkStatsService.java | 854 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, entry.rxBytes, entry.rxPackets, 1130 return entry.rxPackets; 1615 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1616 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1617 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, 1627 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1628 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1629 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
|
D | NetworkStatsCollection.java | 314 entry.rxPackets = 0; in getHistory() 368 entry.rxPackets = historyEntry.rxPackets; in getSummary()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WifiPowerCalculator.java | 295 public double calcPowerWithoutControllerDataMah(long rxPackets, long txPackets, in calcPowerWithoutControllerDataMah() argument 298 (rxPackets + txPackets) * mWifiPowerPerPacket in calcPowerWithoutControllerDataMah()
|
D | BatteryStatsImpl.java | 11550 SparseLongArray rxPackets = new SparseLongArray(); in updateWifiState() local 11562 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState() 11574 entry.rxPackets); in updateWifiState() 11577 entry.rxPackets); in updateWifiState() 11582 entry.rxPackets); in updateWifiState() 11585 rxPackets.put(u.getUid(), entry.rxPackets); in updateWifiState() 11589 totalRxPackets += entry.rxPackets; in updateWifiState() 11637 entry.rxPackets, entry.txPackets, in updateWifiState() 11791 for (int i = 0; i < rxPackets.size(); i++) { in updateWifiState() 11792 final Uid uid = getUidStatsLocked(rxPackets.keyAt(i), in updateWifiState() [all …]
|
/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/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1242 (entry.set > 0), entry.rxBytes, entry.rxPackets, entry.txBytes, in addNetworkStats() 1248 entry.rxPackets, entry.txBytes, entry.txPackets); in addNetworkStats() 1262 entry.rxPackets, entry.txBytes, entry.txPackets)); in addBytesTransferByTagAndMeteredAtoms() 1282 entry.rxPackets, entry.txBytes, entry.txPackets, in addDataUsageBytesTransferAtoms() 1303 oemManaged, transport, entry.rxBytes, entry.rxPackets, entry.txBytes, in addOemDataUsageBytesTransferAtoms() 1461 entry.rxPackets = recycle.rxPackets;
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1330 entry.rxPackets = tetherStats.rxPackets; in getTetherStats()
|