platform/core/connectivity/bluetooth-frwk.git
9 years agoBluetooth-Service/Plugin: Set/get platform storage value 66/30866/2
Wu Jiangbo [Tue, 25 Nov 2014 09:21:45 +0000 (17:21 +0800)]
Bluetooth-Service/Plugin: Set/get platform storage value

For Tizen, it use VCONF as the storage database, it can storage
enable status value, and get it for every time where you want.

Change-Id: I82577441bbec9bbd18067f21ca3c7029431bb4b1
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoAdd the passive paired privileges checking 00/30800/2
wu zheng [Wed, 26 Nov 2014 06:08:26 +0000 (14:08 +0800)]
Add the passive paired privileges checking

The passive paired need to be checked too.

In our design, the regist agent of user have the passive paired privileges.
The default agent user will accept the paired.
Therefore, the related privileges should be provided to the user.

Change-Id: I2773cb1977efc7539b3caaf1395a356e28b8093c
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoAdd the privileges checking when opp server 97/30797/1
wu zheng [Tue, 25 Nov 2014 10:07:20 +0000 (18:07 +0800)]
Add the privileges checking when opp server

The privileges need to be checked before recv files.
The patch will check the user privilege before recv the files.

If the user have no privileges, the file will be rejected.

Change-Id: I1094e7f89e3d9cffc8b648caf5c0b99d7dacf9f3
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoModify the not right name 95/30795/1
wu zheng [Tue, 25 Nov 2014 09:55:16 +0000 (17:55 +0800)]
Modify the not right name

hdo is not right, modify it to hdp

Change-Id: I256b25825b4261e982855ece3d6582e70439ed94
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoMerge changes I012a7ea3,I85be49bd,I8a4d2fd9,If272788c,I53d01ad4, ... into devel
wu zheng [Tue, 25 Nov 2014 07:08:46 +0000 (23:08 -0800)]
Merge changes I012a7ea3,I85be49bd,I8a4d2fd9,If272788c,I53d01ad4, ... into devel

* changes:
  Modify opp to match multi-user mode
  Modify opp capis to match multi-user opp features
  The opp related operations are put to daemon of opp
  Add the functions of obex to implment multi-user of OPP
  Modify the property_proxy to fix getting properties issues
  Remove the no standard CAPIs

9 years agoAdd the TODO file
wu zheng [Tue, 25 Nov 2014 02:30:46 +0000 (10:30 +0800)]
Add the TODO file

TODO file is needed to record the todo task in NTB.

Change-Id: I81e36d51615867ab04d8619b3d4bc8439817aa6f
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoModify opp to match multi-user mode 98/30698/1
wu zheng [Mon, 24 Nov 2014 11:24:56 +0000 (19:24 +0800)]
Modify opp to match multi-user mode

The old opp doesn't match multi-user mode.
opp daemon need to run with obexd in the same user.

To Tizen design, it is not possible.
Therefore, the opp design is modify.
opp daemon handle all the opp functions.
It fixed the bug of TC-2090.

Change-Id: I012a7ea3123a9d50708cea4ff475aaaf333463d0
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoModify opp capis to match multi-user opp features 86/30686/1
wu zheng [Mon, 24 Nov 2014 09:13:49 +0000 (17:13 +0800)]
Modify opp capis to match multi-user opp features

At current, opp capis use the opp interfaces directly.
In the multi-user mode, the opp interfaces can't be used directly.

Change-Id: I85be49bdb8813a68d82f2812d8036162f20a2589
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoThe opp related operations are put to daemon of opp 80/30680/1
wu zheng [Mon, 24 Nov 2014 07:54:19 +0000 (15:54 +0800)]
The opp related operations are put to daemon of opp

To be ready for supporting multi-user opp feature.
the opp related operations will be put to daemon of opp.

Change-Id: I8a4d2fd99b2c545e9d555d2217ce82899ae542b4
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoAdd the functions of obex to implment multi-user of OPP 71/30671/1
wu zheng [Mon, 24 Nov 2014 04:33:11 +0000 (12:33 +0800)]
Add the functions of obex to implment multi-user of OPP

To be ready for implmenting multi-user of OPP.
Add some needed functions to obex lib.

Change-Id: If272788cb10531012211d09325365a1eee72e162
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoModify the property_proxy to fix getting properties issues 70/30670/1
wu zheng [Mon, 24 Nov 2014 03:14:57 +0000 (11:14 +0800)]
Modify the property_proxy to fix getting properties issues

proxy.property_proxy can't get obexd properties.
The right proxy is parent->properties_proxy.

Therefore, modify it.

