/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.java | 84 private long[] txBytes; field in class:NetworkStatsHistory 97 public long txBytes; field in class:NetworkStatsHistory.Entry 116 if ((fields & FIELD_TX_BYTES) != 0) txBytes = new long[initialSize]; 134 txBytes = readLongArray(in); 148 writeLongArray(out, txBytes, bucketCount); 162 txBytes = readFullLongArray(in); 166 totalBytes = total(rxBytes) + total(txBytes); 177 txBytes = readVarLongArray(in); 181 totalBytes = total(rxBytes) + total(txBytes); 190 || rxPackets.length != bucketCount || txBytes 311 recordData(long start, long end, long rxBytes, long txBytes) argument 586 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument [all...] |
H A D | NetworkStats.java | 124 private long[] txBytes; field in class:NetworkStats 153 public long txBytes; field in class:NetworkStats.Entry 161 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { argument 162 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 167 long txBytes, long txPackets, long operations) { 169 rxBytes, rxPackets, txBytes, txPackets, operations); 173 int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, 184 this.txBytes = txBytes; 190 return rxBytes < 0 || rxPackets < 0 || txBytes < 166 Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 172 Entry(String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 334 addIfaceValues( String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) argument 341 addValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 348 addValues(String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 445 combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 452 combineValues(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_net_NetworkStatsService.cpp | 65 return stats->txBytes; 86 uint64_t rxBytes, rxPackets, txBytes, txPackets, tcpRxPackets, tcpTxPackets; local 92 &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets); 100 stats->txBytes += txBytes; 130 uint64_t tag, rxBytes, rxPackets, txBytes, txPackets; local 137 &txBytes, &txPackets) == 9) { 141 stats->txBytes += txBytes;
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
H A D | DataIdleTest.java | 96 long txBytes = 0; 107 result.putLong(String.format(labelTemplate, "txBytes"), statsEntry.txBytes); 112 txBytes += statsEntry.txBytes; 115 result.putLong("Total tx Bytes", txBytes);
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
H A D | NetworkStatsBenchmark.java | 43 recycle.txBytes = 150000; 57 recycle.txBytes = 180000 * mSize;
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
H A D | OffloadHardwareInterface.java | 72 public long txBytes; field in class:OffloadHardwareInterface.ForwardedStats 76 txBytes = 0; 81 txBytes += other.txBytes; 85 return String.format("rx:%s tx:%s", rxBytes, txBytes); 164 (long rxBytes, long txBytes) -> { 166 stats.txBytes = (txBytes > 0) ? txBytes : 0;
|
H A D | OffloadController.java | 278 entry.txBytes = value.txBytes; 314 // updated and txBytes is not.
|
/frameworks/base/core/jni/ |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 58 jfieldID txBytes; member in struct:android::__anon926 190 &s.txBytes, &s.txPackets) == 6) { 241 ScopedLongArrayRW txBytes(env, get_long_array(env, stats, 242 gNetworkStatsClassInfo.txBytes, size, grow)); 243 if (txBytes.get() == NULL) return -1; 261 txBytes[i] = lines[i].txBytes; 278 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray()); 356 gNetworkStatsClassInfo.txBytes [all...] |
/frameworks/base/tests/net/java/android/net/ |
H A D | NetworkStatsHistoryTest.java | 87 assertEquals(6223L, entry.txBytes); 91 assertEquals(838L, entry.txBytes); 95 assertEquals(64314L, entry.txBytes); 342 entry.txBytes = nextPositiveLong(r); 525 entry.txBytes *= 2; 557 NetworkStatsHistory stats, int index, long rxBytes, long txBytes) { 560 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 564 NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) { 556 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument 563 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument 570 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 581 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 587 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument [all...] |
H A D | NetworkStatsTest.java | 792 3800 /* txBytes */, 800 876235 /* txBytes */, 837 3800 /* txBytes */, 844 6000 /* txBytes */, 862 long txBytes, long txPackets, long operations) { 866 rxBytes, rxPackets, txBytes, txPackets, operations); 871 long txBytes, long txPackets, long operations) { 874 assertValues(entry, rxBytes, rxPackets, txBytes, txPackets, operations); 890 long txBytes, long txPackets, long operations) { 893 assertEquals(txBytes, entr 860 assertContains(NetworkStats stats, String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 869 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 889 assertValues(NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument [all...] |
/frameworks/base/tests/net/java/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 243 int tag, long rxBytes, long txBytes) { 252 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 256 int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) { 266 assertEquals("unexpected txBytes", txBytes, entry.txBytes); 242 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument 255 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
|
/frameworks/base/core/java/com/android/internal/net/ |
H A D | NetworkStatsFactory.java | 182 entry.txBytes = reader.nextLong(); 189 entry.txBytes += reader.nextLong(); 240 entry.txBytes = reader.nextLong(); 332 entry.txBytes = reader.nextLong();
|
/frameworks/base/tests/net/java/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 549 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, 554 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); 558 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { 562 assertEntry(rxBytes, rxPackets, txBytes, txPackets, actual); 565 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, argument 567 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); 570 private static void assertEntry(long rxBytes, long rxPackets, long txBytes, long txPackets, argument 572 assertEntry(new NetworkStats.Entry(rxBytes, rxPackets, txBytes, txPackets, 0L), actual); 578 actual.txBytes, actual.txPackets, 0L)); 585 assertEquals("unexpected txBytes", expecte 548 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument 557 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
H A D | NetworkStatsServiceTest.java | 1040 long txBytes, long txPackets, int operations) throws Exception { 1041 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 1046 long rxPackets, long txBytes, long txPackets, int operations) throws Exception { 1049 assertValues(history, start, end, rxBytes, rxPackets, txBytes, txPackets, operations); 1054 DEFAULT_NETWORK_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 1058 long txBytes, long txPackets, int operations) throws Exception { 1060 rxBytes, rxPackets, txBytes, txPackets, operations); 1064 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, 1069 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 1076 rxBytes, rxPackets, txBytes, txPacket 1039 assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1045 assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1057 assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1063 assertUidTotal(NetworkTemplate template, int uid, int set, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1164 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 1217 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
H A D | BandwidthTest.java | 326 totalStats.txBytes += statsEntry.txBytes; 331 results.putLong(label + "tx", totalStats.txBytes);
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 307 if (entry.rxBytes == 0 || entry.txBytes == 0) { 313 final long rawBytes = entry.rxBytes + entry.txBytes; 315 final long rawTxBytes = entry.txBytes; 327 entry.txBytes = multiplySafe(targetTxBytes, entry.txBytes, rawTxBytes); 385 entry.txBytes = historyEntry.txBytes; 405 noteRecordedHistory(history.getStart(), history.getEnd(), entry.rxBytes + entry.txBytes);
|
H A D | NetworkStatsRecorder.java | 253 entry.txBytes = Math.max(entry.txBytes, 0);
|
H A D | NetworkStatsService.java | 716 entry.txBytes, entry.txPackets, entry.operations)); 1341 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1342 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1343 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets, 1353 devTotal.rxBytes, devTotal.rxPackets, devTotal.txBytes, devTotal.txPackets, 1354 xtTotal.rxBytes, xtTotal.rxPackets, xtTotal.txBytes, xtTotal.txPackets, 1355 uidTotal.rxBytes, uidTotal.rxPackets, uidTotal.txBytes, uidTotal.txPackets,
|
/frameworks/base/core/tests/utillib/src/android/test/ |
H A D | BandwidthTestCase.java | 36 private static final String REPORT_KEY_BYTES_SENT = "txBytes"; 150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | DataUsageController.java | 156 final long totalBytes = entry.rxBytes + entry.txBytes; 200 .append(",txBytes=").append(entry.txBytes)
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
H A D | OffloadControllerTest.java | 390 assertEquals(stats.txBytes, entry.txBytes); 408 ethernetStats.txBytes = 54321; 412 mobileStats.txBytes = 99999; 437 ethernetStats.txBytes = 100000; 472 ethernetStats.txBytes = 54321 + 100000;
|
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStats.java | 620 bucketOut.mTxBytes = mRecycledSummaryEntry.txBytes; 672 bucketOut.mTxBytes = mRecycledHistoryEntry.txBytes;
|
/frameworks/base/tests/net/java/android/app/usage/ |
H A D | NetworkStatsManagerTest.java | 210 assertEquals(expected.txBytes, actual.getTxBytes());
|
/frameworks/base/services/core/java/com/android/server/stats/ |
H A D | StatsCompanionService.java | 537 e.writeLong(entry.txBytes); 568 entry.txBytes = recycle.txBytes;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 1015 return entry.rxBytes + entry.txBytes; 1120 return entry.rxBytes + entry.txBytes; 1512 return entry.rxBytes + entry.txBytes;
|