platform/core/api/bluetooth.git
5 years agoMerge "Add the return value for bt_pbap_client APIs" into tizen accepted/tizen/unified/20190611.050046 submit/tizen/20190610.063128
Pyun DoHyun [Mon, 10 Jun 2019 06:28:46 +0000 (06:28 +0000)]
Merge "Add the return value for bt_pbap_client APIs" into tizen

5 years agoSupport for internal API for bonding with incoming parameter 01/206901/9
Sudipto Bal [Mon, 3 Jun 2019 11:35:31 +0000 (17:05 +0530)]
Support for internal API for bonding with incoming parameter

Change-Id: Ibe3e9010f1244395e81c85f1bc1d32ed429ae142
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
5 years agoAdd the return value for bt_pbap_client APIs 99/207099/1
DoHyun Pyun [Thu, 30 May 2019 04:42:40 +0000 (13:42 +0900)]
Add the return value for bt_pbap_client APIs

The pbap client APIs can return BT_ERROR_NOW_IN_PROGRESS,
so we should mention that error type in the document.

Change-Id: Ife24d5b2b5fb63e097d822fcd0522244466dc983
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdd the return value for bt_gatt_client_get_att_mtu API 81/206781/1
DoHyun Pyun [Mon, 27 May 2019 00:54:34 +0000 (09:54 +0900)]
Add the return value for bt_gatt_client_get_att_mtu API

The API can return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED, so
we should mention that error type in the document.

Change-Id: I51d73b97c33d8502116679a911fc3e437b2ef79f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge "Add the prevent logic for the abnormal manufacture data" into tizen
Pyun DoHyun [Fri, 17 May 2019 00:33:22 +0000 (00:33 +0000)]
Merge "Add the prevent logic for the abnormal manufacture data" into tizen

5 years agoAdd the prevent logic for the abnormal manufacture data 77/206277/2
DoHyun Pyun [Thu, 16 May 2019 04:11:28 +0000 (13:11 +0900)]
Add the prevent logic for the abnormal manufacture data

Change-Id: I3c6b976121a634705ed96477b8acdc12c9f63d7d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoExclude unsupported functions in coverage 78/206278/1
Wootak Jung [Thu, 16 May 2019 04:08:10 +0000 (13:08 +0900)]
Exclude unsupported functions in coverage

hid, opp features are disabled on wearable.

Change-Id: I49c75168e2559030650a9ad695e4e627fa56c12d

5 years agoRemove unnecessary dependency 37/203837/1
DoHyun Pyun [Thu, 18 Apr 2019 05:15:19 +0000 (14:15 +0900)]
Remove unnecessary dependency

db-util was used for TV product in previously. but db-util is
not used in now.

Change-Id: I2d0c6235a6437b2f500ca3b19caa19486215a035
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[bt_unit_test] Add parameters for le_set_data_length 52/203352/1 accepted/tizen/unified/20190416.071433 submit/tizen/20190415.001851
Deokhyun Kim [Fri, 12 Apr 2019 04:30:38 +0000 (13:30 +0900)]
[bt_unit_test] Add parameters for le_set_data_length

  test_input_callback:5823() Select the function again
  test_set_params:3754() Input max octets (27 ~ 251)
  test_set_params:3757() Input max time (328 ~ 2120)

Change-Id: I0034e45e1da9629045bf962e9b40640430ee39d0
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoModify the privilege level of OOB data getter APIs 30/200330/2 accepted/tizen/unified/20190312.113019 submit/tizen/20190311.071331
DoHyun Pyun [Thu, 21 Feb 2019 23:10:32 +0000 (08:10 +0900)]
Modify the privilege level of OOB data getter APIs

Application try to bond using oob data without user confirmation.
Because of this, need to give the proper privilege for OOB data
getter APIs

Change-Id: I5af69c6f57f524bc5a19aa4381ca45103330a74a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoExclude coverage for internal APIs 88/199588/1
Wootak Jung [Wed, 13 Feb 2019 06:48:25 +0000 (15:48 +0900)]
Exclude coverage for internal APIs

Change-Id: I365d83a0a761e0694004016e47fc14f0ac3e3ab2

5 years agoUse the correct URL in API reference 85/199285/1 accepted/tizen/unified/20190212.084052 submit/tizen/20190208.071436 submit/tizen/20190211.065813 submit/tizen/20190211.100729
DoHyun Pyun [Fri, 8 Feb 2019 07:06:52 +0000 (16:06 +0900)]
Use the correct URL in API reference

Change-Id: I7f85ad99dd0c91136807ab794b983c6908825b3a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge "Print out Device Disconnect Reason" into tizen
Pyun DoHyun [Thu, 7 Feb 2019 23:36:12 +0000 (23:36 +0000)]
Merge "Print out Device Disconnect Reason" into tizen

