Searched refs:mRateLimiter (Results 1 – 3 of 3) sorted by relevance
99 private RateLimiter mRateLimiter; field in ProfilingServiceTests107 mRateLimiter = spy(new RateLimiter(new RateLimiter.HandlerCallback() { in setUp()113 mProfilingService.mRateLimiter = mRateLimiter; in setUp()117 doReturn(true).when(mRateLimiter).setupPersistFiles(); in setUp()118 mRateLimiter.mPersistStoreDir = new File(mContext.getFilesDir(), "testdir"); in setUp()119 mRateLimiter.mPersistStoreDir.mkdir(); in setUp()120 mRateLimiter.mPersistFile = new File(mRateLimiter.mPersistStoreDir, "testfile"); in setUp()285 doReturn(RateLimiter.RATE_LIMIT_RESULT_BLOCKED_PROCESS).when(mRateLimiter) in testRequestProfiling_RateLimitBlocked_Fails()416 mRateLimiter.mPastRunsHour.removeOlderThan(currentTimeMillis); in testRateLimiter_PersistAndRestore()417 mRateLimiter.mPastRunsDay.removeOlderThan(currentTimeMillis); in testRateLimiter_PersistAndRestore()[all …]
31 private final RateLimiter mRateLimiter; field in FederatedComputeStatsdLogger35 mRateLimiter = rateLimiter; in FederatedComputeStatsdLogger()56 if (mRateLimiter.tryAcquire()) { in logApiCallStats()72 if (mRateLimiter.tryAcquire()) { in logTrainingEventReported()95 if (mRateLimiter.tryAcquire()) { in recordExampleIteratorLatencyMetrics()
101 @VisibleForTesting public RateLimiter mRateLimiter = null; field in ProfilingService1322 if (mRateLimiter == null) { in getRateLimiter()1323 mRateLimiter = new RateLimiter(new RateLimiter.HandlerCallback() { in getRateLimiter()1330 return mRateLimiter; in getRateLimiter()