Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java26 import static android.net.NetworkStats.SET_FOREGROUND;
85 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted()
104 assertEquals(3, stats.findIndexHinted(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, in testFindIndexHinted()
276 .addValues(TEST_IFACE, 101, SET_FOREGROUND, TAG_NONE, 32L, 0L, 0L, 0L, 0L); in testTotalBytes()
283 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 16L, 0L, 0L, 0L, 0L) in testTotalBytes()
319 .addValues(IFACE_ALL, 101, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_NO, 128L, in testGroupedByIfaceAll()
340 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, 512L, in testGroupedByIface()
364 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, 32L, in testAddAllValues()
366 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_YES, 32L, in testAddAllValues()
374 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_YES, 32L, in testAddAllValues()
[all …]
/frameworks/base/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java23 import static android.net.NetworkStats.SET_FOREGROUND;
106 assertStatsEntry(stats, "rmnet1", 10021, SET_FOREGROUND, 0x30100000, 742L, 3L, 1265L, 3L); in testNetworkStatsWithSet()
180 assertStatsEntry(stats, "v4-wlan0", 10106, SET_FOREGROUND, 0x0, appRxBytesBefore, 5199872L); in testDoubleClatAccounting100MBDownload()
185 assertStatsEntry(stats, "v4-wlan0", 10106, SET_FOREGROUND, 0x0, appRxBytesAfter, 7867488L); in testDoubleClatAccounting100MBDownload()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java20 import static android.net.NetworkStats.SET_FOREGROUND;
99 template, uid, SET_FOREGROUND, data.detailForeground); in loadInBackground()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java33 import static android.net.NetworkStats.SET_FOREGROUND;
298 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
299 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist()
313 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, 512L, 4L, in testStatsRebootPersist()
338 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, 512L, 4L, in testStatsRebootPersist()
699 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 32L, 2L, 32L, 2L, 0L) in testForegroundBackground()
700 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 1L, 1L, 1L, 1L, 0L)); in testForegroundBackground()
717 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testForegroundBackground()
719 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, 0xFAAD, METERED_NO, ROAMING_NO, 1L, in testForegroundBackground()
1092 if (set == SET_FOREGROUND || set == SET_ALL) { in assertValues()
[all …]
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java53 recycle.set = NetworkStats.SET_FOREGROUND; in setUp()
/frameworks/base/core/java/android/net/
DNetworkStats.java59 public static final int SET_FOREGROUND = 1; field in NetworkStats
820 case SET_FOREGROUND: in setToString()
840 case SET_FOREGROUND: in setToCheckinString()
1091 int idxVpnForeground = findIndex(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, in deductTrafficFromVpnApp()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java239 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;
719 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; in setUidForeground()