Create new fragment which listen input device change, when input device
detached while pages show, it will exist correctly.
Bug: 399284521
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: atest
packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
Change-Id: I3d6b9a4558866a8c4a3aa4fc30e500b8b6be90cd
Screenshots:
* The new setting: http://shortn/_9JL6nMS3cR
* The disabled "Learn touchpad gestures" button and accompanying footer
when the setting is off: http://shortn/_FTcNTQAGYj
Test: disable the setting, check three- and four-finger swipes on the
touchpad stop working; re-enable, check they work again
Test: check the toggle and heading both hide correctly when flag is off
or no touchpad is connected
Test: check the "Learn touchpad gestures" button is disabled with an
explanation when gestures are disabled
Bug: 353947750
Bug: 374965372
Flag: com.android.hardware.input.touchpad_system_gesture_disable
Change-Id: Ie7a6ea4e9ddd34710d07f78ab96598207aac4228
rename KeyboardSettingUtils to match more about usage.
Bug: 379594195
Test: atest SettingsRoboTests
Flag: NONE, rename file.
Change-Id: If978e7b56ecbdb0b571db5ff34553bbb20f976ee