platform/core/api/bluetooth.git
4 years agoCancel the deprecation for bt_adapter_le_is_discovering 57/234257/2 accepted/tizen/unified/20200529.124347 submit/tizen/20200507.063043 submit/tizen/20200527.022320
DoHyun Pyun [Mon, 25 May 2020 01:52:12 +0000 (10:52 +0900)]
Cancel the deprecation for bt_adapter_le_is_discovering

Change-Id: Iac251cf20f52273e9664ef8b2522a87034b38110
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix ASAN build error" into tizen
Pyun DoHyun [Mon, 18 May 2020 05:00:55 +0000 (05:00 +0000)]
Merge "Fix ASAN build error" into tizen

4 years agoFix ASAN build error 34/233634/1
DoHyun Pyun [Mon, 18 May 2020 03:58:22 +0000 (12:58 +0900)]
Fix ASAN build error

This patchset resolves 'stringop-truncation' build
error for ASAN

Change-Id: If01bdf1441b15517c52476d047bbc3803ae9c7e1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd unit TC about profile connected devices 43/233243/1
Wootak Jung [Wed, 13 May 2020 07:22:57 +0000 (16:22 +0900)]
Add unit TC about profile connected devices

Change-Id: Ia486c849f8519276d81d72562cb53c84ab1427fd
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix RegisterApplication fail issue 86/233086/1
Wootak Jung [Tue, 12 May 2020 02:00:46 +0000 (11:00 +0900)]
Fix RegisterApplication fail issue

Need to set server_started flag to false if all of services are removed

Change-Id: I1947f2c08882c15e20731c5d318c6689ae62d077
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRevert "Fix service removed event not occur issue" 21/232821/1 accepted/tizen/unified/20200508.045023 submit/tizen/20200507.222502
DoHyun Pyun [Thu, 7 May 2020 22:36:38 +0000 (07:36 +0900)]
Revert "Fix service removed event not occur issue"

This reverts commit 5168525fbb7cb1fc6b061c3ec3e06e1163335715.

Change-Id: I4abca5501dcd3eebc19c17d621a134db4ae2a31b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix service removed event not occur issue 27/232527/1
Wootak Jung [Wed, 6 May 2020 06:28:43 +0000 (15:28 +0900)]
Fix service removed event not occur issue

In case of unregister all services,
service removed event should be occured.

Change-Id: I9cede4d9416e1d3529fccb6a58f9a3225cc38aa2
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix the malfunction of gatt write request 92/232492/1 submit/tizen/20200506.041322
injun.yang [Wed, 29 Apr 2020 10:46:12 +0000 (19:46 +0900)]
Fix the malfunction of gatt write request

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] P200428-04425
[Request] Internal
[Occurrence Version] N/A

[Problem] Some application call bt_gatt_client_write_value() repeately. (Write req)
 If gatt client app call API before callback invoked,
 inprogress error is not returned.
[Cause & Measure] ATT is sequential transaction protocol. So return inprogress error
 before write completed callback invoked.
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I76eb97e124a739990d3210c3f3c3fa7354b605f1
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRemove the incorrect coverage exception 19/231419/1
DoHyun Pyun [Wed, 22 Apr 2020 02:10:05 +0000 (11:10 +0900)]
Remove the incorrect coverage exception

Change-Id: I8a30d6321ab9f81a8409caaad4bdf444fe770657
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the incorrect Tx / Rx data size issue 85/231285/1 accepted/tizen/unified/20200423.054514 submit/tizen/20200422.010605
DoHyun Pyun [Tue, 21 Apr 2020 04:10:16 +0000 (13:10 +0900)]
Fix the incorrect Tx / Rx data size issue

Change-Id: I32f6968301afbdd69aec7f3117677dd39ded94cc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoDon't call the write request callback in descriptor 69/231269/1
DoHyun Pyun [Tue, 21 Apr 2020 00:47:40 +0000 (09:47 +0900)]
Don't call the write request callback in descriptor

The write method for descriptor is not the fd based.
So bt-service sends the event for write request.

Change-Id: If53b3dd33507aba4cc7190fb3f4413f5801e1830
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix the latent defects on AddressSanitizer" into tizen accepted/tizen/unified/20200424.141705 submit/tizen/20200420.010618
Wootak Jung [Mon, 20 Apr 2020 01:03:32 +0000 (01:03 +0000)]
Merge "Fix the latent defects on AddressSanitizer" into tizen

