#include "services/device/generic_sensor/linux/sensor_data_linux.h"
#include "base/functional/bind.h"
#include "base/system/sys_info.h"
#include "base/version.h"
#include "build/chromeos_buildflags.h"
#include "services/device/generic_sensor/generic_sensor_consts.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading.h"
#include "services/device/public/cpp/generic_sensor/sensor_traits.h"
namespace device {
namespace {
SensorType;
void InitAmbientLightSensorData(SensorPathsLinux* data) { … }
void InitAccelerometerSensorData(SensorPathsLinux* data) { … }
void InitGyroscopeSensorData(SensorPathsLinux* data) { … }
void InitMagnetometerSensorData(SensorPathsLinux* data) { … }
}
SensorPathsLinux::SensorPathsLinux() = default;
SensorPathsLinux::~SensorPathsLinux() = default;
SensorPathsLinux::SensorPathsLinux(const SensorPathsLinux& other) = default;
bool InitSensorData(SensorType type, SensorPathsLinux* data) { … }
SensorInfoLinux::SensorInfoLinux(
const std::string& sensor_device_node,
double sensor_device_frequency,
double sensor_device_scaling_value,
double sensor_device_offset_value,
mojom::ReportingMode mode,
SensorPathsLinux::ReaderFunctor scaling_func,
std::vector<base::FilePath> device_reading_files)
: … { … }
SensorInfoLinux::~SensorInfoLinux() = default;
SensorInfoLinux::SensorInfoLinux(const SensorInfoLinux&) = default;
}