* Fix of the issue that incoming call triggered
handsfree ringing which didn't stop after
calling side hung up.
* Cleanup of several places in code, minor
bluetooth <-> cellular integration refactor.
Fix of the issue that after connecting
to Bluetooth device it was impossible
to disconnect using Disconnect button.
Refactor of connect/disconnect events
naming (and all names related).
Added tests and calls substate
bluetooth sm diagram created
All old bluetooth tests reviewed and updated
removed new - with queue it's not required
removed TODO
Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Due to possibility to have duplicated entries per BT address
BT stack was requesting pairing when wrong key has been provided.
Now, all previous key entries are deleted prior adding.
Fix of the bug that after pairing with one device
the entire list of devices that were visible at
the pairing time is transferred to paired devices
list.
ssp seems working
minor crash fixups
copy lacks patched
obsolete code removed
Devicei tests added for added code and cleanup
Added missing tests for new functions
Code cleaned up a bit - mostly moved to cpp
To be able to pair properly using SSP the BT device have to know
which services we're running, thus we need to register SDP entries
after startup of the BT stack
Reworked AppSettings handling of BT devices to be prepared for
handling the HFP profile, eliminating by the way few bugs and
speeding up the flow (by getting rid of few refreshes).
Added unit tests for handling the BT devices flow