Loading include/input/InputFlags.h +9 −0 Original line number Original line Diff line number Diff line Loading @@ -53,6 +53,15 @@ public: * connectedDisplaysCursorEnabled flag. * connectedDisplaysCursorEnabled flag. */ */ static bool scaleCursorSpeedWithDisplayDensity(); static bool scaleCursorSpeedWithDisplayDensity(); /** * This is a temporary fix that removes the SKIP_SCREENSHOT flag for the Mouse cursor. This is * only intended to be temporarily used as workaround only when connected displays dev option * is enabled. * * This will make mouse cursor visible on recordings and screenshots of secure windows. */ static bool doNotUseSkipScreenshotFlagForMouseCursor(); }; }; } // namespace android } // namespace android libs/input/InputFlags.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -68,4 +68,8 @@ bool InputFlags::scaleCursorSpeedWithDisplayDensity() { return com::android::input::flags::scale_cursor_speed_with_dpi(); return com::android::input::flags::scale_cursor_speed_with_dpi(); } } bool InputFlags::doNotUseSkipScreenshotFlagForMouseCursor() { return getConnectedDisplaysDevOptionValue().value_or(false); } } // namespace android } // namespace android Loading
include/input/InputFlags.h +9 −0 Original line number Original line Diff line number Diff line Loading @@ -53,6 +53,15 @@ public: * connectedDisplaysCursorEnabled flag. * connectedDisplaysCursorEnabled flag. */ */ static bool scaleCursorSpeedWithDisplayDensity(); static bool scaleCursorSpeedWithDisplayDensity(); /** * This is a temporary fix that removes the SKIP_SCREENSHOT flag for the Mouse cursor. This is * only intended to be temporarily used as workaround only when connected displays dev option * is enabled. * * This will make mouse cursor visible on recordings and screenshots of secure windows. */ static bool doNotUseSkipScreenshotFlagForMouseCursor(); }; }; } // namespace android } // namespace android
libs/input/InputFlags.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -68,4 +68,8 @@ bool InputFlags::scaleCursorSpeedWithDisplayDensity() { return com::android::input::flags::scale_cursor_speed_with_dpi(); return com::android::input::flags::scale_cursor_speed_with_dpi(); } } bool InputFlags::doNotUseSkipScreenshotFlagForMouseCursor() { return getConnectedDisplaysDevOptionValue().value_or(false); } } // namespace android } // namespace android