Searched refs:bytesPerSecond (Results 1 – 4 of 4) sorted by relevance
43 public RateLimiter(OsAccess osAccess, int bytesPerSecond) { in RateLimiter() argument45 setBytesPerSecond(bytesPerSecond); in RateLimiter()53 public void setBytesPerSecond(int bytesPerSecond) { in setBytesPerSecond() argument54 mMaxPerPeriodBytes = bytesPerSecond; in setBytesPerSecond()
291 public synchronized void setInboundRateLimit(FileDescriptor fd, int bytesPerSecond) { in setInboundRateLimit() argument294 file.inboundLimiter.setBytesPerSecond(bytesPerSecond); in setInboundRateLimit()299 public synchronized void setOutboundRateLimit(FileDescriptor fd, int bytesPerSecond) { in setOutboundRateLimit() argument302 file.outboundLimiter.setBytesPerSecond(bytesPerSecond); in setOutboundRateLimit()
143 int bytesPerSecond = bytesPerSample * sampleRate; // for single channel in recordAudio() local159 .setBufferSizeInBytes(bytesPerSecond); in recordAudio()183 boolean canRead = canReadAudio(record, bytesPerSecond); in recordAudio()190 private boolean canReadAudio(AudioRecord record, int bytesPerSecond) { in canReadAudio() argument191 byte[] buffer = new byte[bytesPerSecond]; // read 1 second of audio in canReadAudio()
136 public void notifyDownloadSpeed(long id, long bytesPerSecond) { in notifyDownloadSpeed() argument138 if (bytesPerSecond != 0) { in notifyDownloadSpeed()139 mDownloadSpeed.put(id, bytesPerSecond); in notifyDownloadSpeed()