Home
last modified time | relevance | path

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

/device/google/contexthub/contexthubhal/
Dnanohubhal_default.cpp45 .sensor_id = ((int)DEVICE_TAG << 8) + 1,
51 .sensor_id = ((int)DEVICE_TAG << 8) + 2,
/device/google/dragon/sensor_hub/
Dsensors.cpp460 int sensor_id = atoi(dev_id); in cros_ec_get_sensors_names() local
461 if (Stotal_max_sensor_handle_ <= sensor_id) { in cros_ec_get_sensors_names()
463 (sensor_id + 1) * sizeof(cros_ec_sensor_info)); in cros_ec_get_sensors_names()
469 (sensor_id + 1 - Stotal_max_sensor_handle_) * in cros_ec_get_sensors_names()
471 Stotal_max_sensor_handle_ = sensor_id + 1; in cros_ec_get_sensors_names()
474 struct cros_ec_sensor_info *sensor_info = &Ssensor_info_[sensor_id]; in cros_ec_get_sensors_names()
490 sensor_data->handle = sensor_id; in cros_ec_get_sensors_names()
517 sensor_info->device_name, sensor_id); in cros_ec_get_sensors_names()
Dcros_ec_sensors.cpp296 data->meta_data.sensor = event->sensor_id; in processEvent()
300 if (event->sensor_id >= mSensorNb) { in processEvent()
303 struct cros_ec_sensor_info *info = &mSensorInfo[event->sensor_id]; in processEvent()
339 data->sensor = event->sensor_id; in processEvent()
364 d * mSensorInfo[event->sensor_id].sensor_data.resolution; in processEvent()
Dcros_ec_sensors.h55 uint8_t sensor_id; member