Loading packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ShadowBluetoothAdapter.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -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; Loading @@ -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; } } Loading Loading
packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ShadowBluetoothAdapter.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -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; Loading @@ -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; } } Loading