platform/core/api/user-awareness.git
6 months agoExclude internal APIs for lcov 16/309116/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x accepted/tizen/unified/20240411.142605 accepted/tizen/unified/dev/20240620.004648 accepted/tizen/unified/x/20240412.023941
hyunuk.tak [Fri, 5 Apr 2024 02:53:55 +0000 (11:53 +0900)]
Exclude internal APIs for lcov

Change-Id: Ic42931a31513d9b0a802c77564279eaba0d17d13
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
6 months agoFix mismatch for lcov 48/309048/1
hyunuk.tak [Thu, 4 Apr 2024 07:30:40 +0000 (16:30 +0900)]
Fix mismatch for lcov

Change-Id: I26d563bf2ed5d3e7729282f151ed1c6d08365aea
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
6 months agoFix the warning error for memcpy 44/308444/2 accepted/tizen/unified/20240401.165624 accepted/tizen/unified/x/20240326.073837
Dohyun Pyun [Mon, 25 Mar 2024 22:38:05 +0000 (07:38 +0900)]
Fix the warning error for memcpy

Change-Id: Ib6d7a256439f82cfec64aa52f57d5cd73958d3ef
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
7 months agoFix gcov build error 62/307562/1 accepted/tizen/unified/20240313.134813 accepted/tizen/unified/20240313.135746 accepted/tizen/unified/20240315.032910 accepted/tizen/unified/x/20240314.073504
Dohyun Pyun [Tue, 12 Mar 2024 04:18:33 +0000 (13:18 +0900)]
Fix gcov build error

Change-Id: I90de86a8b8f87d2b53bd55b3d0cef0289d06fbd3
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
15 months agoFixed the build error using gcc 13 94/294994/1 accepted/tizen_unified_riscv accepted/tizen/unified/20231215.165050 accepted/tizen/unified/dev/20230726.115840 accepted/tizen/unified/riscv/20231219.110015
wchang kim [Thu, 29 Jun 2023 08:35:14 +0000 (17:35 +0900)]
Fixed the build error using gcc 13

Change-Id: I6d2f34134d9293e9e53a10b8d3ec23663b5cf269

2 years agoRemove non-relevant data from README 72/276772/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.060620 accepted/tizen/7.0/unified/hotfix/20221116.104900 accepted/tizen/8.0/unified/20231005.092915 accepted/tizen/unified/20220629.152555 submit/tizen/20220629.005451 tizen_7.0_m2_release tizen_8.0_m2_release
Abhay Agarwal [Fri, 24 Jun 2022 03:15:42 +0000 (08:45 +0530)]
Remove non-relevant data from README

Change-Id: I2983179018eaa1c013bd8093c037474e3f4cb310
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2 years agoMerge "Do not build unittest when asan is enabled" into tizen accepted/tizen/unified/20220614.211538 submit/tizen/20220610.074218
Pyun DoHyun [Fri, 10 Jun 2022 07:41:38 +0000 (07:41 +0000)]
Merge "Do not build unittest when asan is enabled" into tizen

2 years agoDo not build unittest when asan is enabled 56/276156/1
Seonah Moon [Fri, 10 Jun 2022 07:30:18 +0000 (16:30 +0900)]
Do not build unittest when asan is enabled

Change-Id: I5dd8f599b5f954bce550763147c003c29c3045de
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2 years agoFix README formatting 30/275930/1
Abhay Agarwal [Tue, 7 Jun 2022 03:58:25 +0000 (09:28 +0530)]
Fix README formatting

Change-Id: I7a27b145c3384495a13a7ef938d97fe05e7be25f
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2 years agoUpdate README 99/275899/1
Abhay Agarwal [Mon, 6 Jun 2022 08:30:06 +0000 (14:00 +0530)]
Update README

Change-Id: Ied85a969374ac03c179bc6b8dbc9f298604d7663
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2 years agoReplace g_memdup to g_memdup2 85/267885/1 accepted/tizen/unified/20211222.230540 submit/tizen/20211124.060921 submit/tizen/20211212.233427
dh79pyun [Mon, 13 Dec 2021 02:32:44 +0000 (11:32 +0900)]
Replace g_memdup to g_memdup2

Change-Id: Ief51d05998beaa73dabe1cf293ac24daf5f7b3e8
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
3 years agoMerge "[ACR-1646] Add location APIs to public header" into tizen accepted/tizen/6.5/unified/20211028.095025 accepted/tizen/unified/20210914.053333 submit/tizen/20210910.073452 submit/tizen/20210910.135122 submit/tizen_6.5/20211028.161801 tizen_6.5.m2_release
hyunuk tak [Fri, 10 Sep 2021 07:34:33 +0000 (07:34 +0000)]
Merge "[ACR-1646] Add location APIs to public header" into tizen

