• Home
  • Raw
  • Download

Lines Matching refs:sensors

169 bool ContextHub::CalibrateSensors(const std::vector<SensorSpec>& sensors) {  in CalibrateSensors()  argument
170 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors()
180 bool ContextHub::TestSensors(const std::vector<SensorSpec>& sensors) { in TestSensors() argument
181 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors()
216 bool ContextHub::EnableSensors(const std::vector<SensorSpec>& sensors) { in EnableSensors() argument
217 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in EnableSensors()
243 bool ContextHub::DisableSensors(const std::vector<SensorSpec>& sensors) { in DisableSensors() argument
244 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in DisableSensors()
343 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents() argument
345 auto event_printer = [&sensors, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents()
347 for (unsigned int i = 0; i < sensors.size(); i++) { in PrintSensorEvents()
348 if (sensors[i].sensor_type == event_source in PrintSensorEvents()
349 || SensorTypeIsAliasOf(sensors[i].sensor_type, event_source)) { in PrintSensorEvents()
430 bool ContextHub::ForEachSensor(const std::vector<SensorSpec>& sensors, in ForEachSensor() argument
434 for (unsigned int i = 0; success && i < sensors.size(); i++) { in ForEachSensor()
435 success &= callback(sensors[i]); in ForEachSensor()