platform/core/system/sensord.git
3 days agosystem-server: Relocate service file under united-service directory 21/325421/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250612.143600 accepted/tizen/unified/x/20250612.222020
SangYoun Kwak [Tue, 10 Jun 2025 08:23:21 +0000 (17:23 +0900)]
system-server: Relocate service file under united-service directory

The config file of united-service, system-server-sensord.service was
located under packaging with systemd service file, sensord.service.
But sensord.service and system-server-sensord.service are different type
of service files, it is better to spearate them.
To make it clear that system-server-sensord.service is a config file of
united-service, it is relocated under the new directory united-service.

Change-Id: I4678103e7d012135baa892c92094616890a40656
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 weeks agosystem-server: Add system-server config/module to support system-service 84/324884/5
SangYoun Kwak [Thu, 22 May 2025 05:08:20 +0000 (14:08 +0900)]
system-server: Add system-server config/module to support system-service

To make sensord can be run on system-server, config and module files
will be generated if the flag 'enable_system_server' is defined as 1 in
the sensord.spec. Below are the generated config and module files:
 * config: /usr/share/united-service/system-server/conf/system-server-sensord.service
 * module: /usr/share/united-service/system-server/mod/libsystem-server-sensord.so

Also, if the flag 'enable_system_server' is 1, then the files below will
be excluded from the generated package since sensord should be not run
as separated service:
 * /usr/bin/sensord
 * /usr/lib/systemd/system/sensord.service
 * /usr/lib/systemd/system/sensord.socket
 * /usr/lib/systemd/system/multi-user.target.wants/sensord.service
 * /usr/lib/systemd/system/sockets.target.wants/sensord.socket

Change-Id: Ice9359893b61e18078516347df59533c37be1715
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 weeks agoRefactor main function to use separated init/exit function 76/324976/1
SangYoun Kwak [Thu, 29 May 2025 10:58:37 +0000 (19:58 +0900)]
Refactor main function to use separated init/exit function

To make the main function's init/exit sequences can be used by other
source files such as plugin library, the init/exit sequences are
separated as 'sensord_init' and 'sensord_exit' respectively. The prefix
is 'sensord', because sensord_init initializes sensord and sensord_exit
exits sensord.
Accordingly, main.cpp(includes main function) is renamed to sensord.cpp.

Also, to make them callable, header file sensord.h is added.

Change-Id: Ic954911587eec9203ebbdf2db46f59377fd014f0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 weeks agoRemove unnecessary %exclude code from spec file 75/324975/1
SangYoun Kwak [Thu, 29 May 2025 09:02:22 +0000 (18:02 +0900)]
Remove unnecessary %exclude code from spec file

Since there are no sensor_hal.h file in this sensord repository, it is
unnecessary to %exclude sensor_hal.h.

Change-Id: I055e97bf6ed73fee3df708cf488b03c7f7ede968
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 weeks agoRevert changes for supporting unified-system-plugin package 83/324883/1
SangYoun Kwak [Wed, 28 May 2025 08:11:59 +0000 (17:11 +0900)]
Revert changes for supporting unified-system-plugin package

Since the 'run multiple services in one process' feature will be
implemented with united-service, previous implementations should be
removed.

This reverts commits below(old to new):
 * 658b9c42d61510d92c5c6204408d4ac63e6fe10e
 * cf796d0d87e7c077d1dc3c5d63b869e0c23c30d8
 * f83f717450de4f6d8b3921e2433d1cc78e88fca5
 * 01391b9fa57721a1d596c83c4e4ba076d03e4d5d

Change-Id: I9c1bf26a4900e27031c0681641049f9146469278
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 weeks agounified-system-plugin: Change to include files in sensord package by flag 74/324374/3 accepted/tizen/unified/20250530.090416 accepted/tizen/unified/x/20250531.232937
SangYoun Kwak [Fri, 16 May 2025 04:53:37 +0000 (13:53 +0900)]
unified-system-plugin: Change to include files in sensord package by flag

Instead of separating unified-system-plugin files into a package, files
are included in the main package 'sensord' according to a flag named
enable_unified_system_service.

If flag is 1 then:
    libunified-system-sensor.so is included
    Unnecessary files for unified-system-plugin(sensord executable,
    service files, socket files) are excluded

If flag is not 1 then:
    libunified-system-sensor.so is excluded
    sensord executable, service files, socket files are included

Change-Id: I82ef689e00b85da81dbd39819dac4921921861e6
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 weeks agounified-system-plugin: Relocate libunified-system-service-sensord.so 73/324373/1
SangYoun Kwak [Thu, 15 May 2025 04:35:50 +0000 (13:35 +0900)]
unified-system-plugin: Relocate libunified-system-service-sensord.so

The library file libunified-system-service-sensord.so is relocated under
    32-bit: /usr/lib/system/plugin
    64-bit: /usr/lib64/system/plugin

Change-Id: I2bbee446d2680559b308773506dfcfae707b252d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 weeks agounified-system-service: Fix unified-system-plugin to have required files and name 34/324134/2
SangYoun Kwak [Tue, 13 May 2025 08:14:23 +0000 (17:14 +0900)]
unified-system-service: Fix unified-system-plugin to have required files and name

To make unified-system-plugin package to be usable without sensord
package, required files are added except sensord(executable), service
and socket files.
Also, unified-system-plugin is renamed to follow the prefix 'sensord':
    sensor-unified-system-plugin -> sensord-unified-system-plugin

Change-Id: Id19d6f0ffc357c1f2e70b65bea731b05771523de
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 weeks agoAdd unified-system-plugin package to support unified system service 87/323987/2
SangYoun Kwak [Mon, 14 Apr 2025 10:10:07 +0000 (19:10 +0900)]
Add unified-system-plugin package to support unified system service

To support the unified-system-service, a plugin is added:
    libunified-system-service-sensord.so
For this plugin, a new plugin sensor-unified-system-plugin is added.

Change-Id: Ife8f8fea4ebe94805f8d91894b2fc3aa9ef55f49
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
3 months agoshared: Fix to release channel resources when sensor_listener is released 99/319499/2 accepted/tizen/unified/20250224.161824 accepted/tizen/unified/x/20250226.020357
SangYoun Kwak [Wed, 12 Feb 2025 03:12:00 +0000 (12:12 +0900)]
shared: Fix to release channel resources when sensor_listener is released

