/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsTest.java | 23 import static android.net.NetworkStats.TAG_NONE; 44 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, 1024L, 8L, 0L, 0L, 10) in testFindIndex() 45 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, 0L, 0L, 1024L, 8L, 11) in testFindIndex() 46 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, 1024L, 8L, 1024L, 8L, 12); in testFindIndex() 48 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE)); in testFindIndex() 49 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE)); in testFindIndex() 50 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE)); in testFindIndex() 51 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE)); in testFindIndex() 56 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, 1024L, 8L, 0L, 0L, 10) in testFindIndexHinted() 57 .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; 261 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 263 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 265 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist() 401 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 403 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 427 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 429 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 512L, 4L, 0L, 0L, 0L)); in testUidStatsAcrossNetworks() 444 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 446 .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 | 58 public static final int TAG_NONE = 0; field in NetworkStats 91 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L, 0L, 0L, 0L); in Entry() 95 this(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, in Entry() 232 iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); in addIfaceValues() 495 entry.tag = TAG_NONE; in getTotal() 508 if (tag[i] != TAG_NONE && !includeTags) continue; in getTotal() 637 entry.tag = TAG_NONE; in groupedByIface() 642 if (tag[i] != TAG_NONE) continue; in groupedByIface() 665 entry.tag = TAG_NONE; in groupedByUid() 669 if (tag[i] != TAG_NONE) continue; in groupedByUid()
|
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/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 22 import static android.net.NetworkStats.TAG_NONE; 355 final Key key = new Key(ident, UID_ALL, SET_ALL, TAG_NONE); in readLegacyNetwork() 418 if ((tag == TAG_NONE) != onlyTags) { in readLegacyUid() 449 if (key.tag == TAG_NONE) { in removeUids() 452 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
|
D | NetworkStatsRecorder.java | 19 import static android.net.NetworkStats.TAG_NONE; 198 if ((entry.tag == TAG_NONE) != mOnlyTags) { in recordSnapshotLocked()
|
D | NetworkStatsService.java | 34 import static android.net.NetworkStats.TAG_NONE; 485 if (tag == TAG_NONE) { in openSession() 518 return mXtStatsCached.getHistory(template, UID_ALL, SET_ALL, TAG_NONE, fields); in internalGetHistoryForNetwork() 575 if (tag == TAG_NONE) { in incrementOperationCount() 584 mActiveIface, uid, set, TAG_NONE, 0L, 0L, 0L, 0L, operationCount); in incrementOperationCount()
|
/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/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 | 24 import static android.net.NetworkStats.TAG_NONE; 1691 entry.tag = TAG_NONE; in getNetworkStatsTethering()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 7152 mMobileIfaces, NetworkStats.TAG_NONE, mLastMobileSnapshot); in updateNetworkActivityLocked() 7216 mWifiIfaces, NetworkStats.TAG_NONE, mLastWifiSnapshot); in updateNetworkActivityLocked()
|