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
tree: f9a8fccbe0cbbbfdd5ea6ca9f5c2cc437a4f95d2
  1. res/
  2. src/
  3. tests/
  4. Android.bp
  5. AndroidManifest.xml
  6. OWNERS
  7. PREUPLOAD.cfg