In the event loop object, channel resources(class 'channel' and
'channel_handler') to be released are added to the queues through
functions: add_channel_release_queue, add_channel_handler_release_list
respectively.

Resources contained by these queues should be freed by function
g_io_handler but this function is called when channel receives a
event(GLib.IOCondition) and if no event is occured, resources are not
released. This may cause resources like socket fd, memory flooded, so
they should be released

To resolve this issue, a function is added to the event_loop class to
release resources contained by the queues and that function is called by
the sensor_listener when it is released.

Change-Id: I7eb1be520a6dd756a6cd2718ce15ec813973ecb0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 months agoRevert "Do not change ownership of the sockets" 90/318790/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20250203.162334 accepted/tizen/unified/20250204.155501 accepted/tizen/unified/x/20250212.043728 accepted/tizen/unified/x/asan/20250211.003219
SangYoun Kwak [Fri, 24 Jan 2025 05:57:32 +0000 (14:57 +0900)]
Revert "Do not change ownership of the sockets"

Since the security-config script limits installation of services and
sockets which are not permitted in the systemd_socket.csv.
In the systemd_socket.csv, sensord.socket is defined as below:
 * sensord.socket,sensor,input,0777,*,@,1,1,1,1,0,1,1,1,1,0
It means that sensord.socket should have socket user as "sensor" and
socket group as "input". If this condition is not met, then the
security-config script removes sensord.socket from the created image
before image is successfully created.
Due to this limitation, removing items "SocketUser" and "SocketGroup"
will make the final image omits sensor.socket.
To resolve this issue, removed items "SocketUser" and "SocketGroup" are
restored.

This reverts commit c723b7a2a6ccdf1b9dac7f6ed75f1074f99ad7ee.

Change-Id: I930492377feb16874428184926559b50e08cc4d1
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 months agoFix to catch std::bad_array_new_length when allocating array using new 09/318709/1 accepted/tizen/unified/20250204.110442
SangYoun Kwak [Wed, 22 Jan 2025 11:24:19 +0000 (20:24 +0900)]
Fix to catch std::bad_array_new_length when allocating array using new

The exception std::bad_array_new_length is thrown when the size of new
array is negative or too big to allocate.
Also, this exception cannot be suppressed by std::nothrow, so it should
be catched explicitly when allocating array using 'new' with variable
size.
To make code more reliable, try-catch statements are added to the array
allocating codes using 'new' with variable size.

Change-Id: If1d8b3ce57dace4bb4bc1d976394e4be879ac9ca
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
4 months agoFix to legacy hal can be loaded properly 20/318120/1 accepted/tizen/unified/20250123.133220 accepted/tizen/unified/x/20250124.014023
SangYoun Kwak [Mon, 13 Jan 2025 07:06:07 +0000 (16:06 +0900)]
Fix to legacy hal can be loaded properly

Since the legacy hal has create_t function and it creates sensor object,
which type is sensor_device provided by hal-api-sensor repository
previously.
To make sensord can load legacy hal properly, legacy sensor_device class
is added as name 'sensor_device'. 'sensor_device' class for hal sensor
device is renamed as hal_sensor_device.

Change-Id: If4e2f1f03fe1c8d0cfc59201956bb55e78f32c02
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
5 months agoUse class sensor_device moved from hal-api-sensor 30/316930/10
SangYoun Kwak [Wed, 11 Dec 2024 09:06:55 +0000 (18:06 +0900)]
Use class sensor_device moved from hal-api-sensor

Since the usage of the hal-api-sensor is changed, sensord should be
changed according to the change of hal-pai-sensor.
Below are change of hal-api-sensor:
 * No C++ class in the header file
 * Sensor device creation function does not return sensor_device object
   but a unique ID for that sensor device object in the hal backend.
 * All methods of sensor_device is implemented as a separated C
   functions, which has same name as the original method name but has a
   prefix "hal_sensor". Also those functions should be called with
   sensor ID which is passed from creation function to distinghush
   sensor devices.

According to those changes, sensord is also changed:
 * Create a sensor_device compatible class to emulate the original
   sensor_device class.
 * Some minor changes according to the removal of some typedefs.

Change-Id: Ia1892d87d578a720ad63e228dedb5a0d58f91037
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
7 months agoDo not change ownership of the sockets 47/319447/1 accepted/tizen/unified/20241122.171511 accepted/tizen/unified/x/20241218.032502 accepted/tizen/unified/x/asan/20241224.004225
Łukasz Stelmach [Wed, 23 Oct 2024 07:15:53 +0000 (09:15 +0200)]
Do not change ownership of the sockets

With access permissions set to 0777 ownership of the socket does not
matter except it takes longer for systemd to create the socket.

Change-Id: I9bedd82f8f7d9e8db7b21d9a9e7a50e1a08db251
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
9 months agoAdd README.md for brief information of sensord 23/317623/2 accepted/tizen/unified/20241118.155139
SangYoun Kwak [Thu, 12 Sep 2024 09:06:24 +0000 (18:06 +0900)]
Add README.md for brief information of sensord

To make sensord more informative, the README.md is added to provide
brief information to the sensord users.

Change-Id: I51678d9a1ae125ad8df3b62e99d01e7ca70c8799
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoMemoryLimit has been replaced by MemoryMax 33/312133/1
Łukasz Stelmach [Tue, 4 Jun 2024 13:10:37 +0000 (15:10 +0200)]
MemoryLimit has been replaced by MemoryMax

The  MemoryLimit option is marked as deprecated in systemd and needs to
be changed to MemoryMax in unit files.

Change-Id: If98a9f60c57e2b2c59bd63337b953332ddc264cc
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
12 months agoFix condition of 'if' to check send_sync correctly 20/311220/1 accepted/tizen_unified_dev accepted/tizen/9.0/unified/20241031.000349 accepted/tizen/unified/20240517.164211 accepted/tizen/unified/dev/20240620.005800 accepted/tizen/unified/x/20240520.112553 accepted/tizen/unified/x/asan/20240625.091920 tizen_9.0_m2_release
SangYoun Kwak [Thu, 16 May 2024 07:25:14 +0000 (16:25 +0900)]
Fix condition of 'if' to check send_sync correctly

