platform/core/system/sensord.git
5 years agoCoverity issues Fix:Integrating tizen 5.0 Fixes 19/196819/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20190107.145032 submit/tizen_4.0/20190104.101828
srinivasa.m [Fri, 4 Jan 2019 12:06:29 +0000 (17:36 +0530)]
Coverity issues Fix:Integrating tizen 5.0 Fixes

Change-Id: Id19c9bb54c376afe0558dee179f5fe9e08c65024
Signed-off-by: srinivasa.m <srinivasa.m@samsung.com>
5 years agoFix for ASAN Issue TDAF-710: alloc-dealloc mismatch 97/186997/1 accepted/tizen/4.0/unified/20180829.004511 submit/tizen_4.0/20180817.110403
srinivasa.m [Fri, 17 Aug 2018 06:02:27 +0000 (11:32 +0530)]
Fix for ASAN Issue TDAF-710: alloc-dealloc mismatch

Change-Id: Icb19b22d858247a0dd219f08f270a86482505378

5 years agoRemove unused dbus init/deinit related code 90/184190/1 accepted/tizen/4.0/unified/20180717.231227 submit/tizen_4.0/20180717.060652
kibak.yoon [Mon, 16 Jul 2018 07:05:24 +0000 (16:05 +0900)]
Remove unused dbus init/deinit related code

Change-Id: Ifb392cdf5f89702c24b867b20f6797e00d068bbb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
5 years agoCheck the return value of connect() function. 89/184189/1
kibak.yoon [Mon, 16 Jul 2018 06:57:28 +0000 (15:57 +0900)]
Check the return value of connect() function.

If there is a connection fail, the API should return the proper error.

Change-Id: I39fca464ee86442d060702ca5782650be7ce5614
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
5 years agosensord: increase the socket timeout time 38/183838/1 accepted/tizen/4.0/unified/20180712.142254 submit/tizen_4.0/20180711.124904
kibak.yoon [Wed, 11 Jul 2018 12:22:29 +0000 (21:22 +0900)]
sensord: increase the socket timeout time

Change-Id: I9fcd8a5698f9c378e315a540c7a99c525b5d1c3c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
5 years agoMerge "[Non-ACR][Fix for TNEXT-14733]" into tizen_4.0 accepted/tizen/4.0/unified/20180629.000221 submit/tizen_4.0/20180628.110955
Abhishek Vijay [Thu, 28 Jun 2018 11:04:57 +0000 (11:04 +0000)]
Merge "[Non-ACR][Fix for TNEXT-14733]" into tizen_4.0

5 years ago[Non-ACR][Fix for TNEXT-14733] 98/182398/2
Sudipto [Fri, 22 Jun 2018 15:44:06 +0000 (21:14 +0530)]
[Non-ACR][Fix for TNEXT-14733]

Change-Id: I14d086469e48473e85ed509e6e7b7b7e5fa0c07f
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years ago[Non-ACR][Fix for TDAF-350 & TDAF-359] 51/182851/2
Sudipto [Thu, 28 Jun 2018 09:33:01 +0000 (15:03 +0530)]
[Non-ACR][Fix for TDAF-350 & TDAF-359]

Change-Id: Iaf91e2567b33c5d862231e598a8c3f3cf356d84b
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoFix for ASAN Issues(alloc-dealloc mismatch) 44/180944/4 accepted/tizen/4.0/unified/20180622.231445 submit/tizen_4.0/20180622.101716
kamaljeet [Wed, 6 Jun 2018 12:43:26 +0000 (18:13 +0530)]
Fix for ASAN Issues(alloc-dealloc mismatch)

Change-Id: I97dd2344b21c01a5acb9133e6520f69d0aec84f0
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 47/157547/1 tizen_4.0_tv accepted/tizen/4.0/unified/20171026.153004 submit/tizen_4.0/20171025.051251 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
kibak.yoon [Wed, 25 Oct 2017 04:16:54 +0000 (13:16 +0900)]
Merge branch 'tizen' into tizen_4.0

* tizen:
  sensord: caching data to get previous data
  sensord: check if the event value is a valid number

