diff options
author | 2025-03-06 08:42:27 -0800 | |
---|---|---|
committer | 2025-03-06 08:42:27 -0800 | |
commit | 851a6d2529851adbde9de138e6a0541839854189 (patch) | |
tree | 5ea80fb436ba4e804a5cc89b99b2582142efa581 | |
parent | 42b1b6ce2c0bb78120f9176d2346677d2d4ae28d (diff) | |
parent | 461cd87306215e24587c60b368503016f6601680 (diff) |
Merge "Cleanup hide_pointer_indicators_for_secure_windows flag" into main
-rw-r--r-- | libs/input/input_flags.aconfig | 7 | ||||
-rw-r--r-- | services/inputflinger/PointerChoreographer.cpp | 3 | ||||
-rw-r--r-- | services/inputflinger/tests/PointerChoreographer_test.cpp | 15 |
3 files changed, 3 insertions, 22 deletions
diff --git a/libs/input/input_flags.aconfig b/libs/input/input_flags.aconfig index 17854eb694..de5e42875e 100644 --- a/libs/input/input_flags.aconfig +++ b/libs/input/input_flags.aconfig @@ -120,13 +120,6 @@ flag { } flag { - name: "hide_pointer_indicators_for_secure_windows" - namespace: "input" - description: "Hide touch and pointer indicators if a secure window is present on display" - bug: "325252005" -} - -flag { name: "enable_keyboard_classifier" namespace: "input" description: "Keyboard classifier that classifies all keyboards into alphabetic or non-alphabetic" diff --git a/services/inputflinger/PointerChoreographer.cpp b/services/inputflinger/PointerChoreographer.cpp index b830072a8f..f8ab830d2d 100644 --- a/services/inputflinger/PointerChoreographer.cpp +++ b/services/inputflinger/PointerChoreographer.cpp @@ -535,9 +535,6 @@ void PointerChoreographer::processDeviceReset(const NotifyDeviceResetArgs& args) } void PointerChoreographer::onControllerAddedOrRemovedLocked() { - if (!com::android::input::flags::hide_pointer_indicators_for_secure_windows()) { - return; - } bool requireListener = !mTouchPointersByDevice.empty() || !mMousePointersByDisplay.empty() || !mDrawingTabletPointersByDevice.empty() || !mStylusPointersByDevice.empty(); diff --git a/services/inputflinger/tests/PointerChoreographer_test.cpp b/services/inputflinger/tests/PointerChoreographer_test.cpp index dbd33c7e14..2b469c5645 100644 --- a/services/inputflinger/tests/PointerChoreographer_test.cpp +++ b/services/inputflinger/tests/PointerChoreographer_test.cpp @@ -129,9 +129,6 @@ protected: mInjectedInitialWindowInfos}; void SetUp() override { - // flag overrides - input_flags::hide_pointer_indicators_for_secure_windows(true); - ON_CALL(mMockPolicy, createPointerController).WillByDefault([this](ControllerType type) { std::shared_ptr<FakePointerController> pc = std::make_shared<FakePointerController>(); EXPECT_FALSE(pc->isPointerShown()); @@ -2109,10 +2106,7 @@ TEST_P(SkipPointerScreenshotForPrivacySensitiveDisplaysTestFixture, pc->assertSkipScreenshotFlagNotChanged(); } -TEST_F_WITH_FLAGS( - PointerChoreographerTest, HidesPointerScreenshotForExistingPrivacySensitiveWindows, - REQUIRES_FLAGS_ENABLED(ACONFIG_FLAG(com::android::input::flags, - hide_pointer_indicators_for_secure_windows))) { +TEST_F(PointerChoreographerTest, HidesPointerScreenshotForExistingPrivacySensitiveWindows) { mChoreographer.setDisplayViewports(createViewports({DISPLAY_ID})); // Add a first mouse device @@ -3169,11 +3163,8 @@ TEST_F(PointerChoreographerDisplayTopologyDefaultMouseDisplayTests, class PointerChoreographerWindowInfoListenerTest : public testing::Test {}; -TEST_F_WITH_FLAGS( - PointerChoreographerWindowInfoListenerTest, - doesNotCrashIfListenerCalledAfterPointerChoreographerDestroyed, - REQUIRES_FLAGS_ENABLED(ACONFIG_FLAG(com::android::input::flags, - hide_pointer_indicators_for_secure_windows))) { +TEST_F(PointerChoreographerWindowInfoListenerTest, + doesNotCrashIfListenerCalledAfterPointerChoreographerDestroyed) { sp<android::gui::WindowInfosListener> registeredListener; sp<android::gui::WindowInfosListener> localListenerCopy; { |