3 years ago[ACR-1646] Add location APIs to public header 27/262027/13
hyunuk.tak [Mon, 2 Aug 2021 01:54:52 +0000 (10:54 +0900)]
[ACR-1646] Add location APIs to public header

Change-Id: If6b0d3d4fbc8683c6430a532e0312d4ab67809f6
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoEnable the feature check logic 38/263338/1 accepted/tizen/unified/20210901.050307 submit/tizen/20210901.003746
dh79pyun [Wed, 1 Sep 2021 00:28:18 +0000 (09:28 +0900)]
Enable the feature check logic

Change-Id: Id0ec7be8d0e3f5bf473794d80e7984ae7106fc5f
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
3 years agoFix API reference error (HEADER Required) 37/262337/1
dh79pyun [Sun, 8 Aug 2021 21:48:06 +0000 (06:48 +0900)]
Fix API reference error (HEADER Required)

Change-Id: I52076c85fbf82d9c0302dbd2962bfe68c6cd422a
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
3 years agoCoverity issue fix 18/261218/3 accepted/tizen/unified/20210720.062515 submit/tizen/20210719.231231
rohit singh [Tue, 13 Jul 2021 09:12:46 +0000 (14:42 +0530)]
Coverity issue fix

This patch fixes the coverity issue.

Change-Id: I9ddbd8c6f1b77b39eff1b67cfeb93c119ca16467
Signed-off-by: rohit.singh <rohit.singh@samsung.com>
3 years agoFix the memory leak 85/260985/1 submit/tizen/20210712.235633
DoHyun Pyun [Thu, 8 Jul 2021 05:43:35 +0000 (14:43 +0900)]
Fix the memory leak

Change-Id: Ic0c45298b82d7105ac45b2cbba1470a31c6de857
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoCoverity bug fix 99/260899/2 accepted/tizen/unified/20210707.070918 submit/tizen/20210706.125104
rohit singh [Tue, 6 Jul 2021 10:14:28 +0000 (15:44 +0530)]
Coverity bug fix

This patch fixes:
 - Out of bound access warning
 - Resource leak warning

Change-Id: I94523d40e627acdb964b42984c8f3fe0b7035642
Signed-off-by: rohit.singh <rohit.singh@samsung.com>
3 years agoUpdate test app for location sensors 47/260547/1 accepted/tizen/unified/20210630.144051 submit/tizen/20210629.001718
Abhay Agarwal [Tue, 29 Jun 2021 03:07:54 +0000 (08:37 +0530)]
Update test app for location sensors

Change-Id: I797a94f45835c35c93dc0d7cd443243d47afe002
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoFix memory leak for location API's 98/260398/2
Abhay Agarwal [Mon, 24 May 2021 10:48:41 +0000 (16:18 +0530)]
Fix memory leak for location API's

Change-Id: Iad60d957970254dbe3122ff3071bcd31faf3681d
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoAdd API to set location callback period 97/260397/2
Abhay Agarwal [Fri, 21 May 2021 08:28:58 +0000 (13:58 +0530)]
Add API to set location callback period

Change-Id: I6bdfb7a2284188ba1b637e8c3adeccc1048ee710
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoua-test: Add support for location detection 96/260396/2
Abhay Agarwal [Thu, 20 May 2021 12:27:15 +0000 (17:57 +0530)]
ua-test: Add support for location detection

Change-Id: I01931656fdf3db9aba5acbb1755467705a96ea6f
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoAdd API's to get distance and position 95/260395/2
Abhay Agarwal [Thu, 20 May 2021 12:02:04 +0000 (17:32 +0530)]
Add API's to get distance and position

Change-Id: Ie806f363b543500b3001780a512e8646cd35b29c
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoHandle location detection event 94/260394/2
Abhay Agarwal [Mon, 17 May 2021 05:54:40 +0000 (11:24 +0530)]
Handle location detection event

Change-Id: I9f6f7433bfc2e39f0ef52d20dbca695799eea8cb
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoAdd support for stop location detection API 93/260393/2
Abhay Agarwal [Mon, 10 May 2021 05:02:46 +0000 (10:32 +0530)]
Add support for stop location detection API

Change-Id: I8f4f33cc57a8ab394d344cbd2b947174b4a31179
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoAdd API to start location detection 92/260392/2
Abhay Agarwal [Mon, 3 May 2021 11:15:03 +0000 (16:45 +0530)]
Add API to start location detection

