Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkStats.java84 private long[] txBytes; field in NetworkStats
95 public long txBytes; field in NetworkStats.Entry
103 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
104 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry()
109 long txBytes, long txPackets, long operations) { in Entry() argument
116 this.txBytes = txBytes; in Entry()
122 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative()
126 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty()
133 this.txBytes += another.txBytes; in add()
147 builder.append(" txBytes=").append(txBytes); in toString()
[all …]
DNetworkStatsHistory.java78 private long[] txBytes; field in NetworkStatsHistory
91 public long txBytes; field in NetworkStatsHistory.Entry
110 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory()
128 txBytes = readLongArray(in); in NetworkStatsHistory()
142 writeLongArray(out, txBytes, bucketCount); in writeToParcel()
156 txBytes = readFullLongArray(in); in NetworkStatsHistory()
160 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
171 txBytes = readVarLongArray(in); in NetworkStatsHistory()
175 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
184 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory()
[all …]
/frameworks/base/core/jni/
Dandroid_net_TrafficStats.cpp52 uint64_t txBytes; member
65 return stats->txBytes; in getStatsType()
86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats()
100 stats->txBytes += txBytes; in parseIfaceStats()
130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
137 &txBytes, &txPackets) == 9) { in parseUidStats()
141 stats->txBytes += txBytes; in parseUidStats()
Dcom_android_internal_net_NetworkStatsFactory.cpp48 jfieldID txBytes; member
60 int64_t txBytes; member
210 &s.txBytes, &s.txPackets) == 6) { in readNetworkStatsDetail()
247 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in readNetworkStatsDetail() local
248 gNetworkStatsClassInfo.txBytes, size, grow)); in readNetworkStatsDetail()
249 if (txBytes.get() == NULL) return -1; in readNetworkStatsDetail()
266 txBytes[i] = lines[i].txBytes; in readNetworkStatsDetail()
279 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in readNetworkStatsDetail()
310 gNetworkStatsClassInfo.txBytes = GetFieldIDOrDie(env, clazz, "txBytes", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java76 assertEquals(6223L, entry.txBytes); in testReadOriginalVersion()
80 assertEquals(838L, entry.txBytes); in testReadOriginalVersion()
84 assertEquals(64314L, entry.txBytes); in testReadOriginalVersion()
322 entry.txBytes = nextPositiveLong(r); in testFuzzing()
514 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
517 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
521 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
524 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
528 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
533 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
[all …]
DNetworkStatsTest.java404 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in assertContains() argument
408 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
412 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in assertValues() argument
415 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
427 long txBytes, long txPackets, long operations) { in assertValues() argument
430 assertEquals(txBytes, entry.txBytes); in assertValues()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java173 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
190 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertEntry()
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java158 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument
162 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
171 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
/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/java/com/android/internal/net/
DNetworkStatsFactory.java113 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev()
120 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev()
168 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt()
210 adjust.txBytes -= entry.txBytes; in readNetworkStatsDetail()
227 entry.txBytes = 0; in readNetworkStatsDetail()
297 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkStatsServiceTest.java841 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument
842 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
847 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument
850 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal()
854 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
859 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument
860 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal()
864 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument
868 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal()
874 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in assertUidTotal()
[all …]
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java45 recycle.txBytes = 150000; in setUp()
59 recycle.txBytes = 180000 * mSize; in setUp()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java326 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults()
331 results.putLong(label + "tx", totalStats.txBytes); in addStatsToResults()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileDataControllerImpl.java154 final long totalBytes = entry.rxBytes + entry.txBytes; in getDataUsageInfo()
194 .append(",txBytes=").append(entry.txBytes) in historyEntryToString()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java405 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes; in fillBucketFromSummaryEntry()
452 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes; in getNextHistoryBucket()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java1097 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
1098 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
1099 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
1109 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
1110 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
1111 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
DNetworkStatsCollection.java222 entry.txBytes = historyEntry.txBytes; in getSummary()
242 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java7634 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateWifiStateLocked()
7638 if (entry.rxBytes == 0 || entry.txBytes == 0) { in updateWifiStateLocked()
7645 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_DATA, entry.txBytes, in updateWifiStateLocked()
7658 entry.txBytes); in updateWifiStateLocked()
7850 if (entry.rxBytes == 0 || entry.txBytes == 0) { in updateMobileRadioStateLocked()
7856 + " tx=" + entry.txBytes + " rxPackets=" + entry.rxPackets in updateMobileRadioStateLocked()
7863 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_DATA, entry.txBytes, in updateMobileRadioStateLocked()
7880 entry.txBytes); in updateMobileRadioStateLocked()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1875 entry.txBytes = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()