Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkStats.java75 private long[] txBytes; field in NetworkStats
86 public long txBytes; field in NetworkStats.Entry
94 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
95 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry()
100 long txBytes, long txPackets, long operations) { in Entry() argument
107 this.txBytes = txBytes; in Entry()
113 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative()
117 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty()
124 this.txBytes += another.txBytes; in add()
138 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.cpp47 jfieldID txBytes; member
59 int64_t txBytes; member
209 &s.txBytes, &s.txPackets) == 6) { in readNetworkStatsDetail()
246 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in readNetworkStatsDetail() local
247 gNetworkStatsClassInfo.txBytes, size, grow)); in readNetworkStatsDetail()
248 if (txBytes.get() == NULL) return -1; in readNetworkStatsDetail()
265 txBytes[i] = lines[i].txBytes; in readNetworkStatsDetail()
278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in readNetworkStatsDetail()
318 gNetworkStatsClassInfo.txBytes = env->GetFieldID(clazz, "txBytes", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
/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/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.java324 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in assertValues() argument
327 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
339 long txBytes, long txPackets, long operations) { in assertValues() argument
342 assertEquals(txBytes, entry.txBytes); in assertValues()
/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/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/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.java840 long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument
841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
846 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertNetworkTotal() argument
849 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); in assertNetworkTotal()
853 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
858 long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal()
863 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { in assertUidTotal() argument
867 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertUidTotal()
873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in assertUidTotal()
[all …]
/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/services/core/java/com/android/server/net/
DNetworkStatsService.java993 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
994 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
995 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
1005 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, in performSampleLocked()
1006 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, in performSampleLocked()
1007 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, in performSampleLocked()
DNetworkStatsCollection.java189 entry.txBytes = historyEntry.txBytes; in getSummary()
209 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.java7174 if (entry.rxBytes == 0 || entry.txBytes == 0) continue; in updateNetworkActivityLocked()
7179 u.noteNetworkActivityLocked(NETWORK_MOBILE_TX_DATA, entry.txBytes, in updateNetworkActivityLocked()
7196 entry.txBytes); in updateNetworkActivityLocked()
7237 + " tx=" + entry.txBytes + ", cur rx=" + cur.rxBytes in updateNetworkActivityLocked()
7238 + " tx=" + cur.txBytes); in updateNetworkActivityLocked()
7241 if (entry.rxBytes == 0 || entry.txBytes == 0) continue; in updateNetworkActivityLocked()
7246 u.noteNetworkActivityLocked(NETWORK_WIFI_TX_DATA, entry.txBytes, in updateNetworkActivityLocked()
7252 entry.txBytes); in updateNetworkActivityLocked()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1694 entry.txBytes = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()