Home
last modified time | relevance | path

Searched refs:addRateLimit (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DMultiRateLimiterTest.java62 .addRateLimit(3, Duration.ofSeconds(20)) in testSingleRateLimit_belowLimit_isWithinQuota()
81 .addRateLimit(3, Duration.ofSeconds(20)) in testSingleRateLimit_aboveLimit_isNotWithinQuota()
101 .addRateLimit(3, Duration.ofSeconds(20)) in testSingleRateLimit_afterGoingAboveQuotaAndWaitingWindow_isBackWithinQuota()
125 .addRateLimit(3, Duration.ofSeconds(20)) // 1st limit in createMultipleRateLimits_testTheyLimitsAsExpected()
126 .addRateLimit(4, Duration.ofSeconds(40)) // 2nd limit in createMultipleRateLimits_testTheyLimitsAsExpected()
127 .addRateLimit(5, Duration.ofSeconds(60)) // 3rd limit in createMultipleRateLimits_testTheyLimitsAsExpected()
170 .addRateLimit(3, Duration.ofSeconds(20)) in createSingleRateLimit_testItLimitsOnlyGivenUptc()
201 .addRateLimit(1, Duration.ofSeconds(100)) in clearRateLimiterForPackage_afterReachingQuota_quotaIsReset()
226 .addRateLimit(1, Duration.ofSeconds(100)) in clearRateLimiterForPackage_doesntAffectOtherPackages()
/frameworks/base/services/core/java/com/android/server/utils/quota/
DMultiRateLimiter.java146 public Builder addRateLimit(int limit, Duration windowSize) { in addRateLimit() method in MultiRateLimiter.Builder
159 public Builder addRateLimit(@NonNull RateLimit rateLimit) { in addRateLimit() method in MultiRateLimiter.Builder
160 return addRateLimit(rateLimit.mLimit, rateLimit.mWindowSize); in addRateLimit()
166 addRateLimit(rateLimit); in addRateLimits()
/frameworks/base/services/core/java/com/android/server/wearable/
DWearableSensingManagerService.java124 .addRateLimit( in WearableSensingManagerService()
276 .addRateLimit(WearableSensingDataRequest.getRateLimit(), windowSize) in setDataRequestRateLimitWindowSize()
296 .addRateLimit( in resetDataRequestRateLimitWindowSize()
/frameworks/base/services/
Dart-wear-profile24612 PLcom/android/server/utils/quota/MultiRateLimiter$Builder;->addRateLimit(ILjava/time/Duration;)Lcom…
24613 PLcom/android/server/utils/quota/MultiRateLimiter$Builder;->addRateLimit(Lcom/android/server/utils/…