Merge "Remove intdef usage that block bluetooth apex" am: b72b351d21

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1988587

Change-Id: I688c605a1cfbe77874148cc1df278c5d4ac0311a
This commit is contained in:
William Escande
2022-02-16 22:36:14 +00:00
committed by Automerger Merge Worker

View File

@@ -69,7 +69,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
} }
@Implementation @Implementation
protected boolean removeActiveDevice(@BluetoothAdapter.ActiveDeviceUse int profiles) { protected boolean removeActiveDevice(int profiles) {
if (profiles != ACTIVE_DEVICE_AUDIO && profiles != ACTIVE_DEVICE_PHONE_CALL if (profiles != ACTIVE_DEVICE_AUDIO && profiles != ACTIVE_DEVICE_PHONE_CALL
&& profiles != ACTIVE_DEVICE_ALL) { && profiles != ACTIVE_DEVICE_ALL) {
return false; return false;
@@ -78,8 +78,7 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
} }
@Implementation @Implementation
protected boolean setActiveDevice(BluetoothDevice device, protected boolean setActiveDevice(BluetoothDevice device, int profiles) {
@BluetoothAdapter.ActiveDeviceUse int profiles) {
if (device == null) { if (device == null) {
return false; return false;
} }