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

/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java173 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) {
191 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
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);
329 long txBytes, long txPackets, long operations) {
333 assertEquals(txPackets, entry.txPackets);
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
328 assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
H A DNetworkStatsHistoryTest.java323 entry.txPackets = nextPositiveLong(r);
494 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
500 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
505 long rxPackets, long txBytes, long txPackets, long operations) {
507 txPackets, operations);
511 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets,
518 assertEquals("unexpected txPackets", txPackets, entr
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.java166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) {
172 assertEquals("unexpected txPackets", txPackets, entry.txPackets);
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.java70 private long[] txPackets; field in class:NetworkStats
81 public long txPackets; 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,
94 long txBytes, long txPackets, long operations) {
102 this.txPackets = txPackets;
107 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0;
111 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0
119 this.txPackets
93 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
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.java77 private long[] txPackets; field in class:NetworkStatsHistory
90 public long txPackets; field in class:NetworkStatsHistory.Entry
109 if ((fields & FIELD_TX_PACKETS) != 0) txPackets = new long[initialSize];
127 txPackets = readLongArray(in);
141 writeLongArray(out, txPackets, bucketCount);
155 txPackets = new long[bucketStart.length];
170 txPackets = readVarLongArray(in);
183 || txPackets.length != bucketCount || operations.length != bucketCount) {
196 writeVarLongArray(out, txPackets, bucketCount);
275 entry.txPackets
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.cpp60 uint64_t txPackets; member in struct:android::IfaceStat
93 uint64_t rxBytes, rxPackets, txBytes, txPackets, devRxBytes, devRxPackets, devTxBytes, local
98 &rxBytes, &rxPackets, &txBytes, &txPackets, &devRxBytes, &devRxPackets,
107 stat->txPackets += txPackets;
113 stat->txPackets += devTxPackets;
138 return stat.txPackets;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkStatsServiceTest.java840 long txBytes, long txPackets, int operations) throws Exception {
842 txPackets, operations);
846 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
849 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations);
854 txPackets, operations);
858 long txBytes, long txPackets, int operations) throws Exception {
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
863 long rxPackets, long txBytes, long txPackets, int operations) throws Exception {
868 txPackets, operations);
873 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets,
839 assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
845 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
857 assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
862 assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
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 154 milliseconds