Home
last modified time | relevance | path

Searched refs:fifo_counter_t (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/libaaudio/src/fifo/
DFifoControllerIndirect.h38 fifo_counter_t * readCounterAddress, in FifoControllerIndirect()
39 fifo_counter_t * writeCounterAddress) in FifoControllerIndirect()
41 , mReadCounterAddress((std::atomic<fifo_counter_t> *) readCounterAddress) in FifoControllerIndirect()
42 , mWriteCounterAddress((std::atomic<fifo_counter_t> *) writeCounterAddress) in FifoControllerIndirect()
50 virtual fifo_counter_t getReadCounter() override { in getReadCounter()
54 virtual void setReadCounter(fifo_counter_t count) override { in setReadCounter()
58 virtual fifo_counter_t getWriteCounter() override { in getWriteCounter()
62 virtual void setWriteCounter(fifo_counter_t count) override { in setWriteCounter()
67 std::atomic<fifo_counter_t> * mReadCounterAddress;
68 std::atomic<fifo_counter_t> * mWriteCounterAddress;
DFifoController.h42 virtual fifo_counter_t getReadCounter() override { in getReadCounter()
45 virtual void setReadCounter(fifo_counter_t n) override { in setReadCounter()
48 virtual fifo_counter_t getWriteCounter() override { in getWriteCounter()
51 virtual void setWriteCounter(fifo_counter_t n) override { in setWriteCounter()
56 std::atomic<fifo_counter_t> mReadCounter;
57 std::atomic<fifo_counter_t> mWriteCounter;
DFifoControllerBase.h24 typedef int64_t fifo_counter_t; typedef
52 virtual fifo_counter_t getReadCounter() = 0;
58 virtual void setReadCounter(fifo_counter_t count) = 0;
63 virtual fifo_counter_t getWriteCounter() = 0;
69 virtual void setWriteCounter(fifo_counter_t count) = 0;
DFifoBuffer.h81 fifo_counter_t getReadCounter() { in getReadCounter()
85 void setReadCounter(fifo_counter_t n) { in setReadCounter()
89 fifo_counter_t getWriteCounter() { in getWriteCounter()
93 void setWriteCounter(fifo_counter_t n) { in setWriteCounter()
159 fifo_counter_t* readCounterAddress,
160 fifo_counter_t* writeCounterAddress,
DFifoControllerBase.cpp45 fifo_counter_t temp = 0; in advanceReadIndex()
60 fifo_counter_t temp = 0; in advanceWriteIndex()
DFifoBuffer.cpp54 fifo_counter_t *readIndexAddress, in FifoBufferIndirect()
55 fifo_counter_t *writeIndexAddress, in FifoBufferIndirect()
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.h76 void setDataReadCounter(android::fifo_counter_t framesRead);
78 android::fifo_counter_t getDataReadCounter() const;
80 void setDataWriteCounter(android::fifo_counter_t framesWritten);
82 android::fifo_counter_t getDataWriteCounter() const;
120 android::fifo_counter_t mDataReadCounter{0}; // only used if free-running
121 android::fifo_counter_t mDataWriteCounter{0}; // only used if free-running
DAudioEndpoint.cpp78 fifo_counter_t counter = *descriptor->readCounterAddress; in AudioEndpoint_validateQueueDescriptor()
86 fifo_counter_t counter = *descriptor->writeCounterAddress; in AudioEndpoint_validateQueueDescriptor()
230 void AudioEndpoint::setDataReadCounter(fifo_counter_t framesRead) { in setDataReadCounter()
236 fifo_counter_t AudioEndpoint::getDataReadCounter() const { in getDataReadCounter()
240 void AudioEndpoint::setDataWriteCounter(fifo_counter_t framesRead) { in setDataWriteCounter()
246 fifo_counter_t AudioEndpoint::getDataWriteCounter() const { in getDataWriteCounter()
DAudioStreamInternal.cpp396 const android::fifo_counter_t readCounter = mAudioEndpoint->getDataReadCounter(); in exitStandby_l()
/frameworks/av/services/oboeservice/
DSharedRingBuffer.cpp48 mSharedMemorySizeInBytes = mDataMemorySizeInBytes + (2 * (sizeof(fifo_counter_t))); in allocate()
77 auto readCounterAddress = (fifo_counter_t *) &mSharedMemory[SHARED_RINGBUFFER_READ_OFFSET]; in allocate()
78 auto writeCounterAddress = (fifo_counter_t *) &mSharedMemory[SHARED_RINGBUFFER_WRITE_OFFSET]; in allocate()
94 sizeof(fifo_counter_t)); in fillParcelable()
DSharedRingBuffer.h34 #define SHARED_RINGBUFFER_WRITE_OFFSET sizeof(fifo_counter_t)
35 #define SHARED_RINGBUFFER_DATA_OFFSET (SHARED_RINGBUFFER_WRITE_OFFSET + sizeof(fifo_counter_t))
DSharedMemoryWrapper.h79 android::fifo_counter_t* mReadCounterAddress = nullptr;
80 android::fifo_counter_t* mWriteCounterAddress = nullptr;
DSharedMemoryWrapper.cpp29 constexpr int COUNTER_SIZE_IN_BYTES = sizeof(android::fifo_counter_t);
55 mReadCounterAddress = (android::fifo_counter_t*) mCounterMemoryAddress; in SharedMemoryWrapper()
56 mWriteCounterAddress = (android::fifo_counter_t*) &mCounterMemoryAddress[COUNTER_SIZE_IN_BYTES]; in SharedMemoryWrapper()
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp26 using android::fifo_counter_t;
301 fifo_counter_t counter = -9876; in checkNegativeCounters()
310 fifo_counter_t counter = INT64_MAX - 10; in checkHalfWrap()
320 fifo_counter_t counter = -10; in checkFullWrap()
334 fifo_counter_t mReadIndex = 0;
335 fifo_counter_t mWriteIndex = 0;