Home
last modified time | relevance | path

Searched refs:METERED_YES (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java21 import static android.net.NetworkStats.METERED_YES;
56 .addValues(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, 0L, 0L, in testFindIndex()
60 .addValues(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, 1024L, in testFindIndex()
63 assertEquals(4, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex()
67 assertEquals(2, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex()
89 .addValues(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, METERED_YES, ROAMING_NO, 0L, 0L, in testFindIndexHinted()
93 .addValues(TEST_IFACE2, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, 1024L, in testFindIndexHinted()
109 METERED_YES, ROAMING_NO, hint)); in testFindIndexHinted()
113 METERED_YES, ROAMING_YES, hint)); in testFindIndexHinted()
131 stats.addValues(TEST_IFACE, TEST_UID, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, 3L, in testAddEntryGrow()
[all …]
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java167 @IntDef({METERED_ALL, METERED_NO, METERED_YES})
187 public static final int METERED_YES = 0x2; field in NetworkStats.Bucket
263 case android.net.NetworkStats.METERED_YES: return METERED_YES; in convertMetered()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java27 import static android.net.NetworkStats.METERED_YES;
759 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testMetered()
761 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, METERED_YES, ROAMING_NO, 64L, in testMetered()
1108 if (metered == METERED_YES || metered == METERED_ALL) { in assertValues()
1109 meterings.add(METERED_YES); in assertValues()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java21 import static android.net.NetworkStats.METERED_YES;
251 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
/frameworks/base/core/java/android/net/
DNetworkStats.java76 public static final int METERED_YES = 1; field in NetworkStats
878 case METERED_YES: in meteredToString()
/frameworks/base/api/
Dcurrent.txt6937 field public static final int METERED_YES = 2; // 0x2
Dsystem-current.txt7407 field public static final int METERED_YES = 2; // 0x2