Searched refs:numBytes (Results 1 – 11 of 11) sorted by relevance
/system/media/audio_utils/spdif/ |
D | SPDIFEncoder.cpp | 106 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 …]
|
D | AC3FrameScanner.cpp | 131 uint16_t AC3FrameScanner::convertBytesToLengthCode(uint16_t numBytes) const in convertBytesToLengthCode() 133 return (mDataType == SPDIF_DATA_TYPE_E_AC3) ? numBytes : numBytes * 8; in convertBytesToLengthCode()
|
D | AC3FrameScanner.h | 51 virtual uint16_t convertBytesToLengthCode(uint16_t numBytes) const;
|
/system/media/audio_utils/include/audio_utils/spdif/ |
D | SPDIFEncoder.h | 48 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);
|
D | FrameScanner.h | 103 virtual uint16_t convertBytesToLengthCode(uint16_t numBytes) const { return numBytes * 8; } in convertBytesToLengthCode() argument
|
/system/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/ |
D | PatchUtils.java | 50 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/ |
D | spdif_tests.cpp | 39 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/ |
D | usb_osx.cpp | 498 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/ |
D | stats_event.h | 120 void AStatsEvent_writeByteArray(AStatsEvent* event, const uint8_t* buf, size_t numBytes);
|
/system/core/libstats/socket/ |
D | stats_event.c | 233 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/ |
D | usb_osx.cpp | 513 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()
|