Home
last modified time | relevance | path

Searched refs:MultiRateLimiter (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DMultiRateLimiterTest.java61 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in testSingleRateLimit_belowLimit_isWithinQuota()
80 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in testSingleRateLimit_aboveLimit_isNotWithinQuota()
100 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in testSingleRateLimit_afterGoingAboveQuotaAndWaitingWindow_isBackWithinQuota()
124 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in createMultipleRateLimits_testTheyLimitsAsExpected()
169 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in createSingleRateLimit_testItLimitsOnlyGivenUptc()
200 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in clearRateLimiterForPackage_afterReachingQuota_quotaIsReset()
225 MultiRateLimiter multiRateLimiter = new MultiRateLimiter.Builder(mContext, mInjector) in clearRateLimiterForPackage_doesntAffectOtherPackages()
/frameworks/base/services/core/java/com/android/server/utils/quota/
DMultiRateLimiter.java50 public class MultiRateLimiter { class
59 private MultiRateLimiter(List<CountQuotaTracker> quotaTrackers) { in MultiRateLimiter() method in MultiRateLimiter
175 public MultiRateLimiter build() { in build()
176 return new MultiRateLimiter(mQuotaTrackers); in build()
/frameworks/base/services/core/java/com/android/server/wearable/
DWearableSensingManagerService.java55 import com.android.server.utils.quota.MultiRateLimiter;
110 @NonNull private volatile MultiRateLimiter mDataRequestRateLimiter;
123 new MultiRateLimiter.Builder(context) in WearableSensingManagerService()
275 new MultiRateLimiter.Builder(mContext) in setDataRequestRateLimitWindowSize()
295 new MultiRateLimiter.Builder(mContext) in resetDataRequestRateLimitWindowSize()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java76 import com.android.server.utils.quota.MultiRateLimiter;
169 mock(MultiRateLimiter.class), mock(PermissionHelper.class), in setUp()
DNotificationManagerServiceTest.java311 import com.android.server.utils.quota.MultiRateLimiter;
507 MultiRateLimiter mToastRateLimiter;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java360 import com.android.server.utils.quota.MultiRateLimiter;
477 private static final MultiRateLimiter.RateLimit[] TOAST_RATE_LIMITS = {
478 MultiRateLimiter.RateLimit.create(3, Duration.ofSeconds(20)),
479 MultiRateLimiter.RateLimit.create(5, Duration.ofSeconds(42)),
480 MultiRateLimiter.RateLimit.create(6, Duration.ofSeconds(68)),
672 private MultiRateLimiter mToastRateLimiter;
2397 MultiRateLimiter toastRateLimiter, PermissionHelper permissionHelper, in init()
3497 private MultiRateLimiter createToastRateLimiter() {
3498 return new MultiRateLimiter.Builder(getContext()).addRateLimits(TOAST_RATE_LIMITS).build();
/frameworks/base/services/
Dart-wear-profile16128 …ificationManagerService;->createToastRateLimiter()Lcom/android/server/utils/quota/MultiRateLimiter;
16158 …android/app/ActivityManagerInternal;Lcom/android/server/utils/quota/MultiRateLimiter;Lcom/android/…
24610 PLcom/android/server/utils/quota/MultiRateLimiter$Builder;-><init>(Landroid/content/Context;)V
24611 PLcom/android/server/utils/quota/MultiRateLimiter$Builder;-><init>(Landroid/content/Context;Lcom/an…
24612 …d/server/utils/quota/MultiRateLimiter$Builder;->addRateLimit(ILjava/time/Duration;)Lcom/android/se…
24613 …a/MultiRateLimiter$Builder;->addRateLimit(Lcom/android/server/utils/quota/MultiRateLimiter$RateLim…
24614 …/MultiRateLimiter$Builder;->addRateLimits([Lcom/android/server/utils/quota/MultiRateLimiter$RateLi…
24615 PLcom/android/server/utils/quota/MultiRateLimiter$Builder;->build()Lcom/android/server/utils/quota/
24616 PLcom/android/server/utils/quota/MultiRateLimiter$RateLimit;-><init>(ILjava/time/Duration;)V
24617 …oid/server/utils/quota/MultiRateLimiter$RateLimit;->create(ILjava/time/Duration;)Lcom/android/serv…
[all …]