Home
last modified time | relevance | path

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

/hardware/interfaces/sensors/2.0/default/
DSensors.cpp65 for (const auto& sensor : mSensors) { in getSensorsList()
76 for (auto sensor : mSensors) { in setOperationMode()
83 auto sensor = mSensors.find(sensorHandle); in activate()
84 if (sensor != mSensors.end()) { in activate()
98 for (auto sensor : mSensors) { in initialize()
142 auto sensor = mSensors.find(sensorHandle); in batch()
143 if (sensor != mSensors.end()) { in batch()
151 auto sensor = mSensors.find(sensorHandle); in flush()
152 if (sensor != mSensors.end()) { in flush()
159 auto sensor = mSensors.find(event.sensorHandle); in injectSensorData()
[all …]
DSensors.h96 mSensors[sensor->getSensorInfo().sensorHandle] = sensor; in AddSensor()
142 std::map<int32_t, std::shared_ptr<Sensor>> mSensors; member
/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/vts/functional/
DSensorsHidlEnvironmentV2_0.cpp54 mSensors = ISensors::getService( in resetHal()
56 if (mSensors == nullptr) { in resetHal()
77 mSensors->initialize(*mEventQueue->getDesc(), *mWakeLockQueue->getDesc(), in resetHal()
81 if (!mSensors->getSensorsList([&](const hidl_vec<SensorInfo>& list) { sensorList = list; }) in resetHal()
89 if (!mSensors->activate(i.sensorHandle, false).isOk()) { in resetHal()
103 mSensors = nullptr; in resetHal()
DSensorsHidlEnvironmentV2_0.h84 sp<android::hardware::sensors::V2_0::ISensors> mSensors; variable
DVtsHalSensorsV2_0TargetTest.cpp156 return SensorsHidlEnvironmentV2_0::Instance()->mSensors; in getSensors()