Searched refs:limiter1 (Results 1 – 1 of 1) sorted by relevance
64 public static int limit(RateLimiter limiter1, RateLimiter limiter2, int requestedBytes) { in limit() argument65 final long now = limiter1.mOsAccess.monotonicTimeMillis(); in limit()66 final int allowedCount = Math.min(limiter1.calculateLimit(now, requestedBytes), in limit()68 limiter1.recordBytes(now, requestedBytes, allowedCount); in limit()