/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 55 public boolean metered; field in NetworkPolicy 62 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument 64 SNOOZE_NEVER, metered, false); in NetworkPolicy() 69 boolean metered, boolean inferred) { in NetworkPolicy() argument 77 this.metered = metered; in NetworkPolicy() 89 metered = in.readInt() != 0; in NetworkPolicy() 102 dest.writeInt(metered ? 1 : 0); in writeToParcel() 160 lastWarningSnooze, lastLimitSnooze, metered, inferred); in hashCode() 170 && lastLimitSnooze == other.lastLimitSnooze && metered == other.metered in equals() 188 builder.append(", metered=").append(metered); in toString() [all …]
|
D | NetworkIdentity.java | 62 boolean metered) { in NetworkIdentity() argument 68 mMetered = metered; in NetworkIdentity() 174 boolean metered = false; in buildNetworkIdentity() 184 metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity() 198 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
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 133 final boolean metered; in buildDefaultPolicy() 138 metered = false; in buildDefaultPolicy() 144 metered = true; in buildDefaultPolicy() 148 LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, metered, true); in buildDefaultPolicy() 194 return policy.metered; in getPolicyMetered() 200 public void setPolicyMetered(NetworkTemplate template, boolean metered) { in setPolicyMetered() argument 204 if (metered) { in setPolicyMetered() 207 policy.metered = true; in setPolicyMetered() 211 } else if (!policy.metered) { in setPolicyMetered() 212 policy.metered = true; in setPolicyMetered() [all …]
|
/frameworks/base/docs/html/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 44 on a metered network, the system blocks background data usage and signals 46 whitelist specific apps to allow background metered data usage even when Data 101 connected to a metered network, even if Data Saver is disabled or the app 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network. 186 permissions or set wireless networks as metered to test your app on unmetered 224 Adds the specified package UID to the whitelist to allow background metered 235 metered data usage while Data Saver is enabled. [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerShellCommand.java | 286 if (filter != null && filter.booleanValue() != policy.metered) { in listWifiNetworks() 291 pw.println(policy.metered); in listWifiNetworks() 308 final boolean metered = Boolean.valueOf(arg); in setMeteredWifiNetwork() 313 if (policy.template.isMatchRuleMobile() || policy.metered == metered) { in setMeteredWifiNetwork() 318 Log.i(TAG, "Changing " + networkId + " metered status to " + metered); in setMeteredWifiNetwork() 319 policy.metered = metered; in setMeteredWifiNetwork() 332 policy.metered = true; in setMeteredWifiNetwork()
|
D | NetworkIdentitySet.java | 67 final boolean metered; in NetworkIdentitySet() 69 metered = in.readBoolean(); in NetworkIdentitySet() 74 metered = (type == TYPE_MOBILE); in NetworkIdentitySet() 77 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered)); in NetworkIdentitySet()
|
D | NetworkPolicyManagerService.java | 871 policy.metered = meteredHint; 881 static NetworkPolicy newWifiPolicy(NetworkTemplate template, boolean metered) { in newWifiPolicy() argument 884 metered, true); in newWifiPolicy() 1283 if (hasLimit || policy.metered) { 1461 final boolean metered; in readPolicyLocked() 1463 metered = readBooleanAttribute(in, ATTR_METERED); in readPolicyLocked() 1469 metered = true; in readPolicyLocked() 1472 metered = false; in readPolicyLocked() 1493 lastLimitSnooze, metered, inferred)); in readPolicyLocked() 1599 writeBooleanAttribute(out, ATTR_METERED, policy.metered); in writePolicyLocked() [all …]
|
/frameworks/base/docs/html-intl/intl/ja/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network.
|
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network.
|
/frameworks/base/docs/html-intl/intl/ko/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network.
|
/frameworks/base/docs/html-intl/intl/in/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network.
|
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 149 byte[] metered = "ANDROID_METERED".getBytes("US-ASCII"); in testDomainName() 151 byte[] meteredEmbeddedNull = metered.clone(); in testDomainName() 154 byte[] meteredTrailingNull = metered.clone(); in testDomainName() 159 assertDomainAndVendorInfoParses("goo.gl", nonNullDomain, "ANDROID_METERED", metered); in testDomainName()
|
/frameworks/base/docs/html-intl/intl/pt-br/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network.
|
/frameworks/base/docs/html-intl/intl/es/preview/features/ |
D | data-saver.jd | 3 page.keywords="android N", "data usage", "metered network" 112 // Checks if the device is on a metered network 126 // metered network, the app should use less data wherever possible. 129 // The device is not on a metered network.
|
/frameworks/base/docs/html/training/basics/network-ops/ |
D | managing.jd | 64 <p>Wi-Fi is typically faster. Also, mobile data is often metered, which can get
|
/frameworks/base/docs/html/about/versions/ |
D | lollipop.jd | 138 …etworks for available features such as whether they are Wi-Fi, cellular, metered, or provide certa…
|
D | android-4.1.jd | 543 check whether the device is currently connected to a metered network. By checking this state
|
D | jelly-bean.jd | 1478 …>connected to a metered network</strong>, including tethering to a mobile hotspot. Apps can query …
|
D | android-4.4.jd | 439 …s the ability to specify that a sync should be dropped if the network is metered, by enabling {@li…
|
D | android-4.0-highlights.jd | 261 <strong>tiered or metered data plans</strong>, Android 4.0 adds new controls for
|
D | android-4.0.jd | 462 the region of the camera’s current view that should be focused or metered. An instance of the {@link
|
/frameworks/base/docs/html/preview/ |
D | api-overview.jd | 338 on a metered network, the system blocks background data usage and signals apps 341 and so on. Users can whitelist specific apps to allow background metered data
|