/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsTest.java | 19 import static android.net.NetworkStats.SET_DEFAULT; 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 | 27 import static android.net.NetworkStats.SET_DEFAULT; 262 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist() 263 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist() 266 .addValues(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L)); in testStatsRebootPersist() 280 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, 512L, 4L, 256L, 2L, 4); in testStatsRebootPersist() 316 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, 512L, 4L, 256L, 2L, 4); in testStatsRebootPersist() 402 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, 1536L, 12L, 512L, 4L, 0L) in testUidStatsAcrossNetworks() 403 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, 512L, 4L, 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() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 20 import static android.net.NetworkStats.SET_DEFAULT; 77 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); in testNetworkStatsDetail() 78 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); in testNetworkStatsDetail() 79 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); in testNetworkStatsDetail() 80 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); in testNetworkStatsDetail() 81 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); in testNetworkStatsDetail() 103 … assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, 676L); in testNetworkStatsWithSet()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 56 public static final int SET_DEFAULT = 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() 330 iface, uid, SET_DEFAULT, tag, rxBytes, rxPackets, txBytes, txPackets, operations); in combineValues() 735 case SET_DEFAULT: in setToString() 755 case SET_DEFAULT: in setToCheckinString() 957 int idxVpnBackground = findIndex(underlyingIface, tunUid, SET_DEFAULT, TAG_NONE); in deductTrafficFromVpnApp()
|
D | NetworkStatsHistory.java | 20 import static android.net.NetworkStats.SET_DEFAULT; 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/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 19 import static android.net.NetworkStats.SET_DEFAULT; 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 | 21 import static android.net.NetworkStats.SET_DEFAULT; 445 : SET_DEFAULT; in readLegacyUid() 485 key.ident, UID_REMOVED, SET_DEFAULT, TAG_NONE); in removeUids()
|
D | NetworkStatsService.java | 32 import static android.net.NetworkStats.SET_DEFAULT; 690 final int set = mActiveUidCounterSet.get(uid, SET_DEFAULT); in incrementOperationCount() 703 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; in setUidForeground() 704 final int oldSet = mActiveUidCounterSet.get(uid, SET_DEFAULT); in setUidForeground()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 165 case android.net.NetworkStats.SET_DEFAULT : return STATE_DEFAULT; in convertState()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 264 stats.addValues(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT, in fetchDataFromProc()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 31 import static android.net.NetworkStats.SET_DEFAULT; 1871 entry.set = SET_DEFAULT; in getNetworkStatsTethering()
|