Lines Matching refs:mSensors

117     return mSensors->supportsPolling();  in supportsPolling()
121 return mSensors->supportsMessageQueues(); in supportsMessageQueues()
146 auto ret = mSensors->poll(count, in poll()
187 size_t availableEvents = mSensors->getEventQueue()->availableToRead(); in pollFmq()
201 availableEvents = mSensors->getEventQueue()->availableToRead(); in pollFmq()
216 if (mSensors->getEventQueue()->read(mEventBuffer.data(), eventsToRead)) { in pollFmq()
238 if (mSensors != nullptr) { in getSensorsList()
239 checkReturn(mSensors->getSensorsList([&](const auto& list) { in getSensorsList()
247 if (!mSensors->supportsMessageQueues()) { in getSensorsList()
248 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in getSensorsList()
258 if (mSensors == nullptr) return NO_INIT; in setOperationMode()
271 mSensors->setOperationMode(static_cast<hardware::sensors::V1_0::OperationMode>(mode))); in setOperationMode()
275 if (mSensors == nullptr) return NO_INIT; in activate()
276 return checkReturnAndGetStatus(mSensors->activate(sensorHandle, enabled)); in activate()
281 if (mSensors == nullptr) return NO_INIT; in batch()
283 mSensors->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs)); in batch()
287 if (mSensors == nullptr) return NO_INIT; in flush()
288 return checkReturnAndGetStatus(mSensors->flush(sensorHandle)); in flush()
292 if (mSensors == nullptr) return NO_INIT; in injectSensorData()
296 return checkReturnAndGetStatus(mSensors->injectSensorData(ev)); in injectSensorData()
301 if (mSensors == nullptr) return NO_INIT; in registerDirectChannel()
329 checkReturn(mSensors->registerDirectChannel(mem, in registerDirectChannel()
342 if (mSensors == nullptr) return NO_INIT; in unregisterDirectChannel()
343 return checkReturnAndGetStatus(mSensors->unregisterDirectChannel(channelHandle)); in unregisterDirectChannel()
348 if (mSensors == nullptr) return NO_INIT; in configureDirectChannel()
369 checkReturn(mSensors->configDirectReport(sensorHandle, channelHandle, rate, in configureDirectChannel()
399 if (!mSensors->supportsMessageQueues()) { in handleHidlDeath()
433 mSensors = new ISensorsWrapperV1_0(sensors); in connectHidlServiceV1_0()
438 if (mSensors->poll(0, [](auto, const auto&, const auto&) {}).isOk()) { in connectHidlServiceV1_0()
445 mSensors = nullptr; in connectHidlServiceV1_0()
462 mSensors = new ISensorsWrapperV2_0(sensors); in connectHidlServiceV2_0()
477 mSensors = new ISensorsWrapperV2_1(sensors); in connectHidlServiceV2_1()
492 hardware::EventFlag::createEventFlag(mSensors->getEventQueue()->getEventFlagWord(), in initializeHidlServiceV2_X()
498 CHECK(mSensors != nullptr && mWakeLockQueue != nullptr && mEventQueueFlag != nullptr && in initializeHidlServiceV2_X()
503 checkReturnAndGetStatus(mSensors->initialize(*mWakeLockQueue->getDesc(), mCallback)); in initializeHidlServiceV2_X()
511 mSensors->linkToDeath(mSensorsHalDeathReceiver, 0 /* cookie */); in initializeHidlServiceV2_X()