/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 82 private long[] rxBytes; field in NetworkStats 93 public long rxBytes; 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() 108 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument 114 this.rxBytes = rxBytes; 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() 131 this.rxBytes += another.rxBytes; in add() 145 builder.append(" rxBytes=").append(rxBytes); in toString() [all …]
|
D | NetworkStatsHistory.java | 76 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/ |
D | android_net_TrafficStats.cpp | 50 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()
|
D | com_android_internal_net_NetworkStatsFactory.cpp | 46 jfieldID rxBytes; member 58 int64_t rxBytes; member 209 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in readNetworkStatsDetail() 241 ScopedLongArrayRW rxBytes(env, get_long_array(env, stats, in readNetworkStatsDetail() local 242 gNetworkStatsClassInfo.rxBytes, size, grow)); in readNetworkStatsDetail() 243 if (rxBytes.get() == NULL) return -1; in readNetworkStatsDetail() 264 rxBytes[i] = lines[i].rxBytes; in readNetworkStatsDetail() 277 env->SetObjectField(stats, gNetworkStatsClassInfo.rxBytes, rxBytes.getJavaArray()); in readNetworkStatsDetail() 308 gNetworkStatsClassInfo.rxBytes = GetFieldIDOrDie(env, clazz, "rxBytes", "[J"); in register_com_android_internal_net_NetworkStatsFactory()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 145 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/ |
D | NetworkStatsHistoryTest.java | 75 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 …]
|
D | NetworkStatsTest.java | 404 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() 426 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument 428 assertEquals(rxBytes, entry.rxBytes); in assertValues()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 158 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/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 95 long rxBytes = 0; in reportStats() local 110 rxBytes += statsEntry.rxBytes; in reportStats() 114 result.putLong("Total rx Bytes", rxBytes); in reportStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkStatsServiceTest.java | 840 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal() argument 842 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() 846 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, 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() 858 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, in assertUidTotal() argument 860 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); in assertUidTotal() 863 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, 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/ |
D | NetworkStatsBenchmark.java | 43 recycle.rxBytes = 60000; in setUp() 57 recycle.rxBytes = 90000 * mSize; in setUp()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 111 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/ |
D | BandwidthTest.java | 325 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/ |
D | MobileDataControllerImpl.java | 154 final long totalBytes = entry.rxBytes + entry.txBytes; in getDataUsageInfo() 192 .append(",rxBytes=").append(entry.rxBytes) in historyEntryToString()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 403 bucketOut.mRxBytes = mRecycledSummaryEntry.rxBytes; in fillBucketFromSummaryEntry() 450 bucketOut.mRxBytes = mRecycledHistoryEntry.rxBytes; in getNextHistoryBucket()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsService.java | 1097 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()
|
D | NetworkStatsCollection.java | 220 entry.rxBytes = historyEntry.rxBytes; in getSummary() 242 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 149 bundle.putLong(REPORT_KEY_BYTES_RECEIVED, entry.rxBytes); in getBandwidthStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 7633 Slog.d(TAG, "Wifi uid " + entry.uid + ": delta rx=" + entry.rxBytes in updateWifiStateLocked() 7638 if (entry.rxBytes == 0 || entry.txBytes == 0) { in updateWifiStateLocked() 7643 u.noteNetworkActivityLocked(NETWORK_WIFI_RX_DATA, entry.rxBytes, in updateWifiStateLocked() 7656 entry.rxBytes); in updateWifiStateLocked() 7850 if (entry.rxBytes == 0 || entry.txBytes == 0) { in updateMobileRadioStateLocked() 7855 Slog.d(TAG, "Mobile uid " + entry.uid + ": delta rx=" + entry.rxBytes in updateMobileRadioStateLocked() 7861 u.noteNetworkActivityLocked(NETWORK_MOBILE_RX_DATA, entry.rxBytes, in updateMobileRadioStateLocked() 7878 entry.rxBytes); in updateMobileRadioStateLocked()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1873 entry.rxBytes = Long.parseLong(tok.nextToken()); in getNetworkStatsTethering()
|