Bypass bluetooth confirmation for setup wizard
If a user goes through the setup wizard too quickly after startup,
bluetooth may be in the TURNING_ON state, which wouldn't bypass the
confirmation dialog. This solution handles that case by waiting for
bluetooth to reach STATE_ON and then enabling discoverable mode before
finishing.
Bug: 157487110
Test: manual, make -j50 RunCarSettingsRoboTests ROBOTEST_FILTER=com.android.car.settings.bluetooth.BluetoothRequestPermissionActivityTest
Change-Id: I4a1d04903e62c1ffa666bc60701f9318dba0e064
2 files changed