/frameworks/base/core/java/android/net/ |
NetworkStats.java | 68 private long[] rxPackets; 79 public long rxPackets; 88 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 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, 100 this.rxPackets = rxPackets; 114 builder.append(" rxPackets=").append(rxPackets); 130 this.rxPackets = new long[initialSize] [all...] |
NetworkStatsHistory.java | 73 private long[] rxPackets; 85 public long rxPackets; 104 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; 116 rxPackets = readLongArray(in); 129 writeLongArray(out, rxPackets, bucketCount); 142 rxPackets = new long[bucketStart.length]; 156 rxPackets = readVarLongArray(in); 175 writeVarLongArray(out, rxPackets, bucketCount); 247 entry.rxPackets = getLong(rxPackets, i, UNKNOWN) [all...] |
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
DataIdleTest.java | 92 long rxPackets = 0; 104 rxPackets += statsEntry.rxPackets; 111 result.putLong("Total rx Packets", rxPackets);
|
/system/netd/ |
BandwidthController.h | 28 : rxBytes(-1), rxPackets(-1), 34 rxBytes(rxB), rxPackets(rxP), 38 int64_t rxBytes, rxPackets;
|
BandwidthController.cpp | 945 stats.rxPackets = packets; 961 rxBytes, rxPackets, txBytes, txPackets);
|
/frameworks/base/core/java/com/android/internal/net/ |
NetworkStatsFactory.java | 133 entry.rxPackets = getParsedLong(parsed, KEY_SNAP_RX_PACKETS); 141 entry.rxPackets += getParsedLong(parsed, KEY_RX_PACKETS); 190 entry.rxPackets = readSingleLongFromFile(new File(ifacePath, "rx_packets")); 218 entry.rxPackets = Long.parseLong(values.get(2)); 300 entry.rxPackets = getParsedLong(parsed, KEY_RX_PACKETS);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
NetworkStatsFactoryTest.java | 208 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { 212 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
NetworkStatsServiceTest.java | 753 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, 756 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 760 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, 762 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 766 long rxPackets, long txBytes, long txPackets, int operations) { 769 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsHistoryTest.java | 319 entry.rxPackets = nextPositiveLong(r); 492 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 496 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); 503 long rxPackets, long txBytes, long txPackets, long operations) { 504 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes, 509 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, 514 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets) [all...] |
NetworkStatsTest.java | 261 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 264 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 275 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, 278 assertEquals(rxPackets, entry.rxPackets);
|
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsService.java | 458 entry.rxPackets = historyEntry.rxPackets; 498 entry.rxPackets = historyEntry.rxPackets; 503 if (entry.rxBytes > 0 || entry.rxPackets > 0 || entry.txBytes > 0 [all...] |
/packages/apps/Settings/src/com/android/settings/ |
RadioInfo.java | 638 long rxPackets = TrafficStats.getMobileRxPackets(); 646 received.setText(rxPackets + " " + packets + ", " + rxBytes + " " + bytes); [all...] |
/frameworks/base/services/java/com/android/server/ |
NetworkManagementService.java | [all...] |