summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-11-23binding: bluetooth: initial commit of binding rewriteMatt Ranostay24-8794/+3607
Bug-AGL: SPEC-1630 Change-Id: I33cfec70283fa29f47b76f9e6be3e8e6cd6a2f54 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-05binding: bluetooth: report HFPConnected statusflounder_6.0.2flounder_6.0.1flounder/6.0.2flounder/6.0.16.0.26.0.1Matt Ranostay2-3/+8
Due to ofono code removal the HFPConnected status wasn't being reported to clients that depended on it. Ideally this needs to be in agl-service-telephony binding, but till then just report HFP as 'connected' if both device is connected and has the HFP UUID in the advertised services. Bug-AGL: SPEC-1765 Change-Id: I6a1c5afe1d89a6ac6a4e84b07777d04368a4e772 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-14binding: bluetooth: add adapter parameter to JSON outputflounder_6.0.0flounder/6.0.06.0.0Matt Ranostay1-5/+9
Allow subscribers to get the respective devices adapter from a BlueZ path Bug-AGL: SPEC-1720 Change-Id: Ie7fc43558d386bb010f34e64e967c0bf0f054b45 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-10Add gitreview file for flounder branchflounder_5.99.7flounder/5.99.75.99.7Jan-Simon Möller1-1/+2
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2018-09-04binding: bluetooth: provide complete BlueZ object pathflounder_5.99.6flounder/5.99.65.99.6Matt Ranostay1-4/+4
Provide complete path to BlueZ object from dbus so clients can deduce which adapter is being used for that paired device. Change-Id: Ic26c028eaec4cb7f85739d248e21773214c83d3a Bug-AGL: SPEC-1720 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-08-29binding: bluetooth: agent: request for binding to be default agentflounder_5.99.5flounder/5.99.55.99.5Matt Ranostay1-0/+19
Request for the binding to be the default agent, so phones can initiate pairing exchanges versus just the Settings UI Change-Id: I74844383022774ce713ab55796761f6060a843ba 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 Ranostay9-21073/+0
clean up current bluetooth binding with removing unused code Change-Id: I3bd5f05dcbde4285abcb60042d89b19ec0f2f01e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-27binding: bluetooth: remove useless binding-bluetooth.pro fileMatt Ranostay1-11/+0
qmake is no longer used to build the binding so remove pro file Change-Id: I0ca1f76c6a40354b1ee31ba2e705f57bad9baecd Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-05-15Remove reference to <afb/afb-service-itf.h>flounder_5.99.2flounder_5.99.1flounder/5.99.2flounder/5.99.15.99.25.99.1José Bollo1-1/+0
Change-Id: Iddf7d0ae298b2e94c35199b1444d344dc0703a5a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-04-19binding: bluetooth: discovery_result response refactoredMatt Ranostay1-1/+4
Put the json array into a single entry map to make it consistant with other binding APIs and verbs. This also makes libqtappfw access for response data much easier Bug-AGL: SPEC-1385 Change-Id: I2eeb6ead1e386503a765dc1e252c969bb647eeee Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-04-16vimrc: add project startup file for vimMatt Ranostay1-0/+2
To avoid corrupting syntax in project we need to add an per project .vimrc to signal formatting. You must enable in user home directory .vimrc with 'set exrc' and 'set secure' lines Bug-AGL: SPEC-1387 Change-Id: I2b1162aac5ae359ded2ceabef8f62316d12e5228 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-04-09binding: bluetooth: clean up array of struct afb_verb_v2Matt Ranostay1-17/+17
AFB_SESSION_NONE is defined as zero so it doesn't need to be explicitly set. Change-Id: I63e072d211b1f21c294966144dd2d8ef025eaeed 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-09-12Fix initialisationeel_4.99.3eel_4.99.2eel_4.99.1eel/4.99.3eel/4.99.2eel/4.99.14.99.34.99.24.99.1José Bollo1-3/+2
The binder now enforces creation of event inside init and forbid their creation in preinit. This evolution solves the issue as all initialisation is made in init. Change-Id: Ib5a41382ace47cbc387f0bce71bf7f198fea47ea Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-22binding: bluetooth: add verb to export paired device prioritiesMatt Ranostay3-0/+34
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-11binding: bluetooth: switch from qmake to cmakeMatt Ranostay14-334/+380
Switch from legacy qmake to cmake to build binding Bug-AGL: SPEC-822 Change-Id: Ia2683dda11380c17285768bf6818893cbc5fda08 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-09binding: bluetooth: cancel autoconnect when discovery mode requestedMatt Ranostay2-1/+7
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-08binding: bluetooth: make exposed verbs more consistent with other bindingsMatt Ranostay1-93/+34
Remove client requirement they register new events, and make subscription verbs more consistent with other bindings Bug-AGL: SPEC-819 Change-Id: Ica2431690b4e6f24ec3b3e67dba14375298b2f56 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-08binding: bluetooth: switch to v2 binding formatMatt Ranostay2-49/+38
Update functions and structure to use the new version 2 of the afm binder framework Bug-AGL: SPEC-817 Change-Id: I102a31d0bf19458170b624013b18a6a5d7f9a28b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-02binding: bluetooth: save priority of paired devices for autoconnectionMatt Ranostay2-14/+141
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 Ranostay3-6/+107
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 Ranostay3-7/+2
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-07-07Ask to run by default at startJosé Bollo1-0/+1
Change-Id: Id6b1449fd246ddca9324da598d3aaef41f39ce16 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-03config: require permissionsJosé Bollo1-0/+4
Requires 2 permissions: - use of DBUS - being hidden Bug-AGL: SPEC-719 Change-Id: If508c763e5a0221532f7742e4aaffb54b2c8419b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-07-01Add gitreview fileJan-Simon Möller1-0/+6
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
2017-06-30binding: bluetooth: fix missed uuid in device_disconnect callMatt Ranostay1-1/+1
UUID if defined wasn't being passed to the device_disconnect function call resulting in a total device disconnect. Bug-AGL: SPEC-714 Change-Id: I04f0fcdfae703aaea90a4bf7b17ea0354a3ab845 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-30binding: bluetooth: make system wide serviceMatt Ranostay26-1/+377
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>
2017-06-20binding: bluetooth: allow connection to specified profile UUIDMatt Ranostay1-1/+13
Allow connect/disconnect to a single BT UUID profile that is specified for a device. Change-Id: Ia3c67fd5f0e9b6467aa7eaae2e75dddfe80251ae Bug-AGL: SPEC-669 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-20binding: bluetooth: report connection eventsMatt Ranostay1-0/+20
Subscribers to the bluetooth binding need to get reports of connection and disconnections. Bug-AGL: SPEC-669 Change-Id: I061fd7088a3a198d8004feaf594abc44c3a43f4f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-07binding: bluetooth: available BT UUID profiles reportingMatt Ranostay6-10/+45
Since selection connect/disconnect can be done to a certain BT UUID profiles the available ones need to be listed to subscribers. Change-Id: I4497838ef2f9dd5e6fc40f1364a8b5f165a1831d Bug-AGL: SPEC-638 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-01binding: bluetooth: allow connection to select uuid profilesMatt Ranostay3-12/+12
Currenly the bluetooth binding connects to all available bluetooth profiles. This change allows you select an singular profile. Change-Id: Iccb016f132e0690699eefddee637ad91ea69e69c Bug-AGL: SPEC-638 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-31binding: bluetooth: provide org.bluez.MediaTransport1 accessMatt Ranostay5-2/+85
Allow binding to report transport state and volume levels Bug-AGL: SPEC-642 Change-Id: I5daad68a096b70b6401cde045704ee4226ef368f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-20binding: bluetooth: fix memory leak in avrcp controlsMatt Ranostay1-0/+18
avrcp data pointers need to be freed when btd_device structure is destroyed Change-Id: I39b534665d9e7b74ff20443668b5fee395446aa9 Bug-AGL: SPEC-596 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-18binding: bluetooth: add initial avrcp controlsMatt Ranostay3-0/+109
These avrcp controls only work at the application level for the settings application. The bluetooth binding at some point needs to be converted to system level binding. Change-Id: I5959c3939874b53c2b21115fb2a3e6a652ec0ffd Bug-AGL: SPEC-596 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-15binding: bluetooth: add support for avrcp metadata reportingMatt Ranostay5-8/+194
Add binding support for reporting avrcp metadata, and status events. Bug-AGL: SPEC-596 Change-Id: I33a1045db5aa421a01e28c7bda254085b107e4f1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-05-14binding: bluetooth: fix typo of propertyiesMatt Ranostay7-27/+27
Fix typo of propertyies that should be properties. Bug-AGL: SPEC-578 Change-Id: I9b312666db39808d03fec33c0029858917a14b37 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-04-19BT: Update to support WebSocketyidongmiao19-821/+28411
modified: app/bluetooth/Bluetooth.qml modified: binding-bluetooth/binding-bluetooth.pro new file: binding-bluetooth/bluetooth-agent.c new file: binding-bluetooth/bluetooth-agent.h modified: binding-bluetooth/bluetooth-api.c modified: binding-bluetooth/bluetooth-api.h modified: binding-bluetooth/bluetooth-manager.c modified: binding-bluetooth/bluetooth-manager.h new file: binding-bluetooth/bluez-client.c new file: binding-bluetooth/bluez-client.h new file: binding-bluetooth/lib_agent.c new file: binding-bluetooth/lib_agent.h new file: binding-bluetooth/lib_bluez.c new file: binding-bluetooth/lib_bluez.h new file: binding-bluetooth/lib_ofono.c new file: binding-bluetooth/lib_ofono.h new file: binding-bluetooth/lib_ofono_modem.c new file: binding-bluetooth/lib_ofono_modem.h new file: binding-bluetooth/ofono-client.c new file: binding-bluetooth/ofono-client.h modified: Bluetooth.qml Change-Id: I18bc7ed86b6759d5b55a2662cf3ebd0d1e81b07f Signed-off-by: yidongmiao <yidong.miao@cn.alps.com> Jira identifier: SPEC-528
2016-12-22Add status icon for bluetoothsrimaldia3-0/+46
<?xml version="1.0"?> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <policy context="default"> <allow send_destination="org.agl.homescreen"/> </policy> </busconfig> Change-Id: I598fd21f66620a518d5cc4068c352c31961834bd Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
2016-12-14merge the Settings in CES2017 and bindings from ALPSTasuku Suzuki7-0/+1461
Change-Id: I00a7a6c5dae1cd579f91d543b0f5fba4616a633b Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>