Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkPolicy.java55 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 …]
DNetworkIdentity.java62 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()
Dnetwork-policy-restrictions.md24 ## On metered networks
37 ## On non-metered networks
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java133 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/
Ddata-saver.jd3 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/
DNetworkPolicyManagerShellCommand.java286 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()
DNetworkIdentitySet.java67 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()
DNetworkPolicyManagerService.java871 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/
Ddata-saver.jd3 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/
Ddata-saver.jd3 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/
Ddata-saver.jd3 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/
Ddata-saver.jd3 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/
DDhcpPacketTest.java149 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/
Ddata-saver.jd3 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/
Ddata-saver.jd3 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/
Dmanaging.jd64 <p>Wi-Fi is typically faster. Also, mobile data is often metered, which can get
/frameworks/base/docs/html/about/versions/
Dlollipop.jd138 …etworks for available features such as whether they are Wi-Fi, cellular, metered, or provide certa…
Dandroid-4.1.jd543 check whether the device is currently connected to a metered network. By checking this state
Djelly-bean.jd1478 …>connected to a metered network</strong>, including tethering to a mobile hotspot. Apps can query …
Dandroid-4.4.jd439 …s the ability to specify that a sync should be dropped if the network is metered, by enabling {@li…
Dandroid-4.0-highlights.jd261 <strong>tiered or metered data plans</strong>, Android 4.0 adds new controls for
Dandroid-4.0.jd462 the region of the camera’s current view that should be focused or metered. An instance of the {@link
/frameworks/base/docs/html/preview/
Dapi-overview.jd338 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