Home
last modified time | relevance | path

Searched refs:SET_FOREGROUND (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsTest.java20 import static android.net.NetworkStats.SET_FOREGROUND;
61 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 1024L, 8L, 0L, 0L, 10) in testFindIndexHinted()
70 … assertEquals(3, stats.findIndexHinted(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, hint)); in testFindIndexHinted()
195 .addValues(TEST_IFACE, 101, SET_FOREGROUND, TAG_NONE, 32L, 0L, 0L, 0L, 0L); in testTotalBytes()
202 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 16L, 0L, 0L, 0L, 0L) in testTotalBytes()
219 .addValues(IFACE_ALL, 101, SET_FOREGROUND, TAG_NONE, 128L, 8L, 0L, 2L, 20L); in testGroupedByIfaceAll()
233 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 512L, 32L, 0L, 0L, 0L) in testGroupedByIface()
249 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, 32L, 0L, 0L, 0L, 0L); in testAddAllValues()
259 assertValues(first, 1, TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, 32L, 0L, 0L, 0L, 0L); in testAddAllValues()
268 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 512L, 32L, 0L, 0L, 0L) in testGetTotal()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkStatsServiceTest.java28 import static android.net.NetworkStats.SET_FOREGROUND;
264 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
265 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist()
281 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, 512L, 4L, 256L, 2L, 6); in testStatsRebootPersist()
317 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, 512L, 4L, 256L, 2L, 6); in testStatsRebootPersist()
716 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 32L, 2L, 32L, 2L, 0L) in testForegroundBackground()
717 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 1L, 1L, 1L, 1L, 0L)); 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()
981 if (set == SET_FOREGROUND || set == SET_ALL) { in assertValues()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java21 import static android.net.NetworkStats.SET_FOREGROUND;
104 assertStatsEntry(stats, "rmnet1", 10021, SET_FOREGROUND, 0x30100000, 742L, 3L, 1265L, 3L); in testNetworkStatsWithSet()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java55 recycle.set = NetworkStats.SET_FOREGROUND; in setUp()
/frameworks/base/core/java/android/net/
DNetworkStats.java58 public static final int SET_FOREGROUND = 1; field in NetworkStats
737 case SET_FOREGROUND: in setToString()
757 case SET_FOREGROUND: in setToCheckinString()
962 int idxVpnForeground = findIndex(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE); in deductTrafficFromVpnApp()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java166 case android.net.NetworkStats.SET_FOREGROUND : return STATE_FOREGROUND; in convertState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java33 import static android.net.NetworkStats.SET_FOREGROUND;
703 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; in setUidForeground()