Home
last modified time | relevance | path

Searched refs:METERED_ALL (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/netstats/
DNetworkTemplateTest.kt20 import android.net.NetworkStats.METERED_ALL in <lambda>()
109 METERED_ALL, in <lambda>()
143 emptyArray<String>() /*subscriberIds*/, emptyArray<String>(), METERED_ALL, in <lambda>()
153 arrayOf(TEST_WIFI_KEY1), METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in <lambda>()
163 arrayOf(TEST_WIFI_KEY1), METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in <lambda>()
174 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, NETWORK_TYPE_ALL, in <lambda>()
209 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, NETWORK_TYPE_ALL, in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsBaseTest.java22 import static android.net.NetworkStats.METERED_ALL;
56 stats, iface, uid, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in assertValues()
79 if (metered == METERED_ALL) { in assertValues()
80 meterings = new int[] {METERED_ALL, METERED_YES, METERED_NO}; in assertValues()
DNetworkStatsFactoryTest.java21 import static android.net.NetworkStats.METERED_ALL;
133 assertValues(tunStats, TUN_IFACE, UID_RED, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
135 assertValues(tunStats, TUN_IFACE, UID_BLUE, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
137 assertValues(tunStats, TUN_IFACE, UID_VPN, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testVpnRewriteTrafficThroughItself()
DNetworkStatsServiceTest.java38 import static android.net.NetworkStats.METERED_ALL;
1340 assertValues(stats, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGetLatestSummary()
1634 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_ALL, ROAMING_NO, in testRoaming()
1636 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, METERED_ALL, ROAMING_NO, in testRoaming()
1647 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_ALL, ROAMING_YES, in testRoaming()
1649 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, METERED_ALL, ROAMING_YES, in testRoaming()
2084 assertValues(statsMobile, IFACE_ALL, UID_RED, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testOperationCount_nonDefault_traffic()
2086 assertValues(statsMobile, IFACE_ALL, UID_RED, SET_ALL, 0xF00D, METERED_ALL, ROAMING_ALL, in testOperationCount_nonDefault_traffic()
2095 assertValues(statsWifi, IFACE_ALL, UID_RED, SET_ALL, 0xF00D, METERED_ALL, ROAMING_ALL, in testOperationCount_nonDefault_traffic()
2556 assertValues(stats, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in assertNetworkTotal()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkStatsUtils.java32 private static final int METERED_ALL = -1; field in NetworkStatsUtils
148 case NetworkStats.Bucket.METERED_ALL: return METERED_ALL; in convertBucketMetered()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkTemplateTest.kt31 import android.net.NetworkStats.METERED_ALL
164 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, NETWORK_TYPE_ALL, OEM_MANAGED_ALL) in testWifiMatches()
503 arrayOf(TEST_WIFI_KEY1), METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in testEquals()
516 emptyArray<String>(), METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, in testParcelUnparcel()
519 arrayOf(TEST_WIFI_KEY1), METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, 0, in testParcelUnparcel()
522 emptyArray<String>(), METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, 0, in testParcelUnparcel()
582 matchWifiNetworkKeys, METERED_ALL, ROAMING_ALL, in matchOemManagedIdent()
585 matchWifiNetworkKeys, METERED_ALL, ROAMING_ALL, in matchOemManagedIdent()
596 matchWifiNetworkKeys, METERED_ALL, ROAMING_ALL, in matchOemManagedIdent()
DNetworkStatsTest.java24 import static android.net.NetworkStats.METERED_ALL;
369 assertValues(grouped, 0, IFACE_ALL, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGroupedByIfaceAll()
397 assertValues(grouped, 0, TEST_IFACE, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGroupedByIface()
399 assertValues(grouped, 1, TEST_IFACE2, UID_ALL, SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, in testGroupedByIface()
682 assertContains(delta, underlyingIface, tunUid, SET_DBG_VPN_OUT, TAG_NONE, METERED_ALL, in testMigrateTun()
741 assertContains(delta, underlyingIface, tunUid, SET_DBG_VPN_OUT, TAG_NONE, METERED_ALL, in testMigrateTun_VpnAsLoopback()
/packages/modules/Connectivity/framework-t/src/android/app/usage/
DNetworkStats.java178 METERED_ALL,
188 public static final int METERED_ALL = -1; field in NetworkStats.Bucket
319 case android.net.NetworkStats.METERED_ALL : return METERED_ALL; in convertMetered()
692 bucketOut.mMetered = Bucket.METERED_ALL; in getNextHistoryBucket()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkTemplate.java33 import static android.net.NetworkStats.METERED_ALL;
481 return METERED_ALL; in getMeterednessForBackwardsCompatibility()
575 if (mMetered != METERED_ALL) { in toString()
755 return (mMetered == METERED_ALL) in matchesMetered()
1004 ? METERED_YES : METERED_ALL, in normalizeImpl()
1055 mMetered = METERED_ALL; in Builder()
DNetworkStats.java132 public static final int METERED_ALL = -1; field in NetworkStats
141 METERED_ALL,
1039 entry.metered = METERED_ALL; in getTotal()
1263 SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL)); in groupedByIface()
1288 SET_ALL, TAG_NONE, METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL)); in groupedByUid()
1486 case METERED_ALL: in meteredToString()
1840 moved[i].metered = METERED_ALL; in deductTrafficFromVpnApp()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java21 import static android.app.usage.NetworkStats.Bucket.METERED_ALL;
436 assertEquals(bucket.getMetered(), METERED_ALL); in testDeviceSummary() local
472 assertEquals(bucket.getMetered(), METERED_ALL); in testUserSummary() local
631 assertEquals(bucket.getMetered(), METERED_ALL); in testUidDetails() local
685 assertEquals(bucket.getMetered(), METERED_ALL); in testTagDetails() local
944 assertEquals(bucket.getMetered(), METERED_ALL); in getTotalAndAssertNotEmpty() local
/packages/modules/Connectivity/framework-t/api/
Dcurrent.txt27 field public static final int METERED_ALL = -1; // 0xffffffff
Dsystem-current.txt324 field public static final int METERED_ALL = -1; // 0xffffffff
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsService.java35 import static android.net.NetworkStats.METERED_ALL;
1818 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, entry.rxBytes, entry.rxPackets,
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt997 Landroid/net/NetworkStats;->METERED_ALL:I