Searched refs:SensorSpec (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/util/nanotool/ |
D | contexthub.h | 84 struct SensorSpec { struct 132 bool CalibrateSensors(const std::vector<SensorSpec>& sensors); 137 bool EnableSensor(const SensorSpec& sensor); 138 bool EnableSensors(const std::vector<SensorSpec>& sensors); 146 bool DisableSensors(const std::vector<SensorSpec>& sensors); 178 void PrintSensorEvents(const std::vector<SensorSpec>& sensors, 192 bool CalibrateSingleSensor(const SensorSpec& sensor); 198 bool ForEachSensor(const std::vector<SensorSpec>& sensors, 199 std::function<bool(const SensorSpec&)> callback); 205 bool HandleCalibrationResult(const SensorSpec& sensor,
|
D | contexthub.cpp | 164 bool ContextHub::CalibrateSensors(const std::vector<SensorSpec>& sensors) { in CalibrateSensors() 165 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors() 175 bool ContextHub::EnableSensor(const SensorSpec& spec) { in EnableSensor() 203 bool ContextHub::EnableSensors(const std::vector<SensorSpec>& sensors) { in EnableSensors() 204 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in EnableSensors() 230 bool ContextHub::DisableSensors(const std::vector<SensorSpec>& sensors) { in DisableSensors() 231 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in DisableSensors() 285 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents() 304 bool ContextHub::CalibrateSingleSensor(const SensorSpec& sensor) { in CalibrateSingleSensor() 338 bool ContextHub::ForEachSensor(const std::vector<SensorSpec>& sensors, in ForEachSensor() [all …]
|
D | nanotool.cpp | 53 std::vector<SensorSpec> sensors; 202 static bool ParseRate(const std::string& param, SensorSpec& spec) { in ParseRate() 230 static bool ParseSensorArg(std::vector<SensorSpec>& sensors, const char *arg_str, in ParseSensorArg() 232 SensorSpec spec; in ParseSensorArg()
|