Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkStats.java73 private long[] rxBytes; field in NetworkStats
84 public long rxBytes; 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()
99 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument
105 this.rxBytes = rxBytes; 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()
122 this.rxBytes += another.rxBytes; in add()
136 builder.append(" rxBytes=").append(rxBytes); in toString()
[all …]
DNetworkStatsHistory.java76 private long[] rxBytes; field in NetworkStatsHistory
89 public long rxBytes; field in NetworkStatsHistory.Entry
108 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize]; in NetworkStatsHistory()
126 rxBytes = readLongArray(in); in NetworkStatsHistory()
140 writeLongArray(out, rxBytes, bucketCount); in writeToParcel()
154 rxBytes = readFullLongArray(in); in NetworkStatsHistory()
160 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
169 rxBytes = readVarLongArray(in); in NetworkStatsHistory()
175 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
183 if (bucketStart.length != bucketCount || rxBytes.length != bucketCount in NetworkStatsHistory()
[all …]
/frameworks/base/core/jni/
Dandroid_net_TrafficStats.cpp50 uint64_t rxBytes; member
61 return stats->rxBytes; in getStatsType()
86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
91 "%*u %" SCNu64 " %*u %*u %*u %*u", cur_iface, &rxBytes, in parseIfaceStats()
98 stats->rxBytes += rxBytes; in parseIfaceStats()
130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
136 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats()
139 stats->rxBytes += rxBytes; in parseUidStats()
Dcom_android_internal_net_NetworkStatsFactory.cpp45 jfieldID rxBytes; member
57 int64_t rxBytes; member
208 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in readNetworkStatsDetail()
240 ScopedLongArrayRW rxBytes(env, get_long_array(env, stats, in readNetworkStatsDetail() local
241 gNetworkStatsClassInfo.rxBytes, size, grow)); in readNetworkStatsDetail()
242 if (rxBytes.get() == NULL) return -1; in readNetworkStatsDetail()
263 rxBytes[i] = lines[i].rxBytes; in readNetworkStatsDetail()
276 env->SetObjectField(stats, gNetworkStatsClassInfo.rxBytes, rxBytes.getJavaArray()); in readNetworkStatsDetail()
316 gNetworkStatsClassInfo.rxBytes = env->GetFieldID(clazz, "rxBytes", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java145 entry.rxBytes = 32; in testStartEndAtomicBuckets()
173 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
188 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertEntry()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java75 assertEquals(29143L, entry.rxBytes); in testReadOriginalVersion()
79 assertEquals(1476L, entry.rxBytes); in testReadOriginalVersion()
83 assertEquals(332401L, entry.rxBytes); in testReadOriginalVersion()
320 entry.rxBytes = nextPositiveLong(r); in testFuzzing()
514 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
516 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
521 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
523 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
528 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
531 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
[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()
338 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument
340 assertEquals(rxBytes, entry.rxBytes); in assertValues()
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java95 long rxBytes = 0; in reportStats() local
110 rxBytes += statsEntry.rxBytes; in reportStats()
114 result.putLong("Total rx Bytes", rxBytes); in reportStats()
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java158 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument
161 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry()
166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
169 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkStatsServiceTest.java839 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal() argument
841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal()
845 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, 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()
857 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, in assertUidTotal() argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal()
862 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, 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/java/com/android/internal/net/
DNetworkStatsFactory.java111 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryDev()
118 entry.rxBytes += reader.nextLong(); in readNetworkStatsSummaryDev()
166 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryXt()
225 entry.rxBytes = entry.rxPackets * 20; in readNetworkStatsDetail()
295 entry.rxBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java325 totalStats.rxBytes += statsEntry.rxBytes; in addStatsToResults()
332 results.putLong(label + "rx", totalStats.rxBytes); in addStatsToResults()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileDataControllerImpl.java154 final long totalBytes = entry.rxBytes + entry.txBytes; in getDataUsageInfo()
192 .append(",rxBytes=").append(entry.rxBytes) 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.java187 entry.rxBytes = historyEntry.rxBytes; in getSummary()
209 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java149 bundle.putLong(REPORT_KEY_BYTES_RECEIVED, entry.rxBytes); in getBandwidthStats()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java7174 if (entry.rxBytes == 0 || entry.txBytes == 0) continue; in updateNetworkActivityLocked()
7177 u.noteNetworkActivityLocked(NETWORK_MOBILE_RX_DATA, entry.rxBytes, in updateNetworkActivityLocked()
7194 entry.rxBytes); in updateNetworkActivityLocked()
7236 Slog.d(TAG, "Wifi uid " + entry.uid + ": delta rx=" + entry.rxBytes in updateNetworkActivityLocked()
7237 + " tx=" + entry.txBytes + ", cur rx=" + cur.rxBytes in updateNetworkActivityLocked()
7241 if (entry.rxBytes == 0 || entry.txBytes == 0) continue; in updateNetworkActivityLocked()
7244 u.noteNetworkActivityLocked(NETWORK_WIFI_RX_DATA, entry.rxBytes, in updateNetworkActivityLocked()
7250 entry.rxBytes); in updateNetworkActivityLocked()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1692 entry.rxBytes = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()