diff options
| author | 2020-04-13 17:06:45 -0700 | |
|---|---|---|
| committer | 2020-04-16 22:59:37 +0000 | |
| commit | 2984b7af4f7969cdc02dea6a1722635cc9a432dd (patch) | |
| tree | 57fb768a9f2ed4d00209c7c060b44d5e66df8462 /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | 8c0eb7fdbefb37f18b504bec3b0b2fc7cafd7872 (diff) | |
InputDispatcher: Fix support for INPUT_FEATURE_NO_INPUT_CHANNEL
In preparation for an occlusion detection fix, we are going to begin
sending windows with NO_INPUT_CHANNEL to InputFlinger. There are 3
obstacles we address here:
1. InputDispatcher ignores windows with no InputChannel when updating
input windows. We modify the code to allow such windows if they have
INPUT_FEATURE_NO_INPUT_CHANNEL.
2. The parcelling code currently has an optimization to avoid sending the rest
of the fields if token is null. We rebase this optimization on
whether or not a name is set.
3. InputWindowHandle::getName checks if there is a token to consider the window
invalid. We instead check if a name is set.
Bug: 152064592
Test: Existing tests pass
Change-Id: I8a85f46b6c44866c7f73daafa5e8ff4c9251c366
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions