Lines Matching refs:mQueue

61     EventQueueGuard(const sp<SensorEventQueue>& queue, Looper* looper) : mQueue(queue) {  in EventQueueGuard()
62 mQueue->looper = Looper_to_ALooper(looper); in EventQueueGuard()
63 mQueue->requestAdditionalInfo = false; in EventQueueGuard()
64 looper->addFd(mQueue->getFd(), kIdent, ALOOPER_EVENT_INPUT, in EventQueueGuard()
69 if (mQueue) { in ~EventQueueGuard()
70 ALooper_to_Looper(mQueue->looper)->removeFd(mQueue->getFd()); in ~EventQueueGuard()
77 [[nodiscard]] SensorEventQueue* get() const { return mQueue.get(); } in get()
80 const sp<SensorEventQueue> mQueue; member in android::media::__anonbad7a65c0111::EventQueueGuard
89 : mQueue(queue), mSensor(sensor) {} in SensorEnableGuard()
93 int ret = mQueue->disableSensor(mSensor); in ~SensorEnableGuard()
101 SensorEnableGuard(SensorEnableGuard&& other) : mQueue(other.mQueue), mSensor(other.mSensor) { in SensorEnableGuard()
106 sp<SensorEventQueue> const mQueue; member in android::media::__anonbad7a65c0111::SensorEnableGuard
146 if (mQueue->enableSensor(sensor, samplingPeriod.count(), 0, 0)) { in startSensor()
153 mEnabledSensors.emplace(sensor, SensorEnableGuard(mQueue, sensor)); in startSensor()
227 sp<SensorEventQueue> mQueue; member in android::media::__anonbad7a65c0111::SensorPoseProviderImpl
260 mQueue = mSensorManager->createEventQueue(); in threadFunc()
262 if (mQueue == nullptr) { in threadFunc()
268 EventQueueGuard eventQueueGuard(mQueue, mLooper.get()); in threadFunc()
298 ssize_t actual = mQueue->read(&event, 1); in threadFunc()
300 mQueue->sendAck(&event, actual); in threadFunc()
302 ssize_t size = mQueue->filterEvents(&event, actual); in threadFunc()