Merge "Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and BluetoothAdapter#closeProfileProxy" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-24 04:31:07 +00:00
committed by Android (Google) Code Review

View File

@@ -3054,6 +3054,9 @@ public final class BluetoothAdapter {
return true;
}
return false;
} else if (profile == BluetoothProfile.LE_AUDIO) {
BluetoothLeAudio leAudio = new BluetoothLeAudio(context, listener, this);
return true;
} else {
return false;
}
@@ -3142,6 +3145,10 @@ public final class BluetoothAdapter {
case BluetoothProfile.HEARING_AID:
BluetoothHearingAid hearingAid = (BluetoothHearingAid) proxy;
hearingAid.close();
break;
case BluetoothProfile.LE_AUDIO:
BluetoothLeAudio leAudio = (BluetoothLeAudio) proxy;
leAudio.close();
}
}