platform/core/api/sensor.git
4 months agosensor: Remove profile version from header files 25/302325/2 accepted/tizen_unified accepted/tizen_unified_riscv tizen accepted/tizen/unified/20231207.171706 accepted/tizen/unified/riscv/20231211.234041
SangYoun Kwak [Tue, 5 Dec 2023 08:35:35 +0000 (17:35 +0900)]
sensor: Remove profile version from header files

Since there is no profile since Tizen 8.0, support-version descriptions
are fixed as the support-version of mobile profile.

Change-Id: I101c6d8d283f977be9fdb95e6d8cd01c6ce1522b
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agosensor: Add lcov exceptions to sensor accessing codes 22/298522/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.092838 accepted/tizen/unified/20230911.091138 tizen_8.0_m2_release
SangYoun Kwak [Fri, 8 Sep 2023 07:56:07 +0000 (16:56 +0900)]
sensor: Add lcov exceptions to sensor accessing codes

Line coverage exception is added to the codes which are executed only
when there is at least one sensor. (such as sensor event callback
function)
These codes are not executed if no sensor is supported and the test
environment has no sensor, they are considered as exceptions.

Change-Id: I524a60d31132baf31cb1fcec617dc0879273f8fc
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agosensor-internal: Add lcov exception to internal functions 59/297959/1 accepted/tizen/unified/20230831.081039
SangYoun Kwak [Tue, 29 Aug 2023 04:18:39 +0000 (13:18 +0900)]
sensor-internal: Add lcov exception to internal functions

Add line coverage exception to the internal functions of sensor.

Change-Id: I7257c235da760f6dcf87854ecdd7782c92d325c4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agofusion-util: geomagnetic-field: Remove unused functions 58/297958/1
SangYoun Kwak [Wed, 23 Aug 2023 10:45:52 +0000 (19:45 +0900)]
fusion-util: geomagnetic-field: Remove unused functions

Functions below are not used and not tested by the UTC.
 - fusion-util.c: clamp, matrixToQuat
 - geomagnetic-field.c: getDeclination, getInclination

Thus, they are removed.

Change-Id: Ic684158ac796cd5cc05b84db98ca1bdfa9a4858a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agolibsensor: Remove libsensor source codes 09/287009/4 accepted/tizen/unified/20230406.165726
TaeminYeom [Wed, 18 Jan 2023 07:45:28 +0000 (16:45 +0900)]
libsensor: Remove libsensor source codes

In commit 6e0837fbecf9 ("Copy libsensor to API"),
libsensor source codes were copied from sensord project.
But in commit 4c27ed721105 ("Change not to make libsensor so file"),
it was changed not to be used because of layered architecture and dependency.
So, this unused codes should be removed.

Change-Id: I543990dcf98bee5a1098d2b0662ea03cc092bf81
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
14 months agoLIDAR: Add power state attribute 66/287366/2 accepted/tizen/unified/20230131.162124
TaeminYeom [Fri, 27 Jan 2023 08:01:04 +0000 (17:01 +0900)]
LIDAR: Add power state attribute

Previous LIDAR sensor used sensor listener attribute.
But sensor handle attribute was made so, to set and get lidar attribute
with sensor handle attribute API, new sensor handle attribute is needed.

Added Enum:
-sensor_lidar_power_state_e
  SENSOR_LIDAR_POWER_STATE_OFF
  SENSOR_LIDAR_POWER_STATE_ON

Change-Id: I7ba62df02183184d820b9faf48f98bf2235a44f7
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
14 months agoAdd setter and getter sensor handle attribute 76/286976/6
TaeminYeom [Tue, 17 Jan 2023 08:01:17 +0000 (17:01 +0900)]
Add setter and getter sensor handle attribute

Sensor handle attribute is diffrent with sensor listener attribute.
Listener attribute is depending on each listener, not sensor.
But handle attribute can affect all listeners connecting the sensor.

API function
-sensor_set_attribute_int : set sensor handle attribute
-sensor_get_attribute_int : get sensor handle attribute

Enumeration
-sensor_handle_attribute_e
  SENSOR_HANDLE_ATTR_PROXIMITY_SENSITIVITY_LEVEL :
    attribute of proximity sensor to control sensitivity level.
    the value should be sensor_proximity_sensitivity_level_e.

-sensor_proximity_sensitivity_level_e
  It can be used to set SENSOR_HANDLE_ATTR_PROXIMITY_SENSITIVITY_LEVEL.
  SENSOR_PROXIMITY_SENSITIVITY_LEVEL_WEAK : detects close distances.
  SENSOR_PROXIMITY_SENSITIVITY_LEVEL_MEDIUM : detects middle distances.
  SENSOR_PROXIMITY_SENSITIVITY_LEVEL_STRONG : detects long distances.

Change-Id: I6b736933b426c08fe93ee605587d25984a60b79b
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
14 months agolistener: Add getter listener attribute 48/286948/7
TaeminYeom [Tue, 17 Jan 2023 07:56:21 +0000 (16:56 +0900)]
listener: Add getter listener attribute

