summaryrefslogtreecommitdiff
path: root/libs/binder/ActivityManager.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2020-05-05 18:17:17 -0700
committer Siarhei Vishniakou <svv@google.com> 2020-05-06 01:25:56 +0000
commit540dbaee09cd6790951576b8f3de1f85befb4524 (patch)
treeeda317fe2c34d93cd24c8f03db488e9a4d8fae89 /libs/binder/ActivityManager.cpp
parent547bea0331cd9d24e3931fefe4ea4fdfd6ddbbcf (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/binder/ActivityManager.cpp')
0 files changed, 0 insertions, 0 deletions