4 years agoFix the latent defects on AddressSanitizer 42/230942/2
DoHyun Pyun [Thu, 16 Apr 2020 06:57:43 +0000 (15:57 +0900)]
Fix the latent defects on AddressSanitizer

Change-Id: I2be13f59bc166b38037acf3efe0813a4162f7f9a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix api doxygen for hid device 39/230939/2
Wootak Jung [Thu, 16 Apr 2020 06:49:45 +0000 (15:49 +0900)]
Fix api doxygen for hid device

Change-Id: Ie285c9ddf5f41d41c81fe460b0298b89c4fc01b2

4 years agoAdd the validation check logic 59/230459/1 accepted/tizen/unified/20200414.135756 submit/tizen/20200410.064409
DoHyun Pyun [Fri, 10 Apr 2020 04:56:47 +0000 (13:56 +0900)]
Add the validation check logic

Change-Id: Iccbaa0b5a7e5c67b5fc92549dc7a8841c3338926
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify the server MTU get API description 97/230397/2
DoHyun Pyun [Fri, 10 Apr 2020 00:28:09 +0000 (09:28 +0900)]
Modify the server MTU get API description

Change-Id: I808a6b643c273359c75d7bdb97ab0be8d4c58f29
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd HfBatteryLevelChanged event 05/230005/2 accepted/tizen/unified/20200409.083623 submit/tizen/20200408.035538
Deokhyun Kim [Tue, 7 Apr 2020 05:38:18 +0000 (14:38 +0900)]
Add HfBatteryLevelChanged event

Change-Id: I68f8e008278aeadc5ef3e42f8b6b3f52ab94b086
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoUpdate API reference 73/229473/1
Wootak Jung [Wed, 1 Apr 2020 07:34:45 +0000 (16:34 +0900)]
Update API reference

bt_adapter_le_add_advertising_service_solicitation_uuid()
bt_socket_create_rfcomm()

Change-Id: I09c77ccb745a1c8d8664b213b2850ac17241d6c1

4 years agoAdd new APIs for GATT data batching 63/229263/2 accepted/tizen/unified/20200402.155558 submit/tizen/20200401.080249
Deokhyun Kim [Fri, 10 Jan 2020 09:12:15 +0000 (18:12 +0900)]
Add new APIs for GATT data batching

Change-Id: I219ec233d5c99c0992412c058d8a1e51a5e45970

4 years agoAdd the Rx / Tx / idle time in the battery monitor 31/228831/1
DoHyun Pyun [Tue, 24 Mar 2020 07:22:55 +0000 (16:22 +0900)]
Add the Rx / Tx / idle time in the battery monitor

Change-Id: I3e9370f8f60791aef9d1414c1567a0e94b75f44c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the coverage exception code 92/228692/3
DoHyun Pyun [Wed, 25 Mar 2020 01:30:12 +0000 (10:30 +0900)]
Add the coverage exception code

We can't cover the code working with the remote device
by auto TCT, so except the lines

Change-Id: I026e2f38d1a91cffc09004894550203fdb2e80e7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoSupplement API reference 47/228547/1
Wootak Jung [Tue, 24 Mar 2020 00:46:03 +0000 (09:46 +0900)]
Supplement API reference

bt_adapter_le_add_advertising_service_uuid()

Change-Id: I69f9dda838b8aee5bba4c1175ec2d1b8fb5c4b3a

4 years agoSupport 128 bit uuid's service data in the scan result 69/227869/1 submit/tizen/20200323.004911
DoHyun Pyun [Tue, 17 Mar 2020 03:09:15 +0000 (12:09 +0900)]
Support 128 bit uuid's service data in the scan result

Change-Id: Iedc0944be35ab9033bc491204446f2fa90ee2889
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the spp infinite test 82/227482/4 accepted/tizen/unified/20200316.221052 submit/tizen/20200316.050457
DoHyun Pyun [Thu, 12 Mar 2020 06:49:18 +0000 (15:49 +0900)]
Add the spp infinite test