Condition of if statement which checking if send_sync was successful or
not was not should be reversed.
(send_sync returns true if it was successful, so '!' should be added)

Change-Id: I2cf48959264e5415dafe67ac651830f0ff2d7611
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
13 months agoAdd logs and error handling codes for sensor listener 36/311036/1
SangYoun Kwak [Thu, 9 May 2024 08:23:30 +0000 (17:23 +0900)]
Add logs and error handling codes for sensor listener

If listener connection is failed, it should be handled as an error.
Previously, if connection is failed, it is not handled and treated as
success.
To handle 'connection failure' situation, return statement and state
member variable(indicates if sensor_listener is successfully
initialized) are added.

Change-Id: I4801ac7fb78cbbf1dea7808eed3ba84e9f3ab362
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
15 months agoAdd assertion after malloc in the message class 21/306521/2 accepted/tizen_unified_toolchain accepted/tizen/unified/20240306.094026 accepted/tizen/unified/toolchain/20240311.065615 accepted/tizen/unified/x/20240307.010706
SangYoun Kwak [Thu, 22 Feb 2024 10:20:40 +0000 (19:20 +0900)]
Add assertion after malloc in the message class

Since message class is written under presumtion that malloc will never
return NULL(there is no NULL-checking code), it is better to insert an
assertion after malloc was called.

This solves bug reported by SVACE with WGID:
696636 695764 696678 696677 696676 696638 696635 696654 696653 696652
696651 696650 696649 696648 696647 696646 696643 696641 696640 696639

Change-Id: I258a1d141a18283d9b5a5108e82f505ba610c86d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
21 months agoAdd ISU package 32/296032/3 accepted/tizen/8.0/unified/20231005.093839 accepted/tizen/unified/20230907.175331 tizen_8.0_m2_release
Mateusz Moscicki [Tue, 18 Jul 2023 09:56:13 +0000 (11:56 +0200)]
Add ISU package

This commit adds Individual Service Upgrade (ISU) feature to sensord
package. When installed it will allow to upgrade this service using ISU
mechanism, without the need to perform full OS Upgrade.

This commits add necessary configuration to create upgrade packages of
needed format.  ISU framework itself is maintained and installed
separately.

Change-Id: Iac0b284f42277e12aa2e0f4a90dcada4cbde1327

2 years agoserver: Change to register signal handler with glib 19/290819/10 accepted/tizen/unified/20230406.165729
TaeminYeom [Tue, 4 Apr 2023 01:09:36 +0000 (10:09 +0900)]
server: Change to register signal handler with glib

Using std signal handler can make deadlock in terminating progress.
When std signal handler is called dispatching g_main_context,
glib attempts to lock g_main_context again.
To prevent this situation, it is needed to use glib signal handler function.

When there is a deadlock, the callstack is with below.

0  0x0000007fb3fa3860 in syscall () at ../sysdeps/unix/sysv/linux/aarch64/syscall.S:38
1  0x0000007fb44ced7c in g_mutex_lock_slowpath (mutex=0x55cda9eaa0) at ../glib/gthread-posix.c:1340
2  0x0000007fb44cf7a0 in g_mutex_lock (mutex=<optimized out>) at ../glib/gthread-posix.c:1364
3  0x0000007fb4480400 in g_main_loop_quit (loop=0x55cda9cc30) at ../glib/gmain.c:4136
4  0x0000007fb4286e68 in ipc::event_loop::terminate() (this=0x558f0e55b0 <sensor::server::m_loop>)
    at /usr/src/debug/sensord-4.0.54-1.aarch64/src/shared/event_loop.cpp:339
5  0x0000007fb4286f38 in ipc::event_loop::stop() (this=<optimized out>)
    at /usr/src/debug/sensord-4.0.54-1.aarch64/src/shared/event_loop.cpp:331
6  0x000000558f0c8620 in sensor::server::stop() ()
    at /usr/src/debug/sensord-4.0.54-1.aarch64/src/server/server.cpp:73
7  0x0000007fb48195b4 in <signal handler called> ()
8  0x0000007fb404fd64 in read () at /lib64/libpthread.so.0
9  0x0000007fb44caf90 in read (__nbytes=16, __buf=0x7fc1419d38, __fd=<optimized out>)
    at /usr/include/bits/unistd.h:44
10 0x0000007fb44caf90 in g_wakeup_acknowledge (wakeup=0x55cda89530) at ../glib/gwakeup.c:210
11 0x0000007fb447fa04 in g_main_context_check
    (context=context@entry=0x55cda9eaa0, max_priority=2147483647, fds=fds@entry=0x55cdb19e00, n_fds=n_fds@entry=27) at ../glib/gmain.c:3695
12 0x0000007fb447fe4c in g_main_context_iterate
    (context=0x55cda9eaa0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../glib/gmain.c:3914
13 0x0000007fb4480308 in g_main_loop_run (loop=0x55cda9cc30) at ../glib/gmain.c:4111
14 0x0000007fb4288308 in ipc::event_loop::run(int)
    (this=0x558f0e55b0 <sensor::server::m_loop>, timeout=<optimized out>)
    at /usr/src/debug/sensord-4.0.54-1.aarch64/src/shared/event_loop.cpp:322
15 0x000000558f0b6b50 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)

Change-Id: I19e688ea16ab5e33b0c499abad866970a3d79761
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoAdd sensor handle attribute API in client_dummy 15/289315/2 accepted/tizen/unified/20230307.101615
TaeminYeom [Mon, 6 Mar 2023 08:03:34 +0000 (17:03 +0900)]
Add sensor handle attribute API in client_dummy

In commit 61dc1c262c1c ("Add sensor handle attribute"),
new libsensor APIs were added but not added in client_dummy.
For supporting TV profile, it is needed.

Added libsensor API
-sensord_set_attribute_int
-sensord_get_attribute_int

Change-Id: Ib1b3bdac89f38b7ad01256734d93b51d2973cfda
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agosensorctl: test_bench: use the correct print format specifier 70/287670/1 accepted/tizen/unified/20230215.100707
Jaehoon Chung [Thu, 2 Feb 2023 05:09:27 +0000 (14:09 +0900)]
sensorctl: test_bench: use the correct print format specifier

Use correct print format specifer from %d to %zu.