Change-Id: I53d01ad4070fd1fab39487372e494b04852cff95
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoRemove the no standard CAPIs 69/30669/1
wu zheng [Mon, 24 Nov 2014 03:00:32 +0000 (11:00 +0800)]
Remove the no standard CAPIs

Some internal capis are defined.
The capis shouldn't be shown to the upper app.
Therefore, remove them.

Change-Id: If93984aef4eb80ebaeb93eb0e47bfaf5d9382bea
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agosend a notification to register opp agent when enabling bluetooth 57/30657/1
Corentin Lecouvey [Fri, 21 Nov 2014 16:15:02 +0000 (17:15 +0100)]
send a notification to register opp agent when enabling bluetooth

Change-Id: I04279000ff3f97635b83c971f943fb7fa0499750
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoadd data parameter to bt_opp_agent_on() 21/30621/2
Corentin Lecouvey [Fri, 21 Nov 2014 09:50:39 +0000 (10:50 +0100)]
add data parameter to bt_opp_agent_on()

It allows to forward opp data to plugin

Change-Id: I4d311806c98c645436a44c73e13530c7379c18a2
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoModify the return value definition 74/29774/1
wu zheng [Tue, 4 Nov 2014 08:16:10 +0000 (16:16 +0800)]
Modify the return value definition

Bluez.c should not use the Tizen related return value.
It is common lib. Therefore, the related value is modified.

Change-Id: I76056cf8e77ddb67687ac7bfe130d2f681a20302
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoUsing connman enable/disable BT to replace old enable/disable 39/29639/1
wu zheng [Fri, 31 Oct 2014 05:28:49 +0000 (13:28 +0800)]
Using connman enable/disable BT to replace old enable/disable

According to the requirement of Tizen,
connman need to control the BT enable/disable.

Added the return value too.

Change-Id: I956029c1a56a2e6f5b25d19c153af1144824bfd1
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoMerge "Remove the uid param to fix the BT security issue" into devel
wu zheng [Fri, 24 Oct 2014 02:19:46 +0000 (19:19 -0700)]
Merge "Remove the uid param to fix the BT security issue" into devel

9 years agoMerge "Add the features of mutli-user bt phase1 to opp" into devel
wu zheng [Fri, 24 Oct 2014 02:19:35 +0000 (19:19 -0700)]
Merge "Add the features of mutli-user bt phase1 to opp" into devel

9 years agoMerge "Fix the remove bt device crash issue" into devel
wu zheng [Fri, 24 Oct 2014 02:19:24 +0000 (19:19 -0700)]
Merge "Fix the remove bt device crash issue" into devel

9 years agoMerge "Implementing the feature of multi-user bt phase1" into devel
wu zheng [Thu, 23 Oct 2014 07:17:36 +0000 (00:17 -0700)]
Merge "Implementing the feature of multi-user bt phase1" into devel

9 years agoRemove the uid param to fix the BT security issue 71/29071/1
wu zheng [Tue, 21 Oct 2014 02:36:51 +0000 (10:36 +0800)]
Remove the uid param to fix the BT security issue

Transferring uid will be a hole.
Someone will use the hole to use the paired/connected BT devices.
Therefore, uid is get from dbus.

Change-Id: I633772df0317284d60fe4635f5bd219c2f2bac56
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoAdd the features of mutli-user bt phase1 to opp 86/28786/1
wu zheng [Thu, 16 Oct 2014 07:33:31 +0000 (15:33 +0800)]
Add the features of mutli-user bt phase1 to opp

Before sending the files, opp will check the privileges firsly.
The privileges come from mutli-user bt requirements.

Change-Id: Id5dccbc0306ead66dedc997f923b0b4ba109fc3a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoFix the remove bt device crash issue 84/28784/1
wu zheng [Thu, 16 Oct 2014 06:50:27 +0000 (14:50 +0800)]
Fix the remove bt device crash issue

In the device removed process,
object->interfaces is in the circle.

However, the device destroy function remove the list device
in object->interfaces.

It is strength and will result in the program crash.
Therefore, fix it.

At the same time, fix the related adapter and gatt too.

And remove the unuseful source code.

Change-Id: I17e26118b1f17cc1d3e316f29e360b889978b7f0
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoImplementing the feature of multi-user bt phase1 83/28783/1
wu zheng [Thu, 16 Oct 2014 06:27:01 +0000 (14:27 +0800)]
Implementing the feature of multi-user bt phase1

According to the multi-user bt phase1 desgin,
user isolation is implemented.

Please check https://wiki.tizen.org/wiki/Multi-user_Bluetooth

