diff options
| author | 2020-05-05 18:17:17 -0700 | |
|---|---|---|
| committer | 2020-05-06 01:25:56 +0000 | |
| commit | 540dbaee09cd6790951576b8f3de1f85befb4524 (patch) | |
| tree | eda317fe2c34d93cd24c8f03db488e9a4d8fae89 /libs/ui/Region.cpp | |
| parent | 547bea0331cd9d24e3931fefe4ea4fdfd6ddbbcf (diff) | |
Generate a new id for each window
When input receives a list of windows from surfaceflinger, each window
has a unique id. But when we run tests, all ids are the same. This
causes some unexpected test failures for the cases where we have more
than 1 window per display.
To avoid this issue, mirror the surfaceflinger approach of generating
the ids by keeping a static variable that gets incremented every time we
create a new window
Bug: 143459140
Test: atest inputflinger_tests
Change-Id: I36731e78e16892b4bf48d6eba8db3e4c2684b54d
Diffstat (limited to 'libs/ui/Region.cpp')
0 files changed, 0 insertions, 0 deletions