platform/core/system/sensord.git
3 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>
3 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>
3 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

3 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

3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 years agoUpdate for attribute changed callback and attribute getter 78/222878/2 accepted/tizen/unified/20200129.022618 submit/tizen/20200123.020024
Boram Bae [Tue, 21 Jan 2020 05:19:06 +0000 (14:19 +0900)]
Update for attribute changed callback and attribute getter

* Do not update client attribute cache when calling attribute changed
callback
* Fix a bug related sensord_attribute_{int/str}_get
* Fix build warrning related to type conversion
* Notify all client(including self) that following attributes are changed
  SENSORD_ATTRIBUTE_INTERVAL
  SENSORD_ATTRIBUTE_MAX_BATCH_LATENCY
  SENSORD_ATTRIBUTE_PAUSE_POLICY
  SENSORD_ATTRIBUTE_AXIS_ORIENTATION
  ALL_CUSTOM_ATTRIBUE_INT
  ALL_ATTRIBUTE_STR
* Refactor some codes
* Add more internal tests

Change-Id: I0e7fb63cd9a44ce2306299afcb791fbac488afda
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoUse vector<char> to cache sensor_data_t in sensor_handler 13/220413/1 accepted/tizen/5.5/unified/20200108.120656 accepted/tizen/unified/20200116.101829 submit/tizen/20200115.045858 submit/tizen_5.5/20191219.060634 submit/tizen_5.5/20191220.063605 submit/tizen_5.5/20191227.001507 submit/tizen_5.5/20200108.003557
Boram Bae [Wed, 18 Dec 2019 05:49:33 +0000 (14:49 +0900)]
Use vector<char> to cache sensor_data_t in sensor_handler

* This patch fixes the memory leak in the Sensord.

Change-Id: I6a4f6751465a37e9a0bf71a6cd8cff8abc942e80
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoChange signature of sensor_events_cb_t 70/219970/1
Boram Bae [Thu, 12 Dec 2019 05:31:33 +0000 (14:31 +0900)]
Change signature of sensor_events_cb_t

Change-Id: I66c9cb763dca3d1dea4de38802bb0325fec0a0fc
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoDelete pending events when disconnecting channel 06/219506/3
Boram Bae [Thu, 5 Dec 2019 10:20:12 +0000 (19:20 +0900)]
Delete pending events when disconnecting channel

Change-Id: I1b7fb7dce4c14b31d18b9169f398571c34c67fbd
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoUse share_ptr to send message, Use reference to send_sync message 79/219179/3
Boram Bae [Tue, 3 Dec 2019 01:31:09 +0000 (10:31 +0900)]
Use share_ptr to send message, Use reference to send_sync message

* fix some memory leak

Change-Id: I20bbc5e29fa1ed9f801b3f6bb904b49fea857506
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoImplement sensord_get_data_list 14/218914/1
Boram Bae [Fri, 29 Nov 2019 04:35:56 +0000 (13:35 +0900)]
Implement sensord_get_data_list

* Add a command type CMD_LISTENER_GET_DATA_LIST
* Add sensorctl tests
* Now, you can use sensor_get_data_list instead of sensor_get_data

Change-Id: I2c90e680a6b3f86076df5702f3b29d5ff7eec1bf
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoAdd APIs to get an attribute value 17/218717/4
Boram Bae [Wed, 27 Nov 2019 08:06:10 +0000 (17:06 +0900)]
Add APIs to get an attribute value

* Implement sensord_get_attribute_int/str
* Update attribute of sensor_listener when another one changes the attribute
* Remove an interface on_attribute_changed of sensor_observer
* Add memebers to store attributes of sensor_listener and sensor_hander
* Add command types

Change-Id: I9e736699e2156a4779ddcb319a3f4a6206c9c4b1
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoImplement APIs related to attribute change notifications. 04/218404/3
Boram Bae [Fri, 22 Nov 2019 03:54:28 +0000 (12:54 +0900)]
Implement APIs related to attribute change notifications.

Change-Id: Ibadf4b2feacb785bd71f880a3fa061e6863580f4
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoAdd new APIs skeleton to announce that attribute changed 81/218281/1
Boram Bae [Thu, 21 Nov 2019 01:14:11 +0000 (10:14 +0900)]
Add new APIs skeleton to announce that attribute changed

* Remove a build warning
* Add sensorctl tests
* Refactor some codes