Change-Id: Ib7e9714739cdeb94019623381f57d8cd3d2490cb
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate enums and covert functions for UWB support 91/260391/2
Abhay Agarwal [Thu, 18 Mar 2021 06:17:41 +0000 (11:47 +0530)]
Update enums and covert functions for UWB support

Change-Id: Icb17664cee768c8cff02d5578ef7102531caeda7
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify enums and convert functions for wifi-location 90/260390/2
Abhay Agarwal [Thu, 4 Feb 2021 05:41:33 +0000 (11:11 +0530)]
Modify enums and convert functions for wifi-location

Change-Id: I9b62c9edd0d8beb6d09c27a32730591972ef476e
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoFix to get device for sensor presence detected callback 89/260389/1
Abhay Agarwal [Thu, 4 Feb 2021 05:38:00 +0000 (11:08 +0530)]
Fix to get device for sensor presence detected callback

Change-Id: I3af0c3489f045f1a21f3a3dba80094078dd1dadc
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoMerge "Fix dereferencing before NULL check issue." into tizen accepted/tizen/unified/20210616.132532 submit/tizen/20210615.073530
Pyun DoHyun [Tue, 15 Jun 2021 04:27:02 +0000 (04:27 +0000)]
Merge "Fix dereferencing before NULL check issue." into tizen

3 years agoFix dereferencing before NULL check issue. 91/259591/3
rohit singh [Thu, 10 Jun 2021 05:21:07 +0000 (10:51 +0530)]
Fix dereferencing before NULL check issue.

Change-Id: Ib106ef87a6d64baeebd4f803434ea4ff49595dac
Signed-off-by: rohit.singh <rohit.singh@samsung.com>
3 years agoFix memory leak 64/259564/1
hyunuk.tak [Wed, 9 Jun 2021 23:36:05 +0000 (08:36 +0900)]
Fix memory leak

Change-Id: I388d70f032490ed7e6394fc58c1e75525c35aaaa
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoMerge "Fix API to get device list for user" into tizen submit/tizen/20210601.231319
Pyun DoHyun [Tue, 1 Jun 2021 22:52:48 +0000 (22:52 +0000)]
Merge "Fix API to get device list for user" into tizen

3 years agoFix style issues 04/259104/1
rohit singh [Tue, 1 Jun 2021 06:39:51 +0000 (12:09 +0530)]
Fix style issues

This patches fixes the styles issues as shown
in the check-patch script.

Change-Id: I56ffcc8854804fc2fc80c67317b195f62d3c6492
Signed-off-by: rohit.singh <rohit.singh@samsung.com>
3 years agoFix API to get device list for user 93/259093/1
Abhay Agarwal [Tue, 1 Jun 2021 04:35:57 +0000 (10:05 +0530)]
Fix API to get device list for user

This patch fix the crash occuring while destroying
device list provided to application on use of API
ua_user_foreach_devices(). The crash was occuring
due to double free of device list.

Change-Id: I17163439ef2b14b5e4ef5dd018275e10bd0b0d54
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoRemove service depricated api from ua-test 64/258164/7
rohit singh [Wed, 12 May 2021 06:07:50 +0000 (11:37 +0530)]
Remove service depricated api from ua-test

- ua_service_add_device()
- ua_service_remove_device()

Change-Id: I31c85aab253d96b1a404be1235ffef65dc7c537a

3 years agoFix API reference errors 60/258060/2
DoHyun Pyun [Mon, 10 May 2021 04:21:39 +0000 (13:21 +0900)]
Fix API reference errors

Change-Id: Id524948ddee4365cc2575eac562498082b501958
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoRemove Deprecated API 16/257816/7
rohit singh [Sat, 1 May 2021 10:50:05 +0000 (16:20 +0530)]
Remove Deprecated API

ua_device_set_discriminant()
ua_user_clone()
ua_user_remove_device_by_device_id()
ua_user_set_account()
ua_user_set_name()
ua_service_set_name() -> ua_service_create()
ua_device_clone()

Change-Id: I2a66b9968497c50e879fbffa81be4d10b150e120

3 years agoRevert UA_MAC_TYPE_INVALID value and remove the description 71/256971/1 accepted/tizen/unified/20210416.011731 submit/tizen/20210415.223826
DoHyun Pyun [Thu, 15 Apr 2021 23:40:52 +0000 (08:40 +0900)]
Revert UA_MAC_TYPE_INVALID value and remove the description

Change-Id: I3e253e13c1cb1f93c271bbe11ee3affaeb3c3b6a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoRevert UA_SENSOR_MAX value and remove the description 70/256970/1
DoHyun Pyun [Thu, 15 Apr 2021 23:07:26 +0000 (08:07 +0900)]
Revert UA_SENSOR_MAX value and remove the description