There is a setter attribute int in public API.
But there is no getter, so it is needed.

API function
-sensor_listener_get_attribute_int : get listener attribute int

Change-Id: Id8b3a7610d5533e93bb3212fc81df3ce8162929d
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
14 months agoChange the names of attribute libsensor API 13/287313/1
TaeminYeom [Thu, 26 Jan 2023 07:27:26 +0000 (16:27 +0900)]
Change the names of attribute libsensor API

In libsensor, attribute APIs name will be changed
Previous attribute APIs are for getting or setting sensor listener attribute.
To distinguish between sensor listener attribute API and
sensor handle attribute API, change the names.

changed API

sensord_get_attribute_int -> sensord_listener_get_attribute_int
sensord_set_attribute_int -> sensord_listener_set_attribute_int

Change-Id: I992cb87e1dda47d06de46a9c40be9f6a0e701972
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
18 months agoFix descriptions of sensor-internal.h according to the API checker script 94/282894/5
SangYoun Kwak [Thu, 13 Oct 2022 05:08:24 +0000 (14:08 +0900)]
Fix descriptions of sensor-internal.h according to the API checker script

Warning messages from the API checker about the description of invalid parameter(return value)
was ignored since the description is already mentioning the return value about invalid parameter.

Change-Id: Ib272acbed14a98c94eaec964883c4d92d6c987e9
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
18 months agogeomagnetic-field: Fix comparison of float 16/282016/3 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063826 accepted/tizen/7.0/unified/hotfix/20221116.104824 accepted/tizen/unified/20220930.020554 tizen_7.0_m2_release
TaeminYeom [Mon, 26 Sep 2022 08:11:56 +0000 (17:11 +0900)]
geomagnetic-field: Fix comparison of float

Change-Id: Idb818706c7fc5572948ca39e5a7b04cef10eb868
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
18 months agoChange not to make libsensor so file 56/281656/1 accepted/tizen/unified/20220922.062115 accepted/tizen/unified/20220922.062738
TaeminYeom [Tue, 20 Sep 2022 08:45:13 +0000 (17:45 +0900)]
Change not to make libsensor so file

It will be removed

Change-Id: I9f5d3434bfbfe94bf72a94afeae9e0b0c0cb7539
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
19 months agoFix SVACE, Coverity issues and build warnings 69/281369/1 accepted/tizen/unified/20220919.021608
TaeminYeom [Fri, 16 Sep 2022 06:00:46 +0000 (15:00 +0900)]
Fix SVACE, Coverity issues and build warnings

Change-Id: I70cf97cdfc627c640db7eab0912044f1fb0e33ce
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
19 months agoMove libsensor header files into capi sensor for compatibility 67/281267/5
TaeminYeom [Thu, 15 Sep 2022 05:41:29 +0000 (14:41 +0900)]
Move libsensor header files into capi sensor for compatibility
-sensor-deprecated.h
-sensor-internal-deprecated.h

change a header file not private
(actually, it was not used as private)
-sensor-types-private.h -> sensor-types.h

change spec file not to include private header files in devel package

Change-Id: I08b12e541a0cb76d89d096ed4ded892556172853
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
19 months agoRefactoring: sensor_listener class 42/280942/9
TaeminYeom [Wed, 7 Sep 2022 03:13:28 +0000 (12:13 +0900)]
Refactoring: sensor_listener class

-Remove listener_handler class
-Change not to use g_io_handler callback and channel class

Previous callstack is too complicated
-g_io_handler
--channel_event_handler->handle
---channel->read_sync
----channel_event_handler->read
-----listener_handler->read
------sensor_listener_channel_handler->read

New callstack
-listener_handler (it is added function, not previous class)
--sensor_listener->handle
---sensor_listener_channel_handler->read

Change-Id: Iba35390c6e27d67d0fdb1e54ffaacef2d7ac029f
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
20 months agoRefactoring: sensor_manager class 38/279738/6
TaeminYeom [Wed, 17 Aug 2022 06:04:34 +0000 (15:04 +0900)]
Refactoring: sensor_manager class

Remove sensor_manager_channel_handler class
Change not to use g_io_handler callback and channel class

Change-Id: Ibfc5914e45b661cc111a13ff7b695c6f34d13571
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
20 months agoAdd return code in try_lock function 23/279923/2
TaeminYeom [Fri, 19 Aug 2022 05:50:24 +0000 (14:50 +0900)]
Add return code in try_lock function

Change-Id: Id11ea21acf089b37914449e99604e20306adcc96
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
20 months agoRefactoring: sensor_provider class 46/278846/6
TaeminYeom [Wed, 27 Jul 2022 01:11:09 +0000 (10:11 +0900)]
Refactoring: sensor_provider class

Remove sensor_provider_channel_handler class
Change not to use g_io_handler callback

Change-Id: I308d614feaa5a32fd3f292c20a5661802d834799
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
20 months agoRemove unused debug lock code 55/278755/2
TaeminYeom [Tue, 26 Jul 2022 01:37:16 +0000 (10:37 +0900)]
Remove unused debug lock code

