Home
last modified time | relevance | path

Searched refs:mSensors (Results 1 – 11 of 11) 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/interfaces/sensors/2.0/multihal/tests/fake_subhal/
DSensorsSubHal.cpp59 for (const auto& sensor : mSensors) { in getSensorsList()
68 for (auto sensor : mSensors) { in setOperationMode()
76 auto sensor = mSensors.find(sensorHandle); in activate()
77 if (sensor != mSensors.end()) { in activate()
86 auto sensor = mSensors.find(sensorHandle); in batch()
87 if (sensor != mSensors.end()) { in batch()
95 auto sensor = mSensors.find(sensorHandle); in flush()
96 if (sensor != mSensors.end()) { in flush()
103 auto sensor = mSensors.find(event.sensorHandle); in injectSensorData()
104 if (sensor != mSensors.end()) { in injectSensorData()
[all …]
DSensorsSubHal.h93 mSensors[sensor->getSensorInfo().sensorHandle] = sensor; in AddSensor()
99 std::map<int32_t, std::shared_ptr<Sensor>> mSensors; variable
/hardware/interfaces/sensors/2.0/vts/functional/
DSensorsHidlEnvironmentV2_0.cpp61 mSensors = ISensors::getService(mServiceName); in resetHal()
62 if (mSensors == nullptr) { in resetHal()
65 mSensors->linkToDeath(mDeathRecipient, 0 /* cookie */); in resetHal()
84 mSensors->initialize(*mEventQueue->getDesc(), *mWakeLockQueue->getDesc(), in resetHal()
88 if (!mSensors->getSensorsList([&](const hidl_vec<SensorInfo>& list) { sensorList = list; }) in resetHal()
96 if (!mSensors->activate(i.sensorHandle, false).isOk()) { in resetHal()
110 mSensors = nullptr; in resetHal()
DSensorsHidlEnvironmentV2_0.h81 sp<android::hardware::sensors::V2_0::ISensors> mSensors; variable
DVtsHalSensorsV2_0TargetTest.cpp169 return mEnvironment->mSensors; in getSensors()
/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/multihal/
DHalProxy.cpp100 for (const auto& iter : mSensors) { in getSensorsList()
299 stream << " # of non-dynamic sensors across all subhals: " << mSensors.size() << std::endl; in debug()
408 mSensors[sensor.sensorHandle] = sensor; in initializeSensorList()
466 for (const auto& sensorEntry : mSensors) { in disableAllSensors()
655 if (mSensors[sensorHandle].flags & static_cast<uint32_t>(V1_0::SensorFlagBits::WAKE_UP)) { in countNumWakeupEvents()
/hardware/interfaces/sensors/2.0/multihal/include/
DHalProxy.h127 const SensorInfo& getSensorInfo(int32_t sensorHandle) { return mSensors[sensorHandle]; } in getSensorInfo()
180 std::map<int32_t, SensorInfo> mSensors; variable