Lines Matching refs:bytes
403 size_t bytes) { in OutWritePcmData() argument
406 bytes); in OutWritePcmData()
407 if (buffer == nullptr || !bytes) return 0; in OutWritePcmData()
415 if (availableToWrite > (bytes - totalWritten)) { in OutWritePcmData()
416 availableToWrite = bytes - totalWritten; in OutWritePcmData()
421 ALOGE("FMQ datapath writting %zu/%zu failed", totalWritten, bytes); in OutWritePcmData()
430 ALOGD("data %zu/%zu overflow %d ms", totalWritten, bytes, in OutWritePcmData()
434 } while (totalWritten < bytes); in OutWritePcmData()
439 size_t BluetoothAudioSession::InReadPcmData(void* buffer, size_t bytes) { in InReadPcmData() argument
442 bytes); in InReadPcmData()
443 if (buffer == nullptr || !bytes) return 0; in InReadPcmData()
451 if (availableToRead > (bytes - totalRead)) { in InReadPcmData()
452 availableToRead = bytes - totalRead; in InReadPcmData()
456 ALOGE("FMQ datapath reading %zu/%zu failed", totalRead, bytes); in InReadPcmData()
466 ALOGD("in data %zu/%zu overflow %d ms", totalRead, bytes, in InReadPcmData()
470 } while (totalRead < bytes); in InReadPcmData()