@Test public void testSetAvailablePermits() { double permits = 2.0d; mContentRateLimiter.setAvailablePermits(permits); assertEquals(permits, mContentRateLimiter.getAvailablePermits(), 0 ); }
@MainThread public void setAvailablePermits(double availablePermits) { setLastCalculatedPermitCount(availablePermits, mElapsedTimeProvider.getElapsedRealtime()); }
ContentRateLimiter { @MainThread public void setAvailablePermits(double availablePermits) { setLastCalculatedPermitCount(availablePermits, mElapsedTimeProvider.getElapsedRealtime()); } }
ContentRateLimiter { @MainThread public void setAvailablePermits(double availablePermits) { setLastCalculatedPermitCount(availablePermits, mElapsedTimeProvider.getElapsedRealtime()); } ContentRateLimiter(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond,
            @FloatRange(from = 0) double maxStoredPermits,
            @IntRange(from = 0) long fillDelayMs); @VisibleForTesting  ContentRateLimiter(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond,
            @FloatRange(from = 0) double maxStoredPermits,
            @IntRange(from = 0) long fillDelayMs,
            ElapsedTimeProvider elapsedTimeProvider); }
ContentRateLimiter { @MainThread public void setAvailablePermits(double availablePermits) { setLastCalculatedPermitCount(availablePermits, mElapsedTimeProvider.getElapsedRealtime()); } ContentRateLimiter(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond,
            @FloatRange(from = 0) double maxStoredPermits,
            @IntRange(from = 0) long fillDelayMs); @VisibleForTesting  ContentRateLimiter(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond,
            @FloatRange(from = 0) double maxStoredPermits,
            @IntRange(from = 0) long fillDelayMs,
            ElapsedTimeProvider elapsedTimeProvider); void setAcquiredPermitsRate(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond); void setMaxStoredPermits(@FloatRange(from = 0) double maxStoredPermits); void setPermitFillDelay(@IntRange(from = 0) long fillDelayMs); @MainThread double getAvailablePermits(); @MainThread void setAvailablePermits(double availablePermits); double getMaxStoredPermits(); @MainThread boolean tryAcquire(); @MainThread boolean tryAcquire(int permits); void setUnlimitedMode(boolean enabled); }
ContentRateLimiter { @MainThread public void setAvailablePermits(double availablePermits) { setLastCalculatedPermitCount(availablePermits, mElapsedTimeProvider.getElapsedRealtime()); } ContentRateLimiter(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond,
            @FloatRange(from = 0) double maxStoredPermits,
            @IntRange(from = 0) long fillDelayMs); @VisibleForTesting  ContentRateLimiter(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond,
            @FloatRange(from = 0) double maxStoredPermits,
            @IntRange(from = 0) long fillDelayMs,
            ElapsedTimeProvider elapsedTimeProvider); void setAcquiredPermitsRate(
            @FloatRange(from = 0, fromInclusive = false) double acquiredPermitsPerSecond); void setMaxStoredPermits(@FloatRange(from = 0) double maxStoredPermits); void setPermitFillDelay(@IntRange(from = 0) long fillDelayMs); @MainThread double getAvailablePermits(); @MainThread void setAvailablePermits(double availablePermits); double getMaxStoredPermits(); @MainThread boolean tryAcquire(); @MainThread boolean tryAcquire(int permits); void setUnlimitedMode(boolean enabled);  }