#include "components/segmentation_platform/embedder/default_model/android_home_module_ranker.h"
#include <memory>
#include "base/metrics/field_trial_params.h"
#include "base/task/sequenced_task_runner.h"
#include "components/segmentation_platform/internal/metadata/metadata_writer.h"
#include "components/segmentation_platform/public/config.h"
#include "components/segmentation_platform/public/constants.h"
#include "components/segmentation_platform/public/features.h"
#include "components/segmentation_platform/public/proto/aggregation.pb.h"
#include "components/segmentation_platform/public/proto/model_metadata.pb.h"
namespace segmentation_platform {
namespace {
SegmentId;
constexpr SegmentId kSegmentId = …;
constexpr int64_t kModelVersion = …;
constexpr int64_t kSignalStorageLength = …;
constexpr int64_t kMinSignalCollectionLength = …;
constexpr int64_t kResultTTLMinutes = …;
constexpr std::array<const char*, 4> kAndroidHomeModuleLabels = …;
constexpr std::array<const char*, 4> kAndroidHomeModuleInputContextKeys = …;
constexpr std::array<int32_t, 1> kEnumValueForSingleTab{ … };
constexpr std::array<int32_t, 1> kEnumValueForPriceChange{ … };
constexpr std::array<int32_t, 1> kEnumValueForTabResumption{ … };
constexpr std::array<int32_t, 1> kEnumValueForSafetyHub{ … };
constexpr std::array<MetadataWriter::UMAFeature, 8> kUMAFeatures = …;
float TransformFreshness(float freshness_score, float freshness_threshold) { … }
}
std::unique_ptr<Config> AndroidHomeModuleRanker::GetConfig() { … }
AndroidHomeModuleRanker::AndroidHomeModuleRanker()
: … { … }
std::unique_ptr<DefaultModelProvider::ModelConfig>
AndroidHomeModuleRanker::GetModelConfig() { … }
void AndroidHomeModuleRanker::ExecuteModelWithInput(
const ModelProvider::Request& inputs,
ExecutionCallback callback) { … }
}