A file is used to save who and which device has been paired.

According to it, only paired user can use the related devices.

Change-Id: I900ab59072cdde7012a9a4153c3772e6dbab062e
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoadd data parameter to bt_pairing_agent_on() 65/27765/3
Corentin Lecouvey [Thu, 18 Sep 2014 14:49:52 +0000 (16:49 +0200)]
add data parameter to bt_pairing_agent_on()

It allows to forward pairing data to plugin

Change-Id: I89ef12f1cd27aec3e253f43946e4ec7746964f01
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoadapt NTB to Tizen 3 20/23620/5
Corentin Lecouvey [Mon, 30 Jun 2014 15:01:35 +0000 (17:01 +0200)]
adapt NTB to Tizen 3

This patch aims to send popup data to notification-service.
Then a notification-service client is supposed to subscribe to bt_agent
notifications in order to display them and handle user replies.

This approach is not compliant with proposed bt_agent CAPI which is based
on dbus callbacks. It is not possible to catch new user popups by dbus
callbacks and by notification-service at the same time.
To use notification-service we need a synchronous bt_agent API for user
replies.

Change-Id: Ib38f7baf62b0d4c128df1700263bc4d9b2c36af6
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoadd bluetooth-api.pc symbolic link for compatibility 66/27466/2
Corentin Lecouvey [Wed, 10 Sep 2014 13:34:16 +0000 (15:34 +0200)]
add bluetooth-api.pc symbolic link for compatibility

Change-Id: I3d4e405dab453426cbe35164132b8ad4f73efd97

9 years agoSupport to set socket server links number and missed socket features 49/27649/1
wu zheng [Wed, 17 Sep 2014 07:04:06 +0000 (15:04 +0800)]
Support to set socket server links number and missed socket features

We used number to record the socket server links number.
However, it is difficult to control each socket server link.

We modify it and use glist to control it and implement the missed
socket server features.

Modify the related test cases too.

Change-Id: If7a4b672251895a48356a5bf7af155481e81c46b
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoAdd the socket server remote_address 60/27160/1
wu zheng [Fri, 5 Sep 2014 09:58:25 +0000 (17:58 +0800)]
Add the socket server remote_address

remote_address is not saved.
The current patch fix it.

Change-Id: I11a08bab25f2d4c2d5ad4db8df7bfb5fb69f2b8a
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoAdd the condition of socket get data 59/27159/1
wu zheng [Fri, 5 Sep 2014 09:43:25 +0000 (17:43 +0800)]
Add the condition of socket get data

socket get data need the G_IO_IN condition.

BTW, remove some unuseful code.

Change-Id: I6bdabc21e86b22ae0799e86695c02332bc3b3180
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoMerge "ADD CAPI: Gatt discover characteristic Gatt Set/unset changed callback Gatt...
wu zheng [Fri, 5 Sep 2014 05:18:41 +0000 (22:18 -0700)]
Merge "ADD CAPI: Gatt discover characteristic Gatt Set/unset changed callback Gatt get characteristic declaration Gatt write characteristic value Gatt read characteristic value Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>" into devel

9 years agoFix the crash of socket disconnection 76/27076/1
wu zheng [Thu, 4 Sep 2014 06:59:42 +0000 (14:59 +0800)]
Fix the crash of socket disconnection

When socket disconnection, channel is needed to report fd handle.
However, channel has been removed.
It results in the crash and fix it.

BTW, remove unuseful source code.

Change-Id: I8cfd02e7fd6dddd6e5540dc18acbc22f3031ece4
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoADD CAPI: 50/26850/2
Gu Chaojie [Wed, 3 Sep 2014 11:43:29 +0000 (19:43 +0800)]
ADD CAPI:
Gatt discover characteristic
Gatt Set/unset changed callback
Gatt get characteristic declaration
Gatt write characteristic value
Gatt read characteristic value
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
Change-Id: Ief7feee73f15e2e94840e105f1ef9fd1cb0867ec

9 years agoFix assertion 'G_IS_OBJECT (object)' failed issue 42/26542/1
wu zheng [Tue, 26 Aug 2014 07:31:50 +0000 (15:31 +0800)]
Fix assertion 'G_IS_OBJECT (object)' failed issue

Proxy comes from interface
g_object_unref will result in that G_IS_OBJECT (object)' failed.

Therefore, g_object_unref only unref once.

Change-Id: Ia8b94d3ebd69143b50b5bf7cb4b0f5f319afd0a9
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoRemove media service in bluetooth service 41/26541/1
wu zheng [Tue, 26 Aug 2014 07:16:10 +0000 (15:16 +0800)]
Remove media service in bluetooth service

