Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java163 long memoryCost) { in tryAcquireApiCallQuota() argument
191 memoryCost, in tryAcquireApiCallQuota()
199 public static void checkMaxChunkMemoryUsage(long memoryCost) { in checkMaxChunkMemoryUsage() argument
209 if (memoryCost > memoryLimit) { in checkMaxChunkMemoryUsage()
215 + memoryCost); in checkMaxChunkMemoryUsage()
219 public static void checkMaxRecordMemoryUsage(long memoryCost) { in checkMaxRecordMemoryUsage() argument
229 if (memoryCost > memoryLimit) { in checkMaxRecordMemoryUsage()
235 + memoryCost); in checkMaxRecordMemoryUsage()
272 long memoryCost, in spendApiAndMemoryResourcesIfAvailable() argument
283 memoryCost, in spendApiAndMemoryResourcesIfAvailable() local
[all …]
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DRateLimiterTest.java225 int memoryCost) { in tryAcquireCallQuotaNTimes() argument
227 RateLimiter.tryAcquireApiCallQuota(UID, quotaCategory, isInForeground, memoryCost); in tryAcquireCallQuotaNTimes()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java2342 long memoryCost) { in tryAcquireApiCallQuota() argument
2344 RateLimiter.tryAcquireApiCallQuota(uid, quotaCategory, isInForeground, memoryCost); in tryAcquireApiCallQuota()