5 years agoPrint out Device Disconnect Reason 28/198828/2
Anupam Roy [Wed, 30 Jan 2019 06:41:28 +0000 (12:11 +0530)]
Print out Device Disconnect Reason

Change-Id: I048a5db2b231c91decd43e079a0e91ce7488f2cc
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
5 years agoAdding support in avrcp to control multiple a2dp source 66/198566/3
Avichal [Fri, 25 Jan 2019 12:14:18 +0000 (17:44 +0530)]
Adding support in avrcp to control multiple a2dp source

Modifying functionalility of ARCP controller

Change-Id: Icdac34e77ae6c93aafc7cf6844d4acb787e43a1a

5 years agoModify the supported check logic for common gatt functions 02/198902/1 accepted/tizen/unified/20190201.061300 submit/tizen/20190131.014259
DoHyun Pyun [Thu, 31 Jan 2019 02:24:35 +0000 (11:24 +0900)]
Modify the supported check logic for common gatt functions

Change-Id: I9e0ca1fa78a0439f6740d219ed16944f0d0f52dd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoCorrect the feature check logic for GATT APIs 98/198898/1
DoHyun Pyun [Wed, 30 Jan 2019 07:40:31 +0000 (16:40 +0900)]
Correct the feature check logic for GATT APIs

Change-Id: Ib6a6353ae5ee933f98a9aaea60b53336033985fd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge "Reset the server instance in the deinitialize function" into tizen accepted/tizen/unified/20190129.064351 submit/tizen/20190129.000858
Pyun DoHyun [Tue, 29 Jan 2019 00:09:47 +0000 (00:09 +0000)]
Merge "Reset the server instance in the deinitialize function" into tizen

5 years agoReset the server instance in the deinitialize function 37/198637/1
DoHyun Pyun [Mon, 28 Jan 2019 08:28:23 +0000 (17:28 +0900)]
Reset the server instance in the deinitialize function

Change-Id: I8df1bdabe10b70b608a2fc6666105fa4d21f3a81
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFixed gatt notification changed callback 52/198452/1
Amit Purwar [Thu, 24 Jan 2019 13:24:43 +0000 (18:54 +0530)]
Fixed gatt notification changed callback

Change-Id: I8e9041c56bbfe740c2502a2c3d9c216d7ddf31ca
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoFixed string comparision logic for gatt device address 39/197739/1 accepted/tizen/unified/20190128.061625 submit/tizen/20190123.050251 submit/tizen/20190128.005753
Amit Purwar [Wed, 16 Jan 2019 04:59:02 +0000 (10:29 +0530)]
Fixed string comparision logic for gatt device address

Change-Id: If1fdb278e8e3c20bdbf2a6b3ee7966221bc24ea5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoGenerate the progress event before completing the transfer 97/197397/1 accepted/tizen/unified/20190115.055943 submit/tizen/20190111.043317 submit/tizen/20190114.060943
DoHyun Pyun [Fri, 11 Jan 2019 04:02:57 +0000 (13:02 +0900)]
Generate the progress event before completing the transfer

Change-Id: I6188c23b49add7a3f5c425c32e2c51c372dd4a0f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdd new internal API to disconnect device 87/197187/1
Deokhyun Kim [Thu, 10 Jan 2019 07:19:41 +0000 (16:19 +0900)]
Add new internal API to disconnect device

  - int bt_device_disconnect(const char *remote_address)

Change-Id: Ic5cfbff9428beb6320887e94e967076d760bf2c0
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoFix svace issue(27475) 64/197164/1
Deokhyun Kim [Thu, 10 Jan 2019 05:09:34 +0000 (14:09 +0900)]
Fix svace issue(27475)

Change-Id: Ia8d52caaa687ed9cc21e0a9cdc43681b717a7656
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoFix the typo error in the API reference 00/197000/2
DoHyun Pyun [Tue, 8 Jan 2019 23:55:51 +0000 (08:55 +0900)]
Fix the typo error in the API reference

Change-Id: I2cc9b0adb21984ba3ed81071880e750597a3be39
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix doxygen module for bt_gatt_h type 26/196926/1 accepted/tizen/unified/20190109.060037 submit/tizen/20190108.053122
Semun Lee [Tue, 8 Jan 2019 04:22:11 +0000 (13:22 +0900)]
Fix doxygen module for bt_gatt_h type

Change-Id: I0c5761eee6c2292278edfb6fbab48abb8336038f
Signed-off-by: Semun Lee <semun.lee@samsung.com>
5 years agoFix missing vcard response data 45/196545/1
Wootak Jung [Wed, 2 Jan 2019 06:30:30 +0000 (15:30 +0900)]
Fix missing vcard response data

Change-Id: Id4a3626271eabe522d1782e2744b00349d6a36fe

5 years agoFix dlog format error 95/195695/2 accepted/tizen/unified/20181218.063050 submit/tizen/20181217.091427
DoHyun Pyun [Mon, 17 Dec 2018 09:06:03 +0000 (18:06 +0900)]
Fix dlog format error