Change-Id: I671e7b10437957ebb068c9d0566eda4b2af35686
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoRevert "Fix the max array size for the sensor callback" 69/256969/1
DoHyun Pyun [Thu, 15 Apr 2021 23:06:31 +0000 (08:06 +0900)]
Revert "Fix the max array size for the sensor callback"

This reverts commit 3fa77e7c12624a38f4c45c029f2f04f306398534.

Change-Id: Ic916325fdc7b7a45badcac11f3df393df2cef6d8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoFix the max array size for the sensor callback 68/256968/1
DoHyun Pyun [Thu, 15 Apr 2021 22:55:12 +0000 (07:55 +0900)]
Fix the max array size for the sensor callback

Change-Id: Id55fcc582641b8d4289c90f954b9d376ceee36f9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMerge "Increase error number according to order" into tizen
Pyun DoHyun [Thu, 15 Apr 2021 22:17:29 +0000 (22:17 +0000)]
Merge "Increase error number according to order" into tizen

3 years agoUpdate documentation and header files 48/256748/3
Abhay Agarwal [Mon, 12 Apr 2021 07:51:39 +0000 (13:21 +0530)]
Update documentation and header files

Change-Id: Ie0bf7690957faa146d742a8622497c53b1eb8aa6
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoIncrease error number according to order 86/256786/1
hyunuk.tak [Tue, 13 Apr 2021 04:56:48 +0000 (13:56 +0900)]
Increase error number according to order

link to refer : https://review.tizen.org/gerrit/#/c/platform/core/api/common/+/256774/

Change-Id: Ibdecd70f11b419d2756d88d1217ced703927d679
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years ago[ACR-1616] Modify UA feature name 66/256666/1
DoHyun Pyun [Thu, 8 Apr 2021 23:13:25 +0000 (08:13 +0900)]
[ACR-1616] Modify UA feature name

Change-Id: Ia6ad250b48e46a32f490020142f9af29e09ffd53
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoAdd to request add/remove sensor 39/256139/1 accepted/tizen/unified/20210331.054053 submit/tizen/20210330.060456
hyunuk.tak [Tue, 30 Mar 2021 04:25:27 +0000 (13:25 +0900)]
Add to request add/remove sensor

Change-Id: I6922408fbde9d85d9bf9794feea559565488eb9a
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoFix some svaces for memory leak 24/255324/1 accepted/tizen/unified/20210318.055921 submit/tizen/20210317.223114
hyunuk.tak [Wed, 17 Mar 2021 01:13:36 +0000 (10:13 +0900)]
Fix some svaces for memory leak

Change-Id: I430bd56448d05f1b053b56a9e04e30c6c9c5c5e4

3 years agoFix build break for gtest 23/255323/1 accepted/tizen/unified/20210317.115839 submit/tizen/20210316.232219
hyunuk.tak [Tue, 16 Mar 2021 23:31:59 +0000 (08:31 +0900)]
Fix build break for gtest

Change-Id: I079ea86a3f115228926d8b99a7adf6647223ef37

3 years agoMerge "Disable the feature check logic before accepting ACR" into tizen
Pyun DoHyun [Tue, 16 Mar 2021 23:03:48 +0000 (23:03 +0000)]
Merge "Disable the feature check logic before accepting ACR" into tizen

3 years agoDisable the feature check logic before accepting ACR 46/255246/1
DoHyun Pyun [Mon, 15 Mar 2021 22:56:57 +0000 (07:56 +0900)]
Disable the feature check logic before accepting ACR

Change-Id: If935078b2a6bdba440b06ee4d674672287ed1c6a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoAdd unittest for auto coverage 03/255103/3
hyunuk.tak [Fri, 12 Mar 2021 05:23:53 +0000 (14:23 +0900)]
Add unittest for auto coverage

Change-Id: Id9cde65487d4c8887c17cfd1c69b0e71bc665147
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoRemove some device API from service 76/255076/4 accepted/tizen/unified/20210315.134146 submit/tizen/20210314.222938
hyunuk.tak [Fri, 12 Mar 2021 01:10:25 +0000 (10:10 +0900)]
Remove some device API from service

Change-Id: I314383a73b065e406cc6a9bd478345cad367d834
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoFix the build error 42/254942/1 accepted/tizen/unified/20210311.083813 submit/tizen/20210311.013435
DoHyun Pyun [Thu, 11 Mar 2021 01:54:10 +0000 (10:54 +0900)]
Fix the build error

