/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsTest.java | 25 import static android.net.NetworkStats.TAG_NONE; 46 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, 1024L, 8L, 0L, 0L, 10) in testFindIndex() 47 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, 0L, 0L, 1024L, 8L, 11) in testFindIndex() 48 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, 1024L, 8L, 1024L, 8L, 12); in testFindIndex() 50 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE)); in testFindIndex() 51 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE)); in testFindIndex() 52 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE)); in testFindIndex() 53 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE)); in testFindIndex() 58 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, 1024L, 8L, 0L, 0L, 10) in testFindIndexHinted() 59 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, 0L, 0L, 1024L, 8L, 11) in testFindIndexHinted() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkStatsServiceTest.java | 29 import static android.net.NetworkStats.TAG_NONE; 262 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 264 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 266 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist() 402 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 404 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 428 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 430 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 445 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 447 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 640L, 5L, 1024L, 8L, 0L) in testUidStatsAcrossNetworks() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 22 import static android.net.NetworkStats.TAG_NONE; 112 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 2112L, 24L, 700L, 10L); in testNetworkStatsSingle() 113 assertStatsEntry(stats, "test1", UID_ALL, SET_ALL, TAG_NONE, 6L, 8L, 10L, 12L); in testNetworkStatsSingle() 114 assertStatsEntry(stats, "test2", UID_ALL, SET_ALL, TAG_NONE, 1L, 2L, 3L, 4L); in testNetworkStatsSingle() 123 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_ALL, TAG_NONE, 6824L, 16L, 5692L, 10L); in testNetworkStatsXt() 124 … assertStatsEntry(stats, "rmnet1", UID_ALL, SET_ALL, TAG_NONE, 11153922L, 8051L, 190226L, 2468L); in testNetworkStatsXt() 125 assertStatsEntry(stats, "rmnet2", UID_ALL, SET_ALL, TAG_NONE, 4968L, 35L, 3081L, 39L); in testNetworkStatsXt()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 67 public static final int TAG_NONE = 0; field in NetworkStats 100 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in Entry() 104 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 241 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); in addIfaceValues() 504 entry.tag = TAG_NONE; in getTotal() 517 if (tag[i] != TAG_NONE && !includeTags) continue; in getTotal() 646 entry.tag = TAG_NONE; in groupedByIface() 651 if (tag[i] != TAG_NONE) continue; in groupedByIface() 674 entry.tag = TAG_NONE; in groupedByUid() 678 if (tag[i] != TAG_NONE) continue; in groupedByUid() [all …]
|
D | NetworkStatsHistory.java | 21 import static android.net.NetworkStats.TAG_NONE; 289 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, 0L, txBytes, 0L, 0L)); in recordData() 363 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in recordHistory() 552 IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in generateRandom()
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 42 recycle.tag = NetworkStats.TAG_NONE; in setUp() 56 recycle.tag = NetworkStats.TAG_NONE; in setUp()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 342 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in startHistoryEnumeration() 365 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in startUserUidEnumeration() 388 android.net.NetworkStats.SET_ALL, android.net.NetworkStats.TAG_NONE, in stepHistory()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 21 import static android.net.NetworkStats.TAG_NONE; 106 entry.tag = TAG_NONE; in readNetworkStatsSummaryDev() 164 entry.tag = TAG_NONE; in readNetworkStatsSummaryXt()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 20 import static android.net.NetworkStats.TAG_NONE; 146 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 22 import static android.net.NetworkStats.TAG_NONE; 388 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork() 451 if ((tag == TAG_NONE) != onlyTags) { in readLegacyUid() 482 if (key.tag == TAG_NONE) { in removeUids() 485 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
|
D | NetworkStatsService.java | 34 import static android.net.NetworkStats.TAG_NONE; 534 if (tag == TAG_NONE) { in createSession() 546 if (tag == TAG_NONE) { in createSession() 628 return mXtStatsCached.getHistory(template, UID_ALL, SET_ALL, TAG_NONE, fields); in internalGetHistoryForNetwork() 685 if (tag == TAG_NONE) { in incrementOperationCount() 694 mActiveIface, uid, set, TAG_NONE, 0L, 0L, 0L, 0L, operationCount); in incrementOperationCount()
|
D | NetworkStatsRecorder.java | 19 import static android.net.NetworkStats.TAG_NONE; 206 if ((entry.tag == TAG_NONE) != mOnlyTags) { in recordSnapshotLocked()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 265 NetworkStats.TAG_NONE, rx, 0, tx, 0, 0); in fetchDataFromProc()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 33 import static android.net.NetworkStats.TAG_NONE; 1872 entry.tag = TAG_NONE; in getNetworkStatsTethering()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 7590 ifaces, NetworkStats.TAG_NONE, networkStatsBuffer[NETWORK_STATS_NEXT]); in getNetworkStatsDeltaLocked()
|