Add Rotary Encoder Slop Logs
Add logs for when a slop is applied to a rotary input, and for the first
input that passed the slop threshold.
Bug: 293649303
Bug: 288913283
Test: manual
Change-Id: I5b6462860786eebf9d0b6940297145e1d1100e18
(cherry picked from commit 30bee3735da8284485bc6e9c95fb13f1477f20bf)
diff --git a/services/inputflinger/reader/mapper/SlopController.cpp b/services/inputflinger/reader/mapper/SlopController.cpp
index f79219f..9ec02a6 100644
--- a/services/inputflinger/reader/mapper/SlopController.cpp
+++ b/services/inputflinger/reader/mapper/SlopController.cpp
@@ -54,11 +54,13 @@
mCumulativeValue += value;
if (abs(mCumulativeValue) >= mSlopThreshold) {
+ ALOGD("SlopController: did not drop event with value .%3f", value);
mHasSlopBeenMet = true;
// Return the amount of value that exceeds the slop.
return signOf(value) * (abs(mCumulativeValue) - mSlopThreshold);
}
+ ALOGD("SlopController: dropping event with value .%3f", value);
return 0;
}