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.java130 private int[] metered; field in NetworkStats
160 public int metered; field in NetworkStats.Entry
199 public Entry(String iface, int uid, int set, int tag, int metered, int roaming, in Entry() argument
206 this.metered = metered; in Entry()
240 builder.append(" metered=").append(meteredToString(metered)); in toString()
255 return uid == e.uid && set == e.set && tag == e.tag && metered == e.metered in equals()
266 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode()
280 this.metered = new int[initialSize]; in NetworkStats()
303 metered = parcel.createIntArray(); in NetworkStats()
322 dest.writeIntArray(metered); in writeToParcel()
[all …]
DNetworkIdentity.java65 boolean metered, boolean defaultNetwork) { in NetworkIdentity() argument
71 mMetered = metered; in NetworkIdentity()
205 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
230 return new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in buildNetworkIdentity()
Dnetwork-policy-restrictions.md24 ## On metered networks
37 ## On non-metered networks
DNetworkTemplate.java207 String networkId, int metered, int roaming, int defaultNetwork) { in NetworkTemplate() argument
212 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.java1885 if (hasLimit || policy.metered) {
2109 policy.lastLimitSnooze, policy.metered, policy.inferred); in updateDefaultMobilePolicyAL()
2225 final boolean metered; in readPolicyAL()
2227 metered = readBooleanAttribute(in, ATTR_METERED); in readPolicyAL()
2231 metered = true; in readPolicyAL()
2234 metered = false; in readPolicyAL()
2255 lastLimitSnooze, metered, inferred)); in readPolicyAL()
2404 config.meteredOverride = policy.metered in upgradeWifiMeteredOverrideAL()
2461 writeBooleanAttribute(out, ATTR_METERED, policy.metered); in writePolicyAL()
DNetworkStatsCollection.java381 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpServingParamsParcelExt.java158 public DhcpServingParamsParcelExt setMetered(boolean metered) { in setMetered() argument
159 this.metered = metered; in setMetered()
DDhcpServingParamsParcel.aidl28 boolean metered;
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsFactory.cpp52 jfieldID metered; member
225 ScopedIntArrayRW metered(env, get_int_array(env, stats, in statsLinesToNetworkStats() local
226 gNetworkStatsClassInfo.metered, size, grow)); in statsLinesToNetworkStats()
227 if (metered.get() == NULL) return -1; in statsLinesToNetworkStats()
271 env->SetObjectField(stats, gNetworkStatsClassInfo.metered, metered.getJavaArray()); in statsLinesToNetworkStats()
349 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/android/net/dhcp/
DDhcpServingParamsParcelExtTest.java102 assertTrue(mParcel.metered); in testSetMetered()
104 assertFalse(mParcel.metered); in testSetMetered()
/frameworks/base/services/net/aidl/networkstack/2/android/net/dhcp/
DDhcpServingParamsParcel.aidl10 boolean metered;
/frameworks/base/services/net/aidl/networkstack/1/android/net/dhcp/
DDhcpServingParamsParcel.aidl10 boolean metered;
/frameworks/base/services/net/aidl/networkstack/3/android/net/dhcp/
DDhcpServingParamsParcel.aidl27 boolean metered;
/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/base/tests/net/java/android/net/
DNetworkStatsTest.java929 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument
931 int index = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertContains()
933 assertValues(stats, index, iface, uid, set, tag, metered, roaming, defaultNetwork, in assertContains()
938 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
941 assertValues(entry, iface, uid, set, tag, metered, roaming, defaultNetwork); in assertValues()
946 NetworkStats.Entry entry, String iface, int uid, int set, int tag, int metered, in assertValues() argument
952 assertEquals(metered, entry.metered); in assertValues()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java932 boolean metered = false; in isMetered()
934 metered = true; in isMetered()
937 metered = true; in isMetered()
941 metered = true; in isMetered()
945 metered = false; in isMetered()
947 return metered; in isMetered()
/frameworks/base/core/proto/android/service/
Dnetstats.proto80 optional bool metered = 5; field
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1168 private void assertUidTotal(NetworkTemplate template, int uid, int set, int metered, in assertUidTotal() argument
1180 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork, in assertUidTotal()
1268 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
1286 if (metered == METERED_ALL) { in assertValues()
1289 meterings = new int[] { metered }; in assertValues()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1728 private void verifyNetworkBlockedState(boolean metered, boolean backgroundRestricted, in verifyNetworkBlockedState() argument
1736 assertEquals(formatBlockedStateError(UID_A, rule, metered, backgroundRestricted), in verifyNetworkBlockedState()
1738 npmi.isUidNetworkingBlocked(UID_A, rule, metered, backgroundRestricted)); in verifyNetworkBlockedState()
1739 assertFalse(formatBlockedStateError(SYSTEM_UID, rule, metered, backgroundRestricted), in verifyNetworkBlockedState()
1740 npmi.isUidNetworkingBlocked(SYSTEM_UID, rule, metered, backgroundRestricted)); in verifyNetworkBlockedState()
1744 private String formatBlockedStateError(int uid, int rule, boolean metered, in formatBlockedStateError() argument
1748 uid, uidRulesToString(rule), metered, backgroundRestricted); in formatBlockedStateError()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java314 boolean metered = isAlwaysMetered; in applyUnderlyingCapabilities()
335 metered |= !underlyingCaps.hasCapability(NET_CAPABILITY_NOT_METERED); in applyUnderlyingCapabilities()
342 metered = true; in applyUnderlyingCapabilities()
350 caps.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in applyUnderlyingCapabilities()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java6632 final boolean metered = nai.networkCapabilities.isMetered(); in notifyNetworkAvailable()
6634 metered, mRestrictBackground); in notifyNetworkAvailable()
6678 final boolean metered = nai.networkCapabilities.isMetered(); in maybeNotifyNetworkBlockedForNewUidRules()
6686 uid, mUidRules.get(uid), metered, mRestrictBackground); in maybeNotifyNetworkBlockedForNewUidRules()
6688 uid, newRules, metered, mRestrictBackground); in maybeNotifyNetworkBlockedForNewUidRules()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto223 // we consider matching it against a metered network.

12