aboutsummaryrefslogtreecommitdiffstats
path: root/binding-bluetooth/bluetooth-manager.c
AgeCommit message (Collapse)AuthorFilesLines
2018-11-12binding: bluetooth: initial commit of binding rewriteMatt Ranostay1-1981/+0
Bug-AGL: SPEC-1630 Change-Id: I33cfec70283fa29f47b76f9e6be3e8e6cd6a2f54 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-08binding: bluetooth: remove useless setHMIStatusMatt Ranostay1-36/+0
Since homescreen now uses libqtappfw to set the Bluetooth status icon, and no longer uses dbus the setHMIStatus function can be removed. Change-Id: I9155a4eb9b380c034deca6402de43bf785b323cd Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-08-10binding: bluetooth: remove obsolete oFono codeflounder_5.99.4flounder_5.99.3flounder/5.99.4flounder/5.99.35.99.45.99.3Matt Ranostay1-111/+0
clean up current bluetooth binding with removing unused code Change-Id: I3bd5f05dcbde4285abcb60042d89b19ec0f2f01e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-11-30binding: bluetooth: set bluetooth HMI icon on startupMatt Ranostay1-0/+1
If autoconnects to an Bluetooth device the bluetooth HMI icon status should display this. Bug-AGL: SPEC-1150 Change-Id: I80d31ffd59aaf63011ec16e4c7f04bd23649442b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-22binding: bluetooth: add verb to export paired device prioritiesMatt Ranostay1-0/+19
Add device_priorities verb to export paired device priorities in an array. Bug-AGL: SPEC-839 Change-Id: I83dc17a2a8f755235b0b35a12d2cae8388b69c85 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-09binding: bluetooth: cancel autoconnect when discovery mode requestedMatt Ranostay1-1/+6
Autoconnection was causing some devices not to be spotted ever when discovery mode was requested It can be safely assumed on user loading the Bluetooth setting page no currently paired devices are expected to autoconnected Change-Id: Ic66d97e559e5ed8fada4ca0a4a7bb481a19bdc36 Bug-AGL: SPEC-795 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-02binding: bluetooth: save priority of paired devices for autoconnectionMatt Ranostay1-14/+140
Store list of the order of devices paired to deduce priority of which should be autoconnected to first. Bug-AGL: SPEC-722 Change-Id: I0ab36b62842296ce5cc5c2bbfdbba1d4d2319f51 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-27binding: bluetooth: attempt autoconnect to multiple devicesMatt Ranostay1-11/+22
Round robin through the paired devices every 5 seconds till one is successful. Bug-AGL: SPEC-722 Change-Id: I79ff4ee96eabc4def596ab2b7569c9710eb35bfd Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-27binding: bluetooth: autoconnect to first paired deviceMatt Ranostay1-0/+49
Attempt to connect to the first paired device, and poll every 5 seconds till it is successful or another device is connected. Bug-AGL: SPEC-722 Change-Id: Ic32fbcc6eeb2f0d789d17da1f8722d49b869bc24 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-27binding: bluetooth: listen for rfkill bluetooth eventsMatt Ranostay1-0/+99
On certain platforms like RPI3 and Porter there is a possible race condition to systemd-rfkill service if using a USB BT device, and this patchset listens for rfkill events, unblocks and brings up hci interface. Bug-AGL: SPEC-569 Change-Id: Id16f26953d17cbe2068807b538c52759016d3e50 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-21binding: bluetooth: lock around BluetoothManage.inited flagMatt Ranostay1-2/+10
inited flag could be written during a read, and this should be prevented via a mutex. Bug-AGL: SPEC-768 Change-Id: Ie8ff57e931b3c9d73b52c6c6082100cb620ca9d8 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-21binding: bluetooth: remove race condition workaroundMatt Ranostay1-1/+0
Workaround that was likely in place to avoid the Settings applications UI from loading before all binding functionality was enabled. Bug-AGL: SPEC-569 Change-Id: I7c4bc7614192cb09cace555acf77f27fbda0c42a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-30binding: bluetooth: make system wide serviceMatt Ranostay1-0/+1811
Allow Bluetooth binding to be build separately and installed as a system wide service Bug-AGL: SPEC-661 SPEC-715 Change-Id: I12feefa2908243aa3bdcb0341f9bc9654c23741e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>