Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DRateLimiter.java43 public RateLimiter(OsAccess osAccess, int bytesPerSecond) { in RateLimiter() argument
45 setBytesPerSecond(bytesPerSecond); in RateLimiter()
53 public void setBytesPerSecond(int bytesPerSecond) { in setBytesPerSecond() argument
54 mMaxPerPeriodBytes = bytesPerSecond; in setBytesPerSecond()
DFakeOsAccess.java291 public synchronized void setInboundRateLimit(FileDescriptor fd, int bytesPerSecond) { in setInboundRateLimit() argument
294 file.inboundLimiter.setBytesPerSecond(bytesPerSecond); in setInboundRateLimit()
299 public synchronized void setOutboundRateLimit(FileDescriptor fd, int bytesPerSecond) { in setOutboundRateLimit() argument
302 file.outboundLimiter.setBytesPerSecond(bytesPerSecond); in setOutboundRateLimit()
/packages/services/Car/tests/ConcurrentHotwordDetector/src/com/android/car/test/concurrent/hotword/
DConcurrentHotwordDetectionService.java143 int bytesPerSecond = bytesPerSample * sampleRate; // for single channel in recordAudio() local
159 .setBufferSizeInBytes(bytesPerSecond); in recordAudio()
183 boolean canRead = canReadAudio(record, bytesPerSecond); in recordAudio()
190 private boolean canReadAudio(AudioRecord record, int bytesPerSecond) { in canReadAudio() argument
191 byte[] buffer = new byte[bytesPerSecond]; // read 1 second of audio in canReadAudio()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java136 public void notifyDownloadSpeed(long id, long bytesPerSecond) { in notifyDownloadSpeed() argument
138 if (bytesPerSecond != 0) { in notifyDownloadSpeed()
139 mDownloadSpeed.put(id, bytesPerSecond); in notifyDownloadSpeed()