Revert "Revert "Move touch handling out of NavigationBarView.""

This reverts commit d9ba94bf79d1a615e4bfae7f09e31bf9853f7a7e.

Reason for revert: Restoring change with a fix.

The original problem seems to stem from using the wrong instnace of
WindowManager. Instead of using the diplay context's instance, I was
using the application context's instance. This was different from
the original code this cl refactors.

Bug: 218354102
Test: atest android.server.wm.MultiDisplaySystemDecorationTests
Change-Id: Ic6b680c12be5cbece4945e8e9ea41f578bbc9e0b
5 files changed