Lines Matching refs:totalBytes
794 final long totalBytes = getTotalBytes(policy.template, start, end);
796 if (policy.isOverLimit(totalBytes)) {
798 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes);
800 enqueueNotification(policy, TYPE_LIMIT, totalBytes);
807 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
808 enqueueNotification(policy, TYPE_WARNING, totalBytes);
881 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) {
946 final long overBytes = totalBytes - policy.limitBytes;
1087 final long totalBytes = getTotalBytes(policy.template, start, end);
1090 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes)
1192 final long totalBytes;
1195 totalBytes = getTotalBytes(policy.template, start, currentTime);
1198 totalBytes = 0;
1222 quotaBytes = Math.max(1, policy.limitBytes - totalBytes);
1856 final long totalBytes = getTotalBytes(policy.template, start, end);
1864 return new NetworkQuotaInfo(totalBytes, softLimitBytes, hardLimitBytes);