Change-Id: I05dd8370dbd2590f87533fe3dd87af7e8a69cfa7
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoChange naming style 06/278306/5
TaeminYeom [Tue, 19 Jul 2022 02:30:43 +0000 (11:30 +0900)]
Change naming style

-Add "api" prefix to api body files
-Change under-bar to hyphen

Change-Id: I9a52de1339257eeaf05455b362941adaadcb40cc
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoChange filename "cmutex.h" to "lock.h" 91/277991/1
TaeminYeom [Mon, 18 Jul 2022 00:46:38 +0000 (09:46 +0900)]
Change filename "cmutex.h" to "lock.h"

Change-Id: I42689942d5b220244dffab30557d2ac2055b590d
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoUnify cmutex class 83/277783/1 accepted/tizen/unified/20220717.023608 submit/tizen/20220715.042407
TaeminYeom [Wed, 13 Jul 2022 08:39:55 +0000 (17:39 +0900)]
Unify cmutex class

Remove cbase_lock class

Change-Id: I74356a2cded045a25e16919c7059547530f5f1ca
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoUnify socket class 14/277714/2 accepted/tizen/unified/20220713.144410 submit/tizen/20220713.003723
TaeminYeom [Tue, 12 Jul 2022 08:42:12 +0000 (17:42 +0900)]
Unify socket class

Remove seqpacket_socket, stream_socket, ipc_client,
ipc_server, accept_event_handler class

Change-Id: Idec7923636db1092cc9395692e8b79acd09952d7
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoFix sensor_util_get_orientation 22/277622/3
TaeminYeom [Mon, 11 Jul 2022 06:40:20 +0000 (15:40 +0900)]
Fix sensor_util_get_orientation

Unify it with sensord algorithm

Change-Id: I90b60796592aeef012d13a3385417664e3fdf646
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoRemove unused macro 17/277617/3
TaeminYeom [Mon, 11 Jul 2022 05:43:41 +0000 (14:43 +0900)]
Remove unused macro

Change-Id: I92f414924280716c297e0409c115cdb27500fe72
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoDivide private header files to include/private folder 78/277478/2
TaeminYeom [Thu, 7 Jul 2022 10:09:01 +0000 (19:09 +0900)]
Divide private header files to include/private folder

Change-Id: Ib9fab5c41a35cfb70a8f198481386e00f3a1a182
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoChange the name of header files 51/277451/2
TaeminYeom [Thu, 7 Jul 2022 06:09:25 +0000 (15:09 +0900)]
Change the name of header files

Fix the style of name sensor-xxx.h
Merge sensor_internal.h into sensor-internal.h

Change-Id: I7beddf55788172884670b978ee431c8ea4892eb5
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoCopy libsensor to API 44/277244/4
TaeminYeom [Mon, 4 Jul 2022 05:49:07 +0000 (14:49 +0900)]
Copy libsensor to API

Change-Id: Ib82941e2ba6cbb6b7d360a095a1f390797d08e9a
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
21 months agoAdd timestamp in sensor-tool 72/276872/2 accepted/tizen/unified/20220628.133546 submit/tizen/20220627.091154
TaeminYeom [Mon, 27 Jun 2022 08:33:22 +0000 (17:33 +0900)]
Add timestamp in sensor-tool

Change-Id: I7916b26a6023cc2cff425d8398056f4cf33c810d
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
22 months agoApply requirement for gcov automation 22/276122/1 accepted/tizen/unified/20220613.161558 submit/tizen/20220610.020359
Youngjae Cho [Fri, 10 Jun 2022 01:01:07 +0000 (10:01 +0900)]
Apply requirement for gcov automation

Change-Id: Ie2940bb5dd797d3e443e454934e6c4a27a898c0b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoFix build error in 64bit environment 35/273535/1 accepted/tizen/unified/20220526.144410 submit/tizen/20220525.001052
TaeminYeom [Thu, 7 Apr 2022 06:59:12 +0000 (15:59 +0900)]
Fix build error in 64bit environment

Change-Id: I082ebc58681d88bc3f77ef04b124faa599904aa3
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoAdd option to sensor-tool 27/273527/2
TaeminYeom [Thu, 7 Apr 2022 01:59:22 +0000 (10:59 +0900)]
Add option to sensor-tool

Change-Id: I5ef54eacb2142afac007ecb2c8d953e5deeb176a
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoRemove unused test 26/273526/1
TaeminYeom [Wed, 6 Apr 2022 08:31:20 +0000 (17:31 +0900)]
Remove unused test

Change-Id: Ifeed63a95b2f2baf55a5f95fc9ec9cc097c969e6
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoImplement a test tool for sensor spec test and stress test 13/273413/4
TaeminYeom [Tue, 5 Apr 2022 08:38:15 +0000 (17:38 +0900)]
Implement a test tool for sensor spec test and stress test

Change-Id: I69393e5ad5c0539f051573e91a36bc73abebf11e
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoChange gcov object install path 72/270172/1 accepted/tizen/unified/20220128.144508 submit/tizen/20220127.011830
TaeminYeom [Wed, 26 Jan 2022 07:37:17 +0000 (16:37 +0900)]
Change gcov object install path

