#include "services/device/public/mojom/sensor.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "services/device/public/mojom/sensor.mojom-params-data.h"
namespace device {
namespace mojom {
NOINLINE static const char* SensorTypeToStringHelper(SensorType value) { … }
std::string SensorTypeToString(SensorType value) { … }
std::ostream& operator<<(std::ostream& os, SensorType value) { … }
NOINLINE static const char* ReportingModeToStringHelper(ReportingMode value) { … }
std::string ReportingModeToString(ReportingMode value) { … }
std::ostream& operator<<(std::ostream& os, ReportingMode value) { … }
namespace internal {
bool SensorReadingRaw_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SensorReadingRaw_Data::SensorReadingRaw_Data()
: … { … }
bool SensorConfiguration_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SensorConfiguration_Data::SensorConfiguration_Data()
: … { … }
bool Sensor_GetDefaultConfiguration_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_GetDefaultConfiguration_Params_Data::Sensor_GetDefaultConfiguration_Params_Data()
: … { … }
bool Sensor_GetDefaultConfiguration_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_GetDefaultConfiguration_ResponseParams_Data::Sensor_GetDefaultConfiguration_ResponseParams_Data()
: … { … }
bool Sensor_AddConfiguration_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_AddConfiguration_Params_Data::Sensor_AddConfiguration_Params_Data()
: … { … }
bool Sensor_AddConfiguration_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_AddConfiguration_ResponseParams_Data::Sensor_AddConfiguration_ResponseParams_Data()
: … { … }
bool Sensor_RemoveConfiguration_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_RemoveConfiguration_Params_Data::Sensor_RemoveConfiguration_Params_Data()
: … { … }
bool Sensor_Suspend_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_Suspend_Params_Data::Sensor_Suspend_Params_Data()
: … { … }
bool Sensor_Resume_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_Resume_Params_Data::Sensor_Resume_Params_Data()
: … { … }
bool Sensor_ConfigureReadingChangeNotifications_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Sensor_ConfigureReadingChangeNotifications_Params_Data::Sensor_ConfigureReadingChangeNotifications_Params_Data()
: … { … }
bool SensorClient_RaiseError_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SensorClient_RaiseError_Params_Data::SensorClient_RaiseError_Params_Data()
: … { … }
bool SensorClient_SensorReadingChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SensorClient_SensorReadingChanged_Params_Data::SensorClient_SensorReadingChanged_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SensorType>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SensorType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::ReportingMode>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::ReportingMode value) { … }
}