Change-Id: Id59b26a23ef469881f29ff6a9710eb00eb4b94fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoserver: physical_sensor_handler: remove unused variable 69/287669/1
Jaehoon Chung [Thu, 2 Feb 2023 05:00:24 +0000 (14:00 +0900)]
server: physical_sensor_handler: remove unused variable

Remove unused variable.

Change-Id: Idceee66b5294fe7ffe66252107bbc251d8a9a91d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoAdd sensor handle attribute 92/286892/9 accepted/tizen/unified/20230131.162126
TaeminYeom [Mon, 16 Jan 2023 09:00:54 +0000 (18:00 +0900)]
Add 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.

When the client sends socket command "CMD_MANAGER_SET_ATTR_INT" or
"CMD_MANAGER_GET_ATTR_INT", the daemon brings and handle it.

Added libsensor API
-sensord_set_attribute_int
-sensord_get_attribute_int

Above two libsensor APIs were used to set/get listener attribute,
but now they are changed to set/get sensor handle attribute.
And sensor listener attribute setter and getter are
"sensord_listener_set/get_attribute_int".
It was patched in
commit 07725926e300 {"listener: change the names of attribute libsensor API"}

Change-Id: I4a62497b65262751275fb1f00c8d4df806d5ec71
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agolistener: change the names of attribute libsensor API 91/287291/3
TaeminYeom [Thu, 26 Jan 2023 07:07:51 +0000 (16:07 +0900)]
listener: change the names of attribute libsensor API

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.

Sensor handle attribute API will be uploaded in later patch,
and they will use "sensord_get/set_attribute_int".

changed API

sensord_get_attribute_int -> sensord_listener_get_attribute_int
sensord_set_attribute_int -> sensord_listener_set_attribute_int
sensord_get_attribute_str -> sensord_listener_get_attribute_str
sensord_set_attribute_str -> sensord_listener_set_attribute_str

Change-Id: Ic8a6f8e4799535d3f314afebcd40e57fb33fb7b1
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoCMakeList: remove print-gc-sections option
Jaehoon Chung [Wed, 25 Jan 2023 04:52:00 +0000 (13:52 +0900)]
CMakeList: remove print-gc-sections option

Remove print-gc-sections options.
It doesn't need to display the message of removing unused section.

Change-Id: Ia0e7d3797063203575f6a6ce9ae6e95cdca92be9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoAdd logs in sensord booting 50/283150/3
TaeminYeom [Wed, 19 Oct 2022 05:17:12 +0000 (14:17 +0900)]
Add logs in sensord booting

Previous deficient booting log made it hard to know error in
which booting process.
So add the logs after sensor manager initialization and fully botting.

Change-Id: I41633126b51f786bd413b0d7ab79272fd5c5d22c
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agopackaging: Modify the installation of sensord and sensord-dummy 52/286952/2 accepted/tizen/unified/20230119.053209
SangYoun Kwak [Tue, 17 Jan 2023 08:37:03 +0000 (17:37 +0900)]
packaging: Modify the installation of sensord and sensord-dummy

Previously, sensor-dummy was installed with sensord due to the
providence of the name 'libsensor.so.<major version>', which is a
reference for expanding the "package dependency".
In this patch, sensord will be installed independently and it will
provide the name "libsensor.so.<major version>". According to this,
sensor-dummy will be installed with sensord due to the providence of the
name.

Since the sensord daemon is not necessary on the target which uses
sensord-dummy, the post script of sensord-dummy will remove the files
which are installed by the sensord package.

