Lines Matching refs:mSensors

107     mSensors = nullptr;  in connect()
111 if (mSensors != nullptr) { in connect()
112 AIBinder_unlinkToDeath(mSensors->asBinder().get(), mDeathRecipient.get(), this); in connect()
117 mSensors = ISensors::fromBinder(binder); in connect()
138 mSensors->initialize(mEventQueue->dupeDesc(), mWakeLockQueue->dupeDesc(), mCallback); in connect()
140 AIBinder_linkToDeath(mSensors->asBinder().get(), mDeathRecipient.get(), this); in connect()
146 return mSensors != nullptr; in connect()
214 if (mSensors != nullptr) { in getSensorsList()
216 mSensors->getSensorsList(&list); in getSensorsList()
228 if (mSensors == nullptr) return NO_INIT; in setOperationMode()
240 return convertToStatus(mSensors->setOperationMode(static_cast<ISensors::OperationMode>(mode))); in setOperationMode()
244 if (mSensors == nullptr) return NO_INIT; in activate()
245 return convertToStatus(mSensors->activate(sensorHandle, enabled)); in activate()
250 if (mSensors == nullptr) return NO_INIT; in batch()
251 return convertToStatus(mSensors->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs)); in batch()
255 if (mSensors == nullptr) return NO_INIT; in flush()
256 return convertToStatus(mSensors->flush(sensorHandle)); in flush()
260 if (mSensors == nullptr) return NO_INIT; in injectSensorData()
264 return convertToStatus(mSensors->injectSensorData(ev)); in injectSensorData()
269 if (mSensors == nullptr) return NO_INIT; in registerDirectChannel()
296 return convertToStatus(mSensors->registerDirectChannel(mem, channelHandle)); in registerDirectChannel()
300 if (mSensors == nullptr) return NO_INIT; in unregisterDirectChannel()
301 return convertToStatus(mSensors->unregisterDirectChannel(channelHandle)); in unregisterDirectChannel()
306 if (mSensors == nullptr) return NO_INIT; in configureDirectChannel()
328 mSensors->configDirectReport(sensorHandle, channelHandle, rate, &token)); in configureDirectChannel()