Change-Id: Ia1120aaa47212e56f224c1596d53e32a846ca011
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix profile check logic to distinguish ivi and iot 00/191900/3 accepted/tizen/unified/20181107.081853 accepted/tizen/unified/20181108.074601 submit/tizen/20181105.232950 submit/tizen/20181106.081159 submit/tizen/20181108.005451
Wootak Jung [Thu, 25 Oct 2018 06:14:05 +0000 (15:14 +0900)]
Fix profile check logic to distinguish ivi and iot

Change-Id: I64f811bfe5211d4bdd22c724e3c4768d874ad426

6 years agoFix the wrong matched error for "In progress" 90/190290/1 accepted/tizen/5.0/unified/20181102.014528 accepted/tizen/unified/20181002.093341 submit/tizen/20180930.234221 submit/tizen/20181001.232440 submit/tizen_5.0/20181101.000002
DoHyun Pyun [Mon, 1 Oct 2018 00:19:53 +0000 (09:19 +0900)]
Fix the wrong matched error for "In progress"

Change-Id: I9203f4cc7e5ce9e32bb0f8ccbe0191c36a2fc7e3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years ago[BLE-HR] Verification Fixes 01/189901/1 accepted/tizen/unified/20180927.073750 submit/tizen/20180926.233914
Abhishek Chandra [Fri, 21 Sep 2018 11:18:51 +0000 (16:48 +0530)]
[BLE-HR] Verification Fixes

- Easy understandble string name changes
and cleanup in bt_unit_test.
- State change event fix.
- HR Notification sending/recieving fix.
- BSL read response fix .

Change-Id: I061a24861f408c69efaca39da1f1c0954877b319
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoAdd the missed user_data parameter 74/189574/1 accepted/tizen/unified/20180919.141916 submit/tizen/20180919.001852
DoHyun Pyun [Wed, 19 Sep 2018 01:12:21 +0000 (10:12 +0900)]
Add the missed user_data parameter

Change-Id: I623080af14c78d941c09d5a5482de0a5a96bbcdf
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoPrevent Issue fixes 28/189528/2
Abhishek Chandra [Tue, 18 Sep 2018 09:45:32 +0000 (15:15 +0530)]
Prevent Issue fixes

Prevent Issue fixes :
- 1026365
- 1026068
- 109410

Change-Id: Iadeeeb303ee008387ecb5299c08854b53ab90d7a
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years ago[Sensor] API merged ,removed and code refactoring. 34/189234/2 accepted/tizen/unified/20180918.062800 submit/tizen/20180916.233618 submit/tizen/20180917.042059
Abhishek Chandra [Fri, 14 Sep 2018 11:21:43 +0000 (16:51 +0530)]
[Sensor] API merged ,removed and code refactoring.

Changes are:
1) Functionality bt_hrp_sensor_update_heartrate_value
and bt_hrp_sensor_set_heartrate_value  are merged to
bt_hrp_sensor_set_heartrate_value .
2) removed bt_hrp_sensor_advertising_state_changed_cb
as this is not needed for application.
3) functionality of bt_hrp_sensor_start is merged
in bt_hrp_sensor_create .
4) functionality of bt_hrp_sensor_stop is merged
in bt_hrp_sensor_distroy.
5) Connected collector list in the sensor is removed ,
as sensor side connected is already managed by Gatt
server , so it was redundant and hence removed .
6) bt_hrp_sensor_unset_sensor_notification_state_change_cb
is removed, as is not needed by application .

Change-Id: I93ba307a9a9f06aa4a80a77571b502df61ffdd95
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoReduce the cyclomatic complexity 25/189025/4 accepted/tizen/unified/20180914.073134 submit/tizen/20180913.053639
DoHyun Pyun [Thu, 13 Sep 2018 00:23:55 +0000 (09:23 +0900)]
Reduce the cyclomatic complexity

The profile check logic is redundent, because the event callback
will not be invoked in those profiles. And replace some functions to
the mapping table.

Change-Id: I8c347ec66ffac6c4c749bebce54eb6d36a57145b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoMerge "Modify the section name for BT 5.0 API" into tizen accepted/tizen/unified/20180911.055343 submit/tizen/20180910.080716
DoHyun Pyun [Mon, 10 Sep 2018 08:06:52 +0000 (08:06 +0000)]
Merge "Modify the section name for BT 5.0 API" into tizen

6 years agoModify the section name for BT 5.0 API 74/188774/1
DoHyun Pyun [Mon, 10 Sep 2018 07:18:31 +0000 (16:18 +0900)]
Modify the section name for BT 5.0 API

Change-Id: I4f93087e6feeadc0b211ed78a1cf2f661d73def5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoModify HRP APIs for testcase 44/188744/4
DoHyun Pyun [Mon, 10 Sep 2018 03:57:28 +0000 (12:57 +0900)]
Modify HRP APIs for testcase

