/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkStatsServiceTest.java | 25 import static android.net.NetworkStats.IFACE_ALL; 662 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, 50L, 5L, 50L, 5L, 1); in testSummaryForAllUid() 663 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, 10L, 1L, 10L, 1L, 1); in testSummaryForAllUid() 664 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, 2048L, 16L, 1024L, 8L, 0); in testSummaryForAllUid() 671 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, 1024L, 8L, 512L, 4L, 0); in testSummaryForAllUid() 733 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, 128L, 2L, 128L, 2L, 1); in testForegroundBackground() 734 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, 64L, 1L, 64L, 1L, 1); in testForegroundBackground() 735 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, TAG_NONE, 32L, 2L, 32L, 2L, 1); in testForegroundBackground() 736 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, 0xFAAD, 1L, 1L, 1L, 1L, 1); in testForegroundBackground() 854 assertValues(stats, IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, in assertNetworkTotal() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsTest.java | 24 import static android.net.NetworkStats.IFACE_ALL; 218 .addValues(IFACE_ALL, 100, SET_ALL, TAG_NONE, 128L, 8L, 0L, 2L, 20L) in testGroupedByIfaceAll() 219 .addValues(IFACE_ALL, 101, SET_FOREGROUND, TAG_NONE, 128L, 8L, 0L, 2L, 20L); in testGroupedByIfaceAll() 225 assertValues(grouped, 0, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, 256L, 16L, 0L, 4L, 0L); in testGroupedByIfaceAll()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 48 public static final String IFACE_ALL = null; 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() 430 if (iface != IFACE_ALL) { in getUniqueIfaces() 501 entry.iface = IFACE_ALL; in getTotal() 672 entry.iface = IFACE_ALL; in groupedByUid()
|
D | NetworkStatsHistory.java | 19 import static android.net.NetworkStats.IFACE_ALL; 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 | 19 import static android.net.NetworkStats.IFACE_ALL; 216 entry.iface = IFACE_ALL; in getSummary()
|
D | NetworkStatsService.java | 30 import static android.net.NetworkStats.IFACE_ALL; 664 entry.iface = IFACE_ALL; in getDataLayerSnapshotForUid()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 264 stats.addValues(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT, in fetchDataFromProc()
|