Change-Id: I048fa208303c18e7a52b7918c00beb3556e993d3
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoAdd sensor APIs related to batch event 60/217960/1 submit/tizen_5.5/20191223.005641
Boram Bae [Tue, 12 Nov 2019 10:05:47 +0000 (19:05 +0900)]
Add sensor APIs related to batch event

* This patch also includes new tests to test batch events related APIs at sensorctl

Change-Id: If59c1b43b10c6b39bf72687bfb67eb9e305fe62b
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoIntegrate internal fixes 61/217361/1 submit/tizen/20200116.005934 submit/tizen_5.5/20191223.004350 submit/tizen_5.5/20191223.084045
Boram Bae [Thu, 7 Nov 2019 04:58:32 +0000 (13:58 +0900)]
Integrate internal fixes

Change-Id: Ib7d63ed61153ef5c8ce1ad357b8dace3ad8ca0f4
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agocoverity issues fix 05/214805/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.021055 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090858 accepted/tizen/unified/20190929.221431 submit/tizen/20190927.051817 submit/tizen_5.5/20191031.000005 submit/tizen_5.5/20191224.042757 submit/tizen_5.5/20191227.000105 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
srinivasa.m [Thu, 26 Sep 2019 11:48:17 +0000 (17:18 +0530)]
coverity issues fix

Change-Id: I1be07d5441e07219dc8eecc965c91e70e6b1c7d2
Signed-off-by: srinivasa.m <srinivasa.m@samsung.com>
4 years agoRevert "Coverity issues Fix" 80/213180/1 accepted/tizen/unified/20190916.043523 submit/tizen/20190912.083257
Randeep Singh [Mon, 2 Sep 2019 08:57:59 +0000 (08:57 +0000)]
Revert "Coverity issues Fix"

This reverts commit fffc6e5fd2ad327507bb2c709c5a110dfc58eb7b.

Change-Id: I6987d421ea17cd9d46f96d316b17b89bcad4d88d

4 years agoCoverity issues Fix 69/212769/1 accepted/tizen/unified/20190828.011028 submit/tizen/20190827.044443
srinivasa.m [Mon, 26 Aug 2019 14:22:02 +0000 (19:52 +0530)]
Coverity issues Fix

Change-Id: I69e6f257e7552803b27e5b15b9d00aa52d826b6c

4 years agoRemove unnecessary setting 63/210863/1
INSUN PYO [Thu, 25 Jul 2019 10:13:04 +0000 (19:13 +0900)]
Remove unnecessary setting

Change-Id: I4e9795e2ebffd51befe5713db35d5fd0be82a4f5

4 years agosocket connection return value chack added to avoid crash 53/209953/1 accepted/tizen/unified/20190715.111804 submit/tizen/20190715.043735
srinivasa.m [Fri, 12 Jul 2019 12:40:27 +0000 (18:10 +0530)]
socket connection return value chack added to avoid crash

Change-Id: Ic63c3d4fbd1daad11f09d8d388522bd764241a11

4 years agoRemove unnecessary settings on sensord.socket 81/208381/1 submit/tizen/20190625.114011
INSUN PYO [Mon, 24 Jun 2019 02:33:05 +0000 (11:33 +0900)]
Remove unnecessary settings on sensord.socket

Change-Id: Id4ceeaae99469684b64d7b668ad25bd458ac19f8

4 years agoMerge "[Tizen 5.0] Sensord: Fix memory leak" into tizen
Abhishek Vijay [Wed, 29 May 2019 08:59:20 +0000 (08:59 +0000)]
Merge "[Tizen 5.0] Sensord: Fix memory leak" into tizen

4 years agoAdding sensord dbus policy 23/205723/5 accepted/tizen/unified/20190530.043033 submit/tizen/20190522.102101
Avichal [Wed, 8 May 2019 13:08:46 +0000 (18:38 +0530)]
Adding sensord dbus policy

Change-Id: I3192da5970a0e3089893b0b7e06a8c07cb207182
Signed-off-by: Avichal <avichal.a@samsung.com>
5 years agoMerge "ASAN issue" into tizen
Abhishek Vijay [Tue, 9 Apr 2019 12:51:14 +0000 (12:51 +0000)]
Merge "ASAN issue" into tizen

5 years agoASAN issue 84/203084/1
Avichal [Tue, 9 Apr 2019 11:43:16 +0000 (17:13 +0530)]
ASAN issue

1. heap-use-after-free in enlightenment (TFDF-279,280)
2. heap-use-after-free in amd(TFDF-281,282)
THis issue  reported  on termination of sensord

