Merge "Add callback onProfileAudioStateChanged()" into pi-dev
am: a29957d518
Change-Id: I781527469bd558617dee57ed431d072ab629705d
This commit is contained in:
@@ -29,4 +29,5 @@ public interface BluetoothCallback {
|
||||
void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState);
|
||||
void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state);
|
||||
void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile);
|
||||
void onProfileAudioStateChanged(int bluetoothProfile, int state);
|
||||
}
|
||||
|
||||
@@ -611,6 +611,9 @@ public class KeyboardUI extends SystemUI implements InputManager.OnTabletModeCha
|
||||
@Override
|
||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice,
|
||||
int bluetoothProfile) { }
|
||||
|
||||
@Override
|
||||
public void onProfileAudioStateChanged(int bluetoothProfile, int state) { }
|
||||
}
|
||||
|
||||
private final class BluetoothErrorListener implements Utils.ErrorListener {
|
||||
|
||||
@@ -279,6 +279,9 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa
|
||||
@Override
|
||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {}
|
||||
|
||||
@Override
|
||||
public void onProfileAudioStateChanged(int bluetoothProfile, int state) {}
|
||||
|
||||
private ActuallyCachedState getCachedState(CachedBluetoothDevice device) {
|
||||
ActuallyCachedState state = mCachedState.get(device);
|
||||
if (state == null) {
|
||||
|
||||
Reference in New Issue
Block a user