Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java133 int uid, @QuotaCategory.Type int quotaCategory, boolean isInForeground) { in tryAcquireApiCallQuota()
142 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_UNDEFINED) { in tryAcquireApiCallQuota()
147 if (quotaCategory == QuotaCategory.QUOTA_CATEGORY_UNMETERED) { in tryAcquireApiCallQuota()
161 @QuotaCategory.Type int quotaCategory, in tryAcquireApiCallQuota()
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()
435 @QuotaCategory.Type int quotaCategory, boolean isInForeground) { in getAffectedAPIQuotaBuckets()
437 case QuotaCategory.QUOTA_CATEGORY_READ: in getAffectedAPIQuotaBuckets()
447 case QuotaCategory.QUOTA_CATEGORY_WRITE: in getAffectedAPIQuotaBuckets()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DRateLimiterTest.java25 import android.health.connect.ratelimiter.RateLimiter.QuotaCategory;
90 @QuotaCategory.Type int quotaCategory = 0; in testTryAcquireApiCallQuota_invalidQuotaCategory()
99 @QuotaCategory.Type int quotaCategory = 1; in testTryAcquireApiCallQuota_unmeteredForegroundCalls()
107 @QuotaCategory.Type int quotaCategory = 1; in testTryAcquireApiCallQuota_unmeteredBackgroundCalls()
115 @QuotaCategory.Type int quotaCategoryRead = 2; in testTryAcquireApiCallQuota_meteredForegroundCallsInLimit()
123 @QuotaCategory.Type int quotaCategoryWrite = 3; in testTryAcquireApiCallQuota_meteredBackgroundCallsInLimit()
131 @QuotaCategory.Type int quotaCategoryRead = 2; in testTryAcquireApiCallQuota_meteredForegroundCallsLimitExceeded()
146 @QuotaCategory.Type int quotaCategoryWrite = 3; in testTryAcquireApiCallQuota_meteredBackgroundCallsLimitExceeded()
161 @QuotaCategory.Type int quotaCategoryWrite = 3; in testRecordMemoryRollingQuota_exceedBackgroundLimit()
208 @QuotaCategory.Type int quotaCategory, boolean isInForeground, int nTimes) { in tryAcquireCallQuotaNTimes()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java116 import android.health.connect.ratelimiter.RateLimiter.QuotaCategory;
385 QuotaCategory.QUOTA_CATEGORY_WRITE, in insertRecords()
504 RateLimiter.QuotaCategory.QUOTA_CATEGORY_READ, in aggregateRecords()
609 uid, QuotaCategory.QUOTA_CATEGORY_READ, isInForeground, logger); in readRecords()
833 QuotaCategory.QUOTA_CATEGORY_WRITE, in updateRecords()
921 QuotaCategory.QUOTA_CATEGORY_READ, in getChangeLogToken()
1014 uid, QuotaCategory.QUOTA_CATEGORY_READ, isInForeground, logger); in getChangeLogs()
1148 QuotaCategory.QUOTA_CATEGORY_WRITE, in deleteUsingFiltersForSelf()
2251 uid, QuotaCategory.QUOTA_CATEGORY_READ, isInForeground, logger); in readMedicalResources()
2323 @QuotaCategory.Type int quotaCategory, in tryAcquireApiCallQuota()
[all …]