Home
last modified time | relevance | path

Searched refs:bytesPerPeriod (Results 1 – 4 of 4) sorted by relevance

/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java236 public MockResponse throttleBody(int bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() argument
237 this.throttleBytesPerPeriod = bytesPerPeriod; in throttleBody()
DMockWebServer.java531 int bytesPerPeriod = throttlePolicy.getThrottleBytesPerPeriod(); in throttledTransfer() local
535 for (int b = 0; b < bytesPerPeriod; ) { in throttledTransfer()
536 int toRead = (int) Math.min(Math.min(buffer.length, limit), bytesPerPeriod - b); in throttledTransfer()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java202 public MockResponse throttleBody(long bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() argument
203 this.throttleBytesPerPeriod = bytesPerPeriod; in throttleBody()
DMockWebServer.java758 long bytesPerPeriod = policy.getThrottleBytesPerPeriod();
767 for (int b = 0; b < bytesPerPeriod; ) {
769 long toRead = Math.min(byteCount, bytesPerPeriod - b);