Searched refs:metered (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java45 public boolean metered; field in class:NetworkPolicy
52 long warningBytes, long limitBytes, boolean metered) {
54 SNOOZE_NEVER, metered, false);
59 boolean metered, boolean inferred) {
67 this.metered = metered;
79 metered = in.readInt() != 0;
92 dest.writeInt(metered ? 1 : 0);
150 lastWarningSnooze, lastLimitSnooze, metered, inferred);
160 && lastLimitSnooze == other.lastLimitSnooze && metered
51 NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, long warningBytes, long limitBytes, boolean metered) argument
57 NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze, boolean metered, boolean inferred) argument
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkPolicyManagerService.java209 private static final String ATTR_METERED = "metered";
261 /** Set of ifaces that are metered. */
398 // listen for wifi state changes to catch metered hint
568 * Receiver that watches {@link WifiInfo} state changes to infer metered
590 // metered: create an inferred policy.
598 // metered state.
599 policy.metered = meteredHint;
1045 if (hasLimit || policy.metered) {
1048 // metered network, but no policy limit; we still need to
1196 final boolean metered;
[all...]

Completed in 42 milliseconds