Change-Id: I2e50e5f5e0813d3f9a9610848b83aead5224041c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Separate AVRCP callbacks for target & control" into tizen
Pyun DoHyun [Thu, 12 Mar 2020 07:25:44 +0000 (07:25 +0000)]
Merge "Separate AVRCP callbacks for target & control" into tizen

4 years agoSeparate AVRCP callbacks for target & control 59/227459/1
Deokhyun Kim [Thu, 12 Mar 2020 03:06:43 +0000 (12:06 +0900)]
Separate AVRCP callbacks for target & control

Change-Id: I55afabb350e48df8432ac4347a6c14e7868aa27d
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoEnable speaker and microphone gain change event 71/226671/3 accepted/tizen/unified/20200312.234409 submit/tizen/20200310.235006
DoHyun Pyun [Thu, 5 Mar 2020 00:17:16 +0000 (09:17 +0900)]
Enable speaker and microphone gain change event

Change-Id: If9ca3cede8aecc56efa0119bf9a0e7a1bab66150
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the crash in the MTU changed event 05/225705/1 accepted/tizen/unified/20200302.125819 submit/tizen/20200226.220348 submit/tizen/20200302.000010
DoHyun Pyun [Mon, 24 Feb 2020 05:29:17 +0000 (14:29 +0900)]
Fix the crash in the MTU changed event

Change-Id: I0b8d7c769b4845f592f5dc62066dd22af81c8120
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix a bug in AVC unit test 68/225468/1 accepted/tizen/unified/20200225.224409 submit/tizen/20200224.010814 submit/tizen/20200225.003033
DoHyun Pyun [Thu, 20 Feb 2020 06:43:20 +0000 (15:43 +0900)]
Fix a bug in AVC unit test

Change-Id: If3c4baf10e2b0b7a2099165398e58914beb1741c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the code for AVC mode 25/225325/1 submit/tizen/20200220.012925
DoHyun Pyun [Wed, 19 Feb 2020 06:20:09 +0000 (15:20 +0900)]
Fix the code for AVC mode

Change-Id: I566f6908529fc23c46c3636f68935cf02764c899
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix: gatt write completed callback is not invoked" into tizen submit/tizen/20200217.053214
Pyun DoHyun [Mon, 17 Feb 2020 05:23:16 +0000 (05:23 +0000)]
Merge "Fix: gatt write completed callback is not invoked" into tizen

4 years agoFix: gatt write completed callback is not invoked 45/225045/1
injun.yang [Mon, 17 Feb 2020 02:17:01 +0000 (11:17 +0900)]
Fix: gatt write completed callback is not invoked

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] bt_gatt_client_request_completed_cb not invoked
[Cause & Measure] After writen data, call callback function
[Checking Method] gatt write command not write request

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I4a6d41eb447a8985a242d4391d69207da81294a8

4 years agoAdd interfaces for BT AVC feature (AVRCP Target) 22/224922/4
DoHyun Pyun [Fri, 14 Feb 2020 06:10:13 +0000 (15:10 +0900)]
Add interfaces for BT AVC feature (AVRCP Target)

Change-Id: I648968c4642b6ce4edf06aab4cb6a40150d10570
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoCode clean up 88/224888/1
eson [Fri, 14 Feb 2020 02:06:57 +0000 (11:06 +0900)]
Code clean up
Remove unused variable and code

Change-Id: I67119d3d02f8153661aca95aa6893e8aa03e72ae

4 years agoMerge "Resolve coverty issue branch_past_initialization" into tizen submit/tizen/20200214.001348
Pyun DoHyun [Fri, 14 Feb 2020 00:03:34 +0000 (00:03 +0000)]
Merge "Resolve coverty issue branch_past_initialization" into tizen

4 years agoMerge "Resolve coverty issue alloc free mismatch" into tizen
Pyun DoHyun [Fri, 14 Feb 2020 00:03:29 +0000 (00:03 +0000)]
Merge "Resolve coverty issue alloc free mismatch" into tizen

4 years agoResolve coverty issue branch_past_initialization 67/224867/1
Sudipto [Thu, 13 Feb 2020 13:59:35 +0000 (19:29 +0530)]
Resolve coverty issue branch_past_initialization

Change-Id: I4b7937e3d16c40539896590f08ff09c055566b96
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoResolve coverty issue alloc free mismatch 66/224866/1
Sudipto [Thu, 13 Feb 2020 13:58:54 +0000 (19:28 +0530)]
Resolve coverty issue alloc free mismatch

