/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 64 @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 …]
|
D | NetworkStats.java | 235 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 …]
|
D | NetworkIdentity.java | 55 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()
|
D | network-policy-restrictions.md | 24 ## On metered networks 37 ## On non-metered networks
|
D | NetworkTemplate.java | 248 String networkId, int metered, int roaming, int defaultNetwork, int subType) { in NetworkTemplate() argument 253 mMetered = metered; in NetworkTemplate()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkIdentitySet.java | 70 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()
|
D | NetworkPolicyManagerService.java | 1911 if (hasLimit || policy.metered) { 2135 policy.lastLimitSnooze, policy.metered, policy.inferred); in updateDefaultMobilePolicyAL() 2251 final boolean metered; in readPolicyAL() 2253 metered = readBooleanAttribute(in, ATTR_METERED); in readPolicyAL() 2257 metered = true; in readPolicyAL() 2260 metered = false; in readPolicyAL() 2281 lastLimitSnooze, metered, inferred)); in readPolicyAL() 2430 config.meteredOverride = policy.metered in upgradeWifiMeteredOverrideAL() 2487 writeBooleanAttribute(out, ATTR_METERED, policy.metered); in writePolicyAL()
|
D | NetworkStatsCollection.java | 381 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
|
/frameworks/base/packages/Tethering/src/android/net/dhcp/ |
D | DhcpServingParamsParcelExt.java | 160 public DhcpServingParamsParcelExt setMetered(boolean metered) { in setMetered() argument 161 this.metered = metered; in setMetered()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsFactory.cpp | 53 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/tests/net/java/com/android/server/net/ |
D | NetworkStatsBaseTest.java | 59 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()
|
D | NetworkStatsFactoryTest.java | 554 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()
|
D | NetworkStatsServiceTest.java | 1224 private void assertUidTotal(NetworkTemplate template, int uid, int set, int metered, 1236 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 135 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/packages/Tethering/tests/unit/src/android/net/dhcp/ |
D | DhcpServingParamsParcelExtTest.java | 105 assertTrue(mParcel.metered); in testSetMetered() 107 assertFalse(mParcel.metered); in testSetMetered()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkSelector.java | 689 boolean metered = WifiConfiguration.isMetered(config, info); in isEverMetered() 694 metered = true; in isEverMetered() 696 mWifiMetrics.addMeteredStat(config, metered); in isEverMetered() 702 metered = config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED; in isEverMetered() 705 metered = true; in isEverMetered() 706 } else if (metered) { in isEverMetered() 711 return metered; in isEverMetered() 811 boolean metered = isEverMetered(config, wifiInfo, scanDetail); in getCandidatesFromScan() 818 metered, in getCandidatesFromScan()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 314 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/ |
D | NetworkStatsTest.java | 986 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/ |
D | WifiConfiguration.java | 1053 boolean metered = false; in isMetered() 1055 metered = true; in isMetered() 1058 metered = true; in isMetered() 1062 metered = true; in isMetered() 1066 metered = false; in isMetered() 1068 return metered; in isMetered()
|
/frameworks/base/core/proto/android/service/ |
D | netstats.proto | 80 optional bool metered = 5; field
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 1863 private void verifyNetworkBlockedState(boolean metered, boolean backgroundRestricted, in verifyNetworkBlockedState() argument 1871 assertEquals(formatBlockedStateError(UID_A, rule, metered, backgroundRestricted), in verifyNetworkBlockedState() 1873 npmi.isUidNetworkingBlocked(UID_A, rule, metered, backgroundRestricted)); in verifyNetworkBlockedState() 1874 assertFalse(formatBlockedStateError(SYSTEM_UID, rule, metered, backgroundRestricted), in verifyNetworkBlockedState() 1875 npmi.isUidNetworkingBlocked(SYSTEM_UID, rule, metered, backgroundRestricted)); in verifyNetworkBlockedState() 1879 private String formatBlockedStateError(int uid, int rule, boolean metered, in formatBlockedStateError() argument 1883 uid, uidRulesToString(rule), metered, backgroundRestricted); in formatBlockedStateError()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 354 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/opt/net/wifi/service/proto/src/ |
D | metrics.proto | 3115 // Counts number of networks on the device that are metered. 3117 // Number of networks that are set or detected as metered. 3123 // Number of networks that have meteredOverride set to metered. 3139 // User changes the metered setting to "metered" 3141 // User changes the metered setting to "unmetered" 3157 // User changes the metered setting to "detect automatically"
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1135 .writeBoolean(entry.metered == NetworkStats.METERED_YES) in addBytesTransferByTagAndMeteredAtoms() 1261 newEntry.metered = oldEntry.metered; 1294 entry.metered = NetworkStats.METERED_ALL;
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 7268 final boolean metered = nai.networkCapabilities.isMetered(); in notifyNetworkAvailable() 7270 metered, mRestrictBackground); in notifyNetworkAvailable() 7320 final boolean metered = nai.networkCapabilities.isMetered(); in maybeNotifyNetworkBlockedForNewUidRules() 7328 uid, mUidRules.get(uid), metered, mRestrictBackground); in maybeNotifyNetworkBlockedForNewUidRules() 7330 uid, newRules, metered, mRestrictBackground); in maybeNotifyNetworkBlockedForNewUidRules()
|