Media service is not necessary to implement in bluetooth service.
If so, media service only is registered once.
It is not right, therefore, fix it.

Change-Id: I0449c06432b055cc306f60609ee49e5f77ff1038
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoFix the duration = NULL and it results in crash 88/26488/1
wu zheng [Mon, 25 Aug 2014 08:09:50 +0000 (16:09 +0800)]
Fix the duration = NULL and it results in crash

If duration = NULL, it will result in the crash.

Therefore, fix it.

Change-Id: I7062b78e5f6e83dfd9f34c6719db87b7ca522dae
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoGet the related devices properties after devices destory 84/26484/1
wu zheng [Thu, 21 Aug 2014 10:54:24 +0000 (18:54 +0800)]
Get the related devices properties after devices destory

After destory device, the related properties can't get.
Therefore, device properties need to be saved in device struct.

Change-Id: I114de42f2fa1310d6a316c89dc2d25cfcffdc829
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoFix the ext agent can't register issue 79/26379/1
wu zheng [Thu, 21 Aug 2014 10:49:35 +0000 (18:49 +0800)]
Fix the ext agent can't register issue

Agent only is register in the same app.
After modify request name, agent can be register by ext app.

Change-Id: I6afba01a3782b4b52737d758e166fe0e96821d48
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoSet socket role in bt_socket_create_rfcomm 73/26373/1
wu zheng [Thu, 21 Aug 2014 09:45:39 +0000 (17:45 +0800)]
Set socket role in bt_socket_create_rfcomm

Only server role uses bt_socket_create_rfcomm
Therefore, we need to set socket role in bt_socket_create_rfcomm

Change-Id: Iba4d852aaca20fadeb2388b8477a0ed86d3058b3
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoFix the issue of adapter->device_head == NULL 72/26372/1
wu zheng [Thu, 21 Aug 2014 09:38:59 +0000 (17:38 +0800)]
Fix the issue of adapter->device_head == NULL

adapter->device_head maybe is null.
Therefore, it need to be checked before using it.

Change-Id: I906e2e8f052c92b5ef51ae2f64c1e8e46e02b249
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoCAPI/Spp: Only unref Spp channel if socket is connected 26/26226/1
Corentin Lecouvey [Tue, 19 Aug 2014 09:15:56 +0000 (11:15 +0200)]
CAPI/Spp: Only unref Spp channel if socket is connected

