Searched refs:numToWrite (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/sensors/common/utils/ |
D | EventMessageQueueWrapper.h | 44 virtual bool write(const V2_1::Event* events, size_t numToWrite) = 0; 75 bool write(const V2_1::Event* events, size_t numToWrite) override { in write() argument 76 return mQueue->write(reinterpret_cast<const V1_0::Event*>(events), numToWrite); in write() 118 bool write(const V2_1::Event* events, size_t numToWrite) override { in write() argument 119 return mQueue->write(events, numToWrite); in write()
|
/hardware/interfaces/sensors/common/default/2.X/multihal/ |
D | HalProxy.cpp | 569 size_t numToWrite = std::min(pendingWriteEvents.size(), eventQueueSize); in handlePendingWrites() local 572 pendingWriteEvents.data(), numToWrite, in handlePendingWrites() 576 ALOGE("Dropping %zu events after blockingWrite failed.", numToWrite); in handlePendingWrites() 587 mSizePendingWriteEventsQueue -= numToWrite; in handlePendingWrites() 649 size_t numToWrite = 0; in postEventsToMessageQueue() local 655 numToWrite = std::min(events.size(), mEventQueue->availableToWrite()); in postEventsToMessageQueue() 656 if (numToWrite > 0) { in postEventsToMessageQueue() 657 if (mEventQueue->write(events.data(), numToWrite)) { in postEventsToMessageQueue() 662 numToWrite = 0; in postEventsToMessageQueue() 666 size_t numLeft = events.size() - numToWrite; in postEventsToMessageQueue() [all …]
|