Add an API to get the supported USI version for a display
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: Ia19dbb9251d0f710ad0d1187ba9a3607540fbee4
Loading
Please register or sign in to comment