Searched refs:SensorSpec (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/util/nanotool/ |
D | contexthub.h | 87 struct SensorSpec { struct 135 bool CalibrateSensors(const std::vector<SensorSpec>& sensors); 140 bool TestSensors(const std::vector<SensorSpec>& sensors); 145 bool EnableSensor(const SensorSpec& sensor); 146 bool EnableSensors(const std::vector<SensorSpec>& sensors); 154 bool DisableSensors(const std::vector<SensorSpec>& sensors); 191 void PrintSensorEvents(const std::vector<SensorSpec>& sensors, 205 bool CalibrateSingleSensor(const SensorSpec& sensor); 208 bool TestSingleSensor(const SensorSpec& sensor); 214 bool ForEachSensor(const std::vector<SensorSpec>& sensors, [all …]
|
D | contexthub.cpp | 169 bool ContextHub::CalibrateSensors(const std::vector<SensorSpec>& sensors) { in CalibrateSensors() 170 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors() 180 bool ContextHub::TestSensors(const std::vector<SensorSpec>& sensors) { in TestSensors() 181 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors() 188 bool ContextHub::EnableSensor(const SensorSpec& spec) { in EnableSensor() 216 bool ContextHub::EnableSensors(const std::vector<SensorSpec>& sensors) { in EnableSensors() 217 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in EnableSensors() 243 bool ContextHub::DisableSensors(const std::vector<SensorSpec>& sensors) { in DisableSensors() 244 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in DisableSensors() 343 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents() [all …]
|
D | nanotool.cpp | 56 std::vector<SensorSpec> sensors; 213 static bool ParseRate(const std::string& param, SensorSpec& spec) { in ParseRate() 241 static bool ParseSensorArg(std::vector<SensorSpec>& sensors, const char *arg_str, in ParseSensorArg() 243 SensorSpec spec; in ParseSensorArg()
|