Home
last modified time | relevance | path

Searched refs:mSensors (Results 1 – 13 of 13) sorted by relevance

/hardware/interfaces/sensors/common/vts/2_X/
DSensorsHidlEnvironmentV2_X.cpp55 mSensors = wrapISensors(ISensors::getService(mServiceName)); in resetHal()
56 if (mSensors == nullptr) { in resetHal()
59 mSensors->linkToDeath(mDeathRecipient, 0 /* cookie */); in resetHal()
70 EventFlag::createEventFlag(mSensors->getEventQueue()->getEventFlagWord(), &mEventQueueFlag); in resetHal()
75 mSensors->initialize(*mWakeLockQueue->getDesc(), new NoOpSensorsCallback()); in resetHal()
78 if (!mSensors->getSensorsList([&](const hidl_vec<SensorInfo>& list) { sensorList = list; }) in resetHal()
86 if (!mSensors->activate(i.sensorHandle, false).isOk()) { in resetHal()
100 mSensors = nullptr; in resetHal()
127 size_t availableEvents = mSensors->getEventQueue()->availableToRead(); in readEvents()
133 availableEvents = mSensors->getEventQueue()->availableToRead(); in readEvents()
[all …]
DSensorsHidlEnvironmentV2_X.h87 sp<ISensorsWrapperBase> mSensors; variable
DVtsHalSensorsV2_XTargetTest.h217 inline sp<ISensorsWrapperBase>& getSensors() { return mEnvironment->mSensors; } in getSensors()
/hardware/interfaces/sensors/common/utils/
DISensorsWrapper.h122 SensorsWrapperBase(sp<T> sensors) : mSensors(sensors){}; in SensorsWrapperBase()
126 mSensors->linkToDeath(deathRecipient, cookie); in linkToDeath()
131 return mSensors->getSensorsList( in getSensorsList()
136 return mSensors->setOperationMode(mode); in setOperationMode()
140 return mSensors->activate(sensorHandle, enabled); in activate()
145 return mSensors->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
148 Return<Result> flush(int32_t sensorHandle) override { return mSensors->flush(sensorHandle); } in flush()
151 return mSensors->injectSensorData(convertToOldEvent(event)); in injectSensorData()
156 return mSensors->registerDirectChannel(mem, _hidl_cb); in registerDirectChannel()
160 return mSensors->unregisterDirectChannel(channelHandle); in unregisterDirectChannel()
[all …]
/hardware/interfaces/sensors/common/default/2.X/
DSensors.h82 for (auto sensor : mSensors) { in setOperationMode()
89 auto sensor = mSensors.find(sensorHandle); in activate()
90 if (sensor != mSensors.end()) { in activate()
115 for (auto sensor : mSensors) { in initializeBase()
158 auto sensor = mSensors.find(sensorHandle); in batch()
159 if (sensor != mSensors.end()) { in batch()
167 auto sensor = mSensors.find(sensorHandle); in flush()
168 if (sensor != mSensors.end()) { in flush()
175 auto sensor = mSensors.find(event.sensorHandle); in injectSensorData()
176 if (sensor != mSensors.end()) { in injectSensorData()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawSensorDevice.cpp68 mSensors.emplace(packet.id/* report id*/, s); in HidRawSensorDevice()
73 if (mSensors.size() == 0) { in HidRawSensorDevice()
99 auto i = mSensors.find(usageId); in threadLoop()
100 if (i == mSensors.end()) { in threadLoop()
115 for (const auto &s : mSensors) { in getSensors()
DHidRawSensorDevice.h46 std::unordered_map<unsigned int/*reportId*/, sp<HidRawSensor>> mSensors; variable
/hardware/interfaces/sensors/2.0/default/
DSensorsV2_0.h34 for (const auto &sensor : mSensors) { in getSensorsList()
/hardware/interfaces/sensors/2.1/default/
DSensorsV2_1.cpp61 for (const auto& sensor : mSensors) { in getSensorsList_2_1()
DSensorsV2_1.h60 for (const auto &sensor : mSensors) { in getSensorsList()
/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxy.cpp117 for (const auto& iter : mSensors) { in getSensorsList_2_1()
126 for (const auto& iter : mSensors) { in getSensorsList()
367 stream << " # of non-dynamic sensors across all subhals: " << mSensors.size() << std::endl; in debug()
485 mSensors[sensor.sensorHandle] = sensor; in initializeSensorList()
543 for (const auto& sensorEntry : mSensors) { in disableAllSensors()
737 if (mSensors[sensorHandle].flags & static_cast<uint32_t>(V1_0::SensorFlagBits::WAKE_UP)) { in countNumWakeupEvents()
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensorsSubHal.h93 mSensors[sensor->getSensorInfo().sensorHandle] = sensor; in AddSensor()
99 std::map<int32_t, std::shared_ptr<Sensor>> mSensors; variable
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxy.h133 return mSensors[sensorHandle]; in getSensorInfo()
185 std::map<int32_t, SensorInfo> mSensors; variable