Home
last modified time | relevance | path

Searched refs:SensorSpec (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/util/nanotool/
Dcontexthub.h85 struct SensorSpec { struct
133 bool CalibrateSensors(const std::vector<SensorSpec>& sensors);
138 bool TestSensors(const std::vector<SensorSpec>& sensors);
143 bool EnableSensor(const SensorSpec& sensor);
144 bool EnableSensors(const std::vector<SensorSpec>& sensors);
152 bool DisableSensors(const std::vector<SensorSpec>& sensors);
189 void PrintSensorEvents(const std::vector<SensorSpec>& sensors,
203 bool CalibrateSingleSensor(const SensorSpec& sensor);
206 bool TestSingleSensor(const SensorSpec& sensor);
212 bool ForEachSensor(const std::vector<SensorSpec>& sensors,
[all …]
Dcontexthub.cpp167 bool ContextHub::CalibrateSensors(const std::vector<SensorSpec>& sensors) { in CalibrateSensors()
168 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors()
178 bool ContextHub::TestSensors(const std::vector<SensorSpec>& sensors) { in TestSensors()
179 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors()
186 bool ContextHub::EnableSensor(const SensorSpec& spec) { in EnableSensor()
214 bool ContextHub::EnableSensors(const std::vector<SensorSpec>& sensors) { in EnableSensors()
215 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in EnableSensors()
241 bool ContextHub::DisableSensors(const std::vector<SensorSpec>& sensors) { in DisableSensors()
242 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in DisableSensors()
341 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents()
[all …]
Dnanotool.cpp55 std::vector<SensorSpec> sensors;
212 static bool ParseRate(const std::string& param, SensorSpec& spec) { in ParseRate()
240 static bool ParseSensorArg(std::vector<SensorSpec>& sensors, const char *arg_str, in ParseSensorArg()
242 SensorSpec spec; in ParseSensorArg()