Change-Id: I0cad0fb988f2d93b81f4d9b6d38c6cdbd5d66536
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix coverity issue: declaration hides parameter 69/224869/1
himanshu [Thu, 13 Feb 2020 13:44:58 +0000 (19:14 +0530)]
Fix coverity issue: declaration hides parameter

The data used in the BT_UNIT_TEST_FUNCTION_ADAPTER_READ_BATTERY_INFO
test case conflicts with the declared parameter "data" in the
test_input_callback function.

Change-Id: I51f80732880b631995c4fa3bc52ae390d13d8fc2
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix coverity issue: Incorrect deallocator used 68/224868/1
himanshu [Thu, 13 Feb 2020 13:06:32 +0000 (18:36 +0530)]
Fix coverity issue: Incorrect deallocator used

The client_s structure is allocated with
g_malloc0 therefore it must be freed with
g_free.

Change-Id: I12565ab60228c2828c3b9effcfc7c7c8694d2c64
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoAdd defines for function key values of keyboard 08/224608/1
eson [Wed, 12 Feb 2020 03:14:43 +0000 (12:14 +0900)]
Add defines for function key values of keyboard
Add key values of keyboard for TV volume and chennel and arrow control.

Change-Id: I0baa9b0255d69a236dafae59bbeb743f9f2963a1

4 years agoInclude bt_device_get_id_address API header 96/224296/2
himanshu [Fri, 7 Feb 2020 12:00:27 +0000 (17:30 +0530)]
Include bt_device_get_id_address API header

Change-Id: I82a4352c52cb5310b173e07bafde82e9c25c9891
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoMerge changes Ib8d9db7a,I7b1ea4af,If771281f,I27ca2b3b into tizen accepted/tizen/unified/20200210.131844 submit/tizen/20200207.062602
Pyun DoHyun [Fri, 7 Feb 2020 05:57:34 +0000 (05:57 +0000)]
Merge changes Ib8d9db7a,I7b1ea4af,If771281f,I27ca2b3b into tizen

* changes:
  Add service added event handling logic
  Add service removed event handling logic
  Add service update logic in service removed case
  Modify GATT Service changed event handling logic

4 years agoAdd service added event handling logic 19/224219/1
Wootak Jung [Fri, 7 Feb 2020 04:38:10 +0000 (13:38 +0900)]
Add service added event handling logic

Change-Id: Ib8d9db7a66ed7e286353dfc6eaa65f3cf66759e0

4 years agoAdd service removed event handling logic 18/224218/1
Wootak Jung [Thu, 6 Feb 2020 06:24:27 +0000 (15:24 +0900)]
Add service removed event handling logic

Change-Id: I7b1ea4afb118393277b7ecbe5a1de2151aae4676

4 years agoAdd service update logic in service removed case 17/224217/1
Wootak Jung [Fri, 27 Dec 2019 01:31:01 +0000 (10:31 +0900)]
Add service update logic in service removed case

Change-Id: If771281f84a4a6d3dca4cedc63a00772f4e27247

4 years agoModify GATT Service changed event handling logic 16/224216/1
Wootak Jung [Mon, 23 Dec 2019 05:29:36 +0000 (14:29 +0900)]
Modify GATT Service changed event handling logic

Change-Id: I27ca2b3b20cc0007795be80e0741ea4013fbe703

4 years agoFix wront memory references and leaks 73/224173/2
Semun Lee [Fri, 7 Feb 2020 01:36:26 +0000 (10:36 +0900)]
Fix wront memory references and leaks

Issues was reported by a static analyzer

Change-Id: I5cb0a6e01b0a0bb6d70bd3edb7bb5bf0193f63b8
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agoCode clean up 80/223780/1
injun.yang [Thu, 23 Jan 2020 06:16:41 +0000 (15:16 +0900)]
Code clean up

Change-Id: I6e9e7425e7e3cddb8ab0d014dce15aa7a6cb3da0
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Add test for device profile trust" into tizen accepted/tizen/unified/20200130.214625 submit/tizen/20200129.034507
Pyun DoHyun [Wed, 29 Jan 2020 03:35:59 +0000 (03:35 +0000)]
Merge "Add test for device profile trust" into tizen

