Searched refs:limitBytes (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 52 public long limitBytes; field in NetworkPolicy 62 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument 63 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy() 68 long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze, in NetworkPolicy() argument 74 this.limitBytes = limitBytes; in NetworkPolicy() 86 limitBytes = in.readLong(); in NetworkPolicy() 99 dest.writeLong(limitBytes); in writeToParcel() 126 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit() 146 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo() 150 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 64 if (policy.limitBytes < -1) { in read() 65 policy.limitBytes = LIMIT_DISABLED; in read() 98 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy() 180 return (policy != null) ? policy.limitBytes : LIMIT_DISABLED; in getPolicyLimitBytes() 183 public void setPolicyLimitBytes(NetworkTemplate template, long limitBytes) { in setPolicyLimitBytes() argument 185 policy.limitBytes = limitBytes; in setPolicyLimitBytes()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 169 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1074 final long overBytes = totalBytes - policy.limitBytes; in enqueueNotification() 1169 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledLocked() 1282 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED; 1297 quotaBytes = Math.max(1, policy.limitBytes - totalBytes); 1318 if (hasLimit && policy.limitBytes < lowestRule) { 1319 lowestRule = policy.limitBytes; 1452 final long limitBytes = readLongAttribute(in, ATTR_LIMIT_BYTES); in readPolicyLocked() local 1492 cycleTimezone, warningBytes, limitBytes, lastWarningSnooze, in readPolicyLocked() 1596 writeLongAttribute(out, ATTR_LIMIT_BYTES, policy.limitBytes); in writePolicyLocked() 2213 final long hardLimitBytes = policy.limitBytes != LIMIT_DISABLED ? policy.limitBytes in getNetworkQuotaInfoUnchecked() [all …]
|