Loading libs/input/input_flags.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -108,13 +108,6 @@ flag { bug: "246946631" } flag { name: "enable_touchpad_fling_stop" namespace: "input" description: "Enable fling scrolling to be stopped by putting a finger on the touchpad again" bug: "281106755" } flag { name: "enable_prediction_pruning_via_jerk_thresholding" namespace: "input" Loading services/inputflinger/reader/mapper/gestures/GestureConverter.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,6 @@ GestureConverter::GestureConverter(InputReaderContext& readerContext, const InputDeviceContext& deviceContext, int32_t deviceId) : mDeviceId(deviceId), mReaderContext(readerContext), mEnableFlingStop(input_flags::enable_touchpad_fling_stop()), mEnableNoFocusChange(input_flags::enable_touchpad_no_focus_change()), // We can safely assume that ABS_MT_POSITION_X and _Y axes will be available, as EventHub // won't classify a device as a touchpad if they're not present. Loading Loading @@ -406,7 +405,7 @@ std::list<NotifyArgs> GestureConverter::handleFling(nsecs_t when, nsecs_t readTi break; case GESTURES_FLING_TAP_DOWN: if (mCurrentClassification == MotionClassification::NONE) { if (mEnableFlingStop && mFlingMayBeInProgress) { if (mFlingMayBeInProgress) { // The user has just touched the pad again after ending a two-finger scroll // motion, which might have started a fling. We want to stop the fling, but // unfortunately there's currently no API for doing so. Instead, send and Loading services/inputflinger/reader/mapper/gestures/GestureConverter.h +0 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,6 @@ private: const int32_t mDeviceId; InputReaderContext& mReaderContext; const bool mEnableFlingStop; const bool mEnableNoFocusChange; bool mEnableSystemGestures{true}; Loading services/inputflinger/tests/GestureConverter_test.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -1297,7 +1297,6 @@ TEST_F(GestureConverterTest, FlingTapDown) { TEST_F(GestureConverterTest, FlingTapDownAfterScrollStopsFling) { InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); input_flags::enable_touchpad_fling_stop(true); GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); converter.setDisplayId(ui::LogicalDisplayId::DEFAULT); Loading Loading
libs/input/input_flags.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -108,13 +108,6 @@ flag { bug: "246946631" } flag { name: "enable_touchpad_fling_stop" namespace: "input" description: "Enable fling scrolling to be stopped by putting a finger on the touchpad again" bug: "281106755" } flag { name: "enable_prediction_pruning_via_jerk_thresholding" namespace: "input" Loading
services/inputflinger/reader/mapper/gestures/GestureConverter.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,6 @@ GestureConverter::GestureConverter(InputReaderContext& readerContext, const InputDeviceContext& deviceContext, int32_t deviceId) : mDeviceId(deviceId), mReaderContext(readerContext), mEnableFlingStop(input_flags::enable_touchpad_fling_stop()), mEnableNoFocusChange(input_flags::enable_touchpad_no_focus_change()), // We can safely assume that ABS_MT_POSITION_X and _Y axes will be available, as EventHub // won't classify a device as a touchpad if they're not present. Loading Loading @@ -406,7 +405,7 @@ std::list<NotifyArgs> GestureConverter::handleFling(nsecs_t when, nsecs_t readTi break; case GESTURES_FLING_TAP_DOWN: if (mCurrentClassification == MotionClassification::NONE) { if (mEnableFlingStop && mFlingMayBeInProgress) { if (mFlingMayBeInProgress) { // The user has just touched the pad again after ending a two-finger scroll // motion, which might have started a fling. We want to stop the fling, but // unfortunately there's currently no API for doing so. Instead, send and Loading
services/inputflinger/reader/mapper/gestures/GestureConverter.h +0 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,6 @@ private: const int32_t mDeviceId; InputReaderContext& mReaderContext; const bool mEnableFlingStop; const bool mEnableNoFocusChange; bool mEnableSystemGestures{true}; Loading
services/inputflinger/tests/GestureConverter_test.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -1297,7 +1297,6 @@ TEST_F(GestureConverterTest, FlingTapDown) { TEST_F(GestureConverterTest, FlingTapDownAfterScrollStopsFling) { InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); input_flags::enable_touchpad_fling_stop(true); GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); converter.setDisplayId(ui::LogicalDisplayId::DEFAULT); Loading