Searched refs:numBytes (Results 1 – 12 of 12) 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/chre/java/test/chqts/src/com/google/android/chre/test/chqts/ |
D | ContextHubBadNanoAppsTestExecutor.java | 66 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/ |
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/keymaster/include/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.h | 33 size_t numBytes) const override;
|
/system/keymaster/include/keymaster/ |
D | remote_provisioning_context.h | 35 size_t numBytes) const = 0;
|
/system/chre/platform/shared/ |
D | log_buffer.cc | 232 size_t numBytes = maxBytes + 1; in getLogDataLength() local 237 numBytes = i + 1; in getLogDataLength() 242 return numBytes; in getLogDataLength()
|
/system/core/libstats/socket_lazy/ |
D | libstatssocket_lazy.cpp | 174 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/ |
D | usb_osx.cpp | 499 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()
|