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

Commit f6d7d7a7 authored by Daniel's avatar Daniel
Browse files

Fix race condition of lazy service binding

There is a race condition introduced by service binding and api calls,
checkAttention and onStartProximityUpdates. Fixing the race condition by
introducing a CountDownLatch that gets counted down on service binding
and reinitialized on service unbinding.

Bug: 219525510
Test: atest CtsAttentionServiceDeviceTestCases
Commented out and tested individual test at a time. Previous tests that
failed individually such as CheckAttentionSuccess or
ProximityUpdatesSuccess pass.

Change-Id: I168b325c65e8d82767f278c65d62268afa4060a1
parent 942f1b98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment