summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorxiaowang <xiaowang@codeaurora.org>2020-07-14 17:56:03 +0800
committerxiaoyang wang <xiaowang@codeaurora.org>2020-07-22 05:30:46 +0000
commita1481f8fb0681f88fd1dc29e161dc6bb9fd1bc9f (patch)
tree5218e5a3c740e253c961eb0169cbfc5d54a3f7f8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent73c2205496a050f024487f8090702fa18585bb43 (diff)
BT: Fix BT turn on issues
Fix below two BT ON issues: Issue1: BT turn on fail after enable/disable BT quickly. Steps to repo: 1. turn on BT 2. turn off BT immediately after wait for 2~3 second 3. turn on BT again Observed Result: after step 3, BT turn on always failure Expected Result: BT turn on successful. Repro rate: 10/10 Root cause: When turn on BT and disable it quickly, continueFromBleOnState() is waiting for BT change to STATE_ON, then turn off it. But it doesn't trigger BT transition to STATE_ON as mEnableExternal and isBluetoothPersistedStateOnBluetooth are reset to false by disable(). It is stay in BLE ON till turned on again, change to STATE_ON, then is turned off by continueFromBleOnState. Fix solution: If there is no any BLE app present and mEnableExternal is false, move BT to OFF state from BLE_ON. Issue2: BT turn on unexpectedly after airplane mode on Steps to repro: 1. Turn on BT 2. switch airplane mode on/off quickly, lastly keep airplane mode on Observed Result: BT turn on unexpectedly while airplane mode on Expected Result: BT turn off when airplane mode on Repro rate: 2/10 times Root Cause: When airplane mode on, it is most likely that BT is opening. For instance: STATE_BLE_TURNING_ON, STATE_TURNING_ON or STATE_OFF but mEnable is true. Based on current implementation, BT will keep on after airplane mode on. Fix solution: Delayed turn off BT if it is opening when airplane mode on. Change-Id: Iaaaf2785dc2b09867efbc801beb4c442aa11ada1 CRs-Fixed: 2723881,2727801
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions