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

Skip to content
Commit b5402ac9 authored by William Escande's avatar William Escande
Browse files

SystemServer: Manually intiate state transition

Anytime we initiate a transition to `STATE{,_BLE}_TURNING_{ON,OFF}` the
system server is waiting for the Bluetooth app to receive the event,
move to various thread before calling the callback of state transition
back.
By pre-emptively setting the state to the appropriate _TURNING_ state,
we prevent any race condition that could happen meantime

Bug: 351132679
Test: atest ServiceBluetoothTests
Flag: Exempt refactor
Change-Id: Iefe80cc8e4fdc356aa6a6652e2ca73e74b260870
parent 8457b6fa
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