Lines Matching refs:success
170 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors() local
174 if (success) { in CalibrateSensors()
175 success = SaveCalibration(); in CalibrateSensors()
177 return success; in CalibrateSensors()
181 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors() local
185 return success; in TestSensors()
250 bool success = true; in DisableAllSensors() local
253 success &= DisableSensor(sensor_names_[i].sensor_type); in DisableAllSensors()
256 return success; in DisableAllSensors()
260 bool success = true; in DisableActiveSensors() local
265 success &= DisableSensor(sensor_names_[i].sensor_type); in DisableActiveSensors()
269 return success; in DisableActiveSensors()
290 bool success = false; in PrintBridgeVersion() local
291 auto event_handler = [&success](const AppToHostEvent &event) -> bool { in PrintBridgeVersion()
320 success = true; in PrintBridgeVersion()
327 return success; in PrintBridgeVersion()
378 bool success = false; in CalibrateSingleSensor() local
379 auto cal_event_handler = [this, &sensor, &success](const AppToHostEvent &event) -> bool { in CalibrateSingleSensor()
381 success = HandleCalibrationResult(sensor, event); in CalibrateSingleSensor()
393 return success; in CalibrateSingleSensor()
412 bool success = false; in TestSingleSensor() local
413 auto test_event_handler = [this, &sensor, &success](const AppToHostEvent &event) -> bool { in TestSingleSensor()
415 success = HandleTestResult(sensor, event); in TestSingleSensor()
427 return success; in TestSingleSensor()
432 bool success = true; in ForEachSensor() local
434 for (unsigned int i = 0; success && i < sensors.size(); i++) { in ForEachSensor()
435 success &= callback(sensors[i]); in ForEachSensor()
438 return success; in ForEachSensor()
452 bool success = false; in HandleCalibrationResult() local
458 success = SetCalibration(sensor.sensor_type, result->xBias, in HandleCalibrationResult()
467 success = SetCalibration(sensor.sensor_type, in HandleCalibrationResult()
476 success = SetCalibration(sensor.sensor_type, result->xBias, in HandleCalibrationResult()
485 success = SetCalibration(sensor.sensor_type, in HandleCalibrationResult()
496 return success; in HandleCalibrationResult()