+15
−5
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
The InputManager#getHostUsiVersion(displayId) API can be used to tell if a display supports the Universal Stylus Initiative protocol for styluses, and can be used to address version compatibility issues. We first dynamically attempt to find an InputDevice associated with the display that supports USI. If there are none, we check the statically add USI version for the display in config_displayUsiVersionArray. Checking the config as a fallback means the USI InputDevice does not have be registered/open perpetually for the getHostUsiVersion() API to return the correct values. Bug: 261596890 Test: manual with device Test: atest TouchScreenTest Change-Id: Ifabd00aa996ba88258d8112e5de3582adaf27629