summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothCodecConfig.java
diff options
context:
space:
mode:
authorRam Periathiruvadi <ramperry@google.com>2019-07-31 15:47:47 -0700
committerRam Periathiruvadi <ramperry@google.com>2019-08-21 00:37:21 +0000
commit22d54f6777f64a8f2256aabea420d1e3e9bfff61 (patch)
treea071552618c656942a09dd79e0ee45b7947d8d27 /framework/java/android/bluetooth/BluetoothCodecConfig.java
parent69b4b5f1f98cb511a7e1760a913134e4e0c22317 (diff)
Fix Handling of user switching for headless user 0 model.
For headless user 0 models we don't start Bluetooth Service in user 0. We wait for the first user switch to start - call BluetoothManagerService.handleBootPhase(). However, we also call BluetoothManagerService.handleOnUserSwitch() which ends up restarting the service that was started in handleBootPhase(). This leads to the Bluetooth service not being available due to the extra restart. Changing the loigc to 1. Handle boot phase on User switch if not done before. 2. Handle on switch user otherwise. This saves 6-7 seconds of the time it takes for something like BLE to be available in the automotive builds. Bug: 137289703 Test: Make sure Bluetooth comes up only once with no restarts on boot up and also ensure Bluetooth is restarted when manually switching to another user. Change-Id: I30179f4c2a3f81940258c70045a6ba8b32f315e1 (cherry picked from commit bacd869510eb18b9a04651cd9537418622a4b935)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothCodecConfig.java')
0 files changed, 0 insertions, 0 deletions