Home
last modified time | relevance | path

Searched refs:txBytes (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkStatsHistory.java87 private long[] txBytes; field in NetworkStatsHistory
105 public long txBytes; field in NetworkStatsHistory.Entry
126 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory()
145 txBytes = readLongArray(in); in NetworkStatsHistory()
159 writeLongArray(out, txBytes, bucketCount); in writeToParcel()
173 txBytes = readFullLongArray(in); in NetworkStatsHistory()
177 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
188 txBytes = readVarLongArray(in); in NetworkStatsHistory()
192 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
201 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory()
[all …]
DNetworkStats.java248 private long[] txBytes; field in NetworkStats
304 public long txBytes; 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()
326 long txBytes, long txPackets, long operations) { 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
372 this.txBytes = txBytes; 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 …]
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp63 return stats->txBytes; in getStatsType()
84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
90 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats()
98 stats->txBytes += txBytes; in parseIfaceStats()
128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
135 &txBytes, &txPackets) == 9) { in parseUidStats()
139 stats->txBytes += txBytes; in parseUidStats()
Dcom_android_server_net_NetworkStatsFactory.cpp58 jfieldID txBytes; member
190 &s.txBytes, &s.txPackets) == 6) { in legacyReadNetworkStatsDetail()
241 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local
242 gNetworkStatsClassInfo.txBytes, size, grow)); in statsLinesToNetworkStats()
243 if (txBytes.get() == NULL) return -1; in statsLinesToNetworkStats()
261 txBytes[i] = lines[i].txBytes; in statsLinesToNetworkStats()
278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in statsLinesToNetworkStats()
355 gNetworkStatsClassInfo.txBytes = env->GetFieldID(clazz, "txBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java96 long txBytes = 0; in reportStats() local
112 txBytes += statsEntry.txBytes; in reportStats()
115 result.putLong("Total tx Bytes", txBytes); in reportStats()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java54 recycle.txBytes = 150000; in setUp()
70 recycle.txBytes = 180000 * mSize; in setUp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java287 if (entry.rxBytes == 0 || entry.txBytes == 0) { in getHistory()
293 final long rawBytes = entry.rxBytes + entry.txBytes; in getHistory()
295 final long rawTxBytes = entry.txBytes == 0 ? 1 : entry.txBytes; in getHistory()
310 entry.txBytes = multiplySafeByRational( in getHistory()
311 targetTxBytes, entry.txBytes, rawTxBytes); in getHistory()
369 entry.txBytes = historyEntry.txBytes; in getSummary()
389 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
DNetworkStatsFactory.java219 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev()
226 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev()
277 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt()
434 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
DNetworkStatsRecorder.java237 entry.txBytes = Math.max(entry.txBytes, 0); in recordSnapshotLocked()
DNetworkStatsService.java855 entry.txBytes, entry.txPackets, entry.operations));
1132 return entry.txBytes;
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,
DNetworkPolicyManagerService.java1422 final long bytes = entry.rxBytes + entry.txBytes; in findRapidBlame()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java333 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults()
338 results.putLong(label + "tx", totalStats.txBytes); in addStatsToResults()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java620 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes; in fillBucketFromSummaryEntry()
672 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes; in getNextHistoryBucket()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DLinkBandwidthEstimatorTest.java124 private void addTxBytes(long txBytes) { in addTxBytes() argument
125 mTxBytes += txBytes; in addTxBytes()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1135 return entry.rxBytes + entry.txBytes;
1259 return entry.rxBytes + entry.txBytes;
1656 return entry.rxBytes + entry.txBytes;
1788 private void increaseMockedTotalBytes(NetworkStats stats, long rxBytes, long txBytes) { in increaseMockedTotalBytes() argument
1790 rxBytes, 1, txBytes, 1, 0); in increaseMockedTotalBytes()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java1384 private void assertVtDataUsageUpdated(int expectedToken, long rxBytes, long txBytes) in assertVtDataUsageUpdated() argument
1400 if (rxBytes != 0 || txBytes != 0) { in assertVtDataUsageUpdated()
1404 txBytes, 0L, 0L)); in assertVtDataUsageUpdated()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java1242 (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()
1462 entry.txBytes = recycle.txBytes;
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1331 entry.txBytes = tetherStats.txBytes; in getTetherStats()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java11562 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiState()
11566 if (entry.rxBytes == 0 && entry.txBytes == 0) { in updateWifiState()
11592 if (entry.txBytes != 0) { in updateWifiState()
11593 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_DATA, entry.txBytes, in updateWifiState()
11596 u.noteNetworkActivityLocked(NETWORK_WIFI_BG_TX_DATA, entry.txBytes, in updateWifiState()
11600 entry.txBytes); in updateWifiState()
11975 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in noteModemControllerActivity()
11985 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_DATA, entry.txBytes, in noteModemControllerActivity()
11991 entry.txBytes, entry.txPackets); in noteModemControllerActivity()
11997 entry.txBytes); in noteModemControllerActivity()
[all …]