Lines Matching refs:numToWrite
492 size_t numToWrite = std::min(pendingWriteEvents.size(), eventQueueSize); in handlePendingWrites() local
495 pendingWriteEvents.data(), numToWrite, in handlePendingWrites()
499 ALOGE("Dropping %zu events after blockingWrite failed.", numToWrite); in handlePendingWrites()
510 mSizePendingWriteEventsQueue -= numToWrite; in handlePendingWrites()
572 size_t numToWrite = 0; in postEventsToMessageQueue() local
578 numToWrite = std::min(events.size(), mEventQueue->availableToWrite()); in postEventsToMessageQueue()
579 if (numToWrite > 0) { in postEventsToMessageQueue()
580 if (mEventQueue->write(events.data(), numToWrite)) { in postEventsToMessageQueue()
585 numToWrite = 0; in postEventsToMessageQueue()
589 size_t numLeft = events.size() - numToWrite; in postEventsToMessageQueue()
590 if (numToWrite < events.size() && in postEventsToMessageQueue()
592 std::vector<Event> eventsLeft(events.begin() + numToWrite, events.end()); in postEventsToMessageQueue()