4 years agoAdd test for device profile trust 45/223345/1
Anupam Roy [Thu, 23 Jan 2020 08:05:01 +0000 (17:05 +0900)]
Add test for device profile trust

This patch will enable/disable trust for
HFP HF and A2DP SINK profiles(for remote device)

Change-Id: I42fcb1ff65c7d0412f23868c61e014c564e464ec
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agoFix integer underflow for signed/unsigned conversion 38/223338/1
Semun Lee [Wed, 29 Jan 2020 01:05:44 +0000 (10:05 +0900)]
Fix integer underflow for signed/unsigned conversion

Change-Id: I491df014536346147252db49d2bca959e0937bdf
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agoApply the ACR result 73/221773/1 accepted/tizen/unified/20200129.022655 submit/tizen/20200127.235706
Deokhyun Kim [Thu, 2 Jan 2020 06:12:23 +0000 (15:12 +0900)]
Apply the ACR result

Change-Id: If1f3a52a9a7ff5cf5e316c655d0141ae5ab37b15
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFix BT_ERR log msg and strncpy build error 12/221012/6 accepted/tizen/unified/20200101.120617 submit/tizen/20191230.003618
Amit Purwar [Thu, 26 Dec 2019 09:21:35 +0000 (14:51 +0530)]
Fix BT_ERR log msg and strncpy build error

Change-Id: Icf1ece9e60678c01ab6c178d3f300318cc921f3a
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoFix 64bit build error 46/220846/1 accepted/tizen/unified/20191226.123032 submit/tizen/20191223.225501
DoHyun Pyun [Tue, 24 Dec 2019 02:34:24 +0000 (11:34 +0900)]
Fix 64bit build error

Change-Id: I9684ef25fe4aab33e55d811aa52430ed52c87ee8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Support TV initiate pairing and connection" into tizen
Pyun DoHyun [Tue, 24 Dec 2019 02:26:40 +0000 (02:26 +0000)]
Merge "Support TV initiate pairing and connection" into tizen

4 years agoMerge "Get RSSI when link loss occurs" into tizen
Pyun DoHyun [Mon, 23 Dec 2019 22:46:37 +0000 (22:46 +0000)]
Merge "Get RSSI when link loss occurs" into tizen

4 years agoGet RSSI when link loss occurs 88/220788/2
Deokhyun Kim [Mon, 23 Dec 2019 07:28:31 +0000 (16:28 +0900)]
Get RSSI when link loss occurs

Change-Id: I71fbd0106e9443178293af6b849ecb2ce28ab65b
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoSupport TV initiate pairing and connection 98/220798/1
DoHyun Pyun [Mon, 23 Dec 2019 09:43:11 +0000 (18:43 +0900)]
Support TV initiate pairing and connection

The keyboard will be connected as the normal keyboard
type, and send the normal key event

Change-Id: I08b83f74eb979084f0c041d4beb02296ffbf69ca
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the log for local BT address 20/220620/1
DoHyun Pyun [Fri, 20 Dec 2019 05:04:42 +0000 (14:04 +0900)]
Add the log for local BT address

Change-Id: I9811e8a08d6beaec353a02769e60686977effc39
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd hid_keyboard tool 03/220603/4
DoHyun Pyun [Fri, 20 Dec 2019 02:13:48 +0000 (11:13 +0900)]
Add hid_keyboard tool

This tool works as HID device role and A2DP sink role,
and we can use this tool with Tizen TV product.

Change-Id: I655d685e1b11523b5f38e82ad64f450be1175479
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd ble_mouse tool for Web manual TCT 18/220218/4 accepted/tizen/unified/20191219.143722 submit/tizen/20191217.221622
DoHyun Pyun [Mon, 16 Dec 2019 07:16:20 +0000 (16:16 +0900)]
Add ble_mouse tool for Web manual TCT

This tool has the same services and properties with BLE
mouse. So we can verify the TCT using this tool without
the actual BLE mouse.

Change-Id: I7405c176cb49927e675289da9d2bd63d79ef1d24
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoApply caching for bluetooth feature check 29/219929/1 accepted/tizen/unified/20191213.042503 submit/tizen/20191212.044134
Kim Dukwoo [Wed, 11 Dec 2019 06:40:15 +0000 (15:40 +0900)]
Apply caching for bluetooth feature check

