Searched refs:txBytes (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java84 private long[] txBytes; field in class:NetworkStatsHistory
97 public long txBytes; field in class:NetworkStatsHistory.Entry
116 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize];
134 txBytes = readLongArray(in);
148 writeLongArray(out, txBytes, bucketCount);
162 txBytes = readFullLongArray(in);
166 totalBytes = total(rxBytes) + total(txBytes);
177 txBytes = readVarLongArray(in);
181 totalBytes = total(rxBytes) + total(txBytes);
190 || rxPackets.length != bucketCount || txBytes
311 recordData(long start, long end, long rxBytes, long txBytes) argument
586 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument
[all...]
H A DNetworkStats.java124 private long[] txBytes; field in class:NetworkStats
153 public long txBytes; field in class:NetworkStats.Entry
161 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument
162 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets,
167 long txBytes, long txPackets, long operations) {
169 rxBytes, rxPackets, txBytes, txPackets, operations);
173 int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets,
184 this.txBytes = txBytes;
190 return rxBytes < 0 || rxPackets < 0 || txBytes <
166 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
172 Entry(String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
334 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
341 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
348 addValues(String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
445 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
452 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_net_NetworkStatsService.cpp65 return stats->txBytes;
86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; local
92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets);
100 stats->txBytes += txBytes;
130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; local
137 &txBytes, &txPackets) == 9) {
141 stats->txBytes += txBytes;
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
H A DDataIdleTest.java96 long txBytes = 0;
107 result.putLong(String.format(labelTemplate, "txBytes"), statsEntry.txBytes);
112 txBytes += statsEntry.txBytes;
115 result.putLong("Total tx Bytes", txBytes);
/frameworks/base/core/tests/benchmarks/src/android/net/
H A DNetworkStatsBenchmark.java43 recycle.txBytes = 150000;
57 recycle.txBytes = 180000 * mSize;
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DOffloadHardwareInterface.java72 public long txBytes; field in class:OffloadHardwareInterface.ForwardedStats
76 txBytes = 0;
81 txBytes += other.txBytes;
85 return String.format("rx:%s tx:%s", rxBytes, txBytes);
164 (long rxBytes, long txBytes) -> {
166 stats.txBytes = (txBytes > 0) ? txBytes : 0;
H A DOffloadController.java278 entry.txBytes = value.txBytes;
314 // updated and txBytes is not.
/frameworks/base/core/jni/
H A Dcom_android_internal_net_NetworkStatsFactory.cpp58 jfieldID txBytes; member in struct:android::__anon926
190 &s.txBytes, &s.txPackets) == 6) {
241 ScopedLongArrayRW txBytes(env, get_long_array(env, stats,
242 gNetworkStatsClassInfo.txBytes, size, grow));
243 if (txBytes.get() == NULL) return -1;
261 txBytes[i] = lines[i].txBytes;
278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray());
356 gNetworkStatsClassInfo.txBytes
[all...]
/frameworks/base/tests/net/java/android/net/
H A DNetworkStatsHistoryTest.java87 assertEquals(6223L, entry.txBytes);
91 assertEquals(838L, entry.txBytes);
95 assertEquals(64314L, entry.txBytes);
342 entry.txBytes = nextPositiveLong(r);
525 entry.txBytes *= 2;
557 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
560 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
564 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
556 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument
563 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument
570 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
581 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
587 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
H A DNetworkStatsTest.java792 3800 /* txBytes */,
800 876235 /* txBytes */,
837 3800 /* txBytes */,
844 6000 /* txBytes */,
862 long txBytes, long txPackets, long operations) {
866 rxBytes, rxPackets, txBytes, txPackets, operations);
871 long txBytes, long txPackets, long operations) {
874 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations);
890 long txBytes, long txPackets, long operations) {
893 assertEquals(txBytes, entr
860 assertContains(NetworkStats stats, String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
869 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
889 assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
/frameworks/base/tests/net/java/com/android/internal/net/
H A DNetworkStatsFactoryTest.java243 int tag, long rxBytes, long txBytes) {
252 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
256 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) {
266 assertEquals("unexpected txBytes", txBytes, entry.txBytes);
242 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument
255 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
/frameworks/base/core/java/com/android/internal/net/
H A DNetworkStatsFactory.java182 entry.txBytes = reader.nextLong();
189 entry.txBytes += reader.nextLong();
240 entry.txBytes = reader.nextLong();
332 entry.txBytes = reader.nextLong();
/frameworks/base/tests/net/java/com/android/server/net/
H A DNetworkStatsCollectionTest.java549 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets,
554 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual);
558 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
562 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual);
565 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, argument
567 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual);
570 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, argument
572 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual);
578 actual.txBytes, actual.txPackets, 0L));
585 assertEquals("unexpected txBytes", expecte
548 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument
557 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
[all...]
H A DNetworkStatsServiceTest.java1040 long txBytes, long txPackets, int operations) throws Exception {
1041 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
1046 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
1049 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
1054 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
1058 long txBytes, long txPackets, int operations) throws Exception {
1060 rxBytes, rxPackets, txBytes, txPackets, operations);
1064 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes,
1069 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
1076 rxBytes, rxPackets, txBytes, txPacket
1039 assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
1045 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
1057 assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
1063 assertUidTotal(NetworkTemplate template, int uid, int set, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
1164 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
1217 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
[all...]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java326 totalStats.txBytes += statsEntry.txBytes;
331 results.putLong(label + "tx", totalStats.txBytes);
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsCollection.java307 if (entry.rxBytes == 0 || entry.txBytes == 0) {
313 final long rawBytes = entry.rxBytes + entry.txBytes;
315 final long rawTxBytes = entry.txBytes;
327 entry.txBytes = multiplySafe(targetTxBytes, entry.txBytes, rawTxBytes);
385 entry.txBytes = historyEntry.txBytes;
405 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes);
H A DNetworkStatsRecorder.java253 entry.txBytes = Math.max(entry.txBytes, 0);
H A DNetworkStatsService.java716 entry.txBytes, entry.txPackets, entry.operations));
1341 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets,
1342 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets,
1343 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
1353 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets,
1354 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets,
1355 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java36 private static final String REPORT_KEY_BYTES_SENT = "txBytes";
150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java156 final long totalBytes = entry.rxBytes + entry.txBytes;
200 .append(",txBytes=").append(entry.txBytes)
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
H A DOffloadControllerTest.java390 assertEquals(stats.txBytes, entry.txBytes);
408 ethernetStats.txBytes = 54321;
412 mobileStats.txBytes = 99999;
437 ethernetStats.txBytes = 100000;
472 ethernetStats.txBytes = 54321 + 100000;
/frameworks/base/core/java/android/app/usage/
H A DNetworkStats.java620 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes;
672 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes;
/frameworks/base/tests/net/java/android/app/usage/
H A DNetworkStatsManagerTest.java210 assertEquals(expected.txBytes, actual.getTxBytes());
/frameworks/base/services/core/java/com/android/server/stats/
H A DStatsCompanionService.java537 e.writeLong(entry.txBytes);
568 entry.txBytes = recycle.txBytes;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java1015 return entry.rxBytes + entry.txBytes;
1120 return entry.rxBytes + entry.txBytes;
1512 return entry.rxBytes + entry.txBytes;

Completed in 603 milliseconds

12