Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 12 of 12) 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/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubBadNanoAppsTestExecutor.java66 private void runInvalidBinaryTest(int numBytes) { in runInvalidBinaryTest() argument
67 byte[] buffer = new byte[numBytes]; in runInvalidBinaryTest()
71 Assert.assertFalse("Invalid nanoapp binary (" + numBytes in runInvalidBinaryTest()
75 Assert.assertFalse("Invalid nanoapp binary (" + numBytes + " bytes) successfully loaded", in runInvalidBinaryTest()
/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/keymaster/include/keymaster/contexts/
Dpure_soft_remote_provisioning_context.h33 size_t numBytes) const override;
/system/keymaster/include/keymaster/
Dremote_provisioning_context.h35 size_t numBytes) const = 0;
/system/chre/platform/shared/
Dlog_buffer.cc232 size_t numBytes = maxBytes + 1; in getLogDataLength() local
237 numBytes = i + 1; in getLogDataLength()
242 return numBytes; in getLogDataLength()
/system/core/libstats/socket_lazy/
Dlibstatssocket_lazy.cpp174 void AStatsEvent_writeByteArray(AStatsEvent* event, const uint8_t* buf, size_t numBytes) { in AStatsEvent_writeByteArray() argument
175 INVOKE_METHOD(AStatsEvent_writeByteArray, event, buf, numBytes); in AStatsEvent_writeByteArray()
/system/core/fastboot/
Dusb_osx.cpp499 UInt32 numBytes = len; in Read() local
521 ->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read()
524 ->ReadPipeTO(handle_->interface, handle_->bulkIn, data, &numBytes, in Read()
529 return (int) numBytes; in Read()