Change-Id: I446d81576dda20fc662cb59a9636de30510de74a
Signed-off-by: Kim Dukwoo <dukwoo7.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the build error 57/219557/2
DoHyun Pyun [Fri, 6 Dec 2019 03:52:45 +0000 (12:52 +0900)]
Fix the build error

Change-Id: I9cffab06ca9e4fc4c4f66e5c2dd0cfb27fb8613f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Include bt_onoff tool in capi-network-bluetooth-test rpm" into tizen
Pyun DoHyun [Thu, 5 Dec 2019 04:18:29 +0000 (04:18 +0000)]
Merge "Include bt_onoff tool in capi-network-bluetooth-test rpm" into tizen

4 years agoInclude bt_onoff tool in capi-network-bluetooth-test rpm 77/219177/1
DoHyun Pyun [Tue, 3 Dec 2019 01:35:16 +0000 (10:35 +0900)]
Include bt_onoff tool in capi-network-bluetooth-test rpm

Change-Id: I7181a75c22d7ae9a5a7104b8a3e25553ab87f931
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify gcov package name 72/219172/1 accepted/tizen/unified/20191203.121737 submit/tizen/20191203.015347
Wootak Jung [Tue, 3 Dec 2019 00:51:59 +0000 (09:51 +0900)]
Modify gcov package name

Change-Id: I7b2ea8db6c8911065ab1530ebd0836f2911505a4

4 years agoCorrect the developer site URL 26/219026/1
DoHyun Pyun [Mon, 2 Dec 2019 01:52:54 +0000 (10:52 +0900)]
Correct the developer site URL

Change-Id: I2bd9344d56f26883ffbadf19eea05e0df27e3543
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoChange the developer site URL in the API reference 69/218869/1
DoHyun Pyun [Fri, 29 Nov 2019 03:59:40 +0000 (12:59 +0900)]
Change the developer site URL in the API reference

Change-Id: I44abcdaf58ce1fe77194d49d4404a536f1d6fb8a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the crash issue to parse the device name 08/218608/1 accepted/tizen/unified/20191128.001540 submit/tizen/20191127.050440
DoHyun Pyun [Tue, 26 Nov 2019 04:37:47 +0000 (13:37 +0900)]
Fix the crash issue to parse the device name

Change-Id: I29976c3479eafb15085f5ebf6679e123b51774ea
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRemove duplicated header functions 75/218575/1
Wootak Jung [Tue, 26 Nov 2019 00:50:56 +0000 (09:50 +0900)]
Remove duplicated header functions

bt_hid_device_xxx APIs are published.
 So, remove that in internal header.

Change-Id: I27519b47f1aa7932de68adda829fb8fc1014da2a

4 years agoMerge "Modify unit tc" into tizen
Pyun DoHyun [Tue, 26 Nov 2019 00:18:50 +0000 (00:18 +0000)]
Merge "Modify unit tc" into tizen

4 years agoModify unit tc 52/218452/1
injun.yang [Fri, 22 Nov 2019 10:14:04 +0000 (19:14 +0900)]
Modify unit tc

Change-Id: Ia694d86bd2c6f61b0c71d422897858d821b4f134

4 years agoAdd time member to app info structure for battery monitor plugin 10/218310/2
Sudipto Bal [Thu, 21 Nov 2019 07:45:51 +0000 (16:45 +0900)]
Add time member to app info structure for battery monitor plugin

Change-Id: I51339e96bce37245c279aacd920d566a62a5bcf7
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
4 years agoEnable battery monitor BT plugin to be initialized without callback 86/218086/1 accepted/tizen/unified/20191121.154831 submit/tizen/20191120.081904
Sudipto Bal [Tue, 19 Nov 2019 08:14:35 +0000 (17:14 +0900)]
Enable battery monitor BT plugin to be initialized without callback

Change-Id: I3d058468524f05b2f7ccc67fc07d11587243e8fb
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
4 years agoScan filter refactoring 05/217805/2
Deokhyun Kim [Thu, 14 Nov 2019 08:48:45 +0000 (17:48 +0900)]
Scan filter refactoring

Change-Id: I3e6192f92bf8e699031f6afc48ad750c3718ed5c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoAdd API to check if the scan filter feature is supported 53/216753/2 accepted/tizen/unified/20191112.125158 submit/tizen/20191112.045846
himanshu [Thu, 31 Oct 2019 12:42:13 +0000 (18:12 +0530)]
Add API to check if the scan filter feature is supported

