summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorTaran Singh <tarandeep@google.com>2022-03-02 10:43:55 +0000
committerTaran Singh <tarandeep@google.com>2022-03-09 18:35:21 +0000
commit467fd168d5480e8c93b4f947fc9ce3216f887b2e (patch)
tree4f97a6dabd1f044896d7ca2cb257e6cb16e27a55 /core/java/android/util/SparseSetArray.java
parente2722fe948b428ccc4679ce9466618a773225ebb (diff)
Introduce new IMS method for Stylus events and dispatch
As of today we show the InkWindow and dispatch Stylus events without waiting. At the time of dispatch, InkWindow is not added and first stylus gesture is skipped. In order to deliver the first gesture to IME, we should wait until InkWindow is added and IME's Inking View is attached. However, waiting for it will introduce latency in the system. To counter that, we introduce a new API method to listen for Stylus MotionEvent. IME can override the API method to listen to MotionEvents sooner. By default, the stylus MotionEvents are buffered until Ink view is visible. Change-Id: I3a18067da45fd15bf0f6e377da0a82cdd6df1d41 Fix: 222081673 Test: atest StylusHandwriting
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions