summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2024-09-05 15:23:44 -0400
committer Fabian Kozynski <kozynski@google.com> 2024-09-11 16:56:22 +0000
commit338668402a8a23dcc042676feb9bf6f013806595 (patch)
tree75275db645670d88503865f3f9655797c474398d /libs/input/PointerController.cpp
parent0d2313c251302e213a67e4db2c0c1abf75b45f4f (diff)
Add accessibility for new tiles.
Accessibility is as follows: * For small tiles, we use the content description and the state description to indicate the current name and state. If the tile is a toggle (as determined by its accessibility class name) we add ToggleableState (and the corresponding role). * For large tiles, we use the text in the label, as well as the state description. If the secondary label content is contained in the state description, we ignore it for a11y as it will be read (stateDescription has precedence because it will be read on state changes). * For single target large tiles, their role and ToggleableState is the same as for small tiles. * For dual target large tiles, they should always be a Button, with the dual target being a Toggle. The content description and state description is also applied to the toggle button. * Long press actions have the correct description label. Test: atest PlatformScenarioTests Test: atest TileUiStateTest Bug: 359523013 Flag: com.android.systemui.qs_ui_refactor_compose_fragment Change-Id: I178873fb813e4986e88c71f19be319d7fbb7edd8
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions