Home
last modified time | relevance | path

Searched refs:metered (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNetworkPolicy.java64 @Deprecated public boolean metered = true; field in NetworkPolicy
80 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument
82 SNOOZE_NEVER, metered, false); in NetworkPolicy()
89 boolean metered, boolean inferred) { in NetworkPolicy() argument
91 limitBytes, lastWarningSnooze, lastLimitSnooze, metered, inferred); in NetworkPolicy()
96 long limitBytes, long lastWarningSnooze, long lastLimitSnooze, boolean metered, in NetworkPolicy() argument
99 SNOOZE_NEVER, metered, inferred); in NetworkPolicy()
104 boolean metered, boolean inferred) { in NetworkPolicy() argument
112 this.metered = metered; in NetworkPolicy()
124 metered = source.readInt() != 0; in NetworkPolicy()
[all …]
DNetworkStats.java235 private int[] metered; field in NetworkStats
278 public int metered; field in NetworkStats.Entry
358 @Meteredness int metered, @Roaming int roaming, @DefaultNetwork int defaultNetwork, in Entry() argument
364 this.metered = metered; in Entry()
401 builder.append(" metered=").append(meteredToString(metered)); in toString()
417 return uid == e.uid && set == e.set && tag == e.tag && metered == e.metered in equals()
429 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode()
442 this.metered = new int[initialSize]; in NetworkStats()
466 metered = parcel.createIntArray(); in NetworkStats()
485 dest.writeIntArray(metered); in writeToParcel()
[all …]
DNetworkIdentity.java55 boolean metered, boolean defaultNetwork) { in NetworkIdentity() argument
61 mMetered = metered; in NetworkIdentity()
194 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
219 return new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in buildNetworkIdentity()
Dnetwork-policy-restrictions.md24 ## On metered networks
37 ## On non-metered networks
DNetworkTemplate.java245 String networkId, int metered, int roaming, int defaultNetwork, int subType) { in NetworkTemplate() argument
250 mMetered = metered; in NetworkTemplate()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java70 final boolean metered; in NetworkIdentitySet()
72 metered = in.readBoolean(); in NetworkIdentitySet()
77 metered = (type == TYPE_MOBILE); in NetworkIdentitySet()
87 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
DNetworkPolicyManagerService.java1904 if (hasLimit || policy.metered) {
2128 policy.lastLimitSnooze, policy.metered, policy.inferred); in updateDefaultMobilePolicyAL()
2244 final boolean metered; in readPolicyAL()
2246 metered = readBooleanAttribute(in, ATTR_METERED); in readPolicyAL()
2250 metered = true; in readPolicyAL()
2253 metered = false; in readPolicyAL()
2274 lastLimitSnooze, metered, inferred)); in readPolicyAL()
2423 config.meteredOverride = policy.metered in upgradeWifiMeteredOverrideAL()
2480 writeBooleanAttribute(out, ATTR_METERED, policy.metered); in writePolicyAL()
DNetworkStatsCollection.java357 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
/frameworks/base/packages/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java160 public DhcpServingParamsParcelExt setMetered(boolean metered) { in setMetered() argument
161 this.metered = metered; in setMetered()
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsFactory.cpp53 jfieldID metered; member
226 ScopedIntArrayRW metered(env, get_int_array(env, stats, in statsLinesToNetworkStats() local
227 gNetworkStatsClassInfo.metered, size, grow)); in statsLinesToNetworkStats()
228 if (metered.get() == NULL) return -1; in statsLinesToNetworkStats()
272 env->SetObjectField(stats, gNetworkStatsClassInfo.metered, metered.getJavaArray()); in statsLinesToNetworkStats()
350 gNetworkStatsClassInfo.metered = env->GetFieldID(clazz, "metered", "[I"); in register_android_server_net_NetworkStatsFactory()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java135 final boolean metered; in buildDefaultPolicy()
139 metered = false; in buildDefaultPolicy()
143 metered = true; in buildDefaultPolicy()
147 LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, metered, true); in buildDefaultPolicy()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsBaseTest.java59 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
77 if (metered == METERED_ALL) { in assertValues()
80 meterings = new int[] {metered}; in assertValues()
DNetworkStatsFactoryTest.java554 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument
556 final int i = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertStatsEntry()
561 iface, uid, set, tag, metered, roaming, defaultNetwork)); in assertStatsEntry()
DNetworkStatsServiceTest.java1337 private void assertUidTotal(NetworkTemplate template, int uid, int set, int metered,
1349 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork,
/frameworks/base/packages/Tethering/tests/unit/src/android/net/dhcp/
DDhcpServingParamsParcelExtTest.java105 assertTrue(mParcel.metered); in testSetMetered()
107 assertFalse(mParcel.metered); in testSetMetered()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java314 private static @Metered int convertMetered(int metered) { in convertMetered() argument
315 switch (metered) { in convertMetered()
614 bucketOut.mMetered = Bucket.convertMetered(mRecycledSummaryEntry.metered); in fillBucketFromSummaryEntry()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DNetworkStatsUtils.kt47 left.metered, left.roaming, left.defaultNetwork, i) in <lambda>()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java986 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument
988 int index = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertContains()
990 assertValues(stats, index, iface, uid, set, tag, metered, roaming, defaultNetwork, in assertContains()
995 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
998 assertValues(entry, iface, uid, set, tag, metered, roaming, defaultNetwork); in assertValues()
1003 NetworkStats.Entry entry, String iface, int uid, int set, int tag, int metered, in assertValues() argument
1009 assertEquals(metered, entry.metered); in assertValues()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java933 boolean metered = false; in isMetered()
935 metered = true; in isMetered()
938 metered = true; in isMetered()
942 metered = true; in isMetered()
946 metered = false; in isMetered()
948 return metered; in isMetered()
/frameworks/base/core/proto/android/service/
Dnetstats.proto80 optional bool metered = 5; field
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1786 private void verifyNetworkBlockedState(boolean metered, boolean backgroundRestricted, in verifyNetworkBlockedState() argument
1794 assertEquals(formatBlockedStateError(UID_A, rule, metered, backgroundRestricted), in verifyNetworkBlockedState()
1796 npmi.isUidNetworkingBlocked(UID_A, rule, metered, backgroundRestricted)); in verifyNetworkBlockedState()
1797 assertFalse(formatBlockedStateError(SYSTEM_UID, rule, metered, backgroundRestricted), in verifyNetworkBlockedState()
1798 npmi.isUidNetworkingBlocked(SYSTEM_UID, rule, metered, backgroundRestricted)); in verifyNetworkBlockedState()
1802 private String formatBlockedStateError(int uid, int rule, boolean metered, in formatBlockedStateError() argument
1806 uid, uidRulesToString(rule), metered, backgroundRestricted); in formatBlockedStateError()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java354 boolean metered = isAlwaysMetered; // metered if any underlying is metered, or alwaysMetered in applyUnderlyingCapabilities()
378 metered |= !underlyingCaps.hasCapability(NET_CAPABILITY_NOT_METERED); in applyUnderlyingCapabilities()
392 metered = true; in applyUnderlyingCapabilities()
401 caps.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in applyUnderlyingCapabilities()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java7253 final boolean metered = nai.networkCapabilities.isMetered(); in notifyNetworkAvailable()
7255 metered, mRestrictBackground); in notifyNetworkAvailable()
7305 final boolean metered = nai.networkCapabilities.isMetered(); in maybeNotifyNetworkBlockedForNewUidRules()
7313 uid, mUidRules.get(uid), metered, mRestrictBackground); in maybeNotifyNetworkBlockedForNewUidRules()
7315 uid, newRules, metered, mRestrictBackground); in maybeNotifyNetworkBlockedForNewUidRules()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto223 // we consider matching it against a metered network.
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java808 entry.metered = NetworkStats.METERED_ALL; in rollupNetworkStatsByFGBG()

12