Fix for device setup pairing inconsistency
1) Created new method to factory reset bluetooth stack.
Existing reset_bluetoth method does not reset bluetooth stack,
but only toggles bt on/off.
When used in setup_multiple_devices_for_bt_test()
leads to device pairing conflict.
Currently factroyReset does not work for me b/79418045.
For that I temporary included device unbond step.
2) Replaced reset_bluetoth with factory_reset_bluetooth
3) Added waiter to allow bt state stabilize
Devices depending on OS differently recover from factory reset
I'd like to add waiter to allow bt state to take place
before jumping into enabling bt.
Test: Factory reset should leave no previously bonded devices
Bug: 77318571
Change-Id: I2a1db16707e9027990eebb9900dd88a071c4c510
1 file changed