summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-01-03binding: bluetooth: fix formating in README.mdMatt Ranostay1-1/+1
Fix avrcp_controls verb markdown header to correct number Change-Id: I5b2599c16ea74ab98ce6cf8bca5c2b45cada1bc4 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-01-02binding: bluetooth: add Transport parameter to discovery filterMatt Ranostay2-14/+33
Allow clients to select what Bluetooth transport they want a discovery scan to attempt to detect. This will improve scanning in for example when a client only wants to detect bredr or ble devices . Bug-AGL: SPEC-2094 Change-Id: I2a983f5243aefcb582a7476bbae34d6ba88c39a6 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-11binding: bluetooth: don't display errors if no error pointer is passedguppy_6.99.3guppy/6.99.36.99.3Matt Ranostay1-2/+2
There is sometimes when you don't want AFB_ERROR to be displayed on a dbus failure. Example would be in the initial autoconnect attempt on binding startup. Don't display the AFB_ERROR if error pointer that is passed is NULL Bug-AGL: SPEC-1630 SPEC-1986 Change-Id: I2bc1e8575037a8e84721d2c2c369a409986eda43 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-11binding: bluetooth: g_variant_unref() isn't being called on replyMatt Ranostay1-2/+4
Fix logic check and run g_variant_unref() on reply of dbus call Bug-AGL: SPEC-1630 Change-Id: I7e89031d8cad64c3303227c0ec7fd85a6c85f0c3 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-10binding: bluetooth: add MediaTransport1 to managed_objects outputMatt Ranostay2-3/+28
To allow initial reporting of MediaTransport1 of audio transports add them to the managed_objects verb. Bug-AGL: SPEC-1630 SPEC-1986 Change-Id: Icc09ae063e5dfc52e5396b9ea7149178b1d8aaac Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-10binding: bluetooth: add MediaTransport1 supportMatt Ranostay4-14/+134
Bug-AGL: SPEC-1630 Change-Id: I6ad1f85d4edc00239f891edf6994db416e8a2dbd Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-07binding: bluetooth: add default_adapter verbMatt Ranostay7-5/+127
Allow setting of default adapter for use by other verbs within the binding. This allows to select an adapter on boards with more than one. Bug-AGL: SPEC-1630 Change-Id: Iec77b0abaa9f4c092dc5c827522efb1744953fce Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-07binding: bluetooth: add connect/disconnect actions to avrcp_controlsMatt Ranostay1-1/+26
Allow subscribers to connect/disconnect to a2dp/avrcp Bluetoothp profiles Bug-AGL: SPEC-1630 Change-Id: I5c4c2a2f06636b2b74cb453a3af576beb8026ab1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-12-07binding: bluetooth: add autobuild scriptsMatt Ranostay2-0/+120
Bug-AGL: SPEC-1630 Change-Id: I161c1033f3357a1049a133c4f7382d5bafb25c37 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-14binding: bluetooth: add MediaPlayer1 interface media eventsguppy_6.99.2guppy_6.99.1guppy/6.99.2guppy/6.99.16.99.26.99.1Matt Ranostay6-35/+204
Report back MediaPlayer1 interface events for A2DP media playback Bug-AGL: SPEC-1630 Change-Id: I777f19af2de247fe676d5bede4bacbbad8ca9844 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add new avrcp controls verbMatt Ranostay4-1/+83
Since MediaPlayer1 controls are part of bluez it makes sense to keep them here for now Bug-AGL: SPEC-1630 Change-Id: Ia02341179a322082357b0e7eff07264e34197d57 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add autoconnect featureMatt Ranostay3-0/+51
Attempt connection on each paired device till one is successful on startup. Bug-AGL: SPEC-1630 Change-Id: I213876f65528d0eaeaa5b55a745f541b286f26b5 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add power adapter change eventsMatt Ranostay1-0/+12
Bug-AGL: SPEC-1630 Change-Id: I615cbf19d180556b0650dbf6b5ba48848be49f97 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: fix interface removal eventMatt Ranostay2-2/+9
Don't send adapter name in 'device' parameter on removal of bluetooth interface. Bug-AGL: SPEC-1630 Change-Id: I15cb4dcc791d36beb8e8b41993644cad331d3cae Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add input validation on device inputMatt Ranostay1-1/+11
Validate device input to filter out special characters being sent that may cause the dbus call to hang or segfault. Bug-AGL: SPEC-1630 Change-Id: I31aa458154c030181b905b7ccc9d6a8aa0f84ef0 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: change api name to old case sensitive formatMatt Ranostay1-1/+1
Bug-AGL: SPEC-1630 Change-Id: Iae18f069b7a8091331efda97a270b70d05de3e79 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add initial discovery filter supportMatt Ranostay5-8/+60
Allow clients to request devices only with certain profile UUIDs to be displayed in an discovery scan. This allows to filter out things like location tokens, smart scales, and etc which can't possibly have a2dp or hfp profiles for instance. NOTE: This is a write only setting. In the future should be read/write to see current discovery filters. Bug-AGL: SPEC-1630 Change-Id: Ic8b18656f84ac8047b170d6e601fcc2e63786af0 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: remove bluez paths in documentationMatt Ranostay1-4/+4
Bug-AGL: SPEC-1630 Change-Id: I7e76a5a6e5ea49b331068d4cb21fd97e5d1287e6 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add BLUEZ_DEFAULT_ADAPTERMatt Ranostay3-20/+10
Bug-AGL: SPEC-1630 Change-Id: I8e55d273ab58992e6f6327523853c6d330505278 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add return_bluez_path functionMatt Ranostay3-21/+54
Concatenate adapter and device parameters to return a bluez path for usage within the binding's dbus calls. Bug-AGL: SPEC-1630 Change-Id: I4c96fa48baaf12b23aac98ba35f1ca82f7005bcb Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add check to be sure GError has been setMatt Ranostay2-4/+7
segfaults can happen if the dbus call reply fails but doesn't set a GError. Bug-AGL: SPEC-1630 Change-Id: I83ea2f7997a8fcef1cdd73a7df2cf9ad97e00d91 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: return adapter/device versus bluez pathMatt Ranostay7-22/+73
To allow this binding API to be bluetooth stack agnostic remove pure bluez paths, and replace with generic fields. Bug-AGL: SPEC-1630 Change-Id: Iadba73782b6339df2ca5937e16a654e7ef3e477b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: don't send empty PropertiesChanged messagesMatt Ranostay1-1/+11
Possible to have an PropertiesChanged events that produces no changes that are useful to report. Bug-AGL: SPEC-1630 Change-Id: I09b25943e3676abd5dd0f1c8caa2c0a2414f409f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: add version verbMatt Ranostay1-0/+14
Report API as 2.0 to middleware + application clients Bug-AGL: SPEC-1630 Change-Id: I4ce889a06a0cd287af2d08068a59bbc7d359c20b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-11-12binding: bluetooth: initial commit of binding rewriteMatt Ranostay27-8881/+3609
Bug-AGL: SPEC-1630 Change-Id: I33cfec70283fa29f47b76f9e6be3e8e6cd6a2f54 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-31Migrate app-templates to CMake moduleRomain Forlot3-10/+8
Bug-AGL SPEC-1682 Change-Id: I2fa1714779391e1a22b5cf527bd8741ba28c9f2b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-09Use feature 'required-binding'Jose Bollo1-1/+1
The feature "urn:AGL:widget:required-binding" is now preferred to the feature "urn:AGL:widget:required-api" for requiring a local binding. Bug-AGL: SPEC-1800 Change-Id: If4dcde74d1d51ca1c4997fc571dbc84986fd7113 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-10-08binding: bluetooth: remove useless setHMIStatusMatt Ranostay3-44/+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-09-28binding: bluetooth: report HFPConnected statusMatt 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-15binding: bluetooth: add version verbMatt Ranostay1-0/+10
Add version verb to allow middleware and application to know which verb schema to use in the future. Bug-AGL: SPEC-1736 Change-Id: Ie18871836b86cd5fed54e44ddf957e34d8e1b606 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-14binding: bluetooth: add adapter parameter to JSON outputguppy_6.90.0guppy/6.90.06.90.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-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>