Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DRateLimiterTest.java90 @QuotaCategory.Type int quotaCategory = 0; in testTryAcquireApiCallQuota_invalidQuotaCategory() local
93 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, IS_IN_FOREGROUND_TRUE); in testTryAcquireApiCallQuota_invalidQuotaCategory()
99 @QuotaCategory.Type int quotaCategory = 1; in testTryAcquireApiCallQuota_unmeteredForegroundCalls() local
101 quotaCategory, IS_IN_FOREGROUND_TRUE, MAX_FOREGROUND_READ_CALL_15M + 1); in testTryAcquireApiCallQuota_unmeteredForegroundCalls()
107 @QuotaCategory.Type int quotaCategory = 1; in testTryAcquireApiCallQuota_unmeteredBackgroundCalls() local
109 quotaCategory, IS_IN_FOREGROUND_TRUE, MAX_BACKGROUND_CALL_15M + 1); in testTryAcquireApiCallQuota_unmeteredBackgroundCalls()
208 @QuotaCategory.Type int quotaCategory, boolean isInForeground, int nTimes) { in tryAcquireCallQuotaNTimes()
210 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_WRITE) { in tryAcquireCallQuotaNTimes()
212 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, isInForeground, MEMORY_COST); in tryAcquireCallQuotaNTimes()
216 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, isInForeground); in tryAcquireCallQuotaNTimes()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java133 int uid, @QuotaCategory.Type int quotaCategory, boolean isInForeground) { in tryAcquireApiCallQuota() argument
142 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_UNDEFINED) { in tryAcquireApiCallQuota()
147 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_UNMETERED) { in tryAcquireApiCallQuota()
154 getAffectedAPIQuotaBuckets(quotaCategory, isInForeground), in tryAcquireApiCallQuota()
161 @QuotaCategory.Type int quotaCategory, in tryAcquireApiCallQuota() argument
172 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_UNDEFINED) { in tryAcquireApiCallQuota()
177 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_UNMETERED) { in tryAcquireApiCallQuota()
180 if (quotaCategory != QuotaCategory.QUOTA_CATEGORY_WRITE) { in tryAcquireApiCallQuota()
188 getAffectedAPIQuotaBuckets(quotaCategory, isInForeground), in tryAcquireApiCallQuota()
189 getAffectedMemoryQuotaBuckets(quotaCategory, isInForeground), in tryAcquireApiCallQuota()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java2323 @QuotaCategory.Type int quotaCategory, in tryAcquireApiCallQuota() argument
2327 RateLimiter.tryAcquireApiCallQuota(uid, quotaCategory, isInForeground); in tryAcquireApiCallQuota()
2339 @QuotaCategory.Type int quotaCategory, in tryAcquireApiCallQuota() argument
2344 RateLimiter.tryAcquireApiCallQuota(uid, quotaCategory, isInForeground, memoryCost); in tryAcquireApiCallQuota()