summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2022-08-03 17:16:43 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-08-03 17:16:43 +0000
commit6797f8f53d3500fb703339f3a3499c4070ec3bd1 (patch)
tree3febb38924d0089cb1830b7626145b17d5fc79aa
parent5391b6933a1742bcad1610fbb3da030dba8b6e42 (diff)
parentcfbe6496133cf7de39e5f9d33109f96b6af71288 (diff)
downloadlibpalmrejection-6797f8f53d3500fb703339f3a3499c4070ec3bd1.tar.gz
Remove unused variable max_sequence_start_count_for_inference am: 1361b2abb1 am: cfbe649613
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libpalmrejection/+/19469373 Change-Id: If8bba99c80417dff4a3ef65d4fe6d7ac8dbde4c4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc3
-rw-r--r--ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
index 1e5724c..49c2a4e 100644
--- a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
+++ b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
@@ -277,8 +277,7 @@ bool NeuralStylusPalmDetectionFilter::ShouldDecideStroke(
return false;
// Only inference at start.
- if (stroke.samples_seen() >
- config.max_sequence_start_count_for_inference + config.max_sample_count)
+ if (stroke.samples_seen() > config.max_sample_count)
return false;
return true;
}
diff --git a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h
index c2f4863..dab5455 100644
--- a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h
+++ b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h
@@ -45,8 +45,6 @@ struct COMPONENT_EXPORT(EVDEV) NeuralStylusPalmDetectionFilterModelConfig {
// Minimum count of samples for a stroke to be considered as a neighbor.
uint32_t neighbor_min_sample_count = 0;
- uint32_t max_sequence_start_count_for_inference = 0;
-
bool include_sequence_count_in_strokes = false;
// If this number is positive, short strokes with a touch major greater than