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

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java42 public long limitBytes; 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,
64 this.limitBytes = limitBytes;
76 limitBytes = in.readLong();
89 dest.writeLong(limitBytes);
109 * Test if given measurement is near enough to {@link #limitBytes} to be
116 return limitBytes !
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.java205 private static final String ATTR_LIMIT_BYTES = "limitBytes";
706 * {@link NetworkPolicy#limitBytes}, potentially showing dialog to user.
792 final long overBytes = totalBytes - policy.limitBytes;
911 * {@link NetworkPolicy#limitBytes}.
922 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) {
1044 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED;
1059 quotaBytes = Math.max(1, policy.limitBytes - totalBytes);
1078 if (hasLimit && policy.limitBytes < lowestRule) {
1079 lowestRule = policy.limitBytes;
1187 final long limitBytes
[all...]

Completed in 12 milliseconds