#include "services/on_device_model/public/mojom/on_device_model_service.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/on_device_model/public/mojom/on_device_model_service.mojom-params-data.h"
namespace on_device_model {
namespace mojom {
NOINLINE static const char* ModelBackendTypeToStringHelper(ModelBackendType value) { … }
std::string ModelBackendTypeToString(ModelBackendType value) { … }
std::ostream& operator<<(std::ostream& os, ModelBackendType value) { … }
NOINLINE static const char* PlatformModelStateToStringHelper(PlatformModelState value) { … }
std::string PlatformModelStateToString(PlatformModelState value) { … }
std::ostream& operator<<(std::ostream& os, PlatformModelState value) { … }
NOINLINE static const char* FormatFeatureToStringHelper(FormatFeature value) { … }
std::string FormatFeatureToString(FormatFeature value) { … }
std::ostream& operator<<(std::ostream& os, FormatFeature value) { … }
NOINLINE static const char* SafetyFeatureToStringHelper(SafetyFeature value) { … }
std::string SafetyFeatureToString(SafetyFeature value) { … }
std::ostream& operator<<(std::ostream& os, SafetyFeature value) { … }
namespace internal {
bool ModelAssets_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ModelAssets_Data::ModelAssets_Data()
: … { … }
bool LoadModelParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
LoadModelParams_Data::LoadModelParams_Data()
: … { … }
bool PlatformModelProgressObserver_Progress_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PlatformModelProgressObserver_Progress_Params_Data::PlatformModelProgressObserver_Progress_Params_Data()
: … { … }
bool OnDeviceModelService_LoadModel_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelService_LoadModel_Params_Data::OnDeviceModelService_LoadModel_Params_Data()
: … { … }
bool OnDeviceModelService_LoadModel_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelService_LoadModel_ResponseParams_Data::OnDeviceModelService_LoadModel_ResponseParams_Data()
: … { … }
bool OnDeviceModelService_GetEstimatedPerformanceClass_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelService_GetEstimatedPerformanceClass_Params_Data::OnDeviceModelService_GetEstimatedPerformanceClass_Params_Data()
: … { … }
bool OnDeviceModelService_GetEstimatedPerformanceClass_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelService_GetEstimatedPerformanceClass_ResponseParams_Data::OnDeviceModelService_GetEstimatedPerformanceClass_ResponseParams_Data()
: … { … }
bool OnDeviceModelPlatformService_LoadPlatformModel_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_LoadPlatformModel_Params_Data::OnDeviceModelPlatformService_LoadPlatformModel_Params_Data()
: … { … }
bool OnDeviceModelPlatformService_LoadPlatformModel_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_LoadPlatformModel_ResponseParams_Data::OnDeviceModelPlatformService_LoadPlatformModel_ResponseParams_Data()
: … { … }
bool OnDeviceModelPlatformService_GetPlatformModelState_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_GetPlatformModelState_Params_Data::OnDeviceModelPlatformService_GetPlatformModelState_Params_Data()
: … { … }
bool OnDeviceModelPlatformService_GetPlatformModelState_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_GetPlatformModelState_ResponseParams_Data::OnDeviceModelPlatformService_GetPlatformModelState_ResponseParams_Data()
: … { … }
bool OnDeviceModelPlatformService_GetEstimatedPerformanceClass_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_GetEstimatedPerformanceClass_Params_Data::OnDeviceModelPlatformService_GetEstimatedPerformanceClass_Params_Data()
: … { … }
bool OnDeviceModelPlatformService_GetEstimatedPerformanceClass_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_GetEstimatedPerformanceClass_ResponseParams_Data::OnDeviceModelPlatformService_GetEstimatedPerformanceClass_ResponseParams_Data()
: … { … }
bool OnDeviceModelPlatformService_FormatInput_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_FormatInput_Params_Data::OnDeviceModelPlatformService_FormatInput_Params_Data()
: … { … }
bool OnDeviceModelPlatformService_FormatInput_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_FormatInput_ResponseParams_Data::OnDeviceModelPlatformService_FormatInput_ResponseParams_Data()
: … { … }
bool OnDeviceModelPlatformService_ValidateSafetyResult_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_ValidateSafetyResult_Params_Data::OnDeviceModelPlatformService_ValidateSafetyResult_Params_Data()
: … { … }
bool OnDeviceModelPlatformService_ValidateSafetyResult_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OnDeviceModelPlatformService_ValidateSafetyResult_ResponseParams_Data::OnDeviceModelPlatformService_ValidateSafetyResult_ResponseParams_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::on_device_model::mojom::ModelBackendType>::WriteIntoTrace(
perfetto::TracedValue context, ::on_device_model::mojom::ModelBackendType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::on_device_model::mojom::PlatformModelState>::WriteIntoTrace(
perfetto::TracedValue context, ::on_device_model::mojom::PlatformModelState value) { … }
}
namespace perfetto {
void TraceFormatTraits<::on_device_model::mojom::FormatFeature>::WriteIntoTrace(
perfetto::TracedValue context, ::on_device_model::mojom::FormatFeature value) { … }
}
namespace perfetto {
void TraceFormatTraits<::on_device_model::mojom::SafetyFeature>::WriteIntoTrace(
perfetto::TracedValue context, ::on_device_model::mojom::SafetyFeature value) { … }
}