Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ae6c4b4e authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix locking in AnyMotionDetector.

1. Make sure we appropriately lock around mState when accessing and
   changing it.
2. Annotate lock requirements around variables
3. Don't call the callback with the lock held. This could have resulted
   in a deadlock, though I have no evidence that one did occur.

Bug: 199191752
Test: atest DeviceIdleTest
Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest
Change-Id: I689145822462202afb2d4ba24ffd9e73cc1917ee
parent 616c2cac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment