4040#include " TouchCursorInputMapperCommon.h"
4141#include " TouchpadInputMapper.h"
4242#include " gestures/HardwareProperties.h"
43+ #include " gestures/Logging.h"
4344#include " gestures/TimerProvider.h"
4445#include " ui/Rotation.h"
4546
@@ -49,15 +50,6 @@ namespace android {
4950
5051namespace {
5152
52- /* *
53- * Log details of each gesture output by the gestures library.
54- * Enable this via "adb shell setprop log.tag.TouchpadInputMapperGestures DEBUG" (requires
55- * restarting the shell)
56- */
57- const bool DEBUG_TOUCHPAD_GESTURES =
58- __android_log_is_loggable (ANDROID_LOG_DEBUG, " TouchpadInputMapperGestures" ,
59- ANDROID_LOG_INFO);
60-
6153std::vector<double > createAccelerationCurveForSensitivity (int32_t sensitivity,
6254 bool accelerationEnabled,
6355 size_t propertySize) {
@@ -470,7 +462,7 @@ void TouchpadInputMapper::updatePalmDetectionMetrics() {
470462
471463std::list<NotifyArgs> TouchpadInputMapper::sendHardwareState (nsecs_t when, nsecs_t readTime,
472464 SelfContainedHardwareState schs) {
473- ALOGD_IF (DEBUG_TOUCHPAD_GESTURES , " New hardware state: %s" , schs.state .String ().c_str ());
465+ ALOGD_IF (debugTouchpadGestures () , " New hardware state: %s" , schs.state .String ().c_str ());
474466 mGestureInterpreter ->PushHardwareState (&schs.state );
475467 return processGestures (when, readTime);
476468}
@@ -481,7 +473,7 @@ std::list<NotifyArgs> TouchpadInputMapper::timeoutExpired(nsecs_t when) {
481473}
482474
483475void TouchpadInputMapper::consumeGesture (const Gesture* gesture) {
484- ALOGD_IF (DEBUG_TOUCHPAD_GESTURES , " Gesture ready: %s" , gesture->String ().c_str ());
476+ ALOGD_IF (debugTouchpadGestures () , " Gesture ready: %s" , gesture->String ().c_str ());
485477 if (mResettingInterpreter ) {
486478 // We already handle tidying up fake fingers etc. in GestureConverter::reset, so we should
487479 // ignore any gestures produced from the interpreter while we're resetting it.
0 commit comments