Skip to content

Commit 851a6d2

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Cleanup hide_pointer_indicators_for_secure_windows flag" into main
2 parents 42b1b6c + 461cd87 commit 851a6d2

3 files changed

Lines changed: 3 additions & 22 deletions

File tree

libs/input/input_flags.aconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ flag {
119119
bug: "330752824"
120120
}
121121

122-
flag {
123-
name: "hide_pointer_indicators_for_secure_windows"
124-
namespace: "input"
125-
description: "Hide touch and pointer indicators if a secure window is present on display"
126-
bug: "325252005"
127-
}
128-
129122
flag {
130123
name: "enable_keyboard_classifier"
131124
namespace: "input"

services/inputflinger/PointerChoreographer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,6 @@ void PointerChoreographer::processDeviceReset(const NotifyDeviceResetArgs& args)
535535
}
536536

537537
void PointerChoreographer::onControllerAddedOrRemovedLocked() {
538-
if (!com::android::input::flags::hide_pointer_indicators_for_secure_windows()) {
539-
return;
540-
}
541538
bool requireListener = !mTouchPointersByDevice.empty() || !mMousePointersByDisplay.empty() ||
542539
!mDrawingTabletPointersByDevice.empty() || !mStylusPointersByDevice.empty();
543540

services/inputflinger/tests/PointerChoreographer_test.cpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ class PointerChoreographerTest : public testing::Test {
129129
mInjectedInitialWindowInfos};
130130

131131
void SetUp() override {
132-
// flag overrides
133-
input_flags::hide_pointer_indicators_for_secure_windows(true);
134-
135132
ON_CALL(mMockPolicy, createPointerController).WillByDefault([this](ControllerType type) {
136133
std::shared_ptr<FakePointerController> pc = std::make_shared<FakePointerController>();
137134
EXPECT_FALSE(pc->isPointerShown());
@@ -2109,10 +2106,7 @@ TEST_P(SkipPointerScreenshotForPrivacySensitiveDisplaysTestFixture,
21092106
pc->assertSkipScreenshotFlagNotChanged();
21102107
}
21112108

2112-
TEST_F_WITH_FLAGS(
2113-
PointerChoreographerTest, HidesPointerScreenshotForExistingPrivacySensitiveWindows,
2114-
REQUIRES_FLAGS_ENABLED(ACONFIG_FLAG(com::android::input::flags,
2115-
hide_pointer_indicators_for_secure_windows))) {
2109+
TEST_F(PointerChoreographerTest, HidesPointerScreenshotForExistingPrivacySensitiveWindows) {
21162110
mChoreographer.setDisplayViewports(createViewports({DISPLAY_ID}));
21172111

21182112
// Add a first mouse device
@@ -3169,11 +3163,8 @@ TEST_F(PointerChoreographerDisplayTopologyDefaultMouseDisplayTests,
31693163

31703164
class PointerChoreographerWindowInfoListenerTest : public testing::Test {};
31713165

3172-
TEST_F_WITH_FLAGS(
3173-
PointerChoreographerWindowInfoListenerTest,
3174-
doesNotCrashIfListenerCalledAfterPointerChoreographerDestroyed,
3175-
REQUIRES_FLAGS_ENABLED(ACONFIG_FLAG(com::android::input::flags,
3176-
hide_pointer_indicators_for_secure_windows))) {
3166+
TEST_F(PointerChoreographerWindowInfoListenerTest,
3167+
doesNotCrashIfListenerCalledAfterPointerChoreographerDestroyed) {
31773168
sp<android::gui::WindowInfosListener> registeredListener;
31783169
sp<android::gui::WindowInfosListener> localListenerCopy;
31793170
{

0 commit comments

Comments
 (0)