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.java30 import static android.net.NetworkStats.SET_FOREGROUND;
102 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted()
121 assertEquals(3, stats.findIndexHinted(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, in testFindIndexHinted()
302 .addValues(TEST_IFACE, 101, SET_FOREGROUND, TAG_NONE, 32L, 0L, 0L, 0L, 0L); in testTotalBytes()
309 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, 16L, 0L, 0L, 0L, 0L) in testTotalBytes()
347 .addValues(IFACE_ALL, 101, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_NO, in testGroupedByIfaceAll()
369 .addValues(TEST_IFACE2, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testGroupedByIface()
394 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testAddAllValues()
396 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_YES, in testAddAllValues()
404 .addValues(TEST_IFACE, 100, SET_FOREGROUND, TAG_NONE, METERED_YES, ROAMING_YES, in testAddAllValues()
[all …]
/frameworks/base/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java24 import static android.net.NetworkStats.SET_FOREGROUND;
115 assertStatsEntry(stats, "rmnet1", 10021, SET_FOREGROUND, 0x30100000, 742L, 3L, 1265L, 3L); in testNetworkStatsWithSet()
193 assertStatsEntry(stats, "v4-wlan0", 10106, SET_FOREGROUND, 0x0, appRxBytesBefore, 5199872L); in testDoubleClatAccounting100MBDownload()
198 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/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java37 import static android.net.NetworkStats.SET_FOREGROUND;
314 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L) in testStatsRebootPersist()
315 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 256L, 2L, 128L, 1L, 0L) in testStatsRebootPersist()
329 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
352 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
781 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 32L, 2L, 32L, 2L, 0L) in testForegroundBackground()
782 .addValues(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 1L, 1L, 1L, 1L, 0L)); in testForegroundBackground()
799 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, TAG_NONE, METERED_NO, ROAMING_NO, in testForegroundBackground()
801 assertValues(stats, IFACE_ALL, UID_RED, SET_FOREGROUND, 0xFAAD, METERED_NO, ROAMING_NO, in testForegroundBackground()
1170 sets = new int[] { SET_ALL, SET_DEFAULT, SET_FOREGROUND }; in assertValues()
/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.java60 public static final int SET_FOREGROUND = 1; field in NetworkStats
979 case SET_FOREGROUND: in setToString()
999 case SET_FOREGROUND: in setToCheckinString()
1270 int idxVpnForeground = findIndex(underlyingIface, tunUid, SET_FOREGROUND, TAG_NONE, in deductTrafficFromVpnApp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java35 import static android.net.NetworkStats.SET_FOREGROUND;
836 final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT; in setUidForeground()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java3157 NetworkStatsService.VT_INTERFACE, -1, NetworkStats.SET_FOREGROUND, in updateVtDataUsage()
3181 NetworkStats.SET_FOREGROUND, NetworkStats.TAG_NONE, NetworkStats.METERED_YES, in updateVtDataUsage()