#include "services/device/public/mojom/serial.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/serial.mojom-params-data.h"
namespace device {
namespace mojom {
NOINLINE static const char* SerialSendErrorToStringHelper(SerialSendError value) { … }
std::string SerialSendErrorToString(SerialSendError value) { … }
std::ostream& operator<<(std::ostream& os, SerialSendError value) { … }
NOINLINE static const char* SerialReceiveErrorToStringHelper(SerialReceiveError value) { … }
std::string SerialReceiveErrorToString(SerialReceiveError value) { … }
std::ostream& operator<<(std::ostream& os, SerialReceiveError value) { … }
NOINLINE static const char* SerialDataBitsToStringHelper(SerialDataBits value) { … }
std::string SerialDataBitsToString(SerialDataBits value) { … }
std::ostream& operator<<(std::ostream& os, SerialDataBits value) { … }
NOINLINE static const char* SerialParityBitToStringHelper(SerialParityBit value) { … }
std::string SerialParityBitToString(SerialParityBit value) { … }
std::ostream& operator<<(std::ostream& os, SerialParityBit value) { … }
NOINLINE static const char* SerialStopBitsToStringHelper(SerialStopBits value) { … }
std::string SerialStopBitsToString(SerialStopBits value) { … }
std::ostream& operator<<(std::ostream& os, SerialStopBits value) { … }
NOINLINE static const char* SerialPortFlushModeToStringHelper(SerialPortFlushMode value) { … }
std::string SerialPortFlushModeToString(SerialPortFlushMode value) { … }
std::ostream& operator<<(std::ostream& os, SerialPortFlushMode value) { … }
NOINLINE static const char* SerialPortTypeToStringHelper(SerialPortType value) { … }
std::string SerialPortTypeToString(SerialPortType value) { … }
std::ostream& operator<<(std::ostream& os, SerialPortType value) { … }
namespace internal {
bool SerialPortInfo_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortInfo_Data::SerialPortInfo_Data()
: … { … }
bool SerialConnectionOptions_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialConnectionOptions_Data::SerialConnectionOptions_Data()
: … { … }
bool SerialConnectionInfo_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialConnectionInfo_Data::SerialConnectionInfo_Data()
: … { … }
bool SerialHostControlSignals_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialHostControlSignals_Data::SerialHostControlSignals_Data()
: … { … }
bool SerialPortControlSignals_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortControlSignals_Data::SerialPortControlSignals_Data()
: … { … }
bool SerialPortManager_SetClient_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManager_SetClient_Params_Data::SerialPortManager_SetClient_Params_Data()
: … { … }
bool SerialPortManager_GetDevices_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManager_GetDevices_Params_Data::SerialPortManager_GetDevices_Params_Data()
: … { … }
bool SerialPortManager_GetDevices_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManager_GetDevices_ResponseParams_Data::SerialPortManager_GetDevices_ResponseParams_Data()
: … { … }
bool SerialPortManager_OpenPort_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManager_OpenPort_Params_Data::SerialPortManager_OpenPort_Params_Data()
: … { … }
bool SerialPortManager_OpenPort_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManager_OpenPort_ResponseParams_Data::SerialPortManager_OpenPort_ResponseParams_Data()
: … { … }
bool SerialPortManagerClient_OnPortAdded_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManagerClient_OnPortAdded_Params_Data::SerialPortManagerClient_OnPortAdded_Params_Data()
: … { … }
bool SerialPortManagerClient_OnPortRemoved_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManagerClient_OnPortRemoved_Params_Data::SerialPortManagerClient_OnPortRemoved_Params_Data()
: … { … }
bool SerialPortManagerClient_OnPortConnectedStateChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortManagerClient_OnPortConnectedStateChanged_Params_Data::SerialPortManagerClient_OnPortConnectedStateChanged_Params_Data()
: … { … }
bool SerialPort_StartWriting_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_StartWriting_Params_Data::SerialPort_StartWriting_Params_Data()
: … { … }
bool SerialPort_StartReading_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_StartReading_Params_Data::SerialPort_StartReading_Params_Data()
: … { … }
bool SerialPort_Flush_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_Flush_Params_Data::SerialPort_Flush_Params_Data()
: … { … }
bool SerialPort_Flush_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_Flush_ResponseParams_Data::SerialPort_Flush_ResponseParams_Data()
: … { … }
bool SerialPort_Drain_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_Drain_Params_Data::SerialPort_Drain_Params_Data()
: … { … }
bool SerialPort_Drain_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_Drain_ResponseParams_Data::SerialPort_Drain_ResponseParams_Data()
: … { … }
bool SerialPort_GetControlSignals_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_GetControlSignals_Params_Data::SerialPort_GetControlSignals_Params_Data()
: … { … }
bool SerialPort_GetControlSignals_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_GetControlSignals_ResponseParams_Data::SerialPort_GetControlSignals_ResponseParams_Data()
: … { … }
bool SerialPort_SetControlSignals_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_SetControlSignals_Params_Data::SerialPort_SetControlSignals_Params_Data()
: … { … }
bool SerialPort_SetControlSignals_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_SetControlSignals_ResponseParams_Data::SerialPort_SetControlSignals_ResponseParams_Data()
: … { … }
bool SerialPort_ConfigurePort_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_ConfigurePort_Params_Data::SerialPort_ConfigurePort_Params_Data()
: … { … }
bool SerialPort_ConfigurePort_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_ConfigurePort_ResponseParams_Data::SerialPort_ConfigurePort_ResponseParams_Data()
: … { … }
bool SerialPort_GetPortInfo_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_GetPortInfo_Params_Data::SerialPort_GetPortInfo_Params_Data()
: … { … }
bool SerialPort_GetPortInfo_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_GetPortInfo_ResponseParams_Data::SerialPort_GetPortInfo_ResponseParams_Data()
: … { … }
bool SerialPort_Close_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_Close_Params_Data::SerialPort_Close_Params_Data()
: … { … }
bool SerialPort_Close_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPort_Close_ResponseParams_Data::SerialPort_Close_ResponseParams_Data()
: … { … }
bool SerialPortClient_OnReadError_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortClient_OnReadError_Params_Data::SerialPortClient_OnReadError_Params_Data()
: … { … }
bool SerialPortClient_OnSendError_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SerialPortClient_OnSendError_Params_Data::SerialPortClient_OnSendError_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialSendError>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialSendError value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialReceiveError>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialReceiveError value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialDataBits>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialDataBits value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialParityBit>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialParityBit value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialStopBits>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialStopBits value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialPortFlushMode>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialPortFlushMode value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::SerialPortType>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::SerialPortType value) { … }
}