#include "services/device/generic_sensor/platform_sensor_util.h"
#include <cmath>
#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading.h"
namespace device {
namespace {
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
static_assert …;
template <typename T>
T square(T x) { … }
}
double RoundToMultiple(double value, double multiple) { … }
void RoundAccelerometerReading(SensorReadingXYZ* reading) { … }
void RoundGyroscopeReading(SensorReadingXYZ* reading) { … }
void RoundIlluminanceReading(SensorReadingSingle* reading) { … }
void RoundOrientationQuaternionReading(SensorReadingQuat* reading) { … }
void RoundOrientationEulerReading(SensorReadingXYZ* reading) { … }
void RoundMagnetometerReading(SensorReadingXYZ* reading) { … }
void RoundSensorReading(SensorReading* reading, mojom::SensorType sensor_type) { … }
}