Lines Matching refs:totalBytes
962 final long totalBytes = getTotalBytes(policy.template, start, end);
964 if (policy.isOverLimit(totalBytes)) {
966 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes);
968 enqueueNotification(policy, TYPE_LIMIT, totalBytes);
975 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
976 enqueueNotification(policy, TYPE_WARNING, totalBytes);
1044 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) {
1111 final long overBytes = totalBytes - policy.limitBytes;
1213 final long totalBytes = getTotalBytes(policy.template, start, end);
1216 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes)
1323 final long totalBytes;
1326 totalBytes = getTotalBytes(policy.template, start, currentTime);
1329 totalBytes = 0;
1352 quotaBytes = Math.max(1, policy.limitBytes - totalBytes);
2286 final long totalBytes = getTotalBytes(policy.template, start, end);
2294 return new NetworkQuotaInfo(totalBytes, softLimitBytes, hardLimitBytes);