/frameworks/av/services/oboeservice/ |
D | SharedMemoryWrapper.cpp | 68 aaudio_result_t SharedMemoryWrapper::setupFifoBuffer(android::fifo_frames_t bytesPerFrame, in setupFifoBuffer() argument 78 mSharedMemorySizeInBytes = bytesPerFrame * capacityInFrames; in setupFifoBuffer() 90 bytesPerFrame, capacityInFrames, mReadCounterAddress, in setupFifoBuffer() 106 int32_t bytesPerFrame, int32_t framesPerBurst, int32_t capacityInFrames, in fillParcelable() argument 108 const int capacityInBytes = bytesPerFrame * capacityInFrames; in fillParcelable() 111 ringBufferParcelable.setBytesPerFrame(bytesPerFrame); in fillParcelable()
|
D | SharedRingBuffer.cpp | 42 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, in allocate() argument 47 mDataMemorySizeInBytes = bytesPerFrame * capacityInFrames; in allocate() 81 mFifoBuffer = std::make_shared<FifoBufferIndirect>(bytesPerFrame, capacityInFrames, in allocate()
|
D | SharedMemoryWrapper.h | 43 aaudio_result_t setupFifoBuffer(android::fifo_frames_t bytesPerFrame, 66 int32_t bytesPerFrame,
|
D | SharedRingBuffer.h | 46 …aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFr…
|
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.cpp | 38 FifoBuffer::FifoBuffer(int32_t bytesPerFrame) in FifoBuffer() argument 39 : mBytesPerFrame(bytesPerFrame) {} in FifoBuffer() 41 FifoBufferAllocated::FifoBufferAllocated(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) in FifoBufferAllocated() argument 42 : FifoBuffer(bytesPerFrame) in FifoBufferAllocated() 46 int32_t bytesPerBuffer = bytesPerFrame * capacityInFrames; in FifoBufferAllocated() 49 __func__, capacityInFrames, bytesPerFrame); in FifoBufferAllocated() 52 FifoBufferIndirect::FifoBufferIndirect( int32_t bytesPerFrame, in FifoBufferIndirect() argument 58 : FifoBuffer(bytesPerFrame) in FifoBufferIndirect()
|
D | FifoBuffer.h | 41 explicit FifoBuffer(int32_t bytesPerFrame); 141 FifoBufferAllocated(int32_t bytesPerFrame, fifo_frames_t capacityInFrames); 157 FifoBufferIndirect(int32_t bytesPerFrame,
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioEndpoint.cpp | 50 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor() 51 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor() 53 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor() 116 if(descriptor->bytesPerFrame != sizeof(AAudioServiceMessage)) { in configure() 118 descriptor->bytesPerFrame); in configure() 134 descriptor->bytesPerFrame, in configure() 174 size_t bufferSizeBytes = descriptor.capacityInFrames * descriptor.bytesPerFrame; in configureDataQueue() 178 descriptor.bytesPerFrame, in configureDataQueue()
|
/frameworks/av/media/libaaudio/src/binding/ |
D | RingBufferParcelable.cpp | 36 mBytesPerFrame(parcelable.bytesPerFrame), in RingBufferParcelable() 48 result.bytesPerFrame = mBytesPerFrame; in parcelable() 89 void RingBufferParcelable::setBytesPerFrame(int32_t bytesPerFrame) { in setBytesPerFrame() argument 90 mBytesPerFrame = bytesPerFrame; in setBytesPerFrame() 129 descriptor->bytesPerFrame = mBytesPerFrame; in resolve()
|
D | AAudioServiceDefinitions.h | 73 int32_t bytesPerFrame; // index is in frames member
|
D | RingBufferParcelable.h | 68 void setBytesPerFrame(int32_t bytesPerFrame);
|
/frameworks/av/media/libaaudio/tests/ |
D | test_pcm_offload.cpp | 100 int bytesPerFrame = mChannelCount; in writeAllStreamData() local 104 bytesPerFrame *= 2; in writeAllStreamData() 107 bytesPerFrame *= 4; in writeAllStreamData() 113 data = std::make_shared<uint8_t[]>(bytesPerFrame * mStreamFrames); in writeAllStreamData() 127 bytesWritten += framesWritten * bytesPerFrame; in writeAllStreamData()
|
D | test_marshalling.cpp | 138 const size_t bytesPerFrame = 8; in TEST() local 156 ringBufferA.setBytesPerFrame(bytesPerFrame); in TEST() 157 ringBufferA.setCapacityInFrames(dataSizeBytes / bytesPerFrame); in TEST()
|
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/ |
D | RingBuffer.aidl | 25 int bytesPerFrame; // index is in frames
|
/frameworks/av/media/module/extractors/wav/ |
D | WAVExtractor.cpp | 451 int64_t bytesPerFrame; in read() local 452 overflowed |= __builtin_mul_overflow(mNumChannels, mBitsPerSample >> 3, &bytesPerFrame); in read() 453 overflowed |= __builtin_mul_overflow(bytesPerFrame, sampleNumber, &pos); in read() 517 const size_t bytesPerFrame = (mBitsPerSample >> 3) * mNumChannels; in read() local 518 const size_t numFrames = n / bytesPerFrame; in read()
|
/frameworks/av/media/libaaudio/src/utility/ |
D | AAudioUtilities.cpp | 599 int32_t bytesPerFrame, in AAudioConvert_framesToBytes() argument 603 if (numFrames < 0 || bytesPerFrame < 0) { in AAudioConvert_framesToBytes() 604 ALOGE("negative size, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); in AAudioConvert_framesToBytes() 609 if (numFrames > (INT32_MAX / bytesPerFrame)) { in AAudioConvert_framesToBytes() 610 ALOGE("size overflow, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); in AAudioConvert_framesToBytes() 614 *sizeInBytes = numFrames * bytesPerFrame; in AAudioConvert_framesToBytes()
|
D | AAudioUtilities.h | 61 int32_t bytesPerFrame,
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamTrack.cpp | 493 int32_t bytesPerFrame = getBytesPerFrame(); in write() local 495 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes); in write() 519 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write()
|