Change-Id: Ib5a78f748e1cb81742680de4b89877dab279a97c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMerge "Update cmake to add type headers" into tizen
Pyun DoHyun [Thu, 11 Mar 2021 01:15:56 +0000 (01:15 +0000)]
Merge "Update cmake to add type headers" into tizen

3 years agoUpdate cmake to add type headers 18/254918/1
Abhay Agarwal [Tue, 16 Feb 2021 05:31:47 +0000 (11:01 +0530)]
Update cmake to add type headers

Change-Id: Ic47dd3ec96ee1595afd90eb73718ff568f63ee03
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify the API name for seting callback 21/254821/5
hyunuk.tak [Tue, 9 Mar 2021 22:40:09 +0000 (07:40 +0900)]
Modify the API name for seting callback

ua_monitor_set_sensor_status_cb
=> ua_monitor_set_sensor_status_changed_cb

ua_monitor_set_sensor_status_cb
=> ua_monitor_set_sensor_status_changed_cb

Change-Id: I6842b1a8316d762990364da7d71b905dd2ff86cc
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoModify privilege info in header 80/254680/3
hyunuk.tak [Mon, 8 Mar 2021 07:44:08 +0000 (16:44 +0900)]
Modify privilege info in header

Change-Id: Ie71d17be0a4e1194c6c6d7eb09b8a06dd19a84eb
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoRename callback for registered devices 53/254653/3 accepted/tizen/unified/20210309.140735 submit/tizen/20210308.053143
Abhay Agarwal [Fri, 5 Mar 2021 14:47:53 +0000 (20:17 +0530)]
Rename callback for registered devices

This patch renames the callback:
- ua_registered_dev_cb ==> ua_registered_device_cb
Additionally, this patch update the API descriptions.

Change-Id: Id93ec6860edebf1faee2dc132db236df652e6fb5
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoRename enum to report presence/absence 42/254442/1 accepted/tizen/unified/20210305.034038 submit/tizen/20210303.222245
Abhay Agarwal [Wed, 3 Mar 2021 03:24:32 +0000 (08:54 +0530)]
Rename enum to report presence/absence

Change-Id: If3a004ddb2ebf3607122eb3c97c4f270c59f6bd0
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoRename sensor callback 97/254097/3
Abhay Agarwal [Tue, 23 Feb 2021 09:47:48 +0000 (15:17 +0530)]
Rename sensor callback

This patch renames sensor callback
__ua_monitor_foreach_sensor_cb => __ua_monitor_sensor_cb

Change-Id: I2bb309eb1fa9cfb448a3cdad41cb29637aa9a0b4
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate API description 17/254017/4
Abhay Agarwal [Mon, 22 Feb 2021 07:19:44 +0000 (12:49 +0530)]
Update API description

Change-Id: Ie339a3ff85fe0f984772459beb3f6e71cd3e7466
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoRename API and update header 30/253930/4
Abhay Agarwal [Fri, 19 Feb 2021 09:03:36 +0000 (14:33 +0530)]
Rename API and update header

This patch renames
ua_foreach_services() => ua_foreach_service()

Change-Id: I4329ecbe939c093ecc7296b390645b6a307fd636
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate API header files 11/253811/2
Abhay Agarwal [Thu, 18 Feb 2021 05:20:50 +0000 (10:50 +0530)]
Update API header files

This patch handles following:
- Rename enum's
- Rename callbacks
- Rename handle parameters
- Update return values for callbacks
- Modify gboolean to bool for native API's
- Update API descriptions

Change-Id: Ic4e6b39aa143e6b022d2bfb35a40bb443e76c256
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate API header files and docs 52/253652/1 accepted/tizen/unified/20210218.042123 submit/tizen/20210216.223806
Abhay Agarwal [Tue, 16 Feb 2021 05:57:48 +0000 (11:27 +0530)]
Update API header files and docs

This patch handles
- Update document
- Remove empty tags
- Rename Enum's
- Fix typo's

Change-Id: I210459ebb1f8f16d2b9739fd7b6d8feb5dab0921
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoAdd the feature check logic 54/253054/1 accepted/tizen/unified/20210208.061806 submit/tizen/20210208.015605
DoHyun Pyun [Thu, 4 Feb 2021 05:57:22 +0000 (14:57 +0900)]
Add the feature check logic

Change-Id: I3a7ba78dd468ebdab71190648e0561a6c355ba74
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoFix the script error for document 18/253018/1 accepted/tizen/unified/20210204.134404 submit/tizen/20210204.060304
DoHyun Pyun [Thu, 4 Feb 2021 03:09:55 +0000 (12:09 +0900)]
Fix the script error for document