Change-Id: Ib99455bf2caf8cd183c386c19be3e03fc8d75331
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUse strtoul instead of strtol to prevent overflow. 28/188728/1
Wootak Jung [Thu, 6 Sep 2018 01:41:25 +0000 (10:41 +0900)]
Use strtoul instead of strtol to prevent overflow.

Change-Id: Icbcebc336c49c90d962d05e4e57858e103d1eb5e

6 years agoAdd HFP HF APIs on bluetooth_internal 27/188727/1
Wootak Jung [Thu, 6 Sep 2018 01:41:13 +0000 (10:41 +0900)]
Add HFP HF APIs on bluetooth_internal

int bt_hf_request_call_status_info_list(void)
int bt_hf_is_inband_ringtone_supported(bool *supported)

Change-Id: I7c0d5b38d9fd025a779b7f906d632bbb75543558

6 years agoMerge "Add bluetooth adapter LE 5.0 module in the document" into tizen accepted/tizen/unified/20180910.172014 submit/tizen/20180910.002032
DoHyun Pyun [Mon, 10 Sep 2018 00:20:01 +0000 (00:20 +0000)]
Merge "Add bluetooth adapter LE 5.0 module in the document" into tizen

6 years agoMerge "Implement BT 5.0 API's" into tizen
Pyun DoHyun [Mon, 10 Sep 2018 00:19:50 +0000 (00:19 +0000)]
Merge "Implement BT 5.0 API's" into tizen

6 years agoAdd bluetooth adapter LE 5.0 module in the document 38/186038/6
DoHyun Pyun [Tue, 7 Aug 2018 01:45:04 +0000 (10:45 +0900)]
Add bluetooth adapter LE 5.0 module in the document

Change-Id: I266042713138880eb5bea0b00e35a8c5d59daf7a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoHandling characteristics properties Indicate and Notify functionality 31/188131/2
Avichal Agarwal [Fri, 31 Aug 2018 12:45:00 +0000 (18:15 +0530)]
Handling characteristics properties Indicate and Notify functionality

A bool flag is forwarded  to bt-api to differentiate between
notify and indicate property.

Change-Id: I7a496e928ce425345555ef947293736720b7168d
Signed-off-by: Avichal Agarwal <avichal.a@samsung.com>
6 years agoAdd the inhouse APIs for AVRCP control volume up / down 77/188577/2
Wootak Jung [Thu, 30 Aug 2018 05:14:49 +0000 (14:14 +0900)]
Add the inhouse APIs for AVRCP control volume up / down

Change-Id: I798b217b70d5b1f6991c7e3f906783468108a375

6 years agoFix return value error of bt_socket_create_rfcomm_ex() 76/188576/2
Wootak Jung [Thu, 30 Aug 2018 01:28:47 +0000 (10:28 +0900)]
Fix return value error of bt_socket_create_rfcomm_ex()

Change-Id: I338eaf8bec4c46949a162b813336c397deceee06

6 years ago[HRP Collector] Notify Fixes and Code cleanup 58/188558/3
Abhishek Chandra [Thu, 6 Sep 2018 05:58:30 +0000 (11:28 +0530)]
[HRP Collector] Notify Fixes and Code cleanup

Changes related to heart rate notification and
body sensor location due to fixes in the bluetooth
framework related to notification.

Change-Id: I2b8b9935ed6958c1f75999e9d6228ae1492d6b3d
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years ago[HRP Sensor]Notify,Char changes fix 97/188297/4
Abhishek Chandra [Mon, 3 Sep 2018 12:35:46 +0000 (18:05 +0530)]
[HRP Sensor]Notify,Char changes fix

This patch is clean up and fixing of Notify heartrate
and read char for body sensor location
char change , readvalue and notify fixed
patches in BT framework.

Change-Id: Ib5e94a241bf24dd8afb5df9c8292ab6fa5e1e65f
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoremoved the unused path variable from the log 88/188288/2 accepted/tizen/unified/20180906.054459 submit/tizen/20180905.040745
Amit Purwar [Mon, 3 Sep 2018 11:41:23 +0000 (17:11 +0530)]
removed the unused path variable from the log

Change-Id: Ic31b778dc82a3fa045bdfb3166eea26624ad976c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFix memory leak in _bt_hrp_collector_bsl_read_completed_cb 70/188270/1
Taesoo Jun [Mon, 3 Sep 2018 10:52:40 +0000 (19:52 +0900)]
Fix memory leak in  _bt_hrp_collector_bsl_read_completed_cb

Change-Id: I24fbb030f404a25fa4553624fe410c52c60207b3
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
6 years agoImplement BT 5.0 API's 28/186028/10
Anupam Roy [Mon, 6 Aug 2018 21:08:52 +0000 (02:38 +0530)]
Implement BT 5.0 API's

