/frameworks/base/core/java/android/net/ |
NetworkStats.java | 67 private long[] rxBytes; 78 public long rxBytes; 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, 99 this.rxBytes = rxBytes; 113 builder.append(" rxBytes=").append(rxBytes); 129 this.rxBytes = new long[initialSize] [all...] |
NetworkStatsHistory.java | 72 private long[] rxBytes; 84 public long rxBytes; 103 if ((fields & FIELD_RX_BYTES) != 0) rxBytes = new long[initialSize]; 115 rxBytes = readLongArray(in); 128 writeLongArray(out, rxBytes, bucketCount); 141 rxBytes = readFullLongArray(in); 155 rxBytes = readVarLongArray(in); 174 writeVarLongArray(out, rxBytes, bucketCount); 246 entry.rxBytes = getLong(rxBytes, i, UNKNOWN) [all...] |
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
DataIdleTest.java | 90 long rxBytes = 0; 101 result.putLong(String.format(labelTemplate, "rxBytes"), statsEntry.rxBytes); 105 rxBytes += statsEntry.rxBytes; 109 result.putLong("Total rx Bytes", rxBytes);
|
/system/netd/ |
BandwidthController.h | 28 : rxBytes(-1), rxPackets(-1), 34 rxBytes(rxB), rxPackets(rxP), 38 int64_t rxBytes, rxPackets;
|
BandwidthController.cpp | 946 stats.rxBytes = bytes; 954 return (stats.rxBytes == -1 || stats.txBytes == -1) ? -1 : 0; 961 rxBytes, rxPackets, txBytes, txPackets); 971 if (stats.rxBytes != -1 || stats.txBytes != -1) {
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
NetworkStatsFactoryTest.java | 200 int tag, long rxBytes, long txBytes) { 203 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); 208 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { 211 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsHistoryTest.java | 77 assertEquals(29143L, entry.rxBytes); 81 assertEquals(1476L, entry.rxBytes); 85 assertEquals(332401L, entry.rxBytes); 318 entry.rxBytes = nextPositiveLong(r); 478 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 480 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes); 485 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 487 assertEquals("unexpected rxBytes", rxBytes, entry.rxBytes) [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, 277 assertEquals(rxBytes, entry.rxBytes);
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
BandwidthTest.java | 250 mapEntry.rxBytes = statsEntry.rxBytes; 255 mapEntry.rxBytes += statsEntry.rxBytes; 269 results.putLong(label + "rx", entry.rxBytes);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
ChartNetworkSeriesView.java | 214 totalData += entry.rxBytes + entry.txBytes; 263 final long longWindow = (entry.rxBytes + entry.txBytes) * bucketDuration 273 final long shortWindow = (entry.rxBytes + entry.txBytes) * bucketDuration 307 return entry.rxBytes + entry.txBytes;
|
/frameworks/base/core/java/com/android/internal/net/ |
NetworkStatsFactory.java | 132 entry.rxBytes = getParsedLong(parsed, KEY_SNAP_RX_BYTES); 140 entry.rxBytes += getParsedLong(parsed, KEY_RX_BYTES); 189 entry.rxBytes = readSingleLongFromFile(new File(ifacePath, "rx_bytes")); 217 entry.rxBytes = Long.parseLong(values.get(1)); 299 entry.rxBytes = getParsedLong(parsed, KEY_RX_BYTES);
|
/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); 765 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, 769 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, [all...] |
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsService.java | 457 entry.rxBytes = historyEntry.rxBytes; 497 entry.rxBytes = historyEntry.rxBytes; 503 if (entry.rxBytes > 0 || entry.rxPackets > 0 || entry.txBytes > 0 [all...] |
/packages/apps/Settings/src/com/android/settings/ |
RadioInfo.java | 640 long rxBytes = TrafficStats.getMobileRxBytes(); 646 received.setText(rxPackets + " " + packets + ", " + rxBytes + " " + bytes); [all...] |
DataUsageSummary.java | [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
BatteryStatsImpl.java | [all...] |
/frameworks/base/services/java/com/android/server/ |
ThrottleService.java | 520 incRead = entry.rxBytes - mLastRead; [all...] |
NetworkManagementService.java | [all...] |