This API is used to find whether the scan filter feature is provided or not.

int bt_adapter_le_is_scan_filter_supported(bool *is_supported);

Change-Id: I6afbd7b84d7259f70b3462b967494e56c607cc09
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix scan device found callback unset issue 52/216452/2 accepted/tizen/unified/20191101.042108 submit/tizen/20191031.005137
Wootak Jung [Fri, 25 Oct 2019 04:57:39 +0000 (13:57 +0900)]
Fix scan device found callback unset issue

callback should be not unset if operation is failed

Change-Id: I22c1269b80d803e03ab659b2c211c6c162417746

4 years agoMerge "Provide methods to initialize and deinitialize battery monitor feature" into...
Pyun DoHyun [Wed, 23 Oct 2019 05:39:00 +0000 (05:39 +0000)]
Merge "Provide methods to initialize and deinitialize battery monitor feature" into tizen

4 years agoProvide methods to initialize and deinitialize battery monitor 04/214904/7
Sudipto [Fri, 27 Sep 2019 07:56:41 +0000 (13:26 +0530)]
Provide methods to initialize and deinitialize battery monitor
feature

Provide callback during initialization so that the following
bluetooth data for the session is provided to battery monitor frwk
when bluetooth adapter is disabled:
session_start_time
session_end_time
session_scan_time
session_connected_time
app-wise data transaction details for the session

Change-Id: If48adf6944a50d67e91d3b18c54b163b5adc745b
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix Native API reference issues 11/216111/1
DoHyun Pyun [Mon, 21 Oct 2019 06:46:52 +0000 (15:46 +0900)]
Fix Native API reference issues

Change-Id: Ie851a93bd3a18ed093f717dba32314878412f6da
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the coverage exception code for new internal APIs 86/215686/1
DoHyun Pyun [Mon, 14 Oct 2019 07:48:04 +0000 (16:48 +0900)]
Add the coverage exception code for new internal APIs

Change-Id: I78d48c7cdb1f2b9aa909fccf4afdfaa99d17ab5d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoGet GATT specification Name from UUID 27/215527/1
Anupam Roy [Thu, 10 Oct 2019 06:20:52 +0000 (11:50 +0530)]
Get GATT specification Name from UUID

This API will return GATT specification name
based on UUID provided by API caller.

Remarks: memory (name) should be freed by API caller.

Change-Id: If58204140538b17c619cc597417b3401651ecd5a
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agoMerge "App wise data transaction details" into tizen accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.031538 accepted/tizen/5.5/unified/mobile/hotfix/20201027.065921 accepted/tizen/unified/20191007.234831 submit/tizen/20191007.001051 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
Pyun DoHyun [Wed, 25 Sep 2019 05:32:36 +0000 (05:32 +0000)]
Merge "App wise data transaction details" into tizen

4 years agoApp wise data transaction details 74/214374/2
Sudipto [Fri, 20 Sep 2019 16:10:09 +0000 (21:40 +0530)]
App wise data transaction details

Providing details of data transaction by apps in
a particular bluetooth session

Change-Id: Ia6e7f31784bd40186ec6f0374e0d5b1583bbec72
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix API reference issues 84/214284/1 accepted/tizen/unified/20190920.065345 submit/tizen/20190920.003508
DoHyun Pyun [Fri, 20 Sep 2019 00:32:29 +0000 (09:32 +0900)]
Fix API reference issues

Change-Id: I00b8f89ab8a93bd2874cd24e91becd151901828c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Implement MTU changed callback for GATT server" into tizen accepted/tizen/unified/20190918.010254 submit/tizen/20190916.233704
Pyun DoHyun [Mon, 16 Sep 2019 06:14:03 +0000 (06:14 +0000)]
Merge "Implement MTU changed callback for GATT server" into tizen

4 years agoMerge "Implement new API to get le oob data" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:14:00 +0000 (06:14 +0000)]
Merge "Implement new API to get le oob data" into tizen

4 years agoMerge "Providing bluetooth data to battery monitor framework" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:08:46 +0000 (06:08 +0000)]
Merge "Providing bluetooth data to battery monitor framework" into tizen