This patch adds public API's which check whether
LE 2M PHY and LE CODED features are supported
by the adapter or not. These features are introduced
in BT 5.0 Core specification and thus would be
supported by devices enabled with BT 5.0 controller
or above.

This patch also defines new LE BT 5.0 feature defined as following
"tizen.org/feature/network.bluetooth.le.5_0"

Change-Id: I814bd512827bbb500a71e1052a6813f7c92b6bcf
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoMerge "Reduce the complexity of __bt_update_data function" into tizen accepted/tizen/unified/20180904.062826 submit/tizen/20180831.020217
DoHyun Pyun [Fri, 31 Aug 2018 02:02:02 +0000 (02:02 +0000)]
Merge "Reduce the complexity of __bt_update_data function" into tizen

6 years agoReduce the complexity of __bt_update_data function 61/188061/1
DoHyun Pyun [Fri, 31 Aug 2018 01:46:37 +0000 (10:46 +0900)]
Reduce the complexity of __bt_update_data function

Change-Id: I3c081ee337cea95f9abdb3f091fafdd5c1978b1f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoMerge "Fixed the event for Gatt char changed value" into tizen
Pyun DoHyun [Fri, 31 Aug 2018 01:09:08 +0000 (01:09 +0000)]
Merge "Fixed the event for Gatt char changed value" into tizen

6 years agoBLE Heart Rate Profile - Collector Implementation 85/186285/15 accepted/tizen/unified/20180830.061026 submit/tizen/20180829.084300
Abhishek Chandra [Tue, 14 Aug 2018 11:57:13 +0000 (17:27 +0530)]
BLE Heart Rate Profile - Collector Implementation

BLE heartrate profile collector implementation in
bluetooth is added ,following CAPI are added :
    - bt_hrp_collector_create
    - bt_hrp_collector_destory
    - bt_hrp_collector_start_scan
    - bt_hrp_collector_stop_scan
    - bt_hrp_collector_connect
    - bt_hrp_collector_disconnect
    - bt_hrp_collector_set_notification
    - bt_hrp_get_body_sensor_location
    - bt_hrp_collector_set_connection_state_changed_cb
    - bt_hrp_collector_unset_connection_state_changed_cb

Change-Id: I128900292674eb3ad8db9e65865c32c088ba622b
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoFixed the event for Gatt char changed value 59/187859/1
Amit Purwar [Tue, 28 Aug 2018 11:45:23 +0000 (17:15 +0530)]
Fixed the event for Gatt char changed value

Change-Id: If2626bc9503ba3b9a4d87ac5adc3cff8c1b347df
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoBLE Heart Rate Profile - Sensor Implementation 11/185811/20
Abhishek Chandra [Thu, 2 Aug 2018 12:38:45 +0000 (18:08 +0530)]
BLE Heart Rate Profile - Sensor Implementation

BLE heartrate profile sensor implementation in
bluetooth is added ,following CAPI are added :
 - bt_hrp_set_heartrate_value
 - bt_hrp_set_location_value
 - bt_hrp_set_energy_value
 - bt_hrp_set_rr_interval
 - bt_hrp_set_contact_value
 - bt_hrp_set_device_manufacturer_name
 - bt_hrp_set_interval
 - bt_hrp_set_sensor_notification_state_change_cb
 - bt_hrp_set_sensor_send_notification_state_changed_cb
 - bt_hrp_set_sensor_read_value_cb
 - bt_hrp_set_sensor_write_value_cb
 - bt_hrp_sensor_create
 - bt_hrp_sensor_start
 - bt_hrp_sensor_stop
 - bt_hrp_sensor_update_heartrate_value
 - bt_hrp_sensor_destroy

Change-Id: Ia1cc6de29f147ba3b2827c5b6cd0bf3334392e60
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoFix the typo error 01/187701/1 accepted/tizen/unified/20180829.142747 submit/tizen/20180828.051307
DoHyun Pyun [Tue, 28 Aug 2018 03:47:35 +0000 (12:47 +0900)]
Fix the typo error

Change-Id: I099f6a2cce979f6af2e6eb9a5bfa71266c6b8a43
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoReduce the complexity of __bt_update_otp_server_data function 36/187636/2 accepted/tizen/unified/20180828.062333 submit/tizen/20180827.065630
DoHyun Pyun [Mon, 27 Aug 2018 05:47:49 +0000 (14:47 +0900)]
Reduce the complexity of __bt_update_otp_server_data function

Change-Id: I03d9a8b29e5d2d8dc3ecd04db3650a7896175ac1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoReduce the complexity of _bt_otp_client_read_value_response function 28/187628/1
DoHyun Pyun [Mon, 27 Aug 2018 04:48:43 +0000 (13:48 +0900)]
Reduce the complexity of _bt_otp_client_read_value_response function

