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.java25 import static android.net.NetworkStats.METERED_NO;
67 .addValues(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex()
69 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex()
73 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testFindIndex()
80 assertEquals(3, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
84 assertEquals(1, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
86 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
88 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
90 assertEquals(-1, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex()
97 .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.java22 import static android.net.NetworkStats.METERED_NO;
338 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid()
346 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_notifiesSameUid()
373 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
381 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify()
407 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies()
415 .addValues(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testUpdateStats_userAccess_usageSameUser_notifies()
442 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
450 .addValues(TEST_IFACE, UID_ANOTHER_USER, SET_DEFAULT, TAG_NONE, METERED_NO, in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
DNetworkStatsFactoryTest.java20 import static android.net.NetworkStats.METERED_NO;
253 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO, in assertStatsEntry()
266 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO, in assertNoStatsEntry()
275 final int i = stats.findIndex(iface, uid, set, tag, METERED_NO, ROAMING_NO, in assertStatsEntry()
DNetworkStatsServiceTest.java31 import static android.net.NetworkStats.METERED_NO;
326 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
328 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
349 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
351 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO, in testStatsRebootPersist()
642 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
644 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
646 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
654 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, METERED_NO, ROAMING_NO, in testSummaryForAllUid()
794 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/core/java/android/net/
DNetworkTemplate.java30 import static android.net.NetworkStats.METERED_NO;
363 || (mMetered == METERED_NO && !ident.mMetered); in matchesMetered()
DNetworkStats.java82 public static final int METERED_NO = 0; field in NetworkStats
195 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, in Entry()
1102 case METERED_NO: in meteredToString()
1333 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO); in deductTrafficFromVpnApp()
1339 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/api/
Dcurrent.txt7677 field public static final int METERED_NO = 1; // 0x1
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt47967 Landroid/net/NetworkStats;->METERED_NO:I