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
Loading
Please register or sign in to comment