Change-Id: Ibf5d226a4882b3723067c68780b0254ac0c4f78b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 45/157545/1 accepted/tizen/unified/20171107.145639 submit/tizen/20171025.051307 submit/tizen/20171106.090719
kibak.yoon [Wed, 25 Oct 2017 04:16:15 +0000 (13:16 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: caching data to get previous data
  sensord: check if the event value is a valid number

Change-Id: Ib96bcfc40e88c9c1d8dd576f48f9f43fa572bb48
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: caching data to get previous data 79/157479/2 devel/tizen
kibak.yoon [Tue, 24 Oct 2017 15:27:04 +0000 (00:27 +0900)]
sensord: caching data to get previous data

- Svace/Coverity : no issue
- tct is passed : utc/itc 100%

Change-Id: If6e023acf3d189869183fc33220562f2013534da
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: check if the event value is a valid number 89/155689/3
kibak.yoon [Mon, 16 Oct 2017 02:47:22 +0000 (11:47 +0900)]
sensord: check if the event value is a valid number

Change-Id: I414f8a6f71baad87ec3dd9538d5ee60b8c3a5edf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 74/155574/1 accepted/tizen/4.0/unified/20171016.042240 submit/tizen_4.0/20171013.144100 tizen_4.0.IoT.p1_release
kibak.yoon [Fri, 13 Oct 2017 14:16:15 +0000 (23:16 +0900)]
Merge branch 'tizen' into tizen_4.0

* tizen:
  sensor: check if the event value is NaN
  sensor: fix problem that gyroscope rotation vector does not work

Change-Id: I578b7700e73f5648d85238ac345d7a2701e155bb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 73/155573/1 accepted/tizen/unified/20171016.064443 submit/tizen/20171013.144027
kibak.yoon [Fri, 13 Oct 2017 14:15:48 +0000 (23:15 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensor: check if the event value is NaN
  sensor: fix problem that gyroscope rotation vector does not work

Change-Id: I5fc7df97a72a57a6744467194e3e5283f28d223d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: check if the event value is NaN 72/155572/1
kibak.yoon [Fri, 13 Oct 2017 14:03:59 +0000 (23:03 +0900)]
sensor: check if the event value is NaN

Change-Id: I97615392d32d7435e74788cc28f13b56f8e72549
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: fix problem that gyroscope rotation vector does not work 36/154636/1
kibak.yoon [Wed, 11 Oct 2017 01:49:38 +0000 (10:49 +0900)]
sensor: fix problem that gyroscope rotation vector does not work

Change-Id: I7a6e4305bb982d36c87cc4b2f3789c0b09f02c55
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 76/151876/1 accepted/tizen/4.0/unified/20170922.195747 submit/tizen_4.0/20170922.093300
kibak.yoon [Fri, 22 Sep 2017 08:09:48 +0000 (17:09 +0900)]
Merge branch 'tizen' into tizen_4.0

* tizen:
  sensord: version up 4.0.3
  sensord: check the range of values provided from the client
  sensord: limit the maximum number of listeners per client
  sensord: samsung pedometer sensor for fused location fix/update.

Change-Id: Ifb150c289461cde1b1539c3d7a2f12731032b0d1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 75/151875/1 accepted/tizen/unified/20170925.071404 submit/tizen/20170922.093245
kibak.yoon [Fri, 22 Sep 2017 08:09:27 +0000 (17:09 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: version up 4.0.3
  sensord: check the range of values provided from the client
  sensord: limit the maximum number of listeners per client
  sensord: samsung pedometer sensor for fused location fix/update.

Change-Id: I898540271edc2fe9a05b49b67207e87e06268455
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: version up 4.0.3 74/151874/1
kibak.yoon [Fri, 22 Sep 2017 08:08:56 +0000 (17:08 +0900)]
sensord: version up 4.0.3

Change-Id: I25f0435ab579d3e541f9a3ed1308879c7388868a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: check the range of values provided from the client 12/151812/2
kibak.yoon [Fri, 22 Sep 2017 05:15:32 +0000 (14:15 +0900)]
sensord: check the range of values provided from the client

Change-Id: Ib6102f684dd1b5ee877b28aa871f7b6b169adf23
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: limit the maximum number of listeners per client 11/151811/1
kibak.yoon [Fri, 22 Sep 2017 05:12:17 +0000 (14:12 +0900)]
sensord: limit the maximum number of listeners per client

- MAX_LISTENER = 100

Change-Id: Ib736ef66f2c50a9a218244a4bc5a41bca52ef0d3
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: samsung pedometer sensor for fused location fix/update. 09/150409/2
Marcin Masternak [Fri, 15 Sep 2017 10:31:31 +0000 (12:31 +0200)]
sensord: samsung pedometer sensor for fused location fix/update.

Change-Id: I297e0a9e6eb09afb0791fd7a64f608900dc62893
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 68/150668/1 accepted/tizen/4.0/unified/20170920.081410 submit/tizen_4.0/20170918.091334
kibak.yoon [Mon, 18 Sep 2017 07:53:23 +0000 (16:53 +0900)]
Merge branch 'tizen' into tizen_4.0

* tizen:
  sensorctl: change scanf to cin for security issue

Change-Id: I8285c3be2c4554e8ba8dc8750ea5eb98c8763a57
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 67/150667/1 accepted/tizen/unified/20170920.081155 submit/tizen/20170918.091342
kibak.yoon [Mon, 18 Sep 2017 07:53:01 +0000 (16:53 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensorctl: change scanf to cin for security issue

Change-Id: If63849f006a0e355df2ba46ea9ff48ff1e8c721d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: change scanf to cin for security issue 51/150551/2
kibak.yoon [Mon, 18 Sep 2017 02:09:16 +0000 (11:09 +0900)]
sensorctl: change scanf to cin for security issue

Change-Id: Id5760c1fe643729d67716323360cb43d0147aa7b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 44/150044/1
kibak.yoon [Thu, 14 Sep 2017 05:52:56 +0000 (14:52 +0900)]
Merge branch 'tizen' into tizen_4.0

* tizen:
  sensorctl: fix bug which senosr type was not set

Change-Id: Ia3376ee5bb7e9c8c6405f62ba5e3ffa89c1dd40d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 43/150043/1
kibak.yoon [Thu, 14 Sep 2017 05:52:13 +0000 (14:52 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensorctl: fix bug which senosr type was not set

Change-Id: I993e9263a592dcd3c4f6644e82f76e7a0ddf2a3f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: fix bug which senosr type was not set 42/150042/2
kibak.yoon [Thu, 14 Sep 2017 05:45:33 +0000 (14:45 +0900)]
sensorctl: fix bug which senosr type was not set

Change-Id: Ie441084d2b95f0ea99c70ca0c70b6a2d0b5ba50b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 45/149445/1 accepted/tizen/4.0/unified/20170913.153418 submit/tizen_4.0/20170912.122922
kibak.yoon [Tue, 12 Sep 2017 07:43:44 +0000 (16:43 +0900)]
Merge branch 'devel/tizen' into tizen

Change-Id: Ifbc84923e473d296df89a63c8c1aa73f71b9555d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 43/149443/1 accepted/tizen/unified/20170913.071904 submit/tizen/20170912.122717
kibak.yoon [Tue, 12 Sep 2017 07:43:44 +0000 (16:43 +0900)]
Merge branch 'devel/tizen' into tizen

Change-Id: I6336bd632ce28034abc7cf27dd8a8bb69111dfbb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix coding rule violations 17/149217/2
kibak.yoon [Mon, 11 Sep 2017 12:37:20 +0000 (21:37 +0900)]
sensord: fix coding rule violations

Change-Id: I19591605e855fdbd1b44aae8fed8fe9ded23ee16
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: samsung pedometer sensor for fused location fix/update. 52/148752/1
Marcin Masternak [Fri, 8 Sep 2017 18:16:22 +0000 (20:16 +0200)]
sensord: samsung pedometer sensor for fused location fix/update.

Change-Id: I007bf4564c426e897ab273824231782fa65054ee
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
6 years agosensorctl: apply ASLR to sensorctl 06/144206/1
kibak.yoon [Wed, 16 Aug 2017 01:52:20 +0000 (10:52 +0900)]
sensorctl: apply ASLR to sensorctl

Change-Id: I92770df7a1e80753b618a380f775385d47763571
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 00/143700/1 accepted/tizen/4.0/unified/20170829.020123 accepted/tizen/unified/20170811.133354 submit/tizen/20170811.045847 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
kibak.yoon [Fri, 11 Aug 2017 04:49:32 +0000 (13:49 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: add log messages
  sensorctl: add gyroscope testcases
  sensorctl: clean up testcases
  sensorctl: seperate auto test and manual test
  sensorctl: add options/features for usability
  sensorctl: remove assert macro
  sensorctl: remove unnecessary keyword/macro
  sensorctl: clean up log macros of sensorctl

Change-Id: I8f76c17ce14620630f6f39d644ec88eab7c7495e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: add log messages 14/143614/3
kibak.yoon [Thu, 10 Aug 2017 13:14:18 +0000 (22:14 +0900)]
sensord: add log messages

Change-Id: I384547eae5fd809f8db433ac97c33831a6d840e9
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: add gyroscope testcases 87/143587/1
kibak.yoon [Thu, 10 Aug 2017 11:21:18 +0000 (20:21 +0900)]
sensorctl: add gyroscope testcases

Change-Id: Id5ef5188d07ba827db7add4c690782ae1c408722
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: clean up testcases 86/143586/1
kibak.yoon [Thu, 10 Aug 2017 11:21:03 +0000 (20:21 +0900)]
sensorctl: clean up testcases

Change-Id: I853f84296e788da1646483b3eb2197bd47e0229e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: seperate auto test and manual test 85/143585/1
kibak.yoon [Thu, 10 Aug 2017 11:18:08 +0000 (20:18 +0900)]
sensorctl: seperate auto test and manual test

- sensorctl test auto
- sensorctl test <sensor_type>

Change-Id: Id30e09ff8380981699a9c7651af675fd7a370da5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: add options/features for usability 84/143584/1
kibak.yoon [Thu, 10 Aug 2017 10:44:11 +0000 (19:44 +0900)]
sensorctl: add options/features for usability

This patch supports the below options and features.

[SYNOPSIS]
  - sensorctl test auto [--help] [--list] [--filter=<regex>]
                        [--verbose] [--shuffle] [--repeat]
                        [--output]
  - sensorctl test <sensor_type>
                [--interval=NUMBER] [--batch_latency=NUMBER] [--powersave=TYPE]
                [--repeat=NUMBER] [--output=FILE_PATH] [--help] [--verbose]

[Options]
  -f PATTERN, --filter=<PATTERN>
    Run a subset of the tests for debugging or quickly verifying a
    change. Sensorctl will only run the tests whose full names match the
    filter. This can be used to specify multiple search patterns.

  -l, --list
    Prints the testcase list by following command.

  -h, --help
    Prints the synopsis and a list of the most commonly used commands.

  -v, --verbose
    Prints the log message fully while testcases are running.

  -s, --shuffle
    Run the testcase randomly.

  -r NUMBER, --repeat=NUMBER
    Run the testcase a given number of times.

Change-Id: I30dec0ef2896e12c956be294c2677cb785335ec0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: remove assert macro 83/143583/1
kibak.yoon [Thu, 10 Aug 2017 10:33:32 +0000 (19:33 +0900)]
sensorctl: remove assert macro

- [TODO] replace "adapter" with "adaptor"

Change-Id: I0f86d2de013616c598b296b014e7331254e6d5ec
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: remove unnecessary keyword/macro 82/143582/1
kibak.yoon [Thu, 10 Aug 2017 10:26:11 +0000 (19:26 +0900)]
sensorctl: remove unnecessary keyword/macro

* change parameter name

Change-Id: Iee63054bcf0b752fa0acf29ad087d210056ed606
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensorctl: clean up log macros of sensorctl 81/143581/1
kibak.yoon [Thu, 10 Aug 2017 10:23:25 +0000 (19:23 +0900)]
sensorctl: clean up log macros of sensorctl

Change-Id: I7aff53066afae3659700f37ac32a536d39c53c62
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 64/143364/1 accepted/tizen/unified/20170810.172039 submit/tizen/20170809.105839
kibak.yoon [Wed, 9 Aug 2017 10:54:01 +0000 (19:54 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: fix double-free issue

Change-Id: I1cac69014721ee9950de0f756f5ef86591ec319c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix double-free issue 61/143361/1
kibak.yoon [Wed, 9 Aug 2017 10:39:52 +0000 (19:39 +0900)]
sensord: fix double-free issue

- If the server is terminated unexpectedly, sensor library releases the memory
  of channel automatically. At that time, if client calls disconnect(),
  double-free problem is invoked.
- Because it is right situation to call disconnect() explicitly,
  the auto-release code should be removed.

Change-Id: I31894354eb2d11549dbe0382ce865de6beea89d4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 09/142409/1 accepted/tizen/unified/20170804.132928 submit/tizen/20170804.015049
kibak.yoon [Fri, 4 Aug 2017 01:38:04 +0000 (10:38 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: version 4.0.2
  sensord: add null check after malloc
  sensord: fix bug with incorrect bit operation
  sensord: ternimate sensord instantly when signal is received
  sensord: remove excessive sensor log when socket buffer is full
  sensord: enable samsung pedometer sensor for fused location
  sensord: increase timeout time

Change-Id: I0eecf67dedbd36746e8557afbb536f6e10c627c8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: version 4.0.2 96/142396/2
kibak.yoon [Fri, 4 Aug 2017 01:09:34 +0000 (10:09 +0900)]
sensord: version 4.0.2

Change-Id: Id1c588dda1ae5d446f158afeea96b7d94bfff82e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: add null check after malloc 06/142406/1
kibak.yoon [Fri, 4 Aug 2017 01:34:49 +0000 (10:34 +0900)]
sensord: add null check after malloc

Change-Id: I6f01e8f46be1e08999bc0f35871fc675ba7ebeb8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix bug with incorrect bit operation 72/142372/1
kibak.yoon [Thu, 3 Aug 2017 15:38:29 +0000 (00:38 +0900)]
sensord: fix bug with incorrect bit operation

Change-Id: I29c35c9b923d572fbe0b39aa7fe5913386f77bb2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: ternimate sensord instantly when signal is received 71/142371/1
kibak.yoon [Thu, 3 Aug 2017 15:37:13 +0000 (00:37 +0900)]
sensord: ternimate sensord instantly when signal is received

Change-Id: I1993404cf85cf92427ccaf69a28dbe88a461134d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: remove excessive sensor log when socket buffer is full 47/142347/4
kibak.yoon [Thu, 3 Aug 2017 12:05:11 +0000 (21:05 +0900)]
sensord: remove excessive sensor log when socket buffer is full

Change-Id: I70930ff13ac406a6c8a5418f3404cbfb83e3c32b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: enable samsung pedometer sensor for fused location 75/129575/11
kibak.yoon [Wed, 17 May 2017 04:48:38 +0000 (13:48 +0900)]
sensord: enable samsung pedometer sensor for fused location

- URI = http://samsung.com/sensor/healthinfo/pedometer/samsung_pedometer
- Model = samsung_pedometer
- Vendor = samsung.com

Change-Id: Ic6220e0001bc5923e392a7a0dec99860ba47227d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: increase timeout time 98/139898/1
kibak.yoon [Fri, 21 Jul 2017 02:57:11 +0000 (11:57 +0900)]
sensord: increase timeout time

a specific command takes more than a second sometimes
(e.g., permission checking with cynara initialization).
so timeout time should be increased. (3sec)

Change-Id: Ib886303eb4c847568f2ebbc9db797873b0779329
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 23/139323/1 accepted/tizen/4.0/unified/20170816.013925 accepted/tizen/unified/20170719.131917 submit/tizen/20170718.112510 submit/tizen_4.0/20170811.094300
kibak.yoon [Tue, 18 Jul 2017 10:19:39 +0000 (19:19 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: remove unused debugging function
  sensord: check type whether it is a regular file or not
  sensord: version 4.0.1
  sensor: check NULL if memory allocation is failed
  sensor: fix the type casting issue about integer division

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

6 years agosensord: remove unused debugging function 14/139314/1
kibak.yoon [Tue, 18 Jul 2017 10:01:18 +0000 (19:01 +0900)]
sensord: remove unused debugging function

Change-Id: I9486d4b7db1cf42eddd26d36c447108eff893a24
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: check type whether it is a regular file or not 13/139313/1
kibak.yoon [Tue, 18 Jul 2017 09:59:59 +0000 (18:59 +0900)]
sensord: check type whether it is a regular file or not

Change-Id: I8b72cd6702def0a57d5ce570cb183d90f43519f6
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: version 4.0.1 24/139024/1
kibak.yoon [Mon, 17 Jul 2017 03:52:01 +0000 (12:52 +0900)]
sensord: version 4.0.1

Change-Id: I03330c92359414f7a2c5d9b881c57a1acf04a8ba
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: check NULL if memory allocation is failed 23/139023/1
kibak.yoon [Mon, 17 Jul 2017 02:59:39 +0000 (11:59 +0900)]
sensor: check NULL if memory allocation is failed

Change-Id: I1a85c8d036143f93f344be1e8eb2b5a5f7983470
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: fix the type casting issue about integer division 22/139022/1
kibak.yoon [Mon, 17 Jul 2017 02:54:52 +0000 (11:54 +0900)]
sensor: fix the type casting issue about integer division

- the result of integer division converted into floating point

Change-Id: I40d59f2976c1d65cd4c4c20ddb027edcbc70ab5b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 72/135572/1 accepted/tizen/unified/20170623.104837 submit/tizen/20170623.070309
kibak.yoon [Fri, 23 Jun 2017 06:35:36 +0000 (15:35 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: remove termination routine when there is no sensor

Change-Id: I289e1cbe573c0f1893f37a8ceabdb792c2b6a297
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: remove termination routine when there is no sensor 61/135561/2
kibak.yoon [Fri, 23 Jun 2017 05:44:27 +0000 (14:44 +0900)]
sensord: remove termination routine when there is no sensor

- serveral frameworks try to connect sensor continuously, so the sensor
  daemon runs every time they try. it's a overhead work.

Change-Id: Ib203c69e4e53767256e71ca9aaa5f58c6d97a622
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 04/134204/1 accepted/tizen/unified/20170615.234803 submit/tizen/20170615.081748
kibak.yoon [Thu, 15 Jun 2017 08:05:22 +0000 (17:05 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: fix bugs with using invalid format in logs

Change-Id: I03df38c03a7a089281802c28e227f9de49c1f7fc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix bugs with using invalid format in logs 01/134201/1
kibak.yoon [Thu, 15 Jun 2017 07:58:32 +0000 (16:58 +0900)]
sensord: fix bugs with using invalid format in logs

Change-Id: Ide24272d63a24611aba81a5fe0114e62cebeb1fe
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 91/134091/1 accepted/tizen/unified/20170615.020741 submit/tizen/20170614.120039
kibak.yoon [Wed, 14 Jun 2017 11:53:00 +0000 (20:53 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: rv: fix bug that the accuracy value is not changed
  sensord: send accuracy changed event to listeners
  sensord: remove redundant blank lines at the end of a code block

Change-Id: I5972e9398bd7b7b24b8bec087c6cdd2b83551d9c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: rv: fix bug that the accuracy value is not changed 74/134074/1
kibak.yoon [Wed, 14 Jun 2017 11:17:15 +0000 (20:17 +0900)]
sensord: rv: fix bug that the accuracy value is not changed

Change-Id: I9a3020ae8e748e09dbb79e0e2f13cc8c3208d65d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: send accuracy changed event to listeners 63/134063/3
kibak.yoon [Wed, 14 Jun 2017 10:13:14 +0000 (19:13 +0900)]
sensord: send accuracy changed event to listeners

Change-Id: Idfcf4217ef2694578857c032e60ad55950198452
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: remove redundant blank lines at the end of a code block 42/133642/1
kibak.yoon [Tue, 13 Jun 2017 04:05:13 +0000 (13:05 +0900)]
sensord: remove redundant blank lines at the end of a code block

Change-Id: I90276bc03a6ddd2fb73fa5eb78ab16aa386c8ad0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 54/132754/1 accepted/tizen/unified/20170608.072337 submit/tizen/20170607.105010
kibak.yoon [Wed, 7 Jun 2017 10:45:12 +0000 (19:45 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: add select() before read a data to check whether it is ready or not

Change-Id: Ia9055b66df457b9431d50049aa29d3b6c3befc1b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: add select() before read a data to check whether it is ready or not 25/132725/2
kibak.yoon [Wed, 7 Jun 2017 08:38:06 +0000 (17:38 +0900)]
sensord: add select() before read a data to check whether it is ready or not

Change-Id: Id39cffc0107771dcdec0f7d23da6b36f39af0fbe
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 05/132405/1 accepted/tizen/unified/20170605.151357 submit/tizen/20170605.041054
kibak.yoon [Mon, 5 Jun 2017 02:02:52 +0000 (11:02 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: fix bug to enable external sensor on rpi3

Change-Id: I78d0b7b5d54cb101df729824e4e463eb3011c633
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix bug to enable external sensor on rpi3 76/132076/2
kibak.yoon [Mon, 5 Jun 2017 01:57:30 +0000 (10:57 +0900)]
sensord: fix bug to enable external sensor on rpi3

Change-Id: I9013a23afefc2e8fbcbb861a6afa74b499641884
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 80/130080/1 accepted/tizen/unified/20170519.200727 submit/tizen/20170519.104555 tizen_4.0.m1_release
kibak.yoon [Fri, 19 May 2017 05:08:52 +0000 (14:08 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: remove command when manager/listener/provider are disconnected
  Temporary fix for build errors from Tizen 3.0 snapshots

Change-Id: I670a9ed0351ab4a9c78305654456ce11ea281a60
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: remove command when manager/listener/provider are disconnected 16/129816/2
kibak.yoon [Thu, 18 May 2017 06:37:34 +0000 (15:37 +0900)]
sensord: remove command when manager/listener/provider are disconnected

- if channel is disconnected(), server releases their resources automatically.
- so it is not neccessary to release resource by sending command.

Change-Id: Ifd4ed14b20429def377f10d5a6d5dd3da18efc86
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoTemporary fix for build errors from Tizen 3.0 snapshots 88/129188/4
Mu-Woong Lee [Mon, 15 May 2017 09:45:39 +0000 (18:45 +0900)]
Temporary fix for build errors from Tizen 3.0 snapshots

This patch enables to build other packages requiring pkgconfig(sensor),
when you need to build & install the latest sensord for Tizen 3.0 devices.

Change-Id: Ib70d2236d8b1beaf8d0a7040af5540df502de547
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 37/129437/1 accepted/tizen/unified/20170516.180112 submit/tizen/20170516.115454
kibak.yoon [Tue, 16 May 2017 10:46:46 +0000 (19:46 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: rename set_interval_cb to interval_changed_cb

Change-Id: I8f3aee08440cb89b282ad8686824a055a95aaf36
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: rename set_interval_cb to interval_changed_cb 03/129403/1
kibak.yoon [Tue, 16 May 2017 05:16:09 +0000 (14:16 +0900)]
sensord: rename set_interval_cb to interval_changed_cb

Change-Id: I9f7dd165b8b4a2aa3f244c4f5061f1b96d0cec84
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 81/129281/1
kibak.yoon [Tue, 16 May 2017 03:09:14 +0000 (12:09 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: add location privilege to location-related sensors

Change-Id: Id3e302ba43303bf2f78bad0c6b0b67423f8fd81c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: add location privilege to location-related sensors 15/128615/4
kibak.yoon [Wed, 10 May 2017 13:20:27 +0000 (22:20 +0900)]
sensord: add location privilege to location-related sensors

Change-Id: Ib931902c518fd67e62fb7e7dc2d8cd6340d792b3
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 04/128604/1 accepted/tizen/unified/20170510.183808 submit/tizen/20170510.123758
kibak.yoon [Wed, 10 May 2017 12:26:04 +0000 (21:26 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: fix typo errors about sensor URI
  sensord: specify the appropriate sensor type based on URI
  sensord: add privilege part to URI format
  sensord: move common part to base sensor handler
  sensord: move sensor provider testcases to unit_provider.cpp
  sensord: remove useless privilege and macros
  sensord: seperate socket channel for command and monitor

Change-Id: I89c1ffb51bc494f25670ac26e60c5fc08bcd664e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix typo errors about sensor URI 92/128592/2
kibak.yoon [Wed, 10 May 2017 11:51:25 +0000 (20:51 +0900)]
sensord: fix typo errors about sensor URI

- fix url of serveral healthinfo sensors

Change-Id: I26339da8056abb8526393b9e1dfe31eeea6a8e98
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: specify the appropriate sensor type based on URI 26/128526/5
kibak.yoon [Wed, 10 May 2017 09:12:40 +0000 (18:12 +0900)]
sensord: specify the appropriate sensor type based on URI

Change-Id: I4facc8b3b31ff2f2e19d9ebdefc0bdeea8ae2f8b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: add privilege part to URI format 25/128525/3
kibak.yoon [Wed, 10 May 2017 08:55:21 +0000 (17:55 +0900)]
sensord: add privilege part to URI format

- http://<vendor>/sensor/<privilege>/<type>/<name>

Change-Id: I10601f8f95fdb693dd02d047e2228c59e81e5dcd
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: move common part to base sensor handler 24/128524/1
kibak.yoon [Wed, 10 May 2017 08:43:43 +0000 (17:43 +0900)]
sensord: move common part to base sensor handler

- all of sensor handlers has sensor information as common part.

Change-Id: I45d14a742e246725cbd97070e80dd568678f6755
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: move sensor provider testcases to unit_provider.cpp 23/128523/1
kibak.yoon [Wed, 10 May 2017 08:40:00 +0000 (17:40 +0900)]
sensord: move sensor provider testcases to unit_provider.cpp

Change-Id: Iec7bfc6daa6f8a0281be485f854a064e7fac9b69
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: remove useless privilege and macros 22/128522/1
kibak.yoon [Wed, 10 May 2017 08:24:12 +0000 (17:24 +0900)]
sensord: remove useless privilege and macros

Change-Id: I373f5645cbdf318f397e2e3e47bc0f98b46e94ad
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: seperate socket channel for command and monitor 29/128429/1
kibak.yoon [Wed, 10 May 2017 04:12:48 +0000 (13:12 +0900)]
sensord: seperate socket channel for command and monitor

- m_cmd_channel: get sensor information / check privilege
- m_mon_channel: monitor sensors dynamically added/removed

Change-Id: If746f701ddb32aefe70eafe1f934f8251954efff
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 24/128224/1 accepted/tizen/unified/20170510.012932 submit/tizen/20170508.061214
kibak.yoon [Mon, 8 May 2017 06:08:18 +0000 (15:08 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Fix dependency issues that occur while building sensord on an old snapshot
  sensord: add lazy binding event handler to event loop

Change-Id: Ie8db5d24791335d19a0cec92cfa186f1426c393b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoFix dependency issues that occur while building sensord on an old snapshot 22/128222/1
Mu-Woong Lee [Mon, 8 May 2017 06:01:32 +0000 (15:01 +0900)]
Fix dependency issues that occur while building sensord on an old snapshot

Change-Id: I328dffa4ae1c4c13f82836c68e9218d157b57f1d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agosensord: add lazy binding event handler to event loop 35/127935/1 accepted/tizen/unified/20170502.170157 submit/tizen/20170502.114827
kibak.yoon [Tue, 2 May 2017 11:34:05 +0000 (20:34 +0900)]
sensord: add lazy binding event handler to event loop

- TBD:
  1. thread-safe issue
  2. sensor event: global main context or thread-default context

Change-Id: I1d0f4464e14dc0e6bd0bb529ffe14cf682ef69af
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: add lazy binding event handler to event loop 34/127934/1
kibak.yoon [Tue, 2 May 2017 11:34:05 +0000 (20:34 +0900)]
sensord: add lazy binding event handler to event loop

- TBD:
  1. thread-safe issue
  2. sensor event: global main context or thread-default context

Change-Id: I1d0f4464e14dc0e6bd0bb529ffe14cf682ef69af
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 48/127648/1 accepted/tizen/unified/20170429.024229 submit/tizen/20170428.072530
kibak.yoon [Fri, 28 Apr 2017 07:10:19 +0000 (16:10 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  sensord: sleep 10 ms instead of 100 ms if socket is unavailable temporarily
  Revert "sensord: spec: provide libsensor.so.2 for build dependency"
  Revert "Provides libsensord.so.2()(64bit) in case of aarch64"
  Provides libsensord.so.2()(64bit) in case of aarch64
  sensord: spec: provide libsensor.so.2 for build dependency

Change-Id: I6cb8b131a208bc6b7d41170c3266647d9e14e4c4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: sleep 10 ms instead of 100 ms if socket is unavailable temporarily 47/127647/3
kibak.yoon [Fri, 28 Apr 2017 07:05:03 +0000 (16:05 +0900)]
sensord: sleep 10 ms instead of 100 ms if socket is unavailable temporarily

Change-Id: I4c2552d18ce45bf16ff88703577279e19376418e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoRevert "sensord: spec: provide libsensor.so.2 for build dependency" 44/127644/2
Mu-Woong Lee [Fri, 28 Apr 2017 07:01:31 +0000 (07:01 +0000)]
Revert "sensord: spec: provide libsensor.so.2 for build dependency"

This reverts commit 7dd43df5b7adb9e92db533ec1c03926872b12746.

Change-Id: I08ec3e11640066d926b88f34ddb1c08932dbcb8f

6 years agoRevert "Provides libsensord.so.2()(64bit) in case of aarch64" 42/127642/1
Mu-Woong Lee [Fri, 28 Apr 2017 07:00:07 +0000 (07:00 +0000)]
Revert "Provides libsensord.so.2()(64bit) in case of aarch64"

This reverts commit 7e76859be442a519139eaa4648f38270d423ba53.

Change-Id: Ica1151ce7963371a11103975b47e79e7e6eb48bc

6 years agoProvides libsensord.so.2()(64bit) in case of aarch64 48/127448/1 accepted/tizen/unified/20170428.032607 submit/tizen/20170427.073614
Mu-Woong Lee [Thu, 27 Apr 2017 09:00:20 +0000 (18:00 +0900)]
Provides libsensord.so.2()(64bit) in case of aarch64

This is a temporary walkaround for OBS build failures

Change-Id: Iaa1f611333800160921e13c7ed8a25964c8aaab3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
(cherry picked from commit 7e76859be442a519139eaa4648f38270d423ba53)

6 years agoProvides libsensord.so.2()(64bit) in case of aarch64 46/127446/1
Mu-Woong Lee [Thu, 27 Apr 2017 09:00:20 +0000 (18:00 +0900)]
Provides libsensord.so.2()(64bit) in case of aarch64

This is a temporary walkaround for OBS build failures

Change-Id: Iaa1f611333800160921e13c7ed8a25964c8aaab3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agosensord: spec: provide libsensor.so.2 for build dependency 36/127436/1
kibak.yoon [Thu, 27 Apr 2017 08:30:26 +0000 (17:30 +0900)]
sensord: spec: provide libsensor.so.2 for build dependency

Change-Id: Id5a50c908c3540900af34932779552c461bf9899
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: spec: provide libsensor.so.2 for build dependency 34/127434/2
kibak.yoon [Thu, 27 Apr 2017 08:30:26 +0000 (17:30 +0900)]
sensord: spec: provide libsensor.so.2 for build dependency

Change-Id: Id5a50c908c3540900af34932779552c461bf9899
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 96/127396/1
kibak.yoon [Thu, 27 Apr 2017 06:44:11 +0000 (15:44 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen: (21 commits)
  sensord: rv: fix invalid name of magnetic sensor type URI
  sensord: version up 4.0.0 for Tizen 4
  sensord: check validation of sensor URI to create a sensor provider
  sensord: add NULL check when callbacks is called
  sensord: change return type from bool to int for checking errors
  sensord: change unclear classes to inner class
  sensord: assign a category number to enum of commands
  sensord: rename URIs of sensor type and support get_sensor(uri) properly
  sensord: initialize class members of sensor_provider_handler
  sensord: add internal API to get URI of sensor
  sensord: notify that the sensor is registered or unregistered
  sensord: implement application sensor handler
  sensord: do not let the listener have sensor pointer directly
  sensord: implement URI-based and provider internal APIs
  sensord: detect that a sensor is added or removed in runtime (client-side)
  sensord: add sensor_provider for app-level sensor
  sensord: add command types/macros for sensor provider
  sensord: remove set/get API for the URI of sensor type
  sensord: add testcase for sensor-provider APIs
  sensord: add skeleton APIs for sensor provider
  ...

Change-Id: I25af65c083c7a9ee5edfba33d4c034afc417c4fe
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: rv: fix invalid name of magnetic sensor type URI 91/127391/1
kibak.yoon [Thu, 27 Apr 2017 06:36:06 +0000 (15:36 +0900)]
sensord: rv: fix invalid name of magnetic sensor type URI

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