The sensord-dummy package is not required explicitly in the tv profile.
(previously, sensord-dummy was required by the name "libsensor.so.<major
 version>", it was not necessary to require sensord-dummy explicitly)
Thus, this patch should be applied with the modification of
.ks(kickstart) file.
("sensord-profile_tv" which provided by the sensord-dummy can be used)

Change-Id: I0c56af9f6e9f35a35fc0b3b5074400d94ebd5ebe
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoModify the requirement of devel package 18/286818/1
SangYoun Kwak [Fri, 13 Jan 2023 08:21:13 +0000 (17:21 +0900)]
Modify the requirement of devel package

The "devel" package gives hint about libraries to use the "sensor" package
to the other packages.
Before this commit, the "devel" package required the "sensor-dummy"
package. It was valid when the "sensor-dummy" has "libsensor.so.4".
But now, the "sensor-dummy" has no real "libsensor.so.4" but has
"libsensor-dummy.so" so the other packages which requires the package
"sensor" will require "libsensor-dummy.so", which is not correct.
Modifying the requirement of devel package as the "sensord" will fix
this.

Change-Id: I25eaa772bcfd7edbee46aaf823adfef36630f70e
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoAdd 'Provides' to sensord-dummy package 62/286662/1
SangYoun Kwak [Wed, 11 Jan 2023 10:17:10 +0000 (19:17 +0900)]
Add 'Provides' to sensord-dummy package

Since the library name was changed,
(libsensor-genuine -> libsensor, libsensor -> libsensor-dummy)
the 'provides' of each package were also changed:
    sensord package is now providing 'libsensor.so.<major version>'.
    sensord-dummy package does not provide 'libsensor.so.<major version>' any more.
In a profile that uses only the sensord-dummy package, other packages
can require 'libsensor.so.<major version>'.
In this situation, rpm installer brings sensord package, which has
'libsensor.so.<major version>', even the profile does not use sensord package.
To fix this situation, 'libsensor.so.<major version>' was added to the
provides list of sensord-dummy.

Change-Id: Iec2c08088da1ca50b0d5421c6169f72da78e9ab7
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoModify build configures of packages: sensord, sensord-dummy 33/285933/1 accepted/tizen/unified/20221227.170627
Junghak Sung [Thu, 22 Dec 2022 01:28:02 +0000 (10:28 +0900)]
Modify build configures of packages: sensord, sensord-dummy

Rename project names (sensor to sensor-dummy, sensor-genuine to sensor)
since ldconfig makes cache for the genuine library as "libsensor-genuine"
instead of "libsensor" and it causes a cache mismatch on dotnet applications.
According to the project name changes, the post scripts also are modified.
At the result, the files in /usr/lib would be like below.

After install sensor-dummy
    libsensor-dummy.so
    libsensor.so.1 -> libsensor.so.4.0.54
    libsensor.so.2 -> libsensor.so.4.0.54
    libsensor.so.4 -> libsensor.so.4.0.54
    libsensor.so.4.0.54 (softlink of libsensor-dummy.so)

After install sensor
    libsensor.so.4.0.54 (overwritten by genuine libsensor.so)

Change-Id: I10fa79422cc59579b5c6c4cde25f773318eb8b66
Signed-off-by: Junghak Sung <jh1009.sung@samsung.com>
[sy.kwak: remain chsmack from sensord.spec, remove "lwipc" from DEPENDENTS of cmake(client)]
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agosensor_listener_proxy: Add timestamp in accuracy change event 10/282510/3 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063751 accepted/tizen/7.0/unified/hotfix/20221116.105756 accepted/tizen/unified/20221005.144500 tizen_7.0_m2_release
TaeminYeom [Wed, 5 Oct 2022 00:55:56 +0000 (09:55 +0900)]
sensor_listener_proxy: Add timestamp in accuracy change event

Change-Id: I80120402a331f05a4ffe99ee978c517bfd90b58c
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agosocket: Initialize variable 78/282078/2 accepted/tizen/unified/20220930.020557
TaeminYeom [Tue, 27 Sep 2022 01:28:36 +0000 (10:28 +0900)]
socket: Initialize variable

Change-Id: Ib5c694f791748195801db8c7cc9740b0f8209d9e
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agosensorctl: Fix resource leak and check valid of return value 77/282077/2
TaeminYeom [Tue, 27 Sep 2022 01:27:47 +0000 (10:27 +0900)]
sensorctl: Fix resource leak and check valid of return value

Change-Id: Icc5905b2bb8d92df16df5e2856a39b5bb74b815e
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agofusion: gravity: Initialize variables in the constructor 05/281705/2 accepted/tizen/unified/20220922.062113 accepted/tizen/unified/20220922.062736
TaeminYeom [Wed, 21 Sep 2022 02:45:04 +0000 (11:45 +0900)]
fusion: gravity: Initialize variables in the constructor

It was able to have an error due to garbage values.

Change-Id: If38617eca3ded6fade199c1ff78faa6dc5850646
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoApply conf for rotation baseline in auto-rotation sensor 75/280175/8 accepted/tizen/unified/20220919.021610
TaeminYeom [Thu, 25 Aug 2022 02:00:36 +0000 (11:00 +0900)]
Apply conf for rotation baseline in auto-rotation sensor

Change-Id: Icfc14b1f0641d5ba840c0085c4290703c388e756
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
2 years agoChange auto-rotation sensor policy 09/280009/2
TaeminYeom [Mon, 22 Aug 2022 08:02:06 +0000 (17:02 +0900)]
Change auto-rotation sensor policy

-Clients can read the last value of rotation many times
-Default rotation degree is 0

Change-Id: I36d1f9e0ecf1106862be1421bb52f9936816dff7
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix Coverity issues 01/276001/4 accepted/tizen/unified/20220613.161511 submit/tizen/20220610.054311
TaeminYeom [Wed, 8 Jun 2022 08:20:24 +0000 (17:20 +0900)]
Fix Coverity issues

Change-Id: I8cfd63487d52c1a9d61b8e6275c7c1fdbb63e7e5
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix the initial value of yaw in gyroscope orientation 74/275974/4 submit/tizen/20220608.042559
TaeminYeom [Wed, 8 Jun 2022 02:11:55 +0000 (11:11 +0900)]
Fix the initial value of yaw in gyroscope orientation

After sensord restarts, the inital value of yaw is 0

Change-Id: Ifc5a7fe679813abf2b7dbe372de6169e0df675c9
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoRemove garbage value in rotation vector 39/275939/3
TaeminYeom [Tue, 7 Jun 2022 05:39:51 +0000 (14:39 +0900)]
Remove garbage value in rotation vector

After sensord restarts, the clients don't get the value "0 0 0 0" in rv

Change-Id: Iea0e590927c75290a2f906991ca3245962b461d8
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix invalid rotation vector variable name 38/275938/1
TaeminYeom [Tue, 7 Jun 2022 05:09:50 +0000 (14:09 +0900)]
Fix invalid rotation vector variable name

-It just changes the name. There is no effect on the behavior.

Change-Id: I744e88d32c7a7a4aa8028ee346285e0557a817e1
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoDelete the space of queue and vector after use 09/275109/3 accepted/tizen/unified/20220526.144231 submit/tizen/20220525.001052
TaeminYeom [Tue, 17 May 2022 01:17:36 +0000 (10:17 +0900)]
Delete the space of queue and vector after use

Change-Id: I982e9012adaf815c8f081b7f9e8ac2267f79de18
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoChange to delete some resource in sensor_reader thread 34/274834/6
TaeminYeom [Tue, 10 May 2022 08:51:44 +0000 (17:51 +0900)]
Change to delete some resource in sensor_reader thread

It fixes segmentation fault in client.

Change-Id: I15977d8189b68b5ff7e319eb344ad9ebd5e9ad80
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoChange not to call "g_io_channel_shutdown" 44/274244/2 accepted/tizen/unified/20220426.212659 submit/tizen/20220426.083107
TaeminYeom [Mon, 25 Apr 2022 08:28:13 +0000 (17:28 +0900)]
Change not to call "g_io_channel_shutdown"

It fixes double close of socket.

Change-Id: I4278025d473b1339bd2f7291d8d56c7f31865749
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoErase an element in unordered_map when listener stops 71/273671/3
TaeminYeom [Tue, 12 Apr 2022 05:27:35 +0000 (14:27 +0900)]
Erase an element in unordered_map when listener stops

It reduces memory usage.

Change-Id: Ie162b638d2ba9f9ec8e73c37bf13e371188c94e6
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoChange to not use lazy release in channel class 60/273260/2
TaeminYeom [Fri, 1 Apr 2022 09:25:07 +0000 (18:25 +0900)]
Change to not use lazy release in channel class

It fixes memory leak in daemon

Change-Id: I3b2616f93e560b73cf0381a46aea4ba04ebe4170
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix memory leak 91/272091/2 accepted/tizen/unified/20220311.111914 submit/tizen/20220310.052015
TaeminYeom [Tue, 8 Mar 2022 10:09:20 +0000 (19:09 +0900)]
Fix memory leak

Change-Id: I187f06e7585791adbe87cc00a08a8043393f64ba
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix error in sensor cache 62/271762/2
TaeminYeom [Mon, 28 Feb 2022 08:14:44 +0000 (17:14 +0900)]
Fix error in sensor cache

-Add error handling when there is no data
-Change to clear sensor data cache after getting cache data

Change-Id: I5967fe57298e7f90b9493a0f9e56eaec8778efbf
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoChange const to macro 51/269351/1 accepted/tizen/unified/20220128.144517 submit/tizen/20220127.011830
TaeminYeom [Thu, 13 Jan 2022 04:52:43 +0000 (13:52 +0900)]
Change const to macro

Change-Id: I14c228bdb4bf501177b0c7bf3edcf7a5b3076737
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoChange define check name __SENSORD_INTERNAL_H__ 47/269347/1
TaeminYeom [Thu, 13 Jan 2022 04:16:40 +0000 (13:16 +0900)]
Change define check name __SENSORD_INTERNAL_H__

Change-Id: I2323c95a364e4e7fb899c1cf47c858b9b7ccad6b
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix sensor_handler error 90/269290/2
TaeminYeom [Wed, 12 Jan 2022 10:36:30 +0000 (19:36 +0900)]
Fix sensor_handler error

Change-Id: Id68aadccd03a351b21cddb902ae1ee3cd272010d
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoImprove accuracy of orientation sensor calculation 43/269043/7
TaeminYeom [Fri, 7 Jan 2022 03:56:33 +0000 (12:56 +0900)]
Improve accuracy of orientation sensor calculation

-limit dT value range in rotation vector calculation
-fix timestamp reversal
-check max interval of sensor

Change-Id: I558a4af25aacbf903698244c57e34ffd1d5562e8
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoAdd condition in calling set batch latency 80/269180/3
TaeminYeom [Tue, 11 Jan 2022 05:57:19 +0000 (14:57 +0900)]
Add condition in calling set batch latency

-If user didn't set batch latency, not call

Change-Id: Id8511bebf8a6dd60d3a67b996440c9fabb1963b4
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoRemove orientation and rotation vector log 78/268778/3
TaeminYeom [Mon, 3 Jan 2022 01:08:44 +0000 (10:08 +0900)]
Remove orientation and rotation vector log

Change-Id: Ic124191c8ee2ba7e1d0007892011b76b10da8769
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoChange "get_attribute" to get the value directly in HAL 53/268253/1 accepted/tizen/unified/20211224.144842 submit/tizen/20211222.081021
taemin.yeom [Fri, 17 Dec 2021 10:22:46 +0000 (19:22 +0900)]
Change "get_attribute" to get the value directly in HAL

Change-Id: Ia013be56ba7bcd1feffcf24cd44d06ffffbfdfd3
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoAdd Lidar sensor type 26/267926/2
taemin.yeom [Mon, 13 Dec 2021 09:29:52 +0000 (18:29 +0900)]
Add Lidar sensor type

Change-Id: Ie42207e20af761da33bad3ce7073c4d9bd3e259f
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoFix cmake build option 00/266900/2 submit/tizen/20211122.083118
JinWang An [Mon, 22 Nov 2021 08:01:24 +0000 (17:01 +0900)]
Fix cmake build option

Change-Id: Ieb5dc651c9534aed643b313e543a1ace9be95a93
Signed-off-by: JinWang An <jinwang.an@samsung.com>
3 years agoFix duplicated URI error 64/265364/3 accepted/tizen/unified/20211108.181415 submit/tizen/20211103.072537 submit/tizen/20211104.032902
taemin.yeom [Fri, 15 Oct 2021 10:11:54 +0000 (19:11 +0900)]
Fix duplicated URI error

Change-Id: I26e2cec90d51625aa14223ea4beae7c2ea871f6f
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoImprove correctness in orientation calculation 51/265251/4
taemin.yeom [Wed, 13 Oct 2021 07:57:43 +0000 (16:57 +0900)]
Improve correctness in orientation calculation

-fix gravity constant with HAL
-change reference not to be used in function args
to prevent changing values by other threads

Change-Id: I39c14d37490803c9712958d6f2dc464f026b07c8
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoSupport new orientation sensor types 45/264345/1 accepted/tizen/6.5/unified/20211028.115556 accepted/tizen/6.5/unified/20211109.041700 accepted/tizen/unified/20210920.131502 submit/tizen/20210916.080205 submit/tizen_6.5/20211028.162501 submit/tizen_6.5/20211108.015632 submit/tizen_6.5/20211222.073549 submit/tizen_6.5/20211222.074647 tizen_6.5.m2_release
taemin.yeom [Thu, 16 Sep 2021 07:53:04 +0000 (16:53 +0900)]
Support new orientation sensor types

- GYROSCOPE_ORIENTATION_SENSOR : based on gyroscope_rotation_vector
- GEOMAGNETIC_ORIENTATION_SENSOR : based on geomagnetic_rotration_vector

Change-Id: I604e4bb772274660be31077f30a3cdb051c9d342
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoUpgrade calculating algorithm of rotation vector and orientation 40/263440/6 accepted/tizen/unified/20210917.124820 submit/tizen/20210916.054029
taemin.yeom [Thu, 2 Sep 2021 08:46:49 +0000 (17:46 +0900)]
Upgrade calculating algorithm of rotation vector and orientation

Change-Id: Ic564b55f3951ba7e44d6c780a5f683a4e0fafed8
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoFix fd leak 35/263635/1
INSUN PYO [Tue, 7 Sep 2021 07:49:46 +0000 (16:49 +0900)]
Fix fd leak

Change-Id: I4d74acb337b0fd4aaac6fb911055ac702dd055b3

3 years agoAdd orientation sensor type 55/263355/1
Yunmi Ha [Wed, 1 Sep 2021 04:38:24 +0000 (13:38 +0900)]
Add orientation sensor type

- GYROSCOPE_ORIENTATION_SENSOR : based on gyroscope_rotation_vector
- GEOMAGNETIC_ORIENTATION_SENSOR : based on geomagnetic_rotration_vector

Change-Id: I7440c5c153c30221dddab8b5eaacb55bf7d6adb2
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoFix min range values in rotation vector 49/260649/1 submit/tizen/20210831.021755
taemin.yeom [Wed, 30 Jun 2021 07:31:37 +0000 (16:31 +0900)]
Fix min range values in rotation vector

Change-Id: I544d6dc116fbe92be9c32ff26ccdd20978708988
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
4 years agoAdd .gitignore 53/258753/1 accepted/tizen/unified/20210628.122334 submit/tizen/20210628.005317
Hyotaek Shim [Tue, 25 May 2021 07:17:35 +0000 (16:17 +0900)]
Add .gitignore

Change-Id: I14d9e446f4fd795f0fa314a30536890b8490cd23
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoAdd namespace sensor for Autolock 46/258746/2
Hyotaek Shim [Tue, 25 May 2021 05:56:51 +0000 (14:56 +0900)]
Add namespace sensor for Autolock

Change-Id: Ie5df4a9471cb2dfac519ce37cb195206fe7f5761
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix an error while restoring connection in case of server down 09/257409/2
Yunmi Ha [Fri, 23 Apr 2021 10:26:56 +0000 (19:26 +0900)]
Fix an error while restoring connection in case of server down

- remove command channel before restoring connection

Change-Id: I18967110bb293e7d9442628bf7b980e436c1d33d
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoModify sensord.socket and sensord.service 06/255206/1 accepted/tizen/unified/20210316.151312 submit/tizen/20210315.081644
INSUN PYO [Mon, 15 Mar 2021 07:35:23 +0000 (16:35 +0900)]
Modify sensord.socket and sensord.service

1. Remove systemd default value.
   sensord.socket

2. Added more robust exception handling.
   If sensord.socket fails, sensord.service is not executed.

Change-Id: I706d248b05b5b21fc7b1c319054c3fb5ba6e7315

4 years agoFix coverity issues 37/253737/1 accepted/tizen/unified/20210218.042206 submit/tizen/20210217.062004
Boram Bae [Wed, 17 Feb 2021 05:45:28 +0000 (14:45 +0900)]
Fix coverity issues

Change-Id: Ia3bcbecc10af6bf2d095680fe6e62860b1fda8ea
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoFix svace issues 36/253736/1
Boram Bae [Wed, 17 Feb 2021 02:37:02 +0000 (11:37 +0900)]
Fix svace issues

Change-Id: Ia19483be36444f2f2acb735b6d911f62d63d1f29
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoMerge "Change systemd-devel package name" into tizen accepted/tizen/unified/20210217.120530 submit/tizen/20210208.013015 submit/tizen/20210208.014310 submit/tizen/20210208.021556 submit/tizen/20210208.040437
boram bae [Mon, 8 Feb 2021 01:45:09 +0000 (01:45 +0000)]
Merge "Change systemd-devel package name" into tizen

4 years agoChange systemd-devel package name 48/252848/1
INSUN PYO [Wed, 3 Feb 2021 00:38:29 +0000 (09:38 +0900)]
Change systemd-devel package name

Change-Id: Iac39dc53e727d1aed361ef359ec8440acf406cc4

4 years agoUse hal-sensor-types 45/252745/1 accepted/tizen/unified/20210204.134601 submit/tizen/20210203.011633 submit/tizen/20210204.020237
Boram Bae [Tue, 2 Feb 2021 05:40:55 +0000 (14:40 +0900)]
Use hal-sensor-types

* Use hal-sensor-types instead of hal-sensor-interface
* This change required by plan of Next HAL

Change-Id: I913dc2ffda97f5cb11c59afc25e8227309e5808a
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoAdd a dependency to sensor.pc 77/252377/1 accepted/tizen/unified/20210128.132322 submit/tizen/20210127.075110
Boram Bae [Wed, 27 Jan 2021 07:40:25 +0000 (16:40 +0900)]
Add a dependency to sensor.pc

Change-Id: I115db40800a6bf9b1438e9657d20e5db22f274ce
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoUse hal-api-sensor instead of legacy interface 78/252278/2 submit/tizen/20210127.061527
Boram Bae [Thu, 14 Jan 2021 09:45:44 +0000 (18:45 +0900)]
Use hal-api-sensor instead of legacy interface

* This change is for Tizen Next-HAL
* Now, all implementations of sensor device inherit sensor device interface of the hal-api-sensor
* Move sensor_hal and sensor_hal_types to hal-api-sensor
* Name sensor_loader`s existing HAL as Legacy HAL

Change-Id: I74693374db341475039d31071798e5a252dfc39f
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoRestore pause policy when restoring listener connection 03/240603/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.113627 accepted/tizen/6.0/unified/hotfix/20201103.002503 accepted/tizen/unified/20200812.143939 submit/tizen/20200811.011414 submit/tizen/20200811.105049 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 tizen_6.0.m2_release
Boram Bae [Mon, 10 Aug 2020 02:28:58 +0000 (11:28 +0900)]
Restore pause policy when restoring listener connection

Change-Id: Ic542d21e51bbd4f1ec73c96f4185ac68538958f1
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd comments about some reserved area 44/235844/1 accepted/tizen/unified/20200805.122521 submit/tizen/20200724.011530 submit/tizen/20200804.055632 submit/tizen/20200811.105806
Boram Bae [Wed, 10 Jun 2020 07:46:41 +0000 (16:46 +0900)]
Add comments about some reserved area

Change-Id: I1963eadd7c3931d381b605ac0dd73d8e4ed8d703
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoUse a send instead of send_snyc 22/234122/1
Boram Bae [Fri, 22 May 2020 04:51:42 +0000 (13:51 +0900)]
Use a send instead of send_snyc

* To prevent timeout when calling select

Change-Id: Iba1bf0149012c4f3eae90e93a549a02349285167
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoLimit number of providers for better performance 88/233988/1
MuHong Byun [Thu, 21 May 2020 03:56:15 +0000 (12:56 +0900)]
Limit number of providers for better performance

Change-Id: Icaef386841acfd1537a38a210115e049453c0670
Signed-off-by: MuHong Byun <mh.byun@samsung.com>
5 years agoUse a buffer size when disclosing message 60/233760/1
Boram Bae [Tue, 19 May 2020 03:31:03 +0000 (12:31 +0900)]
Use a buffer size when disclosing message

Change-Id: Ica95575c04fce516fb8e156fa8281d8888a1ea15
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoFix a bug 03/231203/1 accepted/tizen/unified/20200422.032145 submit/tizen/20200420.054350 submit/tizen/20200421.010727 submit/tizen/20200421.102617
Boram Bae [Mon, 20 Apr 2020 05:24:58 +0000 (14:24 +0900)]
Fix a bug

Change-Id: Id9390743fb1ebc0a6951f071d50e1cd8e05112d4
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd a lock to event_loop 84/230084/1 accepted/tizen/unified/20200408.131459 submit/tizen/20200408.024352
Boram Bae [Tue, 7 Apr 2020 09:52:36 +0000 (18:52 +0900)]
Add a lock to event_loop

Change-Id: I610fa0ffaebd256b184f9e5e4c8e2fd79b02cc75
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoDisconnect channel when peer performs shutdown 83/230083/1
Boram Bae [Tue, 7 Apr 2020 09:17:20 +0000 (18:17 +0900)]
Disconnect channel when peer performs shutdown

Change-Id: Iaccbd1d23b9000f20f9cef3a536948847a174985
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd set_fusion_sensor_handler to fusion_sensor 03/228803/1
Boram Bae [Wed, 25 Mar 2020 12:11:25 +0000 (21:11 +0900)]
Add set_fusion_sensor_handler to fusion_sensor

Change-Id: I30f6a713ca4ee09d5dcd545ca10b995d8a6a9643
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoFix coverity issues 25/228425/1 accepted/tizen/unified/20200324.101657 submit/tizen/20200323.054406 submit/tizen/20200323.110331
Boram Bae [Mon, 23 Mar 2020 04:58:36 +0000 (13:58 +0900)]
Fix coverity issues

Change-Id: I234a51bb32ba6f2c105d8227acb519dc05e19182
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd more sensor_attribute values 90/227990/2
Boram Bae [Wed, 18 Mar 2020 02:52:24 +0000 (11:52 +0900)]
Add more sensor_attribute values

Change-Id: Ia68d345c8d1ff7cc1e745a92752deb4572993307
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd HRM_LED_GREEN_BATCH_SENSOR sensor 94/227494/1 accepted/tizen/unified/20200315.214900 submit/tizen/20200315.023614
Boram Bae [Thu, 12 Mar 2020 06:46:26 +0000 (15:46 +0900)]
Add HRM_LED_GREEN_BATCH_SENSOR sensor

Change-Id: I4eaaee0242374857874ca6e2195c0ebde8f5f6b5
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd hrm_batch sensor type 19/227119/1 accepted/tizen/unified/20200311.130757 submit/tizen/20200311.004837
Boram Bae [Tue, 10 Mar 2020 01:59:08 +0000 (10:59 +0900)]
Add hrm_batch sensor type

Change-Id: I6167d678146dd73a87f6cc6cc02f854dd5aa19db
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoFix coverity issues 68/226568/1 accepted/tizen/unified/20200306.040245 submit/tizen/20200305.043805
Boram Bae [Wed, 4 Mar 2020 02:48:06 +0000 (11:48 +0900)]
Fix coverity issues

Change-Id: Icfdbaab542d1937f481087a78f5eacf7d0b8b95f
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoImplement add_idle_event at event_loop 65/225965/1 accepted/tizen/unified/20200228.123748 submit/tizen/20200227.012058
Boram Bae [Wed, 26 Feb 2020 02:32:49 +0000 (11:32 +0900)]
Implement add_idle_event at event_loop

* This patch also fixe memory leak

Change-Id: I070d08a10dd9c02ec6df15602d3a4e37a9618404
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd a lock at channel 70/225570/1 accepted/tizen/unified/20200224.081505 submit/tizen/20200221.070719
Boram Bae [Fri, 21 Feb 2020 03:38:08 +0000 (12:38 +0900)]
Add a lock at channel

Change-Id: Ied812242c1eda6b0adb1878b3fbc2a9bc85b2d1f
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoAdd a command type to indicate that the listener is connected. 59/225259/1
Boram Bae [Tue, 18 Feb 2020 10:56:28 +0000 (19:56 +0900)]
Add a command type to indicate that the listener is connected.

Change-Id: I97775d6f9685294c06ac6551434c13a4cf1b3883
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoFix coverity issues 57/225057/1 accepted/tizen/unified/20200218.145919 submit/tizen/20200217.061028
Boram Bae [Mon, 17 Feb 2020 05:45:22 +0000 (14:45 +0900)]
Fix coverity issues

Change-Id: Ib449e448c9d12bf66fd2dee02d05654d208e8d72
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoFix coverity issue 51/224351/1 accepted/tizen/unified/20200211.055840 submit/tizen/20200210.093434
Boram Bae [Mon, 10 Feb 2020 05:11:11 +0000 (14:11 +0900)]
Fix coverity issue

Change-Id: I0d25afbfb7391209bbd0c0691b462bc9e77509df
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoUse pass by reference instead of by value 58/224058/1 accepted/tizen/unified/20200207.122407 submit/tizen/20200206.061141
Boram Bae [Thu, 6 Feb 2020 04:36:15 +0000 (13:36 +0900)]
Use pass by reference instead of by value

* This patch fixes Svace issue

Change-Id: I5b276f2cac8c9703e218e2262a06eb827f3ee06b
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoDo not update client's attribute cache when attribute is SENSORD_ATTRIBUTE_FLUSH 68/223968/1
Boram Bae [Wed, 5 Feb 2020 07:31:51 +0000 (16:31 +0900)]
Do not update client's attribute cache when attribute is SENSORD_ATTRIBUTE_FLUSH

Change-Id: If91bbdae0e777927b2a930d494fcc0126fbffccf
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoInitialize uninitialized pointers 24/223724/1
Boram Bae [Mon, 3 Feb 2020 08:02:19 +0000 (17:02 +0900)]
Initialize uninitialized pointers

Change-Id: If831237a9e04965f20161ce2285d45978b2af19f
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
5 years agoFix coverity issue 51/223251/1 accepted/tizen/unified/20200130.214553 submit/tizen/20200128.051542
Boram Bae [Tue, 28 Jan 2020 04:10:07 +0000 (13:10 +0900)]
Fix coverity issue

Change-Id: I5418fd4563bad87b89ccf5a013e9a6d6fa23cdf8
Signed-off-by: Boram Bae <boram21.bae@samsung.com>