Change-Id: I511f7150685e0f6c77eb0e047fa152e9af249b88
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoAdd define check for __SENSOR_INTERNAL_H__ 43/269343/1
Hyotaek Shim [Thu, 13 Jan 2022 03:55:39 +0000 (12:55 +0900)]
Add define check for __SENSOR_INTERNAL_H__

Change-Id: I6d0e74a3e73ea4be8743ff5fd93363564bc7c1c2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoChange directory name from test to tests 79/269279/1
Hyotaek Shim [Wed, 12 Jan 2022 09:11:11 +0000 (18:11 +0900)]
Change directory name from test to tests

Change-Id: I699f87c6ca9d80bb4f2885ed33510fffb6ded564
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoAdd .gitignore 77/269277/1
Hyotaek Shim [Wed, 12 Jan 2022 09:09:48 +0000 (18:09 +0900)]
Add .gitignore

Change-Id: I088afb61fceb3346f7b7b71037845c0ce52ab4d0
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoApply ASLR compile options 59/269259/3
Hyotaek Shim [Wed, 12 Jan 2022 06:52:37 +0000 (15:52 +0900)]
Apply ASLR compile options

Change-Id: I182c1f6132305b1d7f96a31ae244cfe7e575b46a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoChange to use SENSOR_BATCH_LATENCY_DEFAULT in sensord 81/269181/1
TaeminYeom [Tue, 11 Jan 2022 06:00:48 +0000 (15:00 +0900)]
Change to use SENSOR_BATCH_LATENCY_DEFAULT in sensord

Change-Id: I34e7d3bead97306e1893e91128a34b2dcc33acab
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoRemove sensor_get_type log 77/268777/3
TaeminYeom [Mon, 3 Jan 2022 01:10:49 +0000 (10:10 +0900)]
Remove sensor_get_type log

Change-Id: I0f3214b6bc92931d956f01a9262b50c068e1b155
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoAdd the number of value of sleep_detector sensor 84/268784/1
TaeminYeom [Mon, 3 Jan 2022 03:15:44 +0000 (12:15 +0900)]
Add the number of value of sleep_detector sensor

Change-Id: If2892117e2c6f35a858f00bc53feb402f3e4d331
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoUse HAL attribute enum 85/268385/1 accepted/tizen/unified/20211224.144853 submit/tizen/20211222.081021
taemin.yeom [Wed, 22 Dec 2021 05:55:47 +0000 (14:55 +0900)]
Use HAL attribute enum

-include hal-api-sensor
-remove sensor_attribute_internal_e

Change-Id: Iaf23b2ae7a4f6ca7e1627d27f6d50e3f34c57d03
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoChange internal API argument 52/267952/1
taemin.yeom [Tue, 14 Dec 2021 02:20:56 +0000 (11:20 +0900)]
Change internal API argument

-sensor_util_set_attribute_int
-sensor_util_get_attribute_int

Change-Id: I1deb237b5b48ad900c868f1983c8bf3e31a1e5b7
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoAdd Lidar sensor type in internal header 27/267927/2
taemin.yeom [Mon, 13 Dec 2021 09:30:34 +0000 (18:30 +0900)]
Add Lidar sensor type in internal header

Change-Id: I7a598c7fc3c97aa49677e25af6dd40ac70351bad
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoAdd internal API prototype 09/267909/2
taemin.yeom [Mon, 13 Dec 2021 07:24:20 +0000 (16:24 +0900)]
Add internal API prototype

-sensor_util_set_attribute_int
-sensor_util_get_attribute_int
-enum sensor_Attribute_internal_e

Change-Id: I1ef8cfc7eae5b2f6c0338367256d8a6cdb64d173
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoAdd sensor-tool prototype 89/266389/3
taemin.yeom [Thu, 11 Nov 2021 09:33:23 +0000 (18:33 +0900)]
Add sensor-tool prototype

Change-Id: I4eaa52048aeab578a56744f783e8cc97d802907b
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoUpdate sensor_doc.h about new sensor types 65/264765/1 accepted/tizen/unified/20211108.181422 submit/tizen/20210929.092322 submit/tizen/20211103.072537 submit/tizen/20211104.032902
taemin.yeom [Wed, 29 Sep 2021 08:54:54 +0000 (17:54 +0900)]
Update sensor_doc.h about new sensor types

- Gyroscope Orientation
- Geomagnetic Orientation

Change-Id: I203a7a4ac054e48524591248c0dbb79890395cd0
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoAdd orientation sensor type 01/263301/4 accepted/tizen/6.5/unified/20211028.101218 accepted/tizen/unified/20210917.124827 submit/tizen/20210916.054029 submit/tizen_6.5/20211028.161801 tizen_6.5.m2_release
Yunmi Ha [Tue, 31 Aug 2021 06:30:08 +0000 (15:30 +0900)]
Add orientation sensor type

- SENSOR_GYROSCOPE_ORIENTATION : based on gyroscope_rotation_vector
- SENSOR_GEOMAGNETIC_ORIENTATION : based on geomagnetic_rotration_vector

