Home
last modified time | relevance | path

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

12

/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java39 public final long rxBytes; field in TetheringUtils.ForwardedStats
45 rxBytes = 0; in ForwardedStats()
51 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument
52 this.rxBytes = rxBytes; in ForwardedStats()
58 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument
59 this.rxBytes = rxBytes; in ForwardedStats()
66 rxBytes = tetherStats.rxBytes; in ForwardedStats()
73 rxBytes = other.rxBytes; in ForwardedStats()
82 return new ForwardedStats(rxBytes + other.rxBytes, rxPackets + other.rxPackets, in add()
90 final long rxBytesDiff = Math.max(rxBytes - other.rxBytes, 0); in subtract()
[all …]
/frameworks/base/core/java/android/net/
DNetworkStatsHistory.java84 private long[] rxBytes; field in NetworkStatsHistory
100 public long rxBytes; field in NetworkStatsHistory.Entry
123 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize]; in NetworkStatsHistory()
142 rxBytes = readLongArray(in); in NetworkStatsHistory()
156 writeLongArray(out, rxBytes, bucketCount); in writeToParcel()
170 rxBytes = readFullLongArray(in); in NetworkStatsHistory()
176 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
185 rxBytes = readVarLongArray(in); in NetworkStatsHistory()
191 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
199 if (bucketStart.length != bucketCount || rxBytes.length != bucketCount in NetworkStatsHistory()
[all …]
DNetworkStats.java241 private long[] rxBytes; field in NetworkStats
295 public long rxBytes; field in NetworkStats.Entry
316 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
317 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry()
322 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument
325 rxBytes, rxPackets, txBytes, txPackets, operations); in Entry()
359 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() argument
367 this.rxBytes = rxBytes; in Entry()
376 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; in isNegative()
381 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 in isEmpty()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp59 return stats->rxBytes; in getStatsType()
84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
89 "%*u %" SCNu64 " %*u %*u %*u %*u", cur_iface, &rxBytes, in parseIfaceStats()
96 stats->rxBytes += rxBytes; in parseIfaceStats()
128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
134 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats()
137 stats->rxBytes += rxBytes; in parseUidStats()
Dcom_android_server_net_NetworkStatsFactory.cpp56 jfieldID rxBytes; member
189 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, in legacyReadNetworkStatsDetail()
235 ScopedLongArrayRW rxBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local
236 gNetworkStatsClassInfo.rxBytes, size, grow)); in statsLinesToNetworkStats()
237 if (rxBytes.get() == NULL) return -1; in statsLinesToNetworkStats()
259 rxBytes[i] = lines[i].rxBytes; in statsLinesToNetworkStats()
276 env->SetObjectField(stats, gNetworkStatsClassInfo.rxBytes, rxBytes.getJavaArray()); in statsLinesToNetworkStats()
353 gNetworkStatsClassInfo.rxBytes = env->GetFieldID(clazz, "rxBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java87 assertEquals(29143L, entry.rxBytes); in testReadOriginalVersion()
91 assertEquals(1476L, entry.rxBytes); in testReadOriginalVersion()
95 assertEquals(332401L, entry.rxBytes); in testReadOriginalVersion()
341 entry.rxBytes = nextPositiveLong(r); in testFuzzing()
525 entry.rxBytes /= 2; in testSetValues()
558 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
560 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
565 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
567 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
572 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
[all …]
DNetworkStatsTest.java986 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument
991 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
995 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
999 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
1014 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, in assertValues() argument
1016 assertEquals(rxBytes, entry.rxBytes); in assertValues()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsBaseTest.java51 void assertValues(NetworkStats stats, String iface, int uid, long rxBytes, in assertValues() argument
55 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues()
59 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
104 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertValues()
DNetworkStatsCollectionTest.java202 entry.rxBytes = 32; in testStartEndAtomicBuckets()
224 entry.rxBytes = 32; in testAccessLevels()
229 entry.rxBytes = 64; in testAccessLevels()
234 entry.rxBytes = 128; in testAccessLevels()
239 entry.rxBytes = 256; in testAccessLevels()
555 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, in assertSummaryTotal() argument
560 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotal()
564 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertSummaryTotalIncludingTags() argument
568 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); in assertSummaryTotalIncludingTags()
571 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument
[all …]
DNetworkStatsFactoryTest.java526 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument
534 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry()
548 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
550 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry()
554 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument
564 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); in assertStatsEntry()
DNetworkStatsServiceTest.java1313 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets,
1315 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
1319 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes,
1323 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
1328 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
1331 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets,
1334 rxBytes, rxPackets, txBytes, txPackets, operations);
1338 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes,
1343 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
1350 rxBytes, rxPackets, txBytes, txPackets, operations);
[all …]
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java114 public long rxBytes; field in OffloadHardwareInterface.ForwardedStats
118 rxBytes = 0; in ForwardedStats()
123 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument
124 this.rxBytes = rxBytes; in ForwardedStats()
130 rxBytes += other.rxBytes; in add()
136 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString()
357 (long rxBytes, long txBytes) -> { in getForwardedStats()
358 stats.rxBytes = (rxBytes > 0) ? rxBytes : 0; in getForwardedStats()
DOffloadController.java314 ROAMING_NO, DEFAULT_NETWORK_NO, value.rxBytes, 0L, value.txBytes, 0L, 0L); in getTetherStats()
402 final long usedAlertQuota = diff.rxBytes + diff.txBytes; in maybeUpdateStats()
DBpfCoordinator.java675 ROAMING_NO, DEFAULT_NETWORK_NO, diff.rxBytes, diff.rxPackets, in buildNetworkStats()
700 usedAlertQuota += diff.rxBytes + diff.txBytes; in updateQuotaAndStatsFromSnapshot()
/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/benchmarks/src/android/net/
DNetworkStatsBenchmark.java52 recycle.rxBytes = 60000; in setUp()
68 recycle.rxBytes = 90000 * mSize; in setUp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java279 if (entry.rxBytes == 0 || entry.txBytes == 0) { in getHistory()
285 final long rawBytes = entry.rxBytes + entry.txBytes; in getHistory()
286 final long rawRxBytes = entry.rxBytes == 0 ? 1 : entry.rxBytes; in getHistory()
300 entry.rxBytes = multiplySafeByRational( in getHistory()
301 targetRxBytes, entry.rxBytes, rawRxBytes); in getHistory()
359 entry.rxBytes = historyEntry.rxBytes; in getSummary()
381 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
DNetworkStatsFactory.java217 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryDev()
224 entry.rxBytes += reader.nextLong(); in readNetworkStatsSummaryDev()
275 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryXt()
431 entry.rxBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
DNetworkStatsRecorder.java236 entry.rxBytes = Math.max(entry.rxBytes, 0); in recordSnapshotLocked()
DNetworkStatsService.java850 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, entry.rxBytes, entry.rxPackets,
1124 return entry.rxBytes;
1595 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets,
1596 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets,
1597 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
1607 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets,
1608 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets,
1609 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java332 totalStats.rxBytes += statsEntry.rxBytes; in addStatsToResults()
339 results.putLong(label + "rx", totalStats.rxBytes); in addStatsToResults()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java162 @NonNull String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestEntry() argument
164 SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, in buildTestEntry()
170 long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestTetherStatsParcel() argument
173 parcel.rxBytes = rxBytes; in buildTestTetherStatsParcel()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java618 bucketOut.mRxBytes = mRecycledSummaryEntry.rxBytes; in fillBucketFromSummaryEntry()
670 bucketOut.mRxBytes = mRecycledHistoryEntry.rxBytes; in getNextHistoryBucket()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java149 bundle.putLong(REPORT_KEY_BYTES_RECEIVED, entry.rxBytes); in getBandwidthStats()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java207 assertEquals(expected.rxBytes, actual.getRxBytes()); in assertBucketMatches()

12