Spp channel is created at socket connection time, so if socket is created
but not connected , g_io_channel_shutdown() should not be called with a null channel.
Otherwise we get this glib error :
GLib-CRITICAL **: g_io_channel_shutdown: assertion `channel != NULL' failed

Change-Id: Ib013c42f3d9518945a4aba8b77922795795c3403
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoMerge "support 64 bits arch build" into devel
wu zheng [Tue, 12 Aug 2014 08:23:21 +0000 (01:23 -0700)]
Merge "support 64 bits arch build" into devel

9 years agoClean up codes 13/25613/1
Wu Jiangbo [Wed, 6 Aug 2014 07:52:13 +0000 (15:52 +0800)]
Clean up codes

Remove independent header file from bluez-lib.

Change-Id: I1dd196612adedb104227b2fa3b379ac6e6b13756
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agosupport 64 bits arch build 19/23619/3
Corentin Lecouvey [Mon, 30 Jun 2014 09:34:47 +0000 (11:34 +0200)]
support 64 bits arch build

Change-Id: I56fead9ae4880b0abca16adfd0d2548ffbb7c701
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
9 years agoAdd CAPI: 50/25050/1
Gu Chaojie [Mon, 28 Jul 2014 07:30:37 +0000 (15:30 +0800)]
Add CAPI:
Gatt get primary services
Gatt get service uuid/includes
Gatt clone/destroy attribute handle

Change-Id: Ib214e605313ad2777104cedf50b9627d334e9887
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
9 years agoSet up Gatt DBus Hierarchy when LE device connected 37/24837/2
Gu Chaojie [Thu, 24 Jul 2014 03:27:12 +0000 (11:27 +0800)]
Set up Gatt DBus Hierarchy when LE device connected

Change-Id: Ib1e850a0eee6163c50c5de769a7ec69c73b95b22
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
9 years agoCAPI/NAP: unset nap function check the right callback 42/24742/1
Wu Jiangbo [Mon, 21 Jul 2014 06:00:23 +0000 (14:00 +0800)]
CAPI/NAP: unset nap function check the right callback

Change-Id: I5ccaa3ea59997233890c66a7b55fc2ab443ec5e7
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoAdd the scan timeout in bluetooth capi 94/24294/1
Wu Zheng [Thu, 10 Jul 2014 03:26:01 +0000 (11:26 +0800)]
Add the scan timeout in bluetooth capi

According to the design of Bluetooth-Frwk,
start scan need to stop automatically.

Change-Id: I73f65d101330d7ce919ba552926fb420d87d3eb8
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoFix the media crash issue 21/24221/1
Wu Zheng [Wed, 9 Jul 2014 03:29:02 +0000 (11:29 +0800)]
Fix the media crash issue

unregisterplay should be invoked by sync.
unregisterplay doesn't need to be done after invoked.

Change-Id: I24c228ecfada5226ea01fecc9c88a6cc548648f1
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoCAPI/Discocvery: Unset discovery always remove the callback 87/23787/2
Wu Jiangbo [Thu, 3 Jul 2014 04:48:01 +0000 (12:48 +0800)]
CAPI/Discocvery: Unset discovery always remove the callback

Change-Id: I1410221796af689a0450e3538b99e5acf3242a0e
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoget connected fd by socket accept 50/23650/1
Gu Chaojie [Tue, 1 Jul 2014 06:02:42 +0000 (14:02 +0800)]
get connected fd by socket accept

Change-Id: Ib9ea0aea2799b28ca6a15d5ceb0955b56c9b1ea5
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
9 years agoCAPI/Spp: Add fd number to support multi-spp context 32/23532/1
Wu Jiangbo [Fri, 27 Jun 2014 08:31:55 +0000 (16:31 +0800)]
CAPI/Spp: Add fd number to support multi-spp context

Change-Id: I29c51da87c274fe652316f869cb118278d72159e
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoAdd const to match gdbus interfaces 12/23412/1
wu zheng [Wed, 25 Jun 2014 07:19:29 +0000 (03:19 -0400)]
Add const to match gdbus interfaces

Change-Id: Ica54e4a6f5e09377e7e01435b2756c70c7154699
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoreplace dbus cache property method 09/23409/2
Gu Chaojie [Wed, 25 Jun 2014 06:23:15 +0000 (14:23 +0800)]
replace dbus cache property method

Change-Id: Ib223243a414d15c77ececb535d573a12998f0d8c
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
9 years agoSet the right hdp proxy and make bluez struct private 72/23372/1
wu zheng [Tue, 24 Jun 2014 09:40:18 +0000 (05:40 -0400)]
Set the right hdp proxy and make bluez struct private

hdp proxy is not right and it is modified.
bluez struct should be private. Therefore, modify it.

Change-Id: I717a6cbc619b76d5d311ac351f4128c53a8cef3d
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoTest opp server register by conn request 49/23249/2
wu zheng [Fri, 20 Jun 2014 11:06:24 +0000 (07:06 -0400)]
Test opp server register by conn request

Change-Id: I8ebb24d5328a1b687fb83386f6172f0925b3d7f5
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoImplement opp server register by conn request function 48/23248/1
wu zheng [Fri, 20 Jun 2014 09:55:25 +0000 (05:55 -0400)]
Implement opp server register by conn request function

The function matches bt_opp_server_initialize in Bluez5.X.
No any auth service signale in the process of opp server.
Therefore, the same implementation with bt_opp_server_initialize.

Change-Id: I3922424c6eb1f2bded230a5055bdc84fd0a648a4
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
9 years agoadd hid connect status in connected profile 87/23187/2
Gu Chaojie [Thu, 19 Jun 2014 05:46:24 +0000 (13:46 +0800)]
add hid connect status in connected profile

Change-Id: Ife75ea9d55eb8807dbb721cb2eec8ffb07473a1c
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
9 years agoCAPI: Implement NAP set connection callback 85/23185/2
Gu Chaojie [Thu, 19 Jun 2014 06:53:13 +0000 (14:53 +0800)]
CAPI: Implement NAP set connection callback

Change-Id: Ic6fd9a7ee7733a15b373536c76e89a0739b8ca99
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
9 years agoCAPI/OPP: Implenment OPP Client CAPIs 32/23032/2
Wu Jiangbo [Mon, 16 Jun 2014 09:02:21 +0000 (17:02 +0800)]
CAPI/OPP: Implenment OPP Client CAPIs

Change-Id: Ic264ec66b7cb9484d884984b00a1d4b86fc8203e
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoObex/Session: Add function obex_session_set_watch() 31/23031/1
Wu Jiangbo [Fri, 13 Jun 2014 12:34:09 +0000 (20:34 +0800)]
Obex/Session: Add function obex_session_set_watch()

Change-Id: I8b6fc98d7bbcd6b053578c2d4e746dfc46017a2d
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoCAPI/Agent: Using async function to register agent 30/23030/1
Wu Jiangbo [Mon, 16 Jun 2014 09:44:49 +0000 (17:44 +0800)]
CAPI/Agent: Using async function to register agent

Change-Id: Ie3023feb663b02ae92678601269f66c91504cfef
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoCAPI/OPP: Implement function bt_opp_server_set_destination() 29/23029/1
Wu Jiangbo [Fri, 13 Jun 2014 08:49:24 +0000 (16:49 +0800)]
CAPI/OPP: Implement function bt_opp_server_set_destination()

Change-Id: Ie5c2b2c643e631101c4567397ca8faddb02f899d
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoCAPI/OPP: Implement function bt_opp_server_cancel_transfer() 28/23028/1
Wu Jiangbo [Fri, 13 Jun 2014 07:36:40 +0000 (15:36 +0800)]
CAPI/OPP: Implement function bt_opp_server_cancel_transfer()

Change-Id: I13ced45bcc20239f2ba77be447d661bc158e94f0
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoCAPI/OPP: Implement function bt_server_accept/reject() 27/23027/1
Wu Jiangbo [Fri, 13 Jun 2014 07:32:32 +0000 (15:32 +0800)]
CAPI/OPP: Implement function bt_server_accept/reject()

Change-Id: I47d68b9d47bfa945b0f4bfb395287f5b7f0ce032
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
9 years agoCAPI/OPP: Implement function bt_opp_server_initialize/deinitialize() 26/23026/1
Wu Jiangbo [Thu, 12 Jun 2014 09:07:13 +0000 (17:07 +0800)]
CAPI/OPP: Implement function bt_opp_server_initialize/deinitialize()

Change-Id: I35a681cdb601868e58ca97fd244dc9804f270e52
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoImplement bt_device_foreach_connected_profiles function 50/22950/1
wu zheng [Fri, 13 Jun 2014 11:33:33 +0000 (07:33 -0400)]
Implement bt_device_foreach_connected_profiles function

Change-Id: I0714158cf4112a22902ccdc227bcdc6cc57d19c1
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoFix the issue of media agent can't be registered 40/22940/1
wu zheng [Fri, 13 Jun 2014 09:43:21 +0000 (05:43 -0400)]
Fix the issue of media agent can't be registered

request_name_on_dbus can't get name two times.
Therefore, add the patch.

Change-Id: I9929524c9289044e7f3c14b09f5f63166ea27675
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoModify the avrcp and implement avrcp register function 37/22937/1
wu zheng [Fri, 13 Jun 2014 09:17:56 +0000 (05:17 -0400)]
Modify the avrcp and implement avrcp register function

Change-Id: Id1cf35cf43b1d78dd61bf9bbecb730c4473ed031
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoCAPI for hid host init and deinit 93/22793/1
Gu Chaojie [Thu, 12 Jun 2014 06:26:11 +0000 (14:26 +0800)]
CAPI for hid host init and deinit

Change-Id: I9871b5da7390ecdcca6f610febe2addef35c7b8c
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
10 years agoCAPI/Test: Add CAPI Socket test commands 17/22717/1
Wu Jiangbo [Tue, 10 Jun 2014 11:11:17 +0000 (19:11 +0800)]
CAPI/Test: Add CAPI Socket test commands

Change-Id: I7af37f17aa77247e3a95885a9764a5e53c548741
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implemnet function bt_socket_set/unset_connection_state_changed_cb() 16/22716/1
Wu Jiangbo [Tue, 10 Jun 2014 08:10:33 +0000 (16:10 +0800)]
CAPI/Socket: Implemnet function bt_socket_set/unset_connection_state_changed_cb()

Change-Id: Ie2666c3b25ad4b4d46691b73180b3702084c44d2
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implement function bt_socket_set/unset_connection_requested_cb() 15/22715/1
Wu Jiangbo [Tue, 10 Jun 2014 07:05:51 +0000 (15:05 +0800)]
CAPI/Socket: Implement function bt_socket_set/unset_connection_requested_cb()

Change-Id: I021a23fdd29a7bf4b8f4e2dfdd3052aa7934992f
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implement function bt_socket_set/unset_data_received_cb() 14/22714/1
Wu Jiangbo [Tue, 10 Jun 2014 05:12:13 +0000 (13:12 +0800)]
CAPI/Socket: Implement function bt_socket_set/unset_data_received_cb()

Change-Id: I02999cb10b89b4ae563ddf37ff1136dc92c9d468
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implement function bt_socket_send_data() 13/22713/1
Wu Jiangbo [Tue, 10 Jun 2014 05:07:34 +0000 (13:07 +0800)]
CAPI/Socket: Implement function bt_socket_send_data()

Change-Id: I05bb84b7a7c6c64e71c5141231006a59c5e675cb
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implement function bt_socket_reject() 12/22712/1
Wu Jiangbo [Tue, 10 Jun 2014 03:47:21 +0000 (11:47 +0800)]
CAPI/Socket: Implement function bt_socket_reject()

Change-Id: Ia1e259719e78ad1a6885f977a608fca280b7fbaf
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implement function bt_socket_accept 11/22711/1
Wu Jiangbo [Tue, 10 Jun 2014 03:44:34 +0000 (11:44 +0800)]
CAPI/Socket: Implement function bt_socket_accept

Change-Id: I40ee627e7501cb4d497f156ddddfd696e004a4e7
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Implement function bt_socket_listen_and_accept_rfcomm 10/22710/1
Wu Jiangbo [Tue, 10 Jun 2014 03:38:01 +0000 (11:38 +0800)]
CAPI/Socket: Implement function bt_socket_listen_and_accept_rfcomm

Change-Id: Iedd638a7c5464be5c5624427d72a26d8f91de4c5
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Add function bt_socket_listen 09/22709/1
Wu Jiangbo [Tue, 10 Jun 2014 03:33:01 +0000 (11:33 +0800)]
CAPI/Socket: Add function bt_socket_listen

Change-Id: I2861b67c6f04ac5e5e6943f4c3f7e6422368a529
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Add function bt_socket_connect/disconnect_rfcomm 08/22708/1
Wu Jiangbo [Thu, 5 Jun 2014 11:34:23 +0000 (19:34 +0800)]
CAPI/Socket: Add function bt_socket_connect/disconnect_rfcomm

Change-Id: I88ef40923ec034b13a55a0c6f4d612fe7e1bbf9c
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Socket: Add function bt_socket_create_rfcomm/bt_socket_destroy_rfcomm 07/22707/1
Wu Jiangbo [Thu, 5 Jun 2014 10:58:33 +0000 (18:58 +0800)]
CAPI/Socket: Add function bt_socket_create_rfcomm/bt_socket_destroy_rfcomm

Change-Id: I90feafae3ffdec79c4cd3c9254531fdc3acda36e
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Device: Fix unset device callback issue. 04/21604/1
Wu Jiangbo [Fri, 23 May 2014 09:22:13 +0000 (17:22 +0800)]
CAPI/Device: Fix unset device callback issue.

Change-Id: Ic74d38b10ff3c561fa1cd50768f63b941cd4a848
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoconnect le device is ok 56/20356/2
Gu Chaojie [Fri, 9 May 2014 08:25:26 +0000 (16:25 +0800)]
connect le device is ok

Change-Id: I8555f67200c85af159ec0871d3aaf2201a8898e3
Signed-off-by: Gu Chaojie <chao.jie.gu@intel.com>
10 years agoImplement the avrcp functions that Bluez 5.x doesn't support 77/19977/1
Wu Zheng [Thu, 24 Apr 2014 05:58:23 +0000 (01:58 -0400)]
Implement the avrcp functions that Bluez 5.x doesn't support

Bluez 5.x doesn't support the avrcp functions.
Bluetooth Framework doesn't implement them too.
Bluetooth Framework just provides the empty functions for them.

Change-Id: I71c51dff82053076792c423fecf05a25a2a515b7
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoImplement HDP callback features 46/19946/1
Wu Zheng [Wed, 23 Apr 2014 10:07:18 +0000 (06:07 -0400)]
Implement HDP callback features

Add the callback capi test functions
Modify HDP callback features

Change-Id: Ida2aeda14f4238f25710ade4f764f74f9a6dd1fd
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoAdd the HDP activate/deactive test case 03/19903/1
Wu Zheng [Wed, 23 Apr 2014 03:11:31 +0000 (23:11 -0400)]
Add the HDP activate/deactive test case

Change-Id: I2f4bfa8f757d1c538eaef2848ee52efa6b114711
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoImplement the HDP signal event features 35/19835/1
Wu Zheng [Mon, 21 Apr 2014 10:31:44 +0000 (06:31 -0400)]
Implement the HDP signal event features

connect/disconnect signal event is done.
HDP data receiving is done.

Change-Id: If2341a7ca0639d381ffa32a794885099b3c3cf60
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoImplement the HDP invoked CAPIs features 34/19834/1
Wu Zheng [Mon, 21 Apr 2014 09:28:55 +0000 (05:28 -0400)]
Implement the HDP invoked CAPIs features

Implement the activate/deactive/conn/disconn/send HDP features.

Change-Id: Id20eddf28e6ccb195f6dfbce1ddb840777af0416
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoImplement the HDP callback CAPIs 33/19833/1
Wu Zheng [Mon, 21 Apr 2014 07:47:37 +0000 (03:47 -0400)]
Implement the HDP callback CAPIs

Change-Id: I9eb6679e40f991c13f4e3e43b9998fad9cce1229
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoImplement the HDP related CAPIs 32/19832/1
Wu Zheng [Mon, 21 Apr 2014 06:53:47 +0000 (02:53 -0400)]
Implement the HDP related CAPIs

Implement the activate/deactive/conn/disconn/send HDP CAPIs.
At the same time, implement the common HDP related funcations.

Change-Id: I3fd6407500124ddaf200824d17603db8907dd44e
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoAdd hdp api related interfaces functions 31/19831/1
Wu Zheng [Mon, 21 Apr 2014 06:11:31 +0000 (02:11 -0400)]
Add hdp api related interfaces functions

Change-Id: Ib04bbb70b4bfea00753274997a602f04c3818d96
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
10 years agoCAPI/Deivce: Add cancel pairing operation 09/19509/1
Wu Jiangbo [Mon, 14 Apr 2014 07:17:09 +0000 (15:17 +0800)]
CAPI/Deivce: Add cancel pairing operation

Change-Id: I04827f7899e4826047ed5e9c7485d095e9d02b30
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Device: Implement bt_device_cancel_service_search() 08/19308/3
Wu Jiangbo [Mon, 14 Apr 2014 07:12:10 +0000 (15:12 +0800)]
CAPI/Device: Implement bt_device_cancel_service_search()

Change-Id: Ibb4c3967661aa6e17eb2e77abd6f8dfd42baa4a5
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Device: Implement bt_device_start_service_search() 07/19307/3
Wu Jiangbo [Mon, 14 Apr 2014 07:11:39 +0000 (15:11 +0800)]
CAPI/Device: Implement bt_device_start_service_search()

Change-Id: Ic7c7de36578fdd3394fdcf3f6012d3bf2f93c446
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Device: Implement set/unset_device_service_serach_callback() 06/19306/1
Wu Jiangbo [Thu, 10 Apr 2014 03:13:32 +0000 (11:13 +0800)]
CAPI/Device: Implement set/unset_device_service_serach_callback()

Change-Id: I7937590c4fb95d8ff277ee04df186e644dce9c70
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Adapter: Implement function bt_adapter_unset_visibility_mode_changed_cb() 37/19237/1
Wu Jiangbo [Wed, 9 Apr 2014 07:13:01 +0000 (15:13 +0800)]
CAPI/Adapter: Implement function bt_adapter_unset_visibility_mode_changed_cb()

Change-Id: Ia32dc362bd7720c5c4279cac590ca02e7ff0c3ef
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Adapter: Implement function bt_adapter_set_visibility_mode_changed_cb() 36/19236/1
Wu Jiangbo [Wed, 9 Apr 2014 06:39:32 +0000 (14:39 +0800)]
CAPI/Adapter: Implement function bt_adapter_set_visibility_mode_changed_cb()

Change-Id: I31332c692cc4241ceab3fd09b3569b2768af2691
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Adapter: Implement function bt_adapter_unset_visibility_duration_changed_cb() 35/19235/1
Wu Jiangbo [Wed, 9 Apr 2014 05:29:18 +0000 (13:29 +0800)]
CAPI/Adapter: Implement function bt_adapter_unset_visibility_duration_changed_cb()

Change-Id: Icb01ee58f10a6ab3fbab33f6c6a26b680dc4a2bf
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/Adapter: Implement function bt_adapter_set_visibility_duration_changed_cb() 34/19234/1
Wu Jiangbo [Wed, 9 Apr 2014 03:17:39 +0000 (11:17 +0800)]
CAPI/Adapter: Implement function bt_adapter_set_visibility_duration_changed_cb()

Change-Id: I33917138a5f95c8af9ff3901efefb85a2906065f
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
10 years agoCAPI/NAP: Implement function bt_nap_deactivate() 75/19175/1
Wu Jiangbo [Tue, 8 Apr 2014 08:59:09 +0000 (16:59 +0800)]
CAPI/NAP: Implement function bt_nap_deactivate()

Change-Id: I23e26d317449125d54c0bf24571b020d8e65e1bf
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>