Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java34 import static android.net.NetworkStats.SET_FOREGROUND;
103 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted()
122 assertEquals(3, stats.findIndexHinted(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, in testFindIndexHinted()
303 .addValues(TEST_IFACE, 101, SET_FOREGROUND, TAG_NONE, 32L, 0L, 0L, 0L, 0L); in testTotalBytes()
310 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 16L, 0L, 0L, 0L, 0L) in testTotalBytes()
348 .addValues(IFACE_ALL, 101, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_NO, in testGroupedByIfaceAll()
370 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testGroupedByIface()
395 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testAddAllValues()
397 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_YES, in testAddAllValues()
405 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_YES, in testAddAllValues()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsFactoryTest.java24 import static android.net.NetworkStats.SET_FOREGROUND;
122 assertStatsEntry(stats, "rmnet1", 10021, SET_FOREGROUND, 0x30100000, 742L, 3L, 1265L, 3L); in testNetworkStatsWithSet()
202 assertStatsEntry(stats, "v4-wlan0", 10106, SET_FOREGROUND, 0x0, appRxBytesBefore, 5199872L); in testDoubleClatAccounting100MBDownload()
207 assertStatsEntry(stats, "v4-wlan0", 10106, SET_FOREGROUND, 0x0, appRxBytesAfter, 7867488L); in testDoubleClatAccounting100MBDownload()
DNetworkStatsServiceTest.java38 import static android.net.NetworkStats.SET_FOREGROUND;
313 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
314 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist()
328 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
351 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
780 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 32L, 2L, 32L, 2L, 0L) in testForegroundBackground()
781 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 1L, 1L, 1L, 1L, 0L)); in testForegroundBackground()
798 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testForegroundBackground()
800 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, 0xFAAD, METERED_NO, ROAMING_NO, in testForegroundBackground()
1273 sets = new int[] { SET_ALL, SET_DEFAULT, SET_FOREGROUND }; in assertValues()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java20 import static android.net.NetworkStats.SET_FOREGROUND;
102 template, uid, SET_FOREGROUND, data.detailForeground); in loadInBackground()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java53 recycle.set = NetworkStats.SET_FOREGROUND; in setUp()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java285 case STATE_FOREGROUND: return android.net.NetworkStats.SET_FOREGROUND; in convertSet()
294 case android.net.NetworkStats.SET_FOREGROUND : return STATE_FOREGROUND; in convertState()
/frameworks/base/core/java/android/net/
DNetworkStats.java64 public static final int SET_FOREGROUND = 1; field in NetworkStats
1046 case SET_FOREGROUND: in setToString()
1066 case SET_FOREGROUND: in setToCheckinString()
1338 int idxVpnForeground = findIndex(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, in deductTrafficFromVpnApp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java36 import static android.net.NetworkStats.SET_FOREGROUND;
855 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; in setUidForeground()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java3438 NetworkStatsService.VT_INTERFACE, -1, NetworkStats.SET_FOREGROUND, in updateVtDataUsage()
3462 NetworkStats.SET_FOREGROUND, NetworkStats.TAG_NONE, NetworkStats.METERED_YES, in updateVtDataUsage()