Home
last modified time | relevance | path

Searched refs:framesToRead (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/fuzz/audioutilsfiforeaderwriter_fuzzer/
Daudioutilsfiforeaderwriter_fuzzer.cpp86 int32_t framesToRead = framesWritten; in LLVMFuzzerTestOneInput() local
88 framesToRead = provider.ConsumeIntegralInRange<size_t>(1, framesToRead); in LLVMFuzzerTestOneInput()
91 uint8_t * readBuffer = new uint8_t[framesToRead * frameSize]; in LLVMFuzzerTestOneInput()
92 ssize_t actualFramesRead = reader.read(readBuffer, framesToRead); in LLVMFuzzerTestOneInput()
95 if (actualFramesRead != framesToRead) { in LLVMFuzzerTestOneInput()
100 framesWritten -= framesToRead; in LLVMFuzzerTestOneInput()
/system/media/audio_utils/tests/
Dfifo_tests.cpp119 size_t framesToRead = sfinfoin.frames - framesRead; in main() local
120 if (framesToWrite == 0 && (framesToRead == 0 || !readerThrottlesWriter)) { in main()
159 if (framesToRead > maxFramesPerRead) { in main()
160 framesToRead = maxFramesPerRead; in main()
162 framesToRead = rand() % (framesToRead + 1); in main()
164 &outputBuffer[framesRead * sfinfoin.channels], framesToRead); in main()
166 printf("read %d out of %d\n", (int) actualRead, (int) framesToRead); in main()
168 if (actualRead < 0 || (size_t) actualRead > framesToRead) { in main()
188 (int) actualRead, (int) framesToRead); in main()
193 if (actualRead < min(fifoFillLevel, (int) framesToRead)) { in main()