Change-Id: I689295997e3e3fb2647fbf2cac0ee93678c7baab
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoReduce the complexity of _bt_otp_client_indication function 22/187622/2
DoHyun Pyun [Mon, 27 Aug 2018 02:26:57 +0000 (11:26 +0900)]
Reduce the complexity of _bt_otp_client_indication function

Change-Id: I1e5b45fe62e25245105aa0b2a75e70a527826e37
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd 4 error codes to pbap connection callback function. 53/187253/1
Deokhyun Kim [Tue, 21 Aug 2018 08:25:32 +0000 (17:25 +0900)]
Add 4 error codes to pbap connection callback function.

  - BT_ERROR_AUTH_REJECTED
  - BT_ERROR_AUTHORIZATION_REJECTED
  - BT_ERROR_SERVICE_NOT_FOUND
  - BT_ERROR_TIMED_OUT

Change-Id: Iaf73ed57b91045fc84d98566571dc766d49e2a71
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoMerge "Add a new error code." into tizen accepted/tizen/unified/20180821.090916 submit/tizen/20180820.023013 submit/tizen/20180820.025250
Pyun DoHyun [Mon, 20 Aug 2018 02:52:34 +0000 (02:52 +0000)]
Merge "Add a new error code." into tizen

6 years agoAdd a new error code. 78/185778/3
Deokhyun Kim [Thu, 2 Aug 2018 08:05:09 +0000 (17:05 +0900)]
Add a new error code.

 - BT_ERROR_AUTHORIZATION_REJECTED

Change-Id: I0c9d2a13df93efb67a138b8538da6d16bcea2165
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoDeprecate HDP(Health Device Profile) APIs 32/185832/4 accepted/tizen/unified/20180816.134639 submit/tizen/20180814.011534
DoHyun Pyun [Wed, 8 Aug 2018 05:16:40 +0000 (14:16 +0900)]
Deprecate HDP(Health Device Profile) APIs

In these days there is no vendor to make BT health device
(BT/EDR HDP profile). And the supported device also be
less. Because we can't get new BT health device, it is hard
to verify APIs for developers and testers. So we deprecate
HDP APIs

Change-Id: I1e4cb04d0144b4023a7a536e2bfba5458cccb0c9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the API reference errors 03/186203/2
DoHyun Pyun [Wed, 8 Aug 2018 05:03:10 +0000 (14:03 +0900)]
Fix the API reference errors

Change-Id: I19592d0e2e192760acaad618944af774c4530f5f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the warning for aarch64 build 17/185717/1 accepted/tizen/unified/20180802.090244 submit/tizen/20180801.235030
DoHyun Pyun [Wed, 1 Aug 2018 23:44:30 +0000 (08:44 +0900)]
Fix the warning for aarch64 build

Change-Id: I6c21984a5cc111c5b32285c04ce399535f5b34be
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFixed dlog format string check 88/185588/1 submit/tizen/20180801.080227
Amit Purwar [Wed, 1 Aug 2018 03:49:03 +0000 (09:19 +0530)]
Fixed dlog format string check

Change-Id: I19042d4c5b68285c4c17b9ec30771a1d0365a88c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoAdjust the coverage exception section 49/185449/1 accepted/tizen/unified/20180801.080101 submit/tizen/20180731.041022
DoHyun Pyun [Tue, 31 Jul 2018 00:27:25 +0000 (09:27 +0900)]
Adjust the coverage exception section

Change-Id: I660ff63d889f367d59dfdec58adb773c59da9459
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the build error 14/185414/1
DoHyun Pyun [Mon, 30 Jul 2018 09:03:10 +0000 (18:03 +0900)]
Fix the build error

Change-Id: I058ac2e8d64c7dd1dbe19b8a223a1dc771f7e9ad
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoCheck HF init status before hf_connect/disconnect 14/183814/1 accepted/tizen/unified/20180717.063051 submit/tizen/20180715.232650
Deokhyun Kim [Wed, 11 Jul 2018 07:24:02 +0000 (16:24 +0900)]
Check HF init status before hf_connect/disconnect

Change-Id: I702389342cc605867ca48205b796ec5960b3f264
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoEnhance debug message 14/183114/1 submit/tizen/20180710.070923
injun.yang [Mon, 2 Jul 2018 09:05:31 +0000 (18:05 +0900)]
Enhance debug message

Change-Id: Idf5e38b6d51b9c9c296e4081465ef3127a7c7822
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoFix : GATT service is not registered 08/183108/1
injun.yang [Mon, 2 Jul 2018 08:42:16 +0000 (17:42 +0900)]
Fix : GATT service is not registered

Change-Id: I86c0304fb62c48337d8c062a9d2b010d08597d2f
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoRemove redundant code 68/183068/1
injun.yang [Mon, 2 Jul 2018 05:17:12 +0000 (14:17 +0900)]
Remove redundant code

Change-Id: I68f78b52a3d706478b6a9d1fcc9390560e6c7d0c

