diff --git a/nearby/tests/multidevices/clients/test_support/fastpair_provider/simulator_app/src/android/nearby/fastpair/provider/simulator/app/MainActivity.java b/nearby/tests/multidevices/clients/test_support/fastpair_provider/simulator_app/src/android/nearby/fastpair/provider/simulator/app/MainActivity.java index e916c53a93..75fafb0e3d 100644 --- a/nearby/tests/multidevices/clients/test_support/fastpair_provider/simulator_app/src/android/nearby/fastpair/provider/simulator/app/MainActivity.java +++ b/nearby/tests/multidevices/clients/test_support/fastpair_provider/simulator_app/src/android/nearby/fastpair/provider/simulator/app/MainActivity.java @@ -657,9 +657,7 @@ public class MainActivity extends Activity { int desiredIoCapability = getIoCapabilityFromModelId(modelId); - mBluetoothController.setIoCapability( - /*ioCapabilityClassic=*/ desiredIoCapability, - /*ioCapabilityBLE=*/ desiredIoCapability); + mBluetoothController.setIoCapability(desiredIoCapability); runOnUiThread(() -> { updateStringStatusView( @@ -950,9 +948,7 @@ public class MainActivity extends Activity { } // Recover the IO capability. - mBluetoothController.setIoCapability( - /*ioCapabilityClassic=*/ IO_CAPABILITY_IO, /*ioCapabilityBLE=*/ - IO_CAPABILITY_KBDISP); + mBluetoothController.setIoCapability(IO_CAPABILITY_IO); super.onDestroy(); } diff --git a/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/BluetoothController.kt b/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/BluetoothController.kt index 0cc0c929a1..345e8d2e10 100644 --- a/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/BluetoothController.kt +++ b/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/BluetoothController.kt @@ -50,23 +50,16 @@ class BluetoothController( } /** - * Sets the Input/Output capability of the device for both classic Bluetooth and BLE operations. + * Sets the Input/Output capability of the device for classic Bluetooth operations. * Note: In order to let changes take effect, this method will make sure the Bluetooth stack is * restarted by blocking calling thread. * * @param ioCapabilityClassic One of {@link #IO_CAPABILITY_IO}, {@link #IO_CAPABILITY_NONE}, * ``` * {@link #IO_CAPABILITY_KBDISP} or more in {@link BluetoothAdapter}. - * @param ioCapabilityBLE - * ``` - * One of {@link #IO_CAPABILITY_IO}, {@link #IO_CAPABILITY_NONE}, {@link - * ``` - * #IO_CAPABILITY_KBDISP} or more in {@link BluetoothAdapter}. - * ``` */ - fun setIoCapability(ioCapabilityClassic: Int, ioCapabilityBLE: Int) { + fun setIoCapability(ioCapabilityClassic: Int) { bluetoothAdapter.ioCapability = ioCapabilityClassic - bluetoothAdapter.leIoCapability = ioCapabilityBLE // Toggling airplane mode on/off to restart Bluetooth stack and reset the BLE. try { @@ -273,4 +266,4 @@ class BluetoothController( private const val TURN_AIRPLANE_MODE_OFF = 0 private const val TURN_AIRPLANE_MODE_ON = 1 } -} \ No newline at end of file +}