diff options
author | xiaowang <xiaowang@codeaurora.org> | 2020-10-19 13:54:35 +0800 |
---|---|---|
committer | xiaoyang wang <xiaowang@codeaurora.org> | 2020-10-29 02:16:14 +0000 |
commit | 0d09b32aa2f6e8bf7c45c532e3fa3b1983cbe460 (patch) | |
tree | dd3abfc7f65bd3251ac2f8cd3f1da7edaf2da3fa /tests/Codegen/src/com/android/codegentest/SampleDataClass.java | |
parent | d7f4c24b54b7b59087f70d9f1453c22a74b9b6e4 (diff) |
Bluetooth: Fix issue that BT cannot be turned on.
Issue:
BT cannot be turned on when disable BLE app while BT on in progress.
Steps:
1. Disable BT
2. Enable BT quickly
3. Disable BLE app
Repro rate: low
Expectation:
BT can be turned on normally.
Observed result:
BT cannot be turned on and stays in BLE ON state.
Root Cause:
When BT is turning off, BT enable msg is delayed.
At this time if disable BLE app, BT still stay in BLE on state
even if the number of BLE apps is zero as mEnableExternal is true.
During delayed enable msg handling, is waiting for off state until
timeout happen and BT stays in BLE on state.
Fix:
During delayed enable msg processing, if BT is always in BLE on state
and mEnableExternal is true, then BT is going to ON.
Change-Id: I6cef361d114bd14a3a52bfb5374266d51f2494cb
CRs-Fixed: 2786484
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleDataClass.java')
0 files changed, 0 insertions, 0 deletions