Home
last modified time | relevance | path

Searched refs:quotaBucket (Results 1 – 3 of 3) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java305 for (@QuotaBucket.Type int quotaBucket : quotaBuckets) { in checkIfResourcesAreAvailable()
306 hasSufficientQuota(quotaBucketToAvailableQuotaMap.get(quotaBucket), cost, quotaBucket); in checkIfResourcesAreAvailable() local
310 private static void spendAvailableResources(Quota quota, Integer quotaBucket, long memoryCost) { in spendAvailableResources() argument
311 quota.setRemainingQuota(getAvailableQuota(quotaBucket, quota) - memoryCost); in spendAvailableResources()
321 for (@QuotaBucket.Type int quotaBucket : quotaBuckets) { in spendAvailableResources()
322 spendResources(uid, quotaBucket, quotaBucketToAvailableQuotaMap.get(quotaBucket), cost); in spendAvailableResources()
328 int uid, @QuotaBucket.Type int quotaBucket, float availableQuota, long cost) { in spendResources() argument
331 .put(quotaBucket, new Quota(Instant.now(), availableQuota - cost)); in spendResources()
339 quotaBucket -> quotaBucket, in getQuotaBucketToAvailableQuotaMap()
340 quotaBucket -> in getQuotaBucketToAvailableQuotaMap()
[all …]
DRateLimiterException.java35 @RateLimiter.QuotaBucket.Type int quotaBucket, in RateLimiterException() argument
38 mQuotaBucket = quotaBucket; in RateLimiterException()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/logging/
DHealthConnectServiceLogger.java408 @RateLimiter.QuotaBucket.Type int quotaBucket, float quotaLimit) { in setRateLimit()
409 this.mRateLimit = calculateRateLimitEnum(quotaBucket, quotaLimit); in setRateLimit()
510 @RateLimiter.QuotaBucket.Type int quotaBucket, float quotaLimit) { in calculateRateLimitEnum()
512 switch (quotaBucket) { in calculateRateLimitEnum()