Change-Id: I5ff47b3e31d84e181c6d7a487b23451f28adbebf
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2 years agoAdd a test verifying orientation 05/262905/6 submit/tizen/20210831.021755
taemin.yeom [Mon, 23 Aug 2021 08:52:31 +0000 (17:52 +0900)]
Add a test verifying orientation

Change-Id: I53c761da83f6aa7911632ccba2db4a4c7b10f769
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoAdd checking NULL for strdup 66/262766/1 accepted/tizen/unified/20210823.124232 submit/tizen/20210820.083850
Yunmi Ha [Thu, 19 Aug 2021 08:42:41 +0000 (17:42 +0900)]
Add checking NULL for strdup

Change-Id: I42b437d06970045fc8d3af8c919c54d903a4db5e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2 years agoPrevent a corner case and add static keywords 73/260673/1 accepted/tizen/unified/20210727.124557 submit/tizen/20210726.050348
taemin.yeom [Thu, 1 Jul 2021 02:00:28 +0000 (11:00 +0900)]
Prevent a corner case and add static keywords

Change-Id: I3a5652879b446aa03e09ab935b065411d82f3fa0
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2 years agoAdd a test verifying range of sensor 82/259782/3
taemin.yeom [Mon, 14 Jun 2021 07:32:46 +0000 (16:32 +0900)]
Add a test verifying range of sensor

Change-Id: I80c77778e9c0263498c1aedd8f8aac52d4f41046
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoRemoving unnecessary HTML link for privilege 04/250104/1 accepted/tizen/unified/20201221.122649 submit/tizen/20201221.015520
Boram Bae [Mon, 21 Dec 2020 01:33:48 +0000 (10:33 +0900)]
Removing unnecessary HTML link for privilege

Change-Id: I4bb80c031f5a7fda0de29e9b65fde7a8832aee9a
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
3 years agoPrevent unnecessary HTML link 50/249750/1
Boram Bae [Wed, 16 Dec 2020 09:24:32 +0000 (18:24 +0900)]
Prevent unnecessary HTML link

Change-Id: I14724bb94148a5dbc4fe5def4da3ba85f744b4ab
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
3 years agoDeprecate SENSOR_HUMAN_STRESS_MONITOR 92/233892/2 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.122736 accepted/tizen/6.0/unified/hotfix/20201103.005023 accepted/tizen/6.0/unified/hotfix/20201103.052457 accepted/tizen/unified/20200805.122524 submit/tizen/20200724.011530 submit/tizen/20200804.055632 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
Boram Bae [Wed, 20 May 2020 05:46:23 +0000 (14:46 +0900)]
Deprecate SENSOR_HUMAN_STRESS_MONITOR

Change-Id: I36f9ff5bec8075f2fcaec60e2df9699d739529a6
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
3 years agoFix license in spec file 07/231307/1
Boram Bae [Tue, 21 Apr 2020 06:11:34 +0000 (15:11 +0900)]
Fix license in spec file

Change-Id: I25ab935f76931696337b22bfc25affba66e91b88
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoFix a typo 11/229611/1 accepted/tizen/unified/20200407.043013 submit/tizen/20200403.011227
Boram Bae [Thu, 2 Apr 2020 08:01:46 +0000 (17:01 +0900)]
Fix a typo

Change-Id: Ie3d5823152cb42bac65d81bdf29df2e278f35a52
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoAdd sensor types and enum for new sensors 42/228042/2 accepted/tizen/unified/20200402.155354 submit/tizen/20200327.054009 submit/tizen/20200330.005543
Boram Bae [Wed, 18 Mar 2020 08:35:49 +0000 (17:35 +0900)]
Add sensor types and enum for new sensors

Change-Id: I6934843154a7dea1a66628df1602ec76543fb757
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoUpdate some API description 18/224618/1 accepted/tizen/unified/20200218.145834 submit/tizen/20200212.051016 submit/tizen/20200217.010941 submit/tizen/20200218.014904
Boram Bae [Mon, 10 Feb 2020 05:30:06 +0000 (14:30 +0900)]
Update some API description

Change-Id: Icdfda275de7ec1c63a62c73f177ec21ee0a0c276
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoAdd new APIs and Deprecate a old API 17/224617/1
Boram Bae [Wed, 5 Feb 2020 07:26:04 +0000 (16:26 +0900)]
Add new APIs and Deprecate a old API

* Add int sensor_listener_read_data_list(sensor_listener_h listener, sensor_event_s **events, int *count);
* Add int sensor_listener_flush(sensor_listener_h listener);
* Deprecate int sensor_listener_read_data(sensor_listener_h listener, sensor_event_s *event);
* Use sensor_listener_read_data_list instead of sensor_listener_read_data

Change-Id: I730643557c2650a6447090b0b0ce5b16672969ed
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoFix a typo 96/220496/1 accepted/tizen/unified/20200116.101833 submit/tizen/20200115.045858
Boram Bae [Thu, 19 Dec 2019 01:53:40 +0000 (10:53 +0900)]
Fix a typo

