Home
last modified time | relevance | path

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

12

/frameworks/base/packages/Tethering/src/android/net/util/
DTetheringUtils.java41 public final long txBytes; field in TetheringUtils.ForwardedStats
47 txBytes = 0; in ForwardedStats()
51 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument
54 this.txBytes = txBytes; in ForwardedStats()
58 public ForwardedStats(long rxBytes, long rxPackets, long txBytes, long txPackets) { in ForwardedStats() argument
61 this.txBytes = txBytes; in ForwardedStats()
68 txBytes = tetherStats.txBytes; in ForwardedStats()
75 txBytes = other.txBytes; in ForwardedStats()
83 txBytes + other.txBytes, txPackets + other.txPackets); in add()
92 final long txBytesDiff = Math.max(txBytes - other.txBytes, 0); in subtract()
[all …]
/frameworks/base/core/java/android/net/
DNetworkStatsHistory.java86 private long[] txBytes; field in NetworkStatsHistory
104 public long txBytes; field in NetworkStatsHistory.Entry
125 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; in NetworkStatsHistory()
144 txBytes = readLongArray(in); in NetworkStatsHistory()
158 writeLongArray(out, txBytes, bucketCount); in writeToParcel()
172 txBytes = readFullLongArray(in); in NetworkStatsHistory()
176 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
187 txBytes = readVarLongArray(in); in NetworkStatsHistory()
191 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
200 || rxPackets.length != bucketCount || txBytes.length != bucketCount in NetworkStatsHistory()
[all …]
DNetworkStats.java245 private long[] txBytes; field in NetworkStats
301 public long txBytes; 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()
323 long txBytes, long txPackets, long operations) { 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
369 this.txBytes = txBytes; 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.cpp63 return stats->txBytes; in getStatsType()
84 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; in parseIfaceStats() local
90 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); in parseIfaceStats()
98 stats->txBytes += txBytes; in parseIfaceStats()
128 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; in parseUidStats() local
135 &txBytes, &txPackets) == 9) { in parseUidStats()
139 stats->txBytes += txBytes; in parseUidStats()
Dcom_android_server_net_NetworkStatsFactory.cpp58 jfieldID txBytes; member
190 &s.txBytes, &s.txPackets) == 6) { in legacyReadNetworkStatsDetail()
241 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, in statsLinesToNetworkStats() local
242 gNetworkStatsClassInfo.txBytes, size, grow)); in statsLinesToNetworkStats()
243 if (txBytes.get() == NULL) return -1; in statsLinesToNetworkStats()
261 txBytes[i] = lines[i].txBytes; in statsLinesToNetworkStats()
278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); in statsLinesToNetworkStats()
355 gNetworkStatsClassInfo.txBytes = env->GetFieldID(clazz, "txBytes", "[J"); in register_android_server_net_NetworkStatsFactory()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java88 assertEquals(6223L, entry.txBytes); in testReadOriginalVersion()
92 assertEquals(838L, entry.txBytes); in testReadOriginalVersion()
96 assertEquals(64314L, entry.txBytes); in testReadOriginalVersion()
343 entry.txBytes = nextPositiveLong(r); in testFuzzing()
526 entry.txBytes *= 2; in testSetValues()
558 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
561 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
565 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
568 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
572 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
[all …]
DNetworkStatsTest.java987 long txBytes, long txPackets, long operations) { in assertContains() argument
991 rxBytes, rxPackets, txBytes, txPackets, operations); in assertContains()
996 long txBytes, long txPackets, long operations) { in assertValues() argument
999 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); in assertValues()
1015 long txBytes, long txPackets, long operations) { in assertValues() argument
1018 assertEquals(txBytes, entry.txBytes); in assertValues()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsBaseTest.java52 long rxPackets, long txBytes, long txPackets) { in assertValues() argument
55 rxBytes, rxPackets, txBytes, txPackets, 0); in assertValues()
60 long txBytes, long txPackets, long operations) { in assertValues() argument
106 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertValues()
DNetworkStatsFactoryTest.java526 int tag, long rxBytes, long txBytes) { in assertStatsEntry() argument
535 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
548 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertStatsEntry() argument
550 rxBytes, rxPackets, txBytes, txPackets); in assertStatsEntry()
555 long txBytes, long txPackets) { in assertStatsEntry() argument
566 assertEquals("unexpected txBytes", txBytes, entry.txBytes); in assertStatsEntry()
DNetworkStatsCollectionTest.java555 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
573 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry()
576 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, in assertEntry() argument
578 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); in assertEntry()
584 actual.txBytes, actual.txPackets, 0L)); in assertEntry()
591 assertEquals("unexpected txBytes", expected.txBytes, actual.txBytes); in assertEntry()
DNetworkStatsServiceTest.java1314 long txBytes, long txPackets, int operations) throws Exception {
1315 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
1320 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
1323 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
1328 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
1332 long txBytes, long txPackets, int operations) throws Exception {
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.java115 public long txBytes; field in OffloadHardwareInterface.ForwardedStats
119 txBytes = 0; in ForwardedStats()
123 public ForwardedStats(long rxBytes, long txBytes) { in ForwardedStats() argument
125 this.txBytes = txBytes; in ForwardedStats()
131 txBytes += other.txBytes; in add()
136 return String.format("rx:%s tx:%s", rxBytes, txBytes); in toString()
357 (long rxBytes, long txBytes) -> { in getForwardedStats()
359 stats.txBytes = (txBytes > 0) ? txBytes : 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.java676 diff.txBytes, diff.txPackets, 0L /* operations */)); in buildNetworkStats()
700 usedAlertQuota += diff.rxBytes + diff.txBytes; in updateQuotaAndStatsFromSnapshot()
/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/benchmarks/src/android/net/
DNetworkStatsBenchmark.java54 recycle.txBytes = 150000; in setUp()
70 recycle.txBytes = 180000 * 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()
287 final long rawTxBytes = entry.txBytes == 0 ? 1 : entry.txBytes; in getHistory()
302 entry.txBytes = multiplySafeByRational( in getHistory()
303 targetTxBytes, entry.txBytes, rawTxBytes); in getHistory()
361 entry.txBytes = historyEntry.txBytes; in getSummary()
381 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes); in recordData()
DNetworkStatsFactory.java219 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev()
226 entry.txBytes += reader.nextLong(); in readNetworkStatsSummaryDev()
277 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryXt()
433 entry.txBytes = reader.nextLong(); in javaReadNetworkStatsDetail()
DNetworkStatsRecorder.java238 entry.txBytes = Math.max(entry.txBytes, 0); in recordSnapshotLocked()
DNetworkStatsService.java851 entry.txBytes, entry.txPackets, entry.operations));
1128 return entry.txBytes;
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.java333 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults()
338 results.putLong(label + "tx", totalStats.txBytes); 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
165 rxPackets, txBytes, txPackets, 0L); in buildTestEntry()
170 long rxBytes, long rxPackets, long txBytes, long txPackets) { in buildTestTetherStatsParcel() argument
175 parcel.txBytes = txBytes; in buildTestTetherStatsParcel()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java620 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes; in fillBucketFromSummaryEntry()
672 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes; in getNextHistoryBucket()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java209 assertEquals(expected.txBytes, actual.getTxBytes()); in assertBucketMatches()

12