commit | a955ada53154a4c907303dc6e51b7060cf6d5774 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Tue Mar 05 03:54:00 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 08 23:56:41 2024 +0000 |
tree | 42ee5531ba81a82dba46b23b8de0d978e2c57174 | |
parent | 30ed2c0371e19aa078ad08a15661e210dbcdd182 [diff] |
PointerChoreographer: Do not call the policy with the lock held Since there is already precedent for InputReader to interact with the policy with its lock held, we must not do the same from other components, since it can result in deadlocks. In this CL, we ensure that the PointerChoreographer does not interact with the policy while holding its lock. The exception is the use of the factory method for PointerController, which is only part of the policy to work around dependency issues with graphics libraries. Bug: 327717240 Test: atest inputflinger_tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5a51a2280743605a51e2f9d632077e9297276520) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ea5ddd132cfe5818f4e05d70a0f8e006fd6e2da6) Merged-In: Ib81d72898a212275d95f9d84d89a16e7172e108e Change-Id: Ib81d72898a212275d95f9d84d89a16e7172e108e