Change-Id: I486a2ab78d0cc58b9e92bdc36eeabe8071927748
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoRename UA error to TIZEN_ERROR_USER_AWARENESS 96/252996/2
DoHyun Pyun [Thu, 4 Feb 2021 00:08:56 +0000 (09:08 +0900)]
Rename UA error to TIZEN_ERROR_USER_AWARENESS

Change-Id: I5e28bd374416b044ff6cb4a38a4aa08cf9063f09
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoUpdate documents and rename get default service API 93/252993/1
DoHyun Pyun [Wed, 3 Feb 2021 23:40:41 +0000 (08:40 +0900)]
Update documents and rename get default service API

Add the missing privilege for setter APIs and rename as
ua_service_get_default_service -> ua_get_default_service

Change-Id: Idfb55c767e11c5a26840fdca3b143d9806ecb889
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoAdd UA feature in the document 99/252899/2
DoHyun Pyun [Wed, 3 Feb 2021 04:54:21 +0000 (13:54 +0900)]
Add UA feature in the document

Change-Id: Iee7216dae11cec6cb8a7e89949c4cb407cd10490
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMerge "Rename UA error code enum" into tizen accepted/tizen/unified/20210203.145527 submit/tizen/20210203.045513
Pyun DoHyun [Wed, 3 Feb 2021 04:36:11 +0000 (04:36 +0000)]
Merge "Rename UA error code enum" into tizen

3 years agoRename UA error code enum 96/252896/1
Abhay Agarwal [Wed, 3 Feb 2021 04:27:15 +0000 (09:57 +0530)]
Rename UA error code enum

Change-Id: I9075cf56c47e03f0a72e117013a9ee65ee22e745
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate public API and callback description 80/252880/1
Abhay Agarwal [Wed, 3 Feb 2021 03:48:40 +0000 (09:18 +0530)]
Update public API and callback description

Change-Id: I3f92aa4c24a6e10cfcca7a9d77a4b319481749d1
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoAdd privilege for public API functions 12/252812/2
Abhay Agarwal [Tue, 2 Feb 2021 06:04:15 +0000 (11:34 +0530)]
Add privilege for public API functions

Change-Id: I2b2486ce460f0d00d9d49311940b01fc3337886b
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoSeperate the type header files 13/252713/4
DoHyun Pyun [Tue, 2 Feb 2021 00:17:29 +0000 (09:17 +0900)]
Seperate the type header files

Change-Id: I8121ba308ffc1c1b589809c560dccc875959cc73
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoRevert "Merge getter API's for service/user/device" 45/252645/1 submit/tizen/20210201.221559
Abhay Agarwal [Mon, 1 Feb 2021 05:19:28 +0000 (10:49 +0530)]
Revert "Merge getter API's for service/user/device"

This reverts commit 057d14d70ba706358570d899b81a1da3e2bd0e

Change-Id: I5db08acd80587c869aabe0775781e8684d41460d
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoFix the build error in the test file 17/252617/1 accepted/tizen/unified/20210201.055437 submit/tizen/20210131.225751
DoHyun Pyun [Sun, 31 Jan 2021 23:33:18 +0000 (08:33 +0900)]
Fix the build error in the test file

Change-Id: I55c3220c2ad83132152205c177ea810463649533
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoMove deprecated API's to internal header 39/252539/1
Abhay Agarwal [Fri, 29 Jan 2021 06:51:27 +0000 (12:21 +0530)]
Move deprecated API's to internal header

Change-Id: Ib3407d9861aecc04d7fdf5e3b00a82996f643491
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate API description for return error code 05/252505/1
Abhay Agarwal [Thu, 28 Jan 2021 10:40:50 +0000 (16:10 +0530)]
Update API description for return error code

Update API desciption to add UA_ERROR_NOT_INITIALIZED error code.

Change-Id: I70806f36c63bee4f9df5c7d276dcc8672406ccdd
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoRename utility functions of sensor 04/252504/1
Abhay Agarwal [Thu, 28 Jan 2021 09:49:01 +0000 (15:19 +0530)]
Rename utility functions of sensor

Change-Id: I54eb9172bc119a0fbcc103cf7096bd82f0cf0e64
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoMerge getter API's for service/user/device 64/252364/3
Abhay Agarwal [Mon, 25 Jan 2021 11:12:59 +0000 (16:42 +0530)]
Merge getter API's for service/user/device

Deprecated API's in this patch
- ua_service_get_name()
- ua_service_get_detection_threshold()
- ua_user_get_account()
- ua_device_get_mac_type()
- ua_device_get_os_info()
- ua_device_get_mac_address()
- ua_device_get_device_id()
- ua_device_get_wifi_bssid()
- ua_device_get_wifi_ipv4_address()
- ua_device_get_last_presence()

