Home
last modified time | relevance | path

Searched refs:mEventQueue (Results 1 – 10 of 10) sorted by relevance

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DGeneratorHub.cpp42 mEventQueue.push({cookie, generator->nextEvent()}); in registerGenerator()
64 while (!mEventQueue.empty() in run()
65 && mGenerators.find(mEventQueue.top().cookie) == mGenerators.end()) { in run()
66 mEventQueue.pop(); in run()
69 mCond.wait(g, [this] { return !mEventQueue.empty(); }); in run()
71 const VhalEvent& curEvent = mEventQueue.top(); in run()
85 mEventQueue.pop(); in run()
87 mEventQueue.push({cookie, mGenerators[cookie]->nextEvent()}); in run()
DGeneratorHub.h80 std::priority_queue<VhalEvent, std::vector<VhalEvent>, GreaterByTime> mEventQueue;
/hardware/interfaces/sensors/2.0/vts/functional/
DSensorsHidlEnvironmentV2_0.cpp68 mEventQueue = std::make_unique<EventMessageQueue>(MAX_RECEIVE_BUFFER_EVENT_COUNT, in resetHal()
74 if (mEventQueue == nullptr || mWakeLockQueue == nullptr) { in resetHal()
79 EventFlag::createEventFlag(mEventQueue->getEventFlagWord(), &mEventQueueFlag); in resetHal()
84 mSensors->initialize(*mEventQueue->getDesc(), *mWakeLockQueue->getDesc(), in resetHal()
137 size_t availableEvents = mEventQueue->availableToRead(); in readEvents()
143 availableEvents = mEventQueue->availableToRead(); in readEvents()
148 if (mEventQueue->read(mEventBuffer.data(), eventsToRead)) { in readEvents()
DSensorsHidlEnvironmentV2_0.h102 std::unique_ptr<EventMessageQueue> mEventQueue; variable
/hardware/interfaces/sensors/2.0/default/
DSensors.cpp112 mEventQueue = in initialize()
120 if (EventFlag::createEventFlag(mEventQueue->getEventFlagWord(), &mEventQueueFlag) != OK) { in initialize()
129 if (!mCallback || !mEventQueue || !mWakeLockQueue || mEventQueueFlag == nullptr) { in initialize()
185 if (mEventQueue->write(events.data(), events.size())) { in postEvents()
DSensors.h122 std::unique_ptr<EventMessageQueue> mEventQueue; member
/hardware/interfaces/sensors/2.0/multihal/
DHalProxy.cpp161 mEventQueue = in initialize()
175 if (EventFlag::createEventFlag(mEventQueue->getEventFlagWord(), &mEventQueueFlag) != OK) { in initialize()
181 if (!mDynamicSensorsCallback || !mEventQueue || !mWakeLockQueue || mEventQueueFlag == nullptr) { in initialize()
444 if (mEventQueueFlag != nullptr && mEventQueue != nullptr) { in stopThreads()
445 size_t numToRead = mEventQueue->availableToRead(); in stopThreads()
447 mEventQueue->read(events.data(), numToRead); in stopThreads()
491 size_t eventQueueSize = mEventQueue->getQuantumCount(); in handlePendingWrites()
494 if (!mEventQueue->writeBlocking( in handlePendingWrites()
578 numToWrite = std::min(events.size(), mEventQueue->availableToWrite()); in postEventsToMessageQueue()
580 if (mEventQueue->write(events.data(), numToWrite)) { in postEventsToMessageQueue()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleHalManager.cpp181 mBatchingConsumer.run(&mEventQueue, in init()
204 mEventQueue.deactivate(); in ~VehicleHalManager()
212 mEventQueue.push(std::move(v)); in onHalEvent()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleHalManager.h112 ConcurrentQueue<VehiclePropValuePtr> mEventQueue; variable
/hardware/interfaces/sensors/2.0/multihal/include/
DHalProxy.h144 std::unique_ptr<EventMessageQueue> mEventQueue; variable