Searched refs:BUCKET_DURATION_MS (Results 1 – 4 of 4) sorted by relevance
33 public static final int BUCKET_DURATION_MS = PERIOD_DURATION_MS / BUCKET_COUNT; field in RateLimiter96 final long currentBucketAbsIdx = now / BUCKET_DURATION_MS; in calculateLimit()98 for (long i = mLastLimitTimestamp / BUCKET_DURATION_MS; i < staleCutoffIdx; i++) { in calculateLimit()111 mStatBuckets[(int) ((now / BUCKET_DURATION_MS) % BUCKET_COUNT)] += actualBytes; in recordBytes()
398 remainingTimeoutMs = Math.min(RateLimiter.BUCKET_DURATION_MS, remainingTimeoutMs); in poll()
36 private const val BUCKET_DURATION_MS = 2 * 60 * 60 * 1000L constant52 NetworkStatsCollection.Builder(BUCKET_DURATION_MS), in testReadPlatformCollection()56 val builder = NetworkStatsCollection.Builder(BUCKET_DURATION_MS) in testReadPlatformCollection()
950 proto.write(NetworkStatsHistoryProto.BUCKET_DURATION_MS, bucketDuration); in dumpDebug()