Home
last modified time | relevance | path

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

/packages/modules/Profiling/tests/cts/src/android/profiling/cts/
DProfilingServiceTests.java99 private RateLimiter mRateLimiter; field in ProfilingServiceTests
107 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 …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/statsd/
DFederatedComputeStatsdLogger.java31 private final RateLimiter mRateLimiter; field in FederatedComputeStatsdLogger
35 mRateLimiter = rateLimiter; in FederatedComputeStatsdLogger()
56 if (mRateLimiter.tryAcquire()) { in logApiCallStats()
72 if (mRateLimiter.tryAcquire()) { in logTrainingEventReported()
95 if (mRateLimiter.tryAcquire()) { in recordExampleIteratorLatencyMetrics()
/packages/modules/Profiling/service/java/com/android/os/profiling/
DProfilingService.java101 @VisibleForTesting public RateLimiter mRateLimiter = null; field in ProfilingService
1322 if (mRateLimiter == null) { in getRateLimiter()
1323 mRateLimiter = new RateLimiter(new RateLimiter.HandlerCallback() { in getRateLimiter()
1330 return mRateLimiter; in getRateLimiter()