6 years agoFix : Scan result callback is not invoked 89/181289/1 accepted/tizen/unified/20180620.131611 submit/tizen/20180614.065332 submit/tizen/20180617.234448 submit/tizen/20180619.225526
injun.yang [Tue, 12 Jun 2018 00:12:06 +0000 (09:12 +0900)]
Fix : Scan result callback is not invoked

Change-Id: I0d6d67c85910ea0b2ce9f53aa58d6ecf1aa06387
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoFixed the unit testcases for advertisement 24/180724/1 accepted/tizen/unified/20180611.015227 submit/tizen/20180607.003351
Amit Purwar [Fri, 1 Jun 2018 10:04:41 +0000 (15:34 +0530)]
Fixed the unit testcases for advertisement

added the add advertisement data
added the gatt server write callback in custom service

Change-Id: I97a83a570da202799941f0e6960f1e9cb3b59a56
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoFix svace major issue. 93/180393/1 submit/tizen/20180531.061844
Deokhyun Kim [Tue, 29 May 2018 05:45:33 +0000 (14:45 +0900)]
Fix svace major issue.

Change-Id: Ie00641454e4122e84ca273ea1c4178621b71a555
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoCorrect the feature check logic 03/180103/1 accepted/tizen/unified/20180527.044850 submit/tizen/20180525.015431
DoHyun Pyun [Fri, 25 May 2018 00:52:35 +0000 (09:52 +0900)]
Correct the feature check logic

We should return "Not supported" error, if 2 features
are false.

Change-Id: If06338e129f1bc836bcb5dcccb4dd5cbe771ae75

6 years agoCAPI changes for gatt client adaptation 77/179377/3 accepted/tizen/unified/20180524.060226 submit/tizen/20180524.052210
Amit Purwar [Thu, 17 May 2018 07:30:08 +0000 (13:00 +0530)]
CAPI changes for gatt client adaptation

Change-Id: I2a424cc32498e54aa852d572523503123d59bbf0
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoMerge "Fix invalid error value." into tizen
Pyun DoHyun [Wed, 16 May 2018 09:05:08 +0000 (09:05 +0000)]
Merge "Fix invalid error value." into tizen

6 years agoFix invalid error value. 82/179182/1
Deokhyun Kim [Wed, 16 May 2018 07:21:30 +0000 (16:21 +0900)]
Fix invalid error value.

Change-Id: Ice72c72220208aa8484ea7877d1d4f7be6ebbb87
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRemove the redundant debug message 78/179178/1
injun.yang [Wed, 16 May 2018 07:19:30 +0000 (16:19 +0900)]
Remove the redundant debug message

Change-Id: Ia545313be358d142476681ca8b7429e23b1960b0
Signed-off-by: injun.yang <injun.yang@samsung.com>
6 years agoRemove unused dependency to dbus-glib 48/178748/1 accepted/tizen/unified/20180514.094201 submit/tizen/20180514.004045
Hyotaek Shim [Sun, 13 May 2018 23:55:23 +0000 (08:55 +0900)]
Remove unused dependency to dbus-glib

Change-Id: I9ff6f9550bf1a511e759379d3afb97e465f991f2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoAdjust the coverage exception section 81/178281/1
DoHyun Pyun [Wed, 9 May 2018 06:48:23 +0000 (15:48 +0900)]
Adjust the coverage exception section

Change-Id: Ie743248c7bdd27ee2d02657df51f8aa2cc377562
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd the test coverage build option in spec file 69/178269/1
DoHyun Pyun [Wed, 9 May 2018 05:58:28 +0000 (14:58 +0900)]
Add the test coverage build  option in spec file

Change-Id: I7c619899d456848ddfdc198967433d729961e7d8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix: Added gatt server validation before GATT service is deleted 98/177498/1 accepted/tizen/unified/20180502.071119 submit/tizen/20180501.234536
Amit Purwar [Mon, 30 Apr 2018 12:00:11 +0000 (17:30 +0530)]
Fix: Added gatt server validation before GATT service is deleted

Change-Id: I374e17715d08155956c4104de7f1689b0a9f26f9
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
6 years agoAdd the AVRCP delay changed callback function 05/174905/2
Hyuk Lee [Thu, 5 Apr 2018 04:44:38 +0000 (13:44 +0900)]
Add the AVRCP delay changed callback function

Change-Id: I5308f0eacfd3ee388d487f17fc2637143c5e8fa2
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoAdd the internal API of delay report 07/174107/4
Hyuk Lee [Wed, 28 Mar 2018 06:57:15 +0000 (15:57 +0900)]
Add the internal API of delay report

Change-Id: Ic5e152ef594023b54e9c919f90048d86e160b474
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
6 years agoRemove deprecated 2.3.1 gatt APIs 78/172478/3 accepted/tizen/unified/20180403.182514 submit/tizen/20180327.005452 submit/tizen/20180329.232136 submit/tizen/20180401.231313
Wootak Jung [Wed, 14 Mar 2018 06:24:17 +0000 (15:24 +0900)]
Remove deprecated 2.3.1 gatt APIs

