Home | History | Annotate | Download | only in nanotool

Lines Matching refs:sensor_type

96 static bool GetCalibrationBytes(const char *key, SensorType sensor_type,
105 switch (sensor_type) {
143 static_cast<int>(sensor_type));
291 SensorType sensor_type;
293 std::tie(key, sensor_type) = kCalibrationKeys[i];
294 if (GetCalibrationBytes(key.c_str(), sensor_type, cal_data)) {
295 success = SendCalibrationData(sensor_type, cal_data);
304 bool AndroidContextHub::SetCalibration(SensorType sensor_type, int32_t data) {
306 static_cast<int>(sensor_type),
307 ContextHub::SensorTypeToAbbrevName(sensor_type).c_str(), data);
309 const char *key = AndroidContextHub::SensorTypeToCalibrationKey(sensor_type);
316 bool AndroidContextHub::SetCalibration(SensorType sensor_type, float data) {
318 static_cast<int>(sensor_type),
319 ContextHub::SensorTypeToAbbrevName(sensor_type).c_str(), data);
321 const char *key = AndroidContextHub::SensorTypeToCalibrationKey(sensor_type);
328 bool AndroidContextHub::SetCalibration(SensorType sensor_type, int32_t x,
330 LOGI("Setting calibration for %d to %d %d %d", static_cast<int>(sensor_type),
333 const char *key = AndroidContextHub::SensorTypeToCalibrationKey(sensor_type);
340 bool AndroidContextHub::SetCalibration(SensorType sensor_type, int32_t x,
342 LOGI("Setting calibration for %d to %d %d %d %d", static_cast<int>(sensor_type),
345 const char *key = AndroidContextHub::SensorTypeToCalibrationKey(sensor_type);
403 const char *AndroidContextHub::SensorTypeToCalibrationKey(SensorType sensor_type) {
409 if (sensor_type == sensor_type_for_key) {
415 static_cast<int>(sensor_type));