Searched refs:Quota (Results 1 – 5 of 5) sorted by relevance
/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/ |
D | RateLimiter.java | 50 private static final Map<Integer, Quota> sQuotaBucketToAcrossAppsRemainingMemoryQuota = 53 private static final Map<Integer, Map<Integer, Quota>> sUserIdToQuotasMap = new HashMap<>(); 310 private static void spendAvailableResources(Quota quota, Integer quotaBucket, long memoryCost) { in spendAvailableResources() 331 .put(quotaBucket, new Quota(Instant.now(), availableQuota - cost)); in spendResources() 358 private static float getAvailableQuota(@QuotaBucket.Type int quotaBucket, Quota quota) { in getAvailableQuota() 371 private static Quota getQuota(int uid, @QuotaBucket.Type int quotaBucket) { in getQuota() 376 Map<Integer, Quota> packageQuotas = sUserIdToQuotasMap.get(uid); in getQuota() 377 Quota quota = packageQuotas.get(quotaBucket); in getQuota() 384 private static Quota getQuota(@QuotaBucket.Type int quotaBucket) { in getQuota() 389 new Quota(Instant.now(), getConfiguredMaxRollingQuota(quotaBucket))); in getQuota() [all …]
|
D | Quota.java | 30 public final class Quota { class 34 public Quota(@NonNull Instant lastUpdatedTime, float remainingQuota) { in Quota() method in Quota
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | OmtpVvmSyncService.java | 39 import com.android.voicemail.impl.mail.store.ImapFolder.Quota; 151 Quota quotaOnServer = imapHelper.getQuota(); in autoDeleteAndArchiveVM() 190 private void deleteAndArchiveVM(ImapHelper imapHelper, Quota quotaOnServer) { in deleteAndArchiveVM()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/ |
D | ImapFolder.java | 747 public class Quota { class in ImapFolder 752 public Quota(int occupied, int total) { in Quota() method in ImapFolder.Quota 758 public Quota getQuota() throws MessagingException { in getQuota() 773 return new Quota( in getQuota()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 48 import com.android.voicemail.impl.mail.store.ImapFolder.Quota; 473 public Quota getQuota() { in getQuota() 494 private void setQuota(ImapFolder.Quota quota) { in setQuota()
|