summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2022-08-03 16:50:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-08-03 16:50:58 +0000
commitcfbe6496133cf7de39e5f9d33109f96b6af71288 (patch)
tree3febb38924d0089cb1830b7626145b17d5fc79aa
parent6eb1cdf57a57edc1843cc4d823cc09dc086d4ba0 (diff)
parent1361b2abb1be5c3effd627627800dd7a7e291ad9 (diff)
downloadlibpalmrejection-cfbe6496133cf7de39e5f9d33109f96b6af71288.tar.gz
Remove unused variable max_sequence_start_count_for_inference am: 1361b2abb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libpalmrejection/+/19469373 Change-Id: Ifdd8c46e38b73425d097d7def66351c7272a839a 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