Change-Id: I1bc0bbafaf5b7c61a25564d3c36f06a8d749148a
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoChange descriptions related to batch events API and Deprecate API related to event 36/219936/8
Boram Bae [Thu, 12 Dec 2019 02:16:10 +0000 (11:16 +0900)]
Change descriptions related to batch events API and Deprecate API related to event

* Change the signature of sensor_events_cb
* Add deprecation warning logs

Change-Id: Ib350d90906bcd19cc5fd836413708420e8b1b0f8
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoNative API Reference issues: developer.tizen.org => doc.tizen.org 46/219346/1
Abhimanyu Swami [Wed, 4 Dec 2019 10:32:00 +0000 (16:02 +0530)]
Native API Reference issues: developer.tizen.org => doc.tizen.org

Change-Id: I9282e905b4687f8b6a1c73c04e60fb28827d068a
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
4 years agoTizen Coverage Automation 52/218352/1 submit/tizen/20191128.120907
chakradhar [Thu, 21 Nov 2019 11:01:50 +0000 (16:31 +0530)]
Tizen Coverage Automation

Change-Id: Ic2b0e814dbfbe6f3fec915bf5a0f2ac2dd7b6136
Signed-off-by: chakradhar <v.pogiri@samsung.com>
4 years agoAdd sensor APIs related to batch event 59/217959/1
Boram Bae [Tue, 12 Nov 2019 09:43:13 +0000 (18:43 +0900)]
Add sensor APIs related to batch event

Change-Id: I90041ed2f66469814c752cc9364d165d972a1a44
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoResolved Native API Reference issues for sensor 52/216752/1 accepted/tizen/unified/20191106.124722 submit/tizen/20191105.095622
Abhimanyu Swami [Thu, 31 Oct 2019 12:51:41 +0000 (18:21 +0530)]
Resolved Native API Reference issues for sensor

Change-Id: I4b018d098f7f2065e6e4f369addee7fa9f9f717d
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
4 years agosensor: capi: change log macro to show logs efficiently 86/205086/1
kibak.yoon [Mon, 22 Apr 2019 03:35:17 +0000 (12:35 +0900)]
sensor: capi: change log macro to show logs efficiently

Change-Id: Ie96faf6cc472bf2486f39ca0e14a84c13c1c334c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
(cherry picked from commit 0d60ab51f50e1886af89e794bfffd3d7ab325202)

6 years agosensor: capi: fix coding rule violations 20/149220/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.0/unified/20181102.014645 accepted/tizen/5.5/unified/20191031.031707 accepted/tizen/5.5/unified/mobile/hotfix/20201027.070028 accepted/tizen/unified/20170913.071907 submit/tizen/20170912.122717 submit/tizen_5.0/20181101.000002 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
kibak.yoon [Tue, 12 Sep 2017 02:08:55 +0000 (11:08 +0900)]
sensor: capi: fix coding rule violations

Change-Id: Iace7015137fbdd7d6a30f4dae114420f807ebc23
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: capi: add SIGINIFICANT_MOTION sensor type 58/138858/6 accepted/tizen/4.0/unified/20170816.014005 accepted/tizen/4.0/unified/20170816.020327 accepted/tizen/4.0/unified/20170828.224040 accepted/tizen/unified/20170727.190936 submit/tizen/20170726.085456 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522
kibak.yoon [Fri, 14 Jul 2017 05:12:42 +0000 (14:12 +0900)]
sensor: capi: add SIGINIFICANT_MOTION sensor type

Change-Id: Ic603c9db1d90e95c5f61e267fabe5055f32bfccf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: capi: add sensor_util_get_altitude API 39/138839/5
kibak.yoon [Fri, 14 Jul 2017 04:23:32 +0000 (13:23 +0900)]
sensor: capi: add sensor_util_get_altitude API

- this API computes the altitude in meters from the atmospheric
  pressure, the pressure at sea level and the temperature.

Change-Id: Ic77516aeb067bb53b74720aedc5d49b91eab18ed
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: capi: fix bugs with using invalid format in logs 98/134198/2 accepted/tizen/unified/20170615.234805 submit/tizen/20170615.081748
kibak.yoon [Thu, 15 Jun 2017 07:39:08 +0000 (16:39 +0900)]
sensor: capi: fix bugs with using invalid format in logs

Change-Id: Ie01edbe98786cce60aa766add39bcf438b24a23c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: capi: add dummy to fix build dependency issue(tv) 98/132698/5 accepted/tizen/unified/20170608.072334 submit/tizen/20170607.105041
kibak.yoon [Wed, 7 Jun 2017 07:17:35 +0000 (16:17 +0900)]
sensor: capi: add dummy to fix build dependency issue(tv)

Change-Id: If473feda011d1303cbb61b640faf52713a3cf86f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: fix doxygen errors 78/131278/1 accepted/tizen/unified/20170531.082557 submit/tizen/20170526.063331
kibak.yoon [Fri, 26 May 2017 06:07:22 +0000 (15:07 +0900)]
sensor: fix doxygen errors

