#include "services/device/public/cpp/generic_sensor/sensor_mojom_traits.h"
#include "base/ranges/algorithm.h"
namespace mojo {
constexpr double kMaxAllowedFrequency = …;
bool StructTraits<device::mojom::SensorConfigurationDataView,
device::PlatformSensorConfiguration>::
Read(device::mojom::SensorConfigurationDataView data,
device::PlatformSensorConfiguration* out) { … }
bool StructTraits<
device::mojom::SensorReadingRawDataView,
device::SensorReading>::Read(device::mojom::SensorReadingRawDataView data,
device::SensorReading* out) { … }
}