#include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.h"
#include <algorithm>
#include "base/logging.h"
namespace ui {
PalmFilterDeviceInfo CreatePalmFilterDeviceInfo(
const EventDeviceInfo& devinfo) { … }
namespace {
float ScaledRadius(
float radius,
const NeuralStylusPalmDetectionFilterModelConfig& model_config) { … }
float interpolate(float start_value, float end_value, float proportion) { … }
const static auto kPreferInitialEventDelay = …;
PalmFilterSample GetSampleAtTime(base::TimeTicks time,
const PalmFilterSample& before,
const PalmFilterSample& after) { … }
}
PalmFilterSample CreatePalmFilterSample(
const InProgressTouchEvdev& touch,
const base::TimeTicks& time,
const NeuralStylusPalmDetectionFilterModelConfig& model_config,
const PalmFilterDeviceInfo& dev_info) { … }
PalmFilterStroke::PalmFilterStroke(
const NeuralStylusPalmDetectionFilterModelConfig& model_config,
int tracking_id)
: … { … }
PalmFilterStroke::PalmFilterStroke(const PalmFilterStroke& other) = default;
PalmFilterStroke::PalmFilterStroke(PalmFilterStroke&& other) = default;
PalmFilterStroke::~PalmFilterStroke() { … }
void PalmFilterStroke::ProcessSample(const PalmFilterSample& sample) { … }
void PalmFilterStroke::AddSample(const PalmFilterSample& sample) { … }
void PalmFilterStroke::AddToUnscaledCentroid(const gfx::Vector2dF point) { … }
gfx::PointF PalmFilterStroke::GetCentroid() const { … }
const std::deque<PalmFilterSample>& PalmFilterStroke::samples() const { … }
int PalmFilterStroke::tracking_id() const { … }
base::TimeDelta PalmFilterStroke::Duration() const { … }
base::TimeDelta PalmFilterStroke::PreviousDuration() const { … }
bool PalmFilterStroke::LastSampleCrossed(base::TimeDelta duration) const { … }
PalmFilterSample PalmFilterStroke::GetSampleAt(base::TimeTicks time) const { … }
uint64_t PalmFilterStroke::samples_seen() const { … }
float PalmFilterStroke::MaxMajorRadius() const { … }
float PalmFilterStroke::BiggestSize() const { … }
}