Change-Id: I03e1d592e9caa93636d31d712e581c48db2d2363
Signed-off-by: Avichal <avichal.a@samsung.com>
5 years agoRectifyng this poniter deletion from member function 07/200307/1
Avichal [Thu, 21 Feb 2019 09:49:22 +0000 (15:19 +0530)]
Rectifyng this poniter deletion from member function

ASAN TFD289

Change-Id: I8261058c690244e6a21df616c67dae5dda1117ff

5 years agoFixed Heap corruption 44/199244/1 accepted/tizen/unified/20190214.060716 submit/tizen/20190213.113602
Avichal [Thu, 7 Feb 2019 13:50:50 +0000 (19:20 +0530)]
Fixed Heap corruption

JIra issue Tizen 5.0 release
TFIVE-14499
[ASAN][BUG] heap-use-after-free in amd on TM1

Change-Id: Ib60e0968d00d6fa22dd9dbc9aaf396772a8f1add
Signed-off-by: Avichal <avichal.a@samsung.com>
5 years agoMerge "Dangling pointer fixed" into tizen
Abhishek Vijay [Wed, 12 Dec 2018 06:54:52 +0000 (06:54 +0000)]
Merge "Dangling pointer fixed" into tizen

5 years ago[Tizen 5.0] Sensord: Fix memory leak 78/192378/1
Ingi Kim [Thu, 25 Oct 2018 09:52:25 +0000 (18:52 +0900)]
[Tizen 5.0] Sensord: Fix memory leak

Memory leak is detected by DML.

physical_sensor_handler:get_data() pushed data to ids which is vector type
but it isn't cleared till end of execution.

Change-Id: I1b20b3c4feefc8ba7ade7a9ae0c80ae40a8a9ec7
Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
5 years agoMerge "Heap corruption fixed" into tizen
randeep singh [Wed, 31 Oct 2018 12:45:12 +0000 (12:45 +0000)]
Merge "Heap corruption fixed" into tizen

5 years agoHeap corruption fixed 34/191934/1
Sudipto [Thu, 25 Oct 2018 16:46:53 +0000 (22:16 +0530)]
Heap corruption fixed

Change-Id: I4b0f613ddc9bd7d516f8193733d4d089df2bbb79
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoFix a fortify failure while get auto_rotation sensor 43/191743/2
chakradhar [Tue, 23 Oct 2018 06:38:50 +0000 (12:08 +0530)]
Fix a fortify failure while get auto_rotation sensor

Change-Id: Idac93075ba393985668ebdb0298a0f1c23261312
Signed-off-by: chakradhar <v.pogiri@samsung.com>
5 years agoDangling pointer fixed 81/190281/1
Sudipto [Fri, 28 Sep 2018 17:20:50 +0000 (22:50 +0530)]
Dangling pointer fixed

Change-Id: I6b342c7d4cadf3d9b41313bb3a237a05669ffc17
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoASAN: heap-use-after-free issue fix 30/190030/2 submit/tizen/20180927.095530 submit/tizen/20181012.134013
srinivasa.m [Wed, 26 Sep 2018 12:23:32 +0000 (17:53 +0530)]
ASAN: heap-use-after-free issue fix

Change-Id: I4d4c0bcbbafb7407d5944f21e70ac022c78e31c7

5 years agoFix for ASAN Issue: alloc-dealloc mismatch 07/187007/2 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.021914 accepted/tizen/unified/20180820.060056 submit/tizen/20180817.110213 submit/tizen_5.0/20181101.000004
srinivasa.m [Fri, 17 Aug 2018 07:29:17 +0000 (12:59 +0530)]
Fix for ASAN Issue: alloc-dealloc mismatch

Change-Id: Ida828cfcc6b741144ee5d27f46c058bd58c3390a

5 years agoMerge "[Non-ACR][Fix for TFIVE-11871]" into tizen
randeep singh [Tue, 14 Aug 2018 10:46:20 +0000 (10:46 +0000)]
Merge "[Non-ACR][Fix for TFIVE-11871]" into tizen

5 years ago[Non-ACR][Fix for TFIVE-11871] 57/182857/8
Sudipto [Thu, 28 Jun 2018 09:55:02 +0000 (15:25 +0530)]
[Non-ACR][Fix for TFIVE-11871]

Change-Id: Ief91ed874a9af2c3793dbf07689b08aed8363246
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoFix for ASAN Issue TDAF-710: alloc-dealloc mismatch 44/186544/2
srinivasa.m [Fri, 10 Aug 2018 07:15:03 +0000 (12:45 +0530)]
Fix for ASAN Issue TDAF-710: alloc-dealloc mismatch

Change-Id: I7e674bbf76cac80fcae0396ae4a4a8df1c44d034

5 years ago [Non-ACR][Fix for TDAF-350 & TDAF-359] 96/182896/1
Aditya Raj [Thu, 28 Jun 2018 18:48:49 +0000 (00:18 +0530)]
[Non-ACR][Fix for TDAF-350 & TDAF-359]

Change-Id: Ie9d556b0b716b84229c777cb5d4fbacc2dab3af6
Signed-off-by: Aditya Raj <aditya1.raj@samsung.com>
6 years agoIncluding orientation filter template-based code to header file 22/175622/1 accepted/tizen/unified/20180412.073747 accepted/tizen/unified/20180419.134326 submit/tizen/20180410.083915 submit/tizen/20180419.054452
kibak.yoon [Wed, 11 Apr 2018 07:11:06 +0000 (16:11 +0900)]
Including orientation filter template-based code to header file

Change-Id: I56364309f3fb24c93d92706fd6f7fbe13e429698
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years ago[Non-ACR][TFIVE-357] 70/175170/2 accepted/tizen/unified/20180412.073802 submit/tizen/20180410.084125
Abhishek Vijay [Mon, 9 Apr 2018 06:46:36 +0000 (12:16 +0530)]
[Non-ACR][TFIVE-357]

Change-Id: Ice9b6976fca4013140b1fc90ffb88c4120e600c0
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years ago[Coverity Fixes][Sensord] 44/174644/1
Abhishek Vijay [Tue, 3 Apr 2018 09:35:08 +0000 (15:05 +0530)]
[Coverity Fixes][Sensord]

Change-Id: Ida5323bd01436c4ea19674f4fe7e8d9307e97794
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years ago[Coverity Issue Fixes] 10/173610/7 accepted/tizen/unified/20180403.060147 submit/tizen/20180402.084314
Abhishek Vijay [Thu, 22 Mar 2018 13:14:25 +0000 (18:44 +0530)]
[Coverity Issue Fixes]

Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
Change-Id: Id8deb54c5e92b85de2b706f2bd7a7072b5666226

6 years agosensorctl: fix filter option to work properly when testing 03/162003/3
kibak.yoon [Tue, 28 Nov 2017 12:11:18 +0000 (21:11 +0900)]
sensorctl: fix filter option to work properly when testing

Change-Id: I364c48a5f352b3d6280ca691cc7a8a0da337f3ca
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: fix memory allocation to set string attribute to sensor 15/162115/5
kibak.yoon [Wed, 29 Nov 2017 06:47:17 +0000 (15:47 +0900)]
sensord: fix memory allocation to set string attribute to sensor

Change-Id: If6f846a5bfd4149deb12fee58b2ac7b9914242af
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: return proper error value 13/162113/3
kibak.yoon [Fri, 24 Nov 2017 10:35:34 +0000 (19:35 +0900)]
sensord: return proper error value

Change-Id: I40bc157bad5027121bd6e6d3559a71a7d74dff91
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: allocate buf memory for string attribute 18/161618/4
kibak.yoon [Fri, 24 Nov 2017 10:29:26 +0000 (19:29 +0900)]
sensord: allocate buf memory for string attribute

Change-Id: I7c9c0738a2a574a74aefcf10ab4f49fa180be23d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: change the style to URI if it is unknown type 21/160521/2
kibak.yoon [Thu, 16 Nov 2017 12:14:03 +0000 (21:14 +0900)]
sensord: change the style to URI if it is unknown type

- Bug Fix

Change-Id: Id56d8bad087a13db8dda4e441b75e0969235604b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensord: resize message size 20/160520/2
kibak.yoon [Thu, 16 Nov 2017 12:06:48 +0000 (21:06 +0900)]
sensord: resize message size

- if there are so many sensors in the device, memory size 4096 is too
  small to contain all of that sensor information. for example, Gear S3
  has 43 sensors including virtual sensors. it needs 7000 byte for
  information of all sensors.
- so message size should be resized from 4096(4kB) to 10240(10kB).

Change-Id: Ied553e260216258295d2337a6f0c468e4a2490cc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
6 years agosensor: gyro-rv: fix invalid order of sensor data 51/159751/1
kibak.yoon [Mon, 13 Nov 2017 03:09:55 +0000 (12:09 +0900)]
sensor: gyro-rv: fix invalid order of sensor data

Change-Id: I7554129c77434aca6eb5871dc4d0ad28597d91a1
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 '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 '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 '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 '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 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>