Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanotool/
Dcontexthub.cpp40 static const SensorTypeNames sensor_names_[] = { variable
96 for (unsigned int i = 0; i < ARRAY_LEN(sensor_names_); i++) { in SensorAbbrevNameToType()
97 if (strcmp(sensor_names_[i].name_abbrev, sensor_name_abbrev) == 0) { in SensorAbbrevNameToType()
98 return sensor_names_[i].sensor_type; in SensorAbbrevNameToType()
110 for (unsigned int i = 0; i < ARRAY_LEN(sensor_names_); i++) { in SensorTypeToAbbrevName()
111 if (sensor_names_[i].sensor_type == sensor_type) { in SensorTypeToAbbrevName()
112 return std::string(sensor_names_[i].name_abbrev); in SensorTypeToAbbrevName()
130 for (unsigned int i = 0; i < ARRAY_LEN(sensor_names_); i++) { in ListAllSensorAbbrevNames()
131 sensor_list += sensor_names_[i].name_abbrev; in ListAllSensorAbbrevNames()
132 if (i < ARRAY_LEN(sensor_names_) - 1) { in ListAllSensorAbbrevNames()