4 years agoProviding bluetooth data to battery monitor framework 34/213034/6
Sudipto [Thu, 29 Aug 2019 10:37:56 +0000 (16:07 +0530)]
Providing bluetooth data to battery monitor framework

Data provided:
Session start time
Session end time
Session scan time
Session connected time

Change-Id: I33243d08333d74559cd32143202b7a287af28748
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoImplement MTU changed callback for GATT server 64/213864/1
injun.yang [Mon, 1 Jul 2019 07:59:12 +0000 (16:59 +0900)]
Implement MTU changed callback for GATT server

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Unable to notice MTU changed event to application
[Cause & Measure] Implement MTU changed callback for GATT server
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I266f8335948c7dd358c8c4e43a974109d297a9b6
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoImplement new API to get le oob data 50/213850/1
injun.yang [Tue, 22 Jan 2019 08:49:28 +0000 (17:49 +0900)]
Implement new API to get le oob data

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] Implement new API to get le oob data
[Checking Method] n/a

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: If2bf516b9351807c3223873403bceb137f6ec36f
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoNew API to set LE scan type 45/213845/1
injun.yang [Thu, 22 Aug 2019 10:10:18 +0000 (19:10 +0900)]
New API to set LE scan type

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] New API to set LE scan type
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I2523d6783a210ed44bfd80b204a976e4aeb787a5
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoInvalid param handling in bt_device_le_conn_update() 02/213602/1
Deokhyun Kim [Mon, 9 Sep 2019 06:16:43 +0000 (15:16 +0900)]
Invalid param handling in bt_device_le_conn_update()

Change-Id: Ib42a2a4f8966df38fd225477663edd75e59db833
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agobug fix - memory over flow 89/212589/2 accepted/tizen/unified/20190826.113246 submit/tizen/20190826.003214
milk.lee [Fri, 23 Aug 2019 05:59:10 +0000 (14:59 +0900)]
bug fix - memory over flow

Change-Id: I02ac740edb422cb2989413d6dabdd06efdfaf04f
Signed-off-by: milk.lee <milk.lee@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years ago[bt_unit_test] Fix spp uuid 83/211683/1 accepted/tizen/unified/20190812.235651 accepted/tizen/unified/20190822.110003 submit/tizen/20190809.033840 submit/tizen/20190822.022402
Deokhyun Kim [Thu, 8 Aug 2019 05:47:39 +0000 (14:47 +0900)]
[bt_unit_test] Fix spp uuid

Change-Id: Iefbcbb7cbbd5d6ea45d6a5bdd54b8da6cdcce269
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoImplement interface to set advertise Tx power level 80/211080/3 accepted/tizen/unified/20190801.025403 submit/tizen/20190730.223540
injun.yang [Tue, 23 Oct 2018 00:57:06 +0000 (09:57 +0900)]
Implement interface to set advertise Tx power level

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] Support API to set advertise Tx power level
[Checking Method] n/a

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I9e996ff39cfad37bd7a39de052f96d774a636fce
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd TIZEN_DEPRECATED_API definition if it is not defined 24/210624/1 accepted/tizen/unified/20190724.130121 submit/tizen/20190723.070041
DoHyun Pyun [Tue, 23 Jul 2019 05:05:30 +0000 (14:05 +0900)]
Add TIZEN_DEPRECATED_API definition if it is not defined

Change-Id: I1e164139b860a92ba0d6e9a41c7d73f949ff57cf
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMove HF inhouse APIs to the extension header 01/210401/1 accepted/tizen/unified/20190719.111709 submit/tizen/20190718.233647
DoHyun Pyun [Thu, 18 Jul 2019 23:31:02 +0000 (08:31 +0900)]
Move HF inhouse APIs to the extension header

Bixby application will use HF related APIs in Tizen SDK.
Because of this, we should move the definition to the extension
header.

Change-Id: I6464f470f1b4d776fde2aa9a1a128a9388ee74cd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify the coverage package name 84/209584/1 accepted/tizen/unified/20190710.103541 submit/tizen/20190709.060007
DoHyun Pyun [Tue, 9 Jul 2019 05:58:52 +0000 (14:58 +0900)]
Modify the coverage package name

Change-Id: I8e818ffaa23692d12b996241018a005bd06639de
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>