Home
last modified time | relevance | path

Searched refs:METERED_NO (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java24 import static android.net.NetworkStats.METERED_NO;
66 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex()
68 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex()
72 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex()
79 assertEquals(3, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
83 assertEquals(1, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
85 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
87 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
89 assertEquals(-1, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
96 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndexHinted()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java23 import static android.net.NetworkStats.METERED_NO;
345 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid()
353 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid()
380 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
388 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
414 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies()
422 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies()
449 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
457 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
DNetworkStatsServiceTest.java30 import static android.net.NetworkStats.METERED_NO;
327 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
329 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
350 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
352 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
643 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
645 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
647 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
655 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
795 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testForegroundBackground()
[all …]
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java176 METERED_NO,
190 public static final int METERED_NO = 0x1; field in NetworkStats.Bucket
317 case android.net.NetworkStats.METERED_NO: return METERED_NO; in convertMetered()
/frameworks/base/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java20 import static android.net.NetworkStats.METERED_NO;
244 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO, in assertStatsEntry()
257 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO, in assertStatsEntry()
/frameworks/base/core/java/android/net/
DNetworkTemplate.java30 import static android.net.NetworkStats.METERED_NO;
341 || (mMetered == METERED_NO && !ident.mMetered); in matchesMetered()
DNetworkStats.java78 public static final int METERED_NO = 0; field in NetworkStats
168 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, in Entry()
1035 case METERED_NO: in meteredToString()
1265 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO); in deductTrafficFromVpnApp()
1271 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO); in deductTrafficFromVpnApp()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java22 import static android.net.NetworkStats.METERED_NO;
381 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
/frameworks/base/config/
Dhiddenapi-public-dex.txt4597 Landroid/app/usage/NetworkStats$Bucket;->METERED_NO:I
/frameworks/base/api/
Dcurrent.txt7407 field public static final int METERED_NO = 1; // 0x1