Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 11 of 11) sorted by relevance

/system/media/audio_utils/spdif/
DSPDIFEncoder.cpp106 bool SPDIFEncoder::wouldOverflowBuffer(size_t numBytes) const { in wouldOverflowBuffer()
108 return (numBytes > mBurstBufferSizeBytes) in wouldOverflowBuffer()
109 || (mByteCursor > (mBurstBufferSizeBytes - numBytes)); // (max - n) won't overflow in wouldOverflowBuffer()
136 void SPDIFEncoder::writeBurstBufferBytes(const uint8_t *buffer, size_t numBytes) in writeBurstBufferBytes() argument
138 if (wouldOverflowBuffer(numBytes)) { in writeBurstBufferBytes()
145 if (numBytes == 0) { in writeBurstBufferBytes()
150 for (size_t i = 0; i < numBytes; i++) { in writeBurstBufferBytes()
198 uint16_t numBytes = (mByteCursor - preambleSize); in flushBurstBuffer() local
199 mBurstBuffer[3] = mFramer->convertBytesToLengthCode(numBytes); in flushBurstBuffer()
249 ssize_t SPDIFEncoder::write( const void *buffer, size_t numBytes ) in write() argument
[all …]
DAC3FrameScanner.cpp131 uint16_t AC3FrameScanner::convertBytesToLengthCode(uint16_t numBytes) const in convertBytesToLengthCode()
133 return (mDataType == SPDIF_DATA_TYPE_E_AC3) ? numBytes : numBytes * 8; in convertBytesToLengthCode()
DAC3FrameScanner.h51 virtual uint16_t convertBytesToLengthCode(uint16_t numBytes) const;
/system/media/audio_utils/include/audio_utils/spdif/
DSPDIFEncoder.h48 ssize_t write( const void* buffer, size_t numBytes );
55 virtual ssize_t writeOutput( const void* buffer, size_t numBytes ) = 0;
86 bool wouldOverflowBuffer(size_t numBytes) const; // Would this many bytes cause an overflow?
87 void writeBurstBufferShorts(const uint16_t* buffer, size_t numBytes);
88 void writeBurstBufferBytes(const uint8_t* buffer, size_t numBytes);
DFrameScanner.h103 virtual uint16_t convertBytesToLengthCode(uint16_t numBytes) const { return numBytes * 8; } in convertBytesToLengthCode() argument
/system/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DPatchUtils.java50 final int numBytes) throws IOException { in readFully() argument
52 while (numRead < numBytes) { in readFully()
53 int readNow = in.read(destination, startAt + numRead, numBytes - numRead); in readFully()
/system/media/audio_utils/tests/
Dspdif_tests.cpp39 ssize_t writeOutput( const void* /* buffer */, size_t numBytes ) override { in writeOutput() argument
40 mOutputSizeBytes = numBytes; in writeOutput()
41 return numBytes; in writeOutput()
/system/core/fastboot/
Dusb_osx.cpp498 UInt32 numBytes = len; in Read() local
520 ->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read()
523 ->ReadPipeTO(handle_->interface, handle_->bulkIn, data, &numBytes, in Read()
528 return (int) numBytes; in Read()
/system/core/libstats/socket/include/
Dstats_event.h120 void AStatsEvent_writeByteArray(AStatsEvent* event, const uint8_t* buf, size_t numBytes);
/system/core/libstats/socket/
Dstats_event.c233 void AStatsEvent_writeByteArray(AStatsEvent* event, const uint8_t* buf, size_t numBytes) { in AStatsEvent_writeByteArray() argument
235 append_int32(event, numBytes); in AStatsEvent_writeByteArray()
236 append_byte_array(event, buf, numBytes); in AStatsEvent_writeByteArray()
/system/core/adb/client/
Dusb_osx.cpp513 UInt32 numBytes = len; in usb_read() local
533 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read()
538 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read()
542 return numBytes; in usb_read()