This patch adds below new getter API's
- ua_service_get_information()
- ua_user_get_information()
- ua_device_get_information()

Change-Id: Ie6716701f4b2d53c808bc1cc7a7e74439c6261a4
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoUpdate API's and document header 86/252186/2
Abhay Agarwal [Mon, 25 Jan 2021 08:08:07 +0000 (13:38 +0530)]
Update API's and document header

This patch below modifies API's (renames)
- ua_sensor_get_bitmask
=> ua_sensor_get_type
- ua_service_get_by_name
=> ua_get_service_handle_by_name

Change-Id: I782d49b6dc718cfc9bddaa9da1e9d6dabd7c1871
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify monitor API's 60/252160/3
Abhay Agarwal [Fri, 22 Jan 2021 04:27:48 +0000 (09:57 +0530)]
Modify monitor API's

This patch modifies monitor based API's and callbacks
(renames/parameter modifications)

New API's to be used in place of deprecated API's
- ua_monitor_start_scan_devices()
=> ua_monitor_start_scan()
- ua_monitor_stop_scan_devices()
=> ua_monitor_stop_scan()
- Added service_handle in ua_presence_detected_cb
- Added service_handle in ua_absence_detected_cb

Change-Id: I603952908ce2d7ece527e0ee15cfb1aeca7945ea
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify device API's 07/252007/4
Abhay Agarwal [Thu, 21 Jan 2021 10:17:45 +0000 (15:47 +0530)]
Modify device API's

This patch modifies device based API's (renames/parameter modifications)

Deprecated API's
- ua_device_clone
- ua_device_set_mac_type
- ua_device_set_mac_address
- ua_device_set_device_id
- ua_device_get_parent_service
- ua_device_get_parent_user

New API's to be used in place of deprecated API's
- ua_device_foreach_added()
=> ua_foreach_devices()
- ua_device_create(ua_device_h * device_handle)
=> ua_device_create(ua_mac_type_e mac_type, const char* mac_address,
const char *device_id, ua_device_h *device_handle)

Change-Id: I1270d118fdd393e638e30e3f0ae5b4dcadc3e7c8
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify service API's 06/252006/4
Abhay Agarwal [Thu, 21 Jan 2021 07:59:30 +0000 (13:29 +0530)]
Modify service API's

This patch modifies service based API's (renames/ parameter modifications)

New API's to be used in place of deprecated API's

- ua_service_foreach_added()
=> ua_foreach_services()
- ua_service_foreach_added_users()
=> ua_service_foreach_users()
- ua_service_create(ua_service_h *service_handle)
=> ua_service_create(const char *name, ua_service_h *service_handle);

Change-Id: Ic9b5ee8b7e5b84704807fc943007831b901f1bf9
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify user API's 40/251940/5
Abhay Agarwal [Tue, 19 Jan 2021 07:21:53 +0000 (12:51 +0530)]
Modify user API's

This patch modifies user based API's (renames/ parameter modifications)

New API's to be used in place of deprecated API's

- ua_user_foreach_added() [deprecated]
=> ua_foreach_users()
- ua_user_get_default_user() [deprecated]
=> ua_get_default_user()
- ua_user_get_handle_by_account() [deprecated]
=> ua_service_get_user_by_account()
- ua_user_foreach_added_devices()
=> ua_user_foreach_devices()
- ua_user_create(ua_user_h *user_handle)
=> ua_user_create(const char* account, ua_user_h *user_handle)

Change-Id: Iffc42e23e0e86bcb82498542536482f00241bf6f
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
3 years agoModify some APIs appropriately 75/251875/1
hyunuk.tak [Wed, 20 Jan 2021 07:39:37 +0000 (16:39 +0900)]
Modify some APIs appropriately

Add APIs
 ua_device_get_parent_user
 ua_device_get_parent_service

Modify APIs
 ua_monitor_cancel_scan_devices
 ua_sensor_status_changed_cb

Change-Id: I3e6d885b4ace313d4b0ac38f385a5a0abcd37802
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoAdd define and log for deprecated API 43/251743/2
hyunuk.tak [Tue, 19 Jan 2021 04:45:19 +0000 (13:45 +0900)]
Add define and log for deprecated API

Change-Id: I5bf70ab907fcfba5d2858097c3180670da598d78
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoOrganize by deleting unnecessary APIs 59/251459/3
hyunuk.tak [Thu, 14 Jan 2021 05:00:14 +0000 (14:00 +0900)]
Organize by deleting unnecessary APIs

