commit | 66b82f93d88ff360d40fcf6f3e366208529cb367 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Wed Aug 16 14:42:06 2023 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Wed Aug 16 14:44:01 2023 -0700 |
tree | ab04d2591dd96776ef2dad2aed5ca89f9d443228 | |
parent | 66f2b3e05fa277d75c7b9ce4462739acae1ccfff [diff] |
Access mInputDevices with a lock Before this CL, 'mInputDevices' was GUARDED_BY mLock, but for some reason, those thread safety annotations weren't working. This only got noticed after I added a debug print to the body of the function 'getInputDevices'. This appears to be a bug with thread safety annotations. Still, the fix here is correct and needed. Bug: 296235458 Test: atest inputflinger_tests Change-Id: I0ae8cc7791e2042e47719ecd5a8ca00b4147be87