Launch notes task when the stylus tail button goes UP

The notes task will be shown immediately on the UP event of the stylus
tail button, instead of on the DOWN event, like before.

To do this, the framework must send all tail button events (both DOWN
and UP events) to SystemUI, because there is a CTS test that enforces
that SystemUI receives the DOWN event from a stylus. We do not have the
ability to modify the CTS test for this release.

Bug: 298056902
Test: manual with stylus
Test: atest NoteTaskInitializerTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:45548b2fbb6bbd05631cb202b5aca9fcadaa0b22)
Merged-In: I12a08801fb767e495076051c049c11c9e635a58e
Change-Id: I12a08801fb767e495076051c049c11c9e635a58e
3 files changed