#include "services/device/generic_sensor/platform_sensor_linux.h"
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/ranges/algorithm.h"
#include "base/time/time.h"
#include "services/device/generic_sensor/linux/sensor_data_linux.h"
#include "services/device/generic_sensor/platform_sensor_reader_linux.h"
namespace device {
PlatformSensorLinux::PlatformSensorLinux(
mojom::SensorType type,
SensorReadingSharedBuffer* reading_buffer,
base::WeakPtr<PlatformSensorProvider> provider,
const SensorInfoLinux* sensor_device)
: … { … }
PlatformSensorLinux::~PlatformSensorLinux() { … }
mojom::ReportingMode PlatformSensorLinux::GetReportingMode() { … }
void PlatformSensorLinux::UpdatePlatformSensorReading(SensorReading reading) { … }
void PlatformSensorLinux::NotifyPlatformSensorError() { … }
bool PlatformSensorLinux::StartSensor(
const PlatformSensorConfiguration& configuration) { … }
void PlatformSensorLinux::StopSensor() { … }
bool PlatformSensorLinux::CheckSensorConfiguration(
const PlatformSensorConfiguration& configuration) { … }
PlatformSensorConfiguration PlatformSensorLinux::GetDefaultConfiguration() { … }
}