Change-Id: I02e38e6363775dfc53af8a9a28a9f7c5dd071dc1
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoAdd some patches 95/250695/3 submit/tizen/20210112.005356
hyunuk.tak [Sun, 3 Jan 2021 23:56:54 +0000 (08:56 +0900)]
Add some patches

CircleCI config update
OS_TYPE updation by user fix
Fix to use gbs image for circle ci
Fix sensor detection callback
Fix handle the ua-manager termination
Add support to allow simultaneous device addition
Fix to use differnt device addition callback at same time
Handle device addition failure
Fix API to get all registered users
Clean up unnecessary global variables
Modify device payload structure
unit test: Add scenario table
unit test: Update scenario test cases
unit test: Update detection test cases
ua-test: update for payload verification

Change-Id: Iac4ca3a3978a4a99483994cc1cc0f1df58035899
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoModify the package version 48/240048/3 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.122518 accepted/tizen/6.0/unified/hotfix/20201103.004818 accepted/tizen/6.0/unified/hotfix/20201103.052140 accepted/tizen/unified/20200810.123046 submit/tizen/20200806.040127 submit/tizen/20200809.234730 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
DoHyun Pyun [Mon, 3 Aug 2020 01:39:21 +0000 (10:39 +0900)]
Modify the package version

In order to distinguish the package history as tizen version,
we manage the package version from now.

Change-Id: Ib5b790c6aa2a70d6d2bc323740dbbfa4de251769
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix typo for gcov build 27/231427/1 accepted/tizen/unified/20200423.054538 submit/tizen/20200422.035906
Cheoleun Moon [Wed, 22 Apr 2020 03:36:45 +0000 (12:36 +0900)]
Fix typo for gcov build

Change-Id: I138ea5d8d0b84a1318fe330b2591ff1db8709028
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
4 years agoua-test: Check bounds for tainted integer device uid length 39/224339/1 accepted/tizen/unified/20200210.131733 accepted/tizen/unified/20200218.145842 submit/tizen/20200210.035428 submit/tizen/20200218.012819
Abhay Agarwal [Tue, 4 Feb 2020 05:25:18 +0000 (10:55 +0530)]
ua-test: Check bounds for tainted integer device uid length

Integer value 'device_uid_len' is being obtained from untrusted source.
Bounds of device uid length needs to be checked before using it as a loop
bound.

Change-Id: Idcb1f9b67d099d9f3443166ae559c81c563632ad
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
4 years agoua-test: Fix resource leak because of payload params 41/224241/1
Abhay Agarwal [Wed, 29 Jan 2020 04:53:02 +0000 (10:23 +0530)]
ua-test: Fix resource leak because of payload params

Change-Id: I19749aca6fef9caa82ddf40aa75dcacc88cdf3cb
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
4 years agoRemove logically dead code 40/224240/1
Abhay Agarwal [Tue, 28 Jan 2020 10:11:46 +0000 (15:41 +0530)]
Remove logically dead code

Change-Id: Ibcae2066b83eefd37da237302bbda0f4e6cdd425
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
4 years agoua-test: Check bounds for tainted integer device uid length 39/224239/1
Abhay Agarwal [Tue, 4 Feb 2020 05:25:18 +0000 (10:55 +0530)]
ua-test: Check bounds for tainted integer device uid length

Integer value 'device_uid_len' is being obtained from untrusted source.
Bounds of device uid length needs to be checked before using it as a loop
bound.

Change-Id: If7d99db801af3d662e1212b5550ba391a916f913
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
4 years agoFix gcc9 build failed : array-bounds error 48/221848/1 accepted/tizen/unified/20200109.065515 submit/tizen/20200108.150017
Jihoon Jung [Wed, 8 Jan 2020 14:01:03 +0000 (23:01 +0900)]
Fix gcc9 build failed : array-bounds error

Change-Id: Ic14f816d544168ad8ca558ec5d7731178841bf3f
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
4 years agoAdd Remark to free ble payload's user_data accepted/tizen/unified/20200101.120604 submit/tizen/20191230.073018
Nishant Chaprana [Mon, 30 Dec 2019 05:45:41 +0000 (11:15 +0530)]
Add Remark to free ble payload's user_data

Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoFix coding guidelines issues
Abhay agarwal [Fri, 27 Dec 2019 07:25:49 +0000 (12:55 +0530)]
Fix coding guidelines issues

Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
4 years agomodify ua-test app to show payload params in hex
Abhay agarwal [Fri, 27 Dec 2019 04:10:55 +0000 (09:40 +0530)]
modify ua-test app to show payload params in hex

Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>