diff options
| author | 2025-03-11 17:29:43 -0700 | |
|---|---|---|
| committer | 2025-03-15 23:54:59 -0700 | |
| commit | 2888a786b61f755775e849a650b7199a2fc26e3d (patch) | |
| tree | 3a04b41d4d7b04d7cfda5733d72f4426c96f83b3 /floss/build/container-build-image.py | |
| parent | 3f13fca99515c50cc56455324510d988e78924f8 (diff) | |
SystemServer: race between enableBle and apm
If apm spawn two event back to back, the second will be queued up to
when Bluetooth reach a stable state (BLE_ON or ON or OFF). But as soon
as Bluetooth exit BLE_ON, some apps may ask to restart the BLE part.
This event is handled and because the apm event is delayed on a timer,
it will be treated at a later date.
To prevent this, we are cancelling the queued apm event and executing it
directly once reaching OFF, before to generate a "restart" event
Bug: 402563502
Bug: 402332571
Test: atest ServiceBluetoothTests
Flag: com.android.bluetooth.flags.enable_ble_while_disabling_airplane
Change-Id: I2c22468e82404618f75eb2576c83c5231b004278
Diffstat (limited to 'floss/build/container-build-image.py')
0 files changed, 0 insertions, 0 deletions