Change-Id: I47c1fb890b11409a818eb01e40d40269bcbbf3c9

6 years agoRemove deprecated 2.3.1 APIs 10/172110/7
Wootak Jung [Mon, 12 Mar 2018 02:10:51 +0000 (11:10 +0900)]
Remove deprecated 2.3.1 APIs

- Remove bt adapter le APIs
- Migrate to private header for some enums
- Add @MOBILE_ONLY tag for mobile only APIs
  to hide on Wearable API reference

Change-Id: I55035ca1d6278dddcfa7cbe05b2781241a66b3dc

6 years ago[Bluetooth] Fixes for SVACE issue WGID 319830 and 319840 63/173363/3 accepted/tizen/unified/20180322.145118 submit/tizen/20180322.062553
Amit KS [Thu, 22 Mar 2018 04:34:05 +0000 (10:04 +0530)]
[Bluetooth] Fixes for SVACE issue WGID 319830 and 319840

Change-Id: Iae4fcd6c0ce7a6e48b6569720af30f5a903f7d91
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago[Bluetooth]SVACE issue fixed for WGID : 18/173418/1
Abhishek Chandra [Wed, 21 Mar 2018 08:34:53 +0000 (14:04 +0530)]
[Bluetooth]SVACE issue fixed for WGID :
- 305910
- 305912

Change-Id: I6191e8f9c70c0b31290986429d0e9f2ac2b4756a
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoFix memory leak and remove dead code 33/173233/1 accepted/tizen/unified/20180322.060141 submit/tizen/20180320.233756
Wootak Jung [Tue, 20 Mar 2018 06:06:34 +0000 (15:06 +0900)]
Fix memory leak and remove dead code

Change-Id: Ib7e0abe1154008587a6c5eba34ff1d317e8653b4

6 years agoFix memory leak and NULL dereference issue 36/172336/1 accepted/tizen/unified/20180314.141412 submit/tizen/20180314.004906
Wootak Jung [Tue, 13 Mar 2018 08:33:49 +0000 (17:33 +0900)]
Fix memory leak and NULL dereference issue

Change-Id: I59521afe6aef9c3ec96c1ad294301c322a70539e

6 years agoFix memory leak issue 44/172144/1
Wootak Jung [Mon, 12 Mar 2018 07:04:48 +0000 (16:04 +0900)]
Fix memory leak issue

Change-Id: Ic09df091874392da891d5d926dfa2403f7ac0ee1

6 years agoFix native API reference errors 76/171576/1 accepted/tizen/unified/20180312.060419 submit/tizen/20180307.234557
DoHyun Pyun [Tue, 6 Mar 2018 02:18:11 +0000 (11:18 +0900)]
Fix native API reference errors

Change-Id: I1abc1c0c3a0ab3e902f4b5daaa16b7a5ba515beb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years ago[Bluetooth] CSharp TCT Fixes over Latest Tizen branch 34/168734/1 accepted/tizen/unified/20180131.060538 submit/tizen/20180131.012600
Abhishek Chandra [Tue, 30 Jan 2018 10:42:10 +0000 (16:12 +0530)]
[Bluetooth] CSharp TCT Fixes over Latest Tizen branch

Change-Id: I27eddaa9e1c117feb9fa4f566e7160dc134f9e10
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years ago[Bluetooth] TCT Fixes over Latest Tizen branch 24/168224/5
Abhishek Chandra [Thu, 25 Jan 2018 05:44:19 +0000 (11:14 +0530)]
[Bluetooth] TCT Fixes over Latest Tizen branch

Fixed issues in the TCT failures on Tizen branch
Review comments fixed
Change-Id: I1cbe3743bd760674d5e4f534b8ff504fcd2f377e
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoEnable GATT relay feature 90/166390/1 submit/tizen/20180110.041217 submit/tizen/20180111.051222
DoHyun Pyun [Wed, 10 Jan 2018 04:14:11 +0000 (13:14 +0900)]
Enable GATT relay feature

Change-Id: I1a8e044a252c7f7d6bdce4cdc03fb307e52965f9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years ago [bluetooth] bt_unit_test changes for IPSP Support in TizenNext 31/163631/3
Abhishek Chandra [Tue, 12 Dec 2017 11:58:01 +0000 (17:28 +0530)]
 [bluetooth] bt_unit_test changes for IPSP Support in TizenNext

 Following IPSP functions support has been added through this patch
    1) IPSP intailize
    2) IPSP deinitailize
    3) IPSP connect
    4) IPSP disconnect
    5) Callbacks and Event handling for IPSP

Change-Id: I5746265bb3eeec090054bfce75c577c7b2dc918e
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>