From 2b5d249b08efd4fbd9e6c28362f33b11a963780b Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Fri, 27 Dec 2024 16:59:46 -0800 Subject: Remove non-split touch from input code The behaviour was changed to permanently split since 24Q4. Therefore, all of the existing complexity around supporting non-split can now be removed. Bug: 239934827 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Flag: NONE removing flag Change-Id: I8ca23d502a4c23de2dfafbd7653318b8909912ce --- libs/gui/WindowInfo.cpp | 4 ---- libs/gui/include/gui/WindowInfo.h | 2 -- 2 files changed, 6 deletions(-) (limited to 'libs/gui') diff --git a/libs/gui/WindowInfo.cpp b/libs/gui/WindowInfo.cpp index 82d2554340..e1a7ac9b18 100644 --- a/libs/gui/WindowInfo.cpp +++ b/libs/gui/WindowInfo.cpp @@ -73,10 +73,6 @@ void WindowInfo::addTouchableRegion(const Rect& region) { touchableRegion.orSelf(region); } -bool WindowInfo::supportsSplitTouch() const { - return !inputConfig.test(InputConfig::PREVENT_SPLITTING); -} - bool WindowInfo::isSpy() const { return inputConfig.test(InputConfig::SPY); } diff --git a/libs/gui/include/gui/WindowInfo.h b/libs/gui/include/gui/WindowInfo.h index eb3be5588a..f7e6084eef 100644 --- a/libs/gui/include/gui/WindowInfo.h +++ b/libs/gui/include/gui/WindowInfo.h @@ -150,8 +150,6 @@ struct WindowInfo : public Parcelable { static_cast(os::InputConfig::NOT_FOCUSABLE), NOT_TOUCHABLE = static_cast(os::InputConfig::NOT_TOUCHABLE), - PREVENT_SPLITTING = - static_cast(os::InputConfig::PREVENT_SPLITTING), DUPLICATE_TOUCH_TO_WALLPAPER = static_cast(os::InputConfig::DUPLICATE_TOUCH_TO_WALLPAPER), IS_WALLPAPER = -- cgit v1.2.3-59-g8ed1b