Searched defs:rxBytes (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java145 entry.rxBytes = 32;
173 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
176 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets);
180 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
183 assertEntry(entry, rxBytes, rxPackets, txBytes, txPackets);
187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) {
188 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
172 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
179 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
186 assertEntry( NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsTest.java314 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
317 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations);
328 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, argument
330 assertEquals(rxBytes, entry.rxBytes);
313 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
H A DNetworkStatsHistoryTest.java75 assertEquals(29143L, entry.rxBytes);
79 assertEquals(1476L, entry.rxBytes);
83 assertEquals(332401L, entry.rxBytes);
320 entry.rxBytes = nextPositiveLong(r);
480 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) {
482 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
487 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) {
489 assertEquals("unexpected rxBytes", rxByte
479 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument
486 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument
493 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
504 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
510 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java158 int tag, long rxBytes, long txBytes) {
161 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) {
169 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
157 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument
165 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
/frameworks/base/core/java/android/net/
H A DNetworkStats.java67 private long[] rxBytes; field in class:NetworkStats
78 public long rxBytes; field in class:NetworkStats.Entry
88 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument
89 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets,
93 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, argument
99 this.rxBytes = rxBytes;
107 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0;
111 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0
116 this.rxBytes
194 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
201 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
278 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
284 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
H A DNetworkStatsHistory.java74 private long[] rxBytes; field in class:NetworkStatsHistory
87 public long rxBytes; field in class:NetworkStatsHistory.Entry
106 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize];
124 rxBytes = readLongArray(in);
138 writeLongArray(out, rxBytes, bucketCount);
152 rxBytes = readFullLongArray(in);
158 totalBytes = total(rxBytes) + total(txBytes);
167 rxBytes = readVarLongArray(in);
173 totalBytes = total(rxBytes) + total(txBytes);
181 if (bucketStart.length != bucketCount || rxBytes
285 recordData(long start, long end, long rxBytes, long txBytes) argument
545 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp57 uint64_t rxBytes; member in struct:android::IfaceStat
93 uint64_t rxBytes, rxPackets, txBytes, txPackets, devRxBytes, devRxPackets, devTxBytes, local
98 &rxBytes, &rxPackets, &txBytes, &txPackets, &devRxBytes, &devRxPackets,
104 stat->rxBytes += rxBytes;
110 stat->rxBytes += devRxBytes;
132 return stat.rxBytes;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkStatsServiceTest.java839 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument
841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
845 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, argument
849 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
853 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes,
857 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
862 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, argument
867 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPacket
972 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
995 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
[all...]

Completed in 217 milliseconds