Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkPolicy.java45 public boolean metered; field in NetworkPolicy
52 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument
54 SNOOZE_NEVER, metered, false); in NetworkPolicy()
59 boolean metered, boolean inferred) { in NetworkPolicy() argument
67 this.metered = metered; in NetworkPolicy()
79 metered = in.readInt() != 0; in NetworkPolicy()
92 dest.writeInt(metered ? 1 : 0); in writeToParcel()
150 lastWarningSnooze, lastLimitSnooze, metered, inferred); in hashCode()
160 && lastLimitSnooze == other.lastLimitSnooze && metered == other.metered in equals()
178 builder.append(", metered=").append(metered); in toString()
/frameworks/base/services/tests/servicestests/src/android/net/dhcp/
DDhcpPacketTest.java143 byte[] metered = "ANDROID_METERED".getBytes("US-ASCII"); in testDomainName()
145 byte[] meteredEmbeddedNull = metered.clone(); in testDomainName()
148 byte[] meteredTrailingNull = metered.clone(); in testDomainName()
153 assertDomainAndVendorInfoParses("goo.gl", nonNullDomain, "ANDROID_METERED", metered); in testDomainName()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java744 policy.metered = meteredHint;
1208 if (hasLimit || policy.metered) {
1376 final boolean metered; in readPolicyLocked()
1378 metered = readBooleanAttribute(in, ATTR_METERED); in readPolicyLocked()
1384 metered = true; in readPolicyLocked()
1387 metered = false; in readPolicyLocked()
1407 lastLimitSnooze, metered, inferred)); in readPolicyLocked()
1497 writeBooleanAttribute(out, ATTR_METERED, policy.metered); in writePolicyLocked()
1882 return policy.metered; in isNetworkMetered()
/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