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

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java41 public long warningBytes; field in class:NetworkPolicy
52 long warningBytes, long limitBytes, boolean metered) {
53 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER,
58 long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze,
63 this.warningBytes = warningBytes;
75 warningBytes = in.readLong();
88 dest.writeLong(warningBytes);
102 * Test if given measurement is over {@link #warningBytes}.
105 return warningBytes !
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.java204 private static final String ATTR_WARNING_BYTES = "warningBytes";
495 * use to check against {@link NetworkPolicy#warningBytes}.
1043 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
1075 if (hasWarning && policy.warningBytes < lowestRule) {
1076 lowestRule = policy.warningBytes;
1126 final long warningBytes = mContext.getResources().getInteger(
1138 warningBytes, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, true, true);
1186 final long warningBytes = readLongAttribute(in, ATTR_WARNING_BYTES);
1226 cycleTimezone, warningBytes, limitBytes, lastWarningSnooze,
1312 writeLongAttribute(out, ATTR_WARNING_BYTES, policy.warningBytes);
[all...]

Completed in 6 milliseconds