- warning: Found unknown command `\since_tizen' in API doxygen
- solution : change \" to @"

Change-Id: Id75d401a352afa13cb2f8b620a5e0bccbe1fa943
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 90/130290/1 accepted/tizen/unified/20170522.182639 submit/tizen/20170521.102545 tizen_4.0.m1_release
kibak.yoon [Sun, 21 May 2017 08:48:38 +0000 (17:48 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensor: rec: check invalid parameter
  sensor: add internal callback function for sensor recorder

Change-Id: If83cfcba952e32a2918c26fa53b216216ee65638
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: rec: check invalid parameter 85/130285/1
kibak.yoon [Sun, 21 May 2017 07:03:23 +0000 (16:03 +0900)]
sensor: rec: check invalid parameter

Change-Id: I59ee8d38949bc3673f82ef72d58a49050a73f7bd
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: add internal callback function for sensor recorder 36/130236/2
kibak.yoon [Fri, 19 May 2017 12:55:34 +0000 (21:55 +0900)]
sensor: add internal callback function for sensor recorder

Change-Id: I5322833c481184097c6b24a03b03fb4cb040f688
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 36/129436/1 accepted/tizen/unified/20170516.180113 submit/tizen/20170516.115454
kibak.yoon [Tue, 16 May 2017 10:46:07 +0000 (19:46 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensor: api: implement URI-based APIs and sensor provider APIs
  Declare APIs to support application sensors

Change-Id: Ic4113d40298c85b4582f78086ec8f16f0b439da8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: api: implement URI-based APIs and sensor provider APIs 35/126635/9
kibak.yoon [Wed, 26 Apr 2017 10:56:02 +0000 (19:56 +0900)]
sensor: api: implement URI-based APIs and sensor provider APIs

Change-Id: I339e2964b256f96d4462b57a2077bfd668be0ade
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoDeclare APIs to support application sensors 62/125162/30
Mu-Woong Lee [Fri, 14 Apr 2017 04:43:23 +0000 (13:43 +0900)]
Declare APIs to support application sensors

Change-Id: I6151f78af54122aab9621d03f3ba7b0e6c70b18d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoRevert "Re-enable dummy sensor recorder API build to support Tizen:TV OBS project" 65/124765/1 accepted/tizen/unified/20170414.163506 submit/tizen/20170413.031950
Mu-Woong Lee [Wed, 12 Apr 2017 09:54:52 +0000 (02:54 -0700)]
Revert "Re-enable dummy sensor recorder API build to support Tizen:TV OBS project"

This reverts commit fc8c64be1d8d8351bc35fe58aabcc40786e49a1f.

Change-Id: Ieffc71a30e1a85098bfe4e6e5e40836c3c4ac7a3

7 years agoRe-enable dummy sensor recorder API build to support Tizen:TV OBS project 62/124762/1
Mu-Woong Lee [Wed, 12 Apr 2017 09:39:12 +0000 (18:39 +0900)]
Re-enable dummy sensor recorder API build to support Tizen:TV OBS project

Change-Id: I302211f6076eae3e44d6e9476ae41b94af31ac86
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 23/124723/1
Mu-Woong Lee [Wed, 12 Apr 2017 07:48:27 +0000 (16:48 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensor-recorder: check parameters of some APIs
  Doxygen: fix the broken feature page link
  Fix the nonconventional so symlink packaging
  Cleanup the build spec and remove capi-system-sensor-extension-recorder package
  capi-sensor: change sensor-recorder implementations for migration

Change-Id: I564ce7cd5b939b528e4dc4426379ca712f542583
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor-recorder: check parameters of some APIs 48/124148/1
kibak.yoon [Mon, 10 Apr 2017 09:53:18 +0000 (18:53 +0900)]
sensor-recorder: check parameters of some APIs

Change-Id: Ie364d4af76f9c2cb86ee137b878a8153c1c7a8fc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoDoxygen: fix the broken feature page link 32/123332/1
Mu-Woong Lee [Wed, 5 Apr 2017 07:59:59 +0000 (16:59 +0900)]
Doxygen: fix the broken feature page link

Change-Id: I799fae46fa541cbd12d993e01ca41187e731b739
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix the nonconventional so symlink packaging 13/123313/1
Mu-Woong Lee [Wed, 5 Apr 2017 07:36:51 +0000 (16:36 +0900)]
Fix the nonconventional so symlink packaging

Change-Id: I1ca3b24bbd3287d91488c3205614c42b00a83ed2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoCleanup the build spec and remove capi-system-sensor-extension-recorder package 80/121780/1
Mu-Woong Lee [Wed, 29 Mar 2017 03:47:28 +0000 (12:47 +0900)]
Cleanup the build spec and remove capi-system-sensor-extension-recorder package

Change-Id: I4efb8a4c8735242205cf77f691c4cf597a9925be
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agocapi-sensor: change sensor-recorder implementations for migration 54/121554/2
kibak.yoon [Tue, 28 Mar 2017 08:01:47 +0000 (17:01 +0900)]
capi-sensor: change sensor-recorder implementations for migration

- change dependency package from context-common to context-sensor-recorder.
- ITC/UTC : all passed.

* this patch is related to https://review.tizen.org/gerrit/#/c/121551/.

Change-Id: I85625d711e358471a82df5906838631de205a75a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 70/108670/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170105.172834 accepted/tizen/common/20170111.155026 accepted/tizen/ivi/20170105.223851 accepted/tizen/mobile/20170105.223758 accepted/tizen/tv/20170105.223813 accepted/tizen/unified/20170309.032318 accepted/tizen/wearable/20170105.223833 submit/tizen/20170105.120901 submit/tizen_common/20170111.150147 submit/tizen_unified/20170308.100405
Mu-Woong Lee [Thu, 5 Jan 2017 10:21:18 +0000 (19:21 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  "profile_common" virtual package is provided by the recorder extension
  Add explicit dependency from capi-system-sensor-extension-recorder to context-service

Change-Id: I8af861503c3e83ad8d0a6b952b22b6402e3464ab
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago"profile_common" virtual package is provided by the recorder extension 55/108655/1
Mu-Woong Lee [Thu, 5 Jan 2017 09:52:52 +0000 (18:52 +0900)]
"profile_common" virtual package is provided by the recorder extension

Change-Id: Ife7de48d264dbbeff416ebe88eb164ce0c210cfd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd explicit dependency from capi-system-sensor-extension-recorder to context-service 47/108647/1
Mu-Woong Lee [Thu, 5 Jan 2017 09:24:55 +0000 (18:24 +0900)]
Add explicit dependency from capi-system-sensor-extension-recorder to context-service

This dependency can be removed after refactoring Context FW.

Change-Id: I8d65ce1c2c15323cda928a0cd95368889bc6461b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 59/108159/1 accepted/tizen/common/20170103.135647 accepted/tizen/ivi/20170103.225215 accepted/tizen/mobile/20170103.225117 accepted/tizen/tv/20170103.225155 accepted/tizen/wearable/20170103.225201 submit/tizen/20170103.072008
kibak.yoon [Tue, 3 Jan 2017 07:13:31 +0000 (16:13 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Fix smack labels of so symlinks
  sensor: remove UNIX build script in CMakeLists.txt
  Remove Profile Build Dependency
  sensor: remove unnecessary logs in the dummy

Change-Id: Ia5e2a4013da7b03d3a5b1a522dfcc13b05356031
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoFix smack labels of so symlinks 21/108121/1
Mu-Woong Lee [Tue, 3 Jan 2017 05:44:14 +0000 (14:44 +0900)]
Fix smack labels of so symlinks

Change-Id: Ife0d01a5a18784d0867f52c9b911e31db499b50d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: remove UNIX build script in CMakeLists.txt 97/108097/2
kibak.yoon [Tue, 3 Jan 2017 03:49:57 +0000 (12:49 +0900)]
sensor: remove UNIX build script in CMakeLists.txt

Change-Id: I9b95cd8d8affdf231de58aa6de33b7a5cd5b8c2f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoRemove Profile Build Dependency 77/97077/14
MyungJoo Ham [Fri, 11 Nov 2016 06:13:18 +0000 (15:13 +0900)]
Remove Profile Build Dependency

- This is for Tizen 4.0.

- When SR-ing this, you need to create JIRA-TRE issue of:

  Add capi-system-sensor-profile_mobile for mobile profile
  Add capi-system-sensor-profile_wearable for wearable profile

Change-Id: I150ade04716ee3c1f0d5aefa7f4de82a177d66a7
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agosensor: remove unnecessary logs in the dummy 58/107958/1
kibak.yoon [Wed, 14 Dec 2016 01:38:54 +0000 (10:38 +0900)]
sensor: remove unnecessary logs in the dummy

Change-Id: I09e38e6e4c877d0f19b29570afdd8b67300af5d4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
(cherry picked from commit f1c6ae512b2a1366eb5364cd95b1fa0a47298995)

7 years agoMerge branch 'devel/tizen' into tizen 69/102269/1
kibak.yoon [Mon, 5 Dec 2016 09:03:18 +0000 (18:03 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  capi-sensor: fix requiered package

Change-Id: I15ab0f3eec4c112499b190f0c513195506e73bb7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agocapi-sensor: fix requiered package 67/102267/2
kibak.yoon [Mon, 5 Dec 2016 08:57:15 +0000 (17:57 +0900)]
capi-sensor: fix requiered package

Change-Id: Ifec671d44633c9e8d260ef11a76bad17015002eb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 54/99154/1
kibak.yoon [Tue, 22 Nov 2016 05:23:43 +0000 (14:23 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensor: add the dummy code for profile which doesn't support sensor

Change-Id: I67543f1a163f0ca802d364dd1bdc8125bd44fda8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor: add the dummy code for profile which doesn't support sensor 63/98963/4
kibak.yoon [Mon, 21 Nov 2016 08:12:16 +0000 (17:12 +0900)]
sensor: add the dummy code for profile which doesn't support sensor

Change-Id: Ifbff36d3b5cb82dab721fb2328f23ce4f91f6fbc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>