/frameworks/base/core/jni/ |
android_net_TrafficStats.cpp | 51 uint64_t rxPackets; 63 return stats->rxPackets; 86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; 92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); 99 stats->rxPackets += rxPackets; 130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; 136 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, 140 stats->rxPackets += rxPackets; [all...] |
com_android_internal_net_NetworkStatsFactory.cpp | 46 jfieldID rxPackets; 58 int64_t rxPackets; 208 &s.uid, &s.set, &s.rxBytes, &s.rxPackets, 243 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, 244 gNetworkStatsClassInfo.rxPackets, size, grow)); 245 if (rxPackets.get() == NULL) return -1; 264 rxPackets[i] = lines[i].rxPackets; 277 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray()) [all...] |
/frameworks/base/core/java/android/net/ |
NetworkStats.java | 74 private long[] rxPackets; 85 public long rxPackets; 94 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 95 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 99 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, 106 this.rxPackets = rxPackets; 113 return rxBytes < 0 || rxPackets < 0 || txBytes < 0 || txPackets < 0 || operations < 0; 117 return rxBytes == 0 && rxPackets == 0 && txBytes == 0 && txPackets == 0 123 this.rxPackets += another.rxPackets [all...] |
NetworkStatsHistory.java | 77 private long[] rxPackets; 90 public long rxPackets; 109 if ((fields & FIELD_RX_PACKETS) != 0) rxPackets = new long[initialSize]; 127 rxPackets = readLongArray(in); 141 writeLongArray(out, rxPackets, bucketCount); 155 rxPackets = new long[bucketStart.length]; 170 rxPackets = readVarLongArray(in); 184 || rxPackets.length != bucketCount || txBytes.length != bucketCount 196 writeVarLongArray(out, rxPackets, bucketCount); 275 entry.rxPackets = getLong(rxPackets, i, UNKNOWN) [all...] |
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
DataIdleTest.java | 97 long rxPackets = 0; 109 rxPackets += statsEntry.rxPackets; 116 result.putLong("Total rx Packets", rxPackets);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsCollectionTest.java | 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) { 189 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
|
/system/netd/server/ |
BandwidthController.h | 30 : rxBytes(-1), rxPackets(-1), 36 rxBytes(rxB), rxPackets(rxP), 42 int64_t rxBytes, rxPackets;
|
BandwidthController.cpp | [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
NetworkStatsFactory.java | 112 entry.rxPackets = reader.nextLong(); 119 entry.rxPackets += reader.nextLong(); 167 entry.rxPackets = reader.nextLong(); 225 entry.rxBytes = entry.rxPackets * 20; 226 entry.rxPackets = 0; 296 entry.rxPackets = reader.nextLong();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
NetworkStatsServiceTest.java | [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
NetworkStatsFactoryTest.java | 166 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { 170 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsHistoryTest.java | 321 entry.rxPackets = nextPositiveLong(r); 528 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 532 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets); 539 long rxPackets, long txBytes, long txPackets, long operations) { 540 assertValues(stats, Long.MIN_VALUE, Long.MAX_VALUE, activeTime, rxBytes, rxPackets, txBytes, 545 long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, 550 assertEquals("unexpected rxPackets", rxPackets, entry.rxPackets) [all...] |
NetworkStatsTest.java | 324 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { 327 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 338 private static void assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, 341 assertEquals(rxPackets, entry.rxPackets);
|
/frameworks/base/wifi/java/android/net/wifi/ |
WifiInfo.java | 193 public void updatePacketRates(long txPackets, long rxPackets) { 203 + ((double) (rxPackets - rxSuccess) * 0.5); 205 rxSuccess = rxPackets;
|
/frameworks/base/core/tests/utillib/src/android/test/ |
BandwidthTestCase.java | 35 private static final String REPORT_KEY_PACKETS_RECEIVED = "rxPackets"; 151 bundle.putLong(REPORT_KEY_PACKETS_RECEIVED, entry.rxPackets);
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsService.java | [all...] |
NetworkStatsCollection.java | 188 entry.rxPackets = historyEntry.rxPackets;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
MobileDataControllerImpl.java | 193 .append(",rxPackets=").append(entry.rxPackets)
|
/packages/apps/Settings/src/com/android/settings/ |
RadioInfo.java | 699 long rxPackets = TrafficStats.getMobileRxPackets(); 707 received.setText(rxPackets + " " + packets + ", " + rxBytes + " " + bytes); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
NetworkManagementService.java | [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
BatteryStatsImpl.java | [all...] |
/prebuilts/devtools/tools/lib/ |
ddmuilib.jar | |