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

Skip to content
Commit 45a477e2 authored by timhypeng's avatar timhypeng Committed by tim peng
Browse files

reduce the usage of LocalBluetoothAdapter in LocalBluetoothProfileManager

- LocalBluetoothAdapter is only for setProfileManager() to refresh profiles when Bluetooth turned back on
- use BluetoothAdapter.getDefaultAdapter() to call getSupportedProfiles()
- add ShadowBluetoothAdapter.java to handle the test cast without mock adapter
- no more pass LocalBluetoothAdapter to each Bluetooth profile
- no more pass LocalBluetoothAdapter to CachedBluetoothDeviceManager::addDevice()

Bug: 111815935
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I87f328b04cfe86bbd42babb57187e7c0b2638aea
parent 345a4af9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment