summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-03-10Update cmake to add type headersAbhay Agarwal1-0/+2
Change-Id: Ic47dd3ec96ee1595afd90eb73718ff568f63ee03 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-03-10Modify the API name for seting callbackhyunuk.tak4-18/+18
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>
2021-03-09Modify privilege info in headerhyunuk.tak1-56/+50
Change-Id: Ie71d17be0a4e1194c6c6d7eb09b8a06dd19a84eb Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
2021-03-08Rename callback for registered devicessubmit/tizen/20210308.053143accepted/tizen/unified/20210309.140735Abhay Agarwal6-27/+24
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>
2021-03-03Rename enum to report presence/absencesubmit/tizen/20210303.222245accepted/tizen/unified/20210305.034038Abhay Agarwal4-8/+8
Change-Id: If3a004ddb2ebf3607122eb3c97c4f270c59f6bd0 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-03-03Rename sensor callbackAbhay Agarwal4-12/+14
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>
2021-03-03Update API descriptionAbhay Agarwal2-24/+46
Change-Id: Ie339a3ff85fe0f984772459beb3f6e71cd3e7466 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-02-23Rename API and update headerAbhay Agarwal5-20/+20
This patch renames ua_foreach_services() => ua_foreach_service() Change-Id: I4329ecbe939c093ecc7296b390645b6a307fd636 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-02-22Update API header filesAbhay Agarwal13-274/+298
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>
2021-02-16Update API header files and docssubmit/tizen/20210216.223806accepted/tizen/unified/20210218.042123Abhay Agarwal9-295/+25
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>
2021-02-04Add the feature check logicsubmit/tizen/20210208.015605accepted/tizen/unified/20210208.061806DoHyun Pyun9-1/+126
Change-Id: I3a7ba78dd468ebdab71190648e0561a6c355ba74 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2021-02-04Fix the script error for documentsubmit/tizen/20210204.060304accepted/tizen/unified/20210204.134404DoHyun Pyun1-1/+1
Change-Id: I486a2ab78d0cc58b9e92bdc36eeabe8071927748 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2021-02-04Rename UA error to TIZEN_ERROR_USER_AWARENESSDoHyun Pyun1-12/+12
Change-Id: I5e28bd374416b044ff6cb4a38a4aa08cf9063f09 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2021-02-04Update documents and rename get default service APIDoHyun Pyun3-60/+75
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>
2021-02-04Add UA feature in the documentDoHyun Pyun1-0/+4
Change-Id: Iee7216dae11cec6cb8a7e89949c4cb407cd10490 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2021-02-03Merge "Rename UA error code enum" into tizensubmit/tizen/20210203.045513accepted/tizen/unified/20210203.145527Pyun DoHyun3-3/+3
2021-02-03Rename UA error code enumAbhay Agarwal3-3/+3
Change-Id: I9075cf56c47e03f0a72e117013a9ee65ee22e745 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-02-03Update public API and callback descriptionAbhay Agarwal2-0/+11
Change-Id: I3f92aa4c24a6e10cfcca7a9d77a4b319481749d1 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-02-03Add privilege for public API functionsAbhay Agarwal1-2/+80
Change-Id: I2b2486ce460f0d00d9d49311940b01fc3337886b Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-02-02Seperate the type header filesDoHyun Pyun4-483/+561
Change-Id: I8121ba308ffc1c1b589809c560dccc875959cc73 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2021-02-01Revert "Merge getter API's for service/user/device"submit/tizen/20210201.221559Abhay Agarwal11-632/+502
This reverts commit 057d14d70ba706358570d899b81a1da3e2bd0e Change-Id: I5db08acd80587c869aabe0775781e8684d41460d Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-02-01Fix the build error in the test filesubmit/tizen/20210131.225751accepted/tizen/unified/20210201.055437DoHyun Pyun1-1/+2
Change-Id: I55c3220c2ad83132152205c177ea810463649533 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2021-01-29Move deprecated API's to internal headerAbhay Agarwal3-628/+633
Change-Id: Ib3407d9861aecc04d7fdf5e3b00a82996f643491 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-01-28Update API description for return error codeAbhay Agarwal3-49/+138
Update API desciption to add UA_ERROR_NOT_INITIALIZED error code. Change-Id: I70806f36c63bee4f9df5c7d276dcc8672406ccdd Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-01-28Rename utility functions of sensorAbhay Agarwal5-63/+22
Change-Id: I54eb9172bc119a0fbcc103cf7096bd82f0cf0e64 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2021-01-28Merge getter API's for service/user/deviceAbhay Agarwal9-337/+394
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>
2021-01-27Update API's and document headerAbhay Agarwal12-94/+164
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>
2021-01-27Modify monitor API'sAbhay Agarwal4-42/+109
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>
2021-01-27Modify device API'sAbhay Agarwal6-234/+71
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>
2021-01-27Modify service API'sAbhay Agarwal5-60/+52
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>
2021-01-27Modify user API'sAbhay Agarwal7-74/+194
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>
2021-01-20Modify some APIs appropriatelyhyunuk.tak8-26/+126
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>
2021-01-20Add define and log for deprecated APIhyunuk.tak6-50/+51
Change-Id: I5bf70ab907fcfba5d2858097c3180670da598d78 Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
2021-01-14Organize by deleting unnecessary APIshyunuk.tak25-3074/+577
Change-Id: I02e38e6363775dfc53af8a9a28a9f7c5dd071dc1 Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
2021-01-11Add some patchessubmit/tizen/20210112.005356hyunuk.tak23-868/+1600
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>
2020-08-04Modify the package versiontizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114802submit/tizen_6.0_hotfix/20201102.192502submit/tizen_6.0/20201029.205102submit/tizen/20200809.234730submit/tizen/20200806.040127accepted/tizen/unified/20200810.123046accepted/tizen/6.0/unified/hotfix/20201103.052140accepted/tizen/6.0/unified/hotfix/20201103.004818accepted/tizen/6.0/unified/20201030.122518tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedDoHyun Pyun1-1/+1
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>
2020-04-22Fix typo for gcov buildsubmit/tizen/20200422.035906accepted/tizen/unified/20200423.054538Cheoleun Moon1-1/+1
Change-Id: I138ea5d8d0b84a1318fe330b2591ff1db8709028 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2020-02-10ua-test: Check bounds for tainted integer device uid lengthsubmit/tizen/20200218.012819submit/tizen/20200210.035428accepted/tizen/unified/20200218.145842accepted/tizen/unified/20200210.131733Abhay Agarwal1-0/+1
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>
2020-02-07ua-test: Fix resource leak because of payload paramsAbhay Agarwal1-0/+3
Change-Id: I19749aca6fef9caa82ddf40aa75dcacc88cdf3cb Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2020-02-07Remove logically dead codeAbhay Agarwal1-30/+2
Change-Id: Ibcae2066b83eefd37da237302bbda0f4e6cdd425 Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
2020-02-07ua-test: Check bounds for tainted integer device uid lengthAbhay Agarwal2-2/+4
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>
2020-01-08Fix gcc9 build failed : array-bounds errorsubmit/tizen/20200108.150017accepted/tizen/unified/20200109.065515Jihoon Jung1-3/+3
Change-Id: Ic14f816d544168ad8ca558ec5d7731178841bf3f Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
2019-12-30Add Remark to free ble payload's user_datasubmit/tizen/20191230.073018accepted/tizen/unified/20200101.120604Nishant Chaprana1-0/+2
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-12-30Fix coding guidelines issuesAbhay agarwal11-80/+65
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
2019-12-30modify ua-test app to show payload params in hexAbhay agarwal3-2/+56
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
2019-12-30Get payload device user dataAbhay agarwal3-4/+88
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
2019-12-30Set length for payload device uidAbhay agarwal5-13/+25
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
2019-12-30modify ua-test app to select and update payloadAbhay agarwal1-11/+51
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
2019-12-30Implement get APIs to get payload information in ua-test appAbhay agarwal3-66/+107
Get APIs implemented for payload - ua_payload_get_primary_key() - ua_payload_get_secondary_key() - ua_payload_get_device_uid() - ua_payload_get_device_icon() Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
2019-12-30Add APIs to get list of added payload infoAbhay agarwal6-13/+284
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>