platform/core/system/sensord.git
8 years agoMerge "sensord: fix the bug that uses wrong type if sensor is UNKNOWN_SENSOR" into...
Mu-Woong Lee [Mon, 15 Feb 2016 09:45:04 +0000 (01:45 -0800)]
Merge "sensord: fix the bug that uses wrong type if sensor is UNKNOWN_SENSOR" into devel/tizen_3.0

8 years agosensord: fix the bug that uses wrong type if sensor is UNKNOWN_SENSOR 99/59399/1
kibak.yoon [Mon, 15 Feb 2016 09:25:23 +0000 (18:25 +0900)]
sensord: fix the bug that uses wrong type if sensor is UNKNOWN_SENSOR

Change-Id: I598273ed1aa34c8c6417b2bc3469d175f1d62722
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge "sensord: add the sensord plugin logic for flexibility" into devel/tizen_3.0
Mu-Woong Lee [Mon, 15 Feb 2016 08:58:45 +0000 (00:58 -0800)]
Merge "sensord: add the sensord plugin logic for flexibility" into devel/tizen_3.0

8 years agosensord: add the sensord plugin logic for flexibility 49/59349/6
kibak.yoon [Sat, 13 Feb 2016 08:43:32 +0000 (17:43 +0900)]
sensord: add the sensord plugin logic for flexibility

- if sensord has specific-type sensor plugin, then sensor_loader
  creates specific-type sensor object and set the handle info to it.
- but sensord doesn't have specific-type sensor plugin based on
  physical_sensor, sensor_loader creates physical_sensor object
  basically and use it.

Change-Id: Iceb5047d6db660c36a63d9deda1c45518eb24570
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoshared: re-assign sensor type numbers to activity/gesture sensors 60/59360/1
Mu-Woong Lee [Mon, 15 Feb 2016 05:22:58 +0000 (14:22 +0900)]
shared: re-assign sensor type numbers to activity/gesture sensors

Change-Id: Id49aa8d47d420ad511b477444084c9642fec19a3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensord: change macros for log 46/59346/1
kibak.yoon [Sat, 13 Feb 2016 05:48:24 +0000 (14:48 +0900)]
sensord: change macros for log

- use _E/_I/_D/_W

Change-Id: Ibd73416a4e00a8c739d4793f5ecded6c2f4e7fc3
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: clean up sf_common.h/sensor_common.h/sensor_logs.h 45/59345/2
kibak.yoon [Sat, 13 Feb 2016 05:42:13 +0000 (14:42 +0900)]
sensord: clean up sf_common.h/sensor_common.h/sensor_logs.h

- add command_common.h for command macro/struct/enum
- clean up sensor_logs.h also

Change-Id: I4241a7cf7955df79bfb54ea5fb3777da50e76adb
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: add set_attribute_* API for internal 44/59344/3
kibak.yoon [Sat, 13 Feb 2016 04:14:10 +0000 (13:14 +0900)]
sensord: add set_attribute_* API for internal

Change-Id: I4e9c058f80e37b7067823fc1ff3b543010365852
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: remove useless the type-casting 42/59342/2
kibak.yoon [Sat, 13 Feb 2016 02:31:04 +0000 (11:31 +0900)]
sensord: remove useless the type-casting

Change-Id: I174a36bc3e773a5920c6ea6354dfb34add7054d4
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: create sensor-hal-devel package 35/59335/4
kibak.yoon [Fri, 12 Feb 2016 14:48:06 +0000 (23:48 +0900)]
sensord: create sensor-hal-devel package

- sensor-hal-devel package installs sensor.h only
- remove sensorhub-related code

Change-Id: Ic1486cf9e3661ff9ef6103678f878e53cc94539a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: clean up spec/pc/cmakelists.txt 31/59331/4
kibak.yoon [Fri, 12 Feb 2016 14:48:06 +0000 (23:48 +0900)]
sensord: clean up spec/pc/cmakelists.txt

Change-Id: I4e2a505d281e8ba23137e72bdb9ee4ab26ef9fe2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: change the interface of set_attribute_* 87/59287/1
kibak.yoon [Fri, 12 Feb 2016 06:46:04 +0000 (15:46 +0900)]
sensord: change the interface of set_attribute_*

Change-Id: I60871bfa07a0acd87f231b425259e7c842958410
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: change the type of hal id to int32_t 83/59283/1
kibak.yoon [Fri, 12 Feb 2016 06:06:38 +0000 (15:06 +0900)]
sensord: change the type of hal id to int32_t

Change-Id: I5caa05382f7be7c0e146aa7413eee1f321333a3e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: change the HAL interface 85/58985/1
kibak.yoon [Fri, 5 Feb 2016 12:55:39 +0000 (21:55 +0900)]
sensord: change the HAL interface

* merge sensor_info_t and sensor_handle_t
* add set_attribute_str

Change-Id: I765e89dfc11f7580007053121896bd7939ccd10c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: clean up sensor fw code 84/58984/1
kibak.yoon [Fri, 5 Feb 2016 12:54:33 +0000 (21:54 +0900)]
sensord: clean up sensor fw code

Change-Id: If310720c82c438706c03c44ddd297c7d1dc3e9ae
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: fix build error 78/58878/1
Hongkuk, Son [Thu, 4 Feb 2016 10:38:38 +0000 (19:38 +0900)]
sensord: fix build error

fix CMakeLists.txt to include sensor_hal.h

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ic7061427c858ce8890a4b032bb61dae0050fe53f

8 years agosensord: unify code style for class brackets 49/58649/1
kibak.yoon [Tue, 2 Feb 2016 11:53:26 +0000 (20:53 +0900)]
sensord: unify code style for class brackets

Change-Id: I3cdd67bb754926cbe0e5d628e62637b12190678a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: enable sensor-test 48/58648/1
kibak.yoon [Tue, 2 Feb 2016 11:32:17 +0000 (20:32 +0900)]
sensord: enable sensor-test

* include stdbool.h in sensor_hal.h

Change-Id: I4e41af2676f0f3aae0f8e045c531b2e22e43094f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: modify HAL interface for batching 39/58639/2
kibak.yoon [Tue, 2 Feb 2016 10:45:42 +0000 (19:45 +0900)]
sensord: modify HAL interface for batching

* int get_data(id, data, length)
  - return value: the remaining count of data

Change-Id: I153bc0a218667fd303a033b7550625b9e529723d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: remove unused parameter 28/58628/1
kibak.yoon [Tue, 2 Feb 2016 09:06:30 +0000 (18:06 +0900)]
sensord: remove unused parameter

* event_length can be known by member variable of sensor_data_t

Change-Id: I2c611653332fabe47d1a1ba3235fb2b5eae6b264
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: remove compiler warnings 04/58604/1
kibak.yoon [Tue, 2 Feb 2016 07:14:43 +0000 (16:14 +0900)]
sensord: remove compiler warnings

* type has to be signed int
* change void * to char * when it uses for arithmetic

Change-Id: Ib6be183729a0208efbb3ab8249ad94f277446846
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: remove vector in sensor HAL interface 94/58594/2
kibak.yoon [Tue, 2 Feb 2016 06:28:03 +0000 (15:28 +0900)]
sensord: remove vector in sensor HAL interface

* instead of using std::vector, use point array for interface

Change-Id: Ib909856b315da546f66b206bbfedb4b01af4b64d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: [4/4] add the refactored HAL interface 71/58571/2
kibak.yoon [Tue, 2 Feb 2016 03:00:59 +0000 (12:00 +0900)]
sensord: [4/4] add the refactored HAL interface

* modify virtual sensor interface
* support auto_rotation sensor

Change-Id: Ie84dd34c3534bcd27edd41ce80ad692e876e157b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: [3/4] add the refactored HAL interface 70/58570/2
kibak.yoon [Tue, 2 Feb 2016 02:58:46 +0000 (11:58 +0900)]
sensord: [3/4] add the refactored HAL interface

* use the refactored HAL interface

Change-Id: Id25bc3b424f2cbf0847408f90c8f4d0b21fdd140
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: [2/4] add the refactored HAL interface 69/58569/1
kibak.yoon [Tue, 2 Feb 2016 02:47:00 +0000 (11:47 +0900)]
sensord: [2/4] add the refactored HAL interface

* sensor_id_t is changed to int64_t type
  - 0xFFFFFFFF(32bit) : sensor_type
  - 0xFFFF(16bit) : sensor_id(index from sensord)
  - 0xFFFF(16bit) : device_id(index from HAL)

* it will be changed to union type

Change-Id: I2f75d3ed3405d9cf3e6fc5ffcf51bab425d15a87
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: [1/4] add the refactored HAL interface 68/58568/1
kibak.yoon [Tue, 2 Feb 2016 02:27:17 +0000 (11:27 +0900)]
sensord: [1/4] add the refactored HAL interface

* WARNING: if this patch is applied only, it cannot be built.
           please apply the series of the patches

Change-Id: I3095e9c7b387a0e00cddf5b4086fb18331584231
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: move the location of header inclusion 67/58567/1
kibak.yoon [Tue, 2 Feb 2016 01:16:58 +0000 (10:16 +0900)]
sensord: move the location of header inclusion

Change-Id: Ieb6757572f21fd3f9ff7f0c694365345bb5a3d36
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: clean up header dependency 16/58516/1
kibak.yoon [Mon, 1 Feb 2016 14:37:39 +0000 (23:37 +0900)]
sensord: clean up header dependency

* added boilerplate in sensor_types.h

Change-Id: Ib1aa3aa89e705fd4593b5b3c9a660448d552dc93
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: remove unused dbus_util files 14/58514/1
kibak.yoon [Mon, 1 Feb 2016 14:30:27 +0000 (23:30 +0900)]
sensord: remove unused dbus_util files

Change-Id: If3239aef3baf7812433020e4572c70d5961548b1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: fix the build error because of changing macro name 78/57878/1
kibak.yoon [Mon, 25 Jan 2016 13:32:50 +0000 (22:32 +0900)]
sensord: fix the build error because of changing macro name

Change-Id: I36b81e03c88b9618eb2bdd6138f1a52d96af040c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: share the lock in physical sensors 67/57867/2
kibak.yoon [Mon, 25 Jan 2016 11:33:32 +0000 (20:33 +0900)]
sensord: share the lock in physical sensors

- lock the command flow and event flow using same mutex in
  physical_sensor

Change-Id: I8ed6c061448c56f0b09e1a6b45709c1ff8e311ca
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: refactoring the way to load virtual sensor 56/57856/2
kibak.yoon [Mon, 25 Jan 2016 08:52:09 +0000 (17:52 +0900)]
sensord: refactoring the way to load virtual sensor

Change-Id: I661bc7347ef8d5b99d56f391242669e3865f1102
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: clear vector before using it 11/57811/1
kibak.yoon [Mon, 25 Jan 2016 01:43:01 +0000 (10:43 +0900)]
sensord: clear vector before using it

Change-Id: Ie763cac292c7d3d1655c2e231ca519c061eba2dd
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: fix the bug related to get sensor all list 73/57773/1
kibak.yoon [Fri, 22 Jan 2016 12:54:52 +0000 (21:54 +0900)]
sensord: fix the bug related to get sensor all list

there is a problem the way that sensor_raw_map is initialized
using types obtained from sensor plugin.
it changes the order of sensors.

so this patch changes it to the simple and correct way:
  1. get the supported sensor type list
  2. get the sensor list by type and put them to map in order

Change-Id: I09975ef84bb80049caca9a20bdf0d4dd6b164b51
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: rename interface of HAL for managing it easily 63/57763/2
kibak.yoon [Fri, 22 Jan 2016 11:36:53 +0000 (20:36 +0900)]
sensord: rename interface of HAL for managing it easily

Change-Id: Ide316de6e6bec76c20d0d8a827d83a821af2df61
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: add std::nothrow to using new operator 34/57734/1
kibak.yoon [Fri, 22 Jan 2016 06:37:59 +0000 (15:37 +0900)]
sensord: add std::nothrow to using new operator

Change-Id: I8d714bc57b96057852318e87934db9dce3bfb4c0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: auto-rotation: clean up if statement code 28/57728/1
kibak.yoon [Fri, 22 Jan 2016 06:27:06 +0000 (15:27 +0900)]
sensord: auto-rotation: clean up if statement code

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

8 years agosensord: change access permissions about all files 17/57717/2
kibak.yoon [Fri, 22 Jan 2016 05:01:08 +0000 (14:01 +0900)]
sensord: change access permissions about all files

- change file permission to 644

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

8 years agosensord: remove "c" prefix about all classes 11/57711/2
kibak.yoon [Fri, 22 Jan 2016 04:40:30 +0000 (13:40 +0900)]
sensord: remove "c" prefix about all classes

Change-Id: I364d88ebeca3cc9e522b560f94b01c2601987f4d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: add sensor_properties_t to sensor_handle_t 86/57686/1
kibak.yoon [Thu, 21 Jan 2016 13:57:10 +0000 (22:57 +0900)]
sensord: add sensor_properties_t to sensor_handle_t

Change-Id: I68c99af1141bb2fbf3419620b63d2818165ce36d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: enable auto-rotation sensor 33/57633/4
kibak.yoon [Thu, 21 Jan 2016 07:22:17 +0000 (16:22 +0900)]
sensord: enable auto-rotation sensor

Change-Id: I560ed1275e278212837d89dba362da9c19a6f952
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: add sensor_event_poller for polling the event. 32/57632/4
kibak.yoon [Thu, 21 Jan 2016 07:18:10 +0000 (16:18 +0900)]
sensord: add sensor_event_poller for polling the event.

* sensor_event_poller detects sensor_event from poll_fd.

Change-Id: I29aecf10fdf504e20127bc958bb0503c1ea48b39
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: modify HAL interface for support sensorhub 31/57631/5
kibak.yoon [Thu, 21 Jan 2016 05:58:55 +0000 (14:58 +0900)]
sensord: modify HAL interface for support sensorhub

* It doesn't need to support multi event types anymore,
  because a sensor has a only 1 event_type in new architecture.
  - removed interface of multi event types.
  - concept of "event type" is not removed completely still because of
    internal API. it will be removed later.
* HAL interface supports multi sensor using get_sensor_list() API.
* memory of sensor_event must be allocated in HAL.
  sensor fw will free this allocated memory.
* refactoring and cleaning the code will be continue.

* sensors will work when that sensor_event_poller patch is applied.

Change-Id: I5c4282d9600a8b05f3b495d764dd28cf56ca356d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: move poller to share library for using it commonly 30/57630/3
kibak.yoon [Thu, 21 Jan 2016 05:50:44 +0000 (14:50 +0900)]
sensord: move poller to share library for using it commonly

Change-Id: I7d04ffc339a787c64feba08b5d1e66143fd66103
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: disable auto_rotation sensor for refactoring sensor fw 29/57629/2
kibak.yoon [Thu, 21 Jan 2016 05:22:13 +0000 (14:22 +0900)]
sensord: disable auto_rotation sensor for refactoring sensor fw

Change-Id: Ib4b92dc82b6fcec276b2fba17dc9666c72aa7cba
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: remove sensor plugins in sensor fw 28/57628/2
kibak.yoon [Thu, 21 Jan 2016 04:45:29 +0000 (13:45 +0900)]
sensord: remove sensor plugins in sensor fw

sensor plugins in sensor fw is not necessary anymore in new
architecture.
so they are removed.

* virtual sensors will temporarily disable in order to build sensor fw

Change-Id: Ib53dd20e853f06f6775c1b9bdfee2111ce6cf01f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: modify event queue & dispatcher to support new sensor event 27/57627/2
kibak.yoon [Thu, 21 Jan 2016 04:35:28 +0000 (13:35 +0900)]
sensord: modify event queue & dispatcher to support new sensor event
structures

Change-Id: I4745524f042f7ba1ab3130928e63c33ef8d47a87
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agolibsensord: support variable size of sensor data packets 26/57626/2
kibak.yoon [Thu, 21 Jan 2016 04:27:19 +0000 (13:27 +0900)]
libsensord: support variable size of sensor data packets

Change-Id: I24891583cf9b7c8d95ac09ff6e7e60388f83fb55
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: reordering the sensor internal type for managing them easily 38/57438/8
kibak.yoon [Wed, 20 Jan 2016 06:58:18 +0000 (15:58 +0900)]
sensord: reordering the sensor internal type for managing them easily

* Internal sensor types must be matched with sensor capi types

Change-Id: Ib7ec34f67a72476e4492de57860627c08ecf7609
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: fix default interval from 10ms to 100ms when user interval 0ms 50/57350/1
Hongkuk, Son [Tue, 19 Jan 2016 09:25:23 +0000 (18:25 +0900)]
sensord: fix default interval from 10ms to 100ms when user interval 0ms

When user interval is 0, then fix it to default interval 100ms.
Additionally, user can set small interval values(1~9ms) now.

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I9f0e240b5954859a151b985e29f20b767ef50f52

8 years agosensord: fix test code's sensord_() API's return type check 07/55907/1
Hongkuk, Son [Wed, 30 Dec 2015 05:55:59 +0000 (14:55 +0900)]
sensord: fix test code's sensord_() API's return type check

fix to check return type as 'bool'

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I39c4edde0be9569a187d35fe4a0310a50f705479

8 years agosensord: version up to 2.0.1 26/55226/1
kibak.yoon [Tue, 22 Dec 2015 11:53:16 +0000 (20:53 +0900)]
sensord: version up to 2.0.1

Change-Id: I4d31eb4511eebc34d77bda5a2e185e8215ac6e81
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: enable auto_rotation sensor 32/55132/2
Hongkuk, Son [Tue, 22 Dec 2015 06:34:55 +0000 (15:34 +0900)]
sensord: enable auto_rotation sensor

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ibce2bc591af30465c6511535a1aa1f198ebf11a9

8 years agosensord: choose "Default" device when no matching device in virtual_sensors.xml 24/55124/2
Hongkuk, Son [Tue, 22 Dec 2015 06:07:23 +0000 (15:07 +0900)]
sensord: choose "Default" device when no matching device in virtual_sensors.xml

-add "Default" device in virtual_sensors.xml file
-when device id does not match with devices in virtual_sensors.xml,
choose "Default" device

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I37526479de706eccda36127e6d93ee66a1b32d55

8 years agosensord: close socket fd if accept() is failed 52/54952/1
kibak.yoon [Mon, 21 Dec 2015 03:01:55 +0000 (12:01 +0900)]
sensord: close socket fd if accept() is failed

Change-Id: I93093632a3f9bcbcbcf4007564bb6c7d9512bd7a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoFix for build errors of packages that are using deprecated sensor api 32/54932/1
Mu-Woong Lee [Mon, 21 Dec 2015 01:41:19 +0000 (10:41 +0900)]
Fix for build errors of packages that are using deprecated sensor api

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

8 years agoMerge "sensord: initialize member variables 2" into devel/tizen_3.0
Mu-Woong Lee [Fri, 18 Dec 2015 11:13:35 +0000 (03:13 -0800)]
Merge "sensord: initialize member variables 2" into devel/tizen_3.0

8 years agosensord: initialize member variables 2 85/54885/1
Hongkuk, Son [Fri, 18 Dec 2015 11:00:44 +0000 (20:00 +0900)]
sensord: initialize member variables 2

csensor_event_dispatcher/accel/temperature

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: If4214b2e19dcf04fd9fe7031c22d72c7cecef3d7

8 years agosensord: fix the bug which returns true although there is an error 80/54880/3
kibak.yoon [Fri, 18 Dec 2015 10:47:07 +0000 (19:47 +0900)]
sensord: fix the bug which returns true although there is an error

Change-Id: I0ba655602ff782bd947fca3f10e66df4865d5c1c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge "sensord: change sprintf to snprintf" into devel/tizen_3.0
Mu-Woong Lee [Fri, 18 Dec 2015 10:52:34 +0000 (02:52 -0800)]
Merge "sensord: change sprintf to snprintf" into devel/tizen_3.0

8 years agoMerge "sensord: initialize member variables" into devel/tizen_3.0
Mu-Woong Lee [Fri, 18 Dec 2015 10:51:12 +0000 (02:51 -0800)]
Merge "sensord: initialize member variables" into devel/tizen_3.0

8 years agoMerge "sensord: add checking code whether socket is valid or not" into devel/tizen_3.0
Mu-Woong Lee [Fri, 18 Dec 2015 10:50:56 +0000 (02:50 -0800)]
Merge "sensord: add checking code whether socket is valid or not" into devel/tizen_3.0

8 years agoMerge "sensord: initialize member variables in csocket constructors" into devel/tizen_3.0
Mu-Woong Lee [Fri, 18 Dec 2015 10:49:37 +0000 (02:49 -0800)]
Merge "sensord: initialize member variables in csocket constructors" into devel/tizen_3.0

8 years agosensord: change sprintf to snprintf 78/54878/1
kibak.yoon [Fri, 18 Dec 2015 10:39:32 +0000 (19:39 +0900)]
sensord: change sprintf to snprintf

Change-Id: I2675f9d10a0e01ef334c68052e488fadec658a2d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: initialize member variables 77/54877/1
kibak.yoon [Fri, 18 Dec 2015 10:35:38 +0000 (19:35 +0900)]
sensord: initialize member variables

Change-Id: Idbc272167bf9330d08d15d36e039372b8050f935
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: add checking code whether socket is valid or not 75/54875/1
kibak.yoon [Fri, 18 Dec 2015 10:29:33 +0000 (19:29 +0900)]
sensord: add checking code whether socket is valid or not

Change-Id: I666e46a69e23e1471b92764917612ef77baf4656
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRename libsensord-devel.so to libsensord-shared.so 61/54861/1
Mu-Woong Lee [Fri, 18 Dec 2015 08:16:50 +0000 (17:16 +0900)]
Rename libsensord-devel.so to libsensord-shared.so

Change-Id: Idb2476ee1bc85be9fc4040cc1d74e56ae39492f3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensord: initialize member variables in csocket constructors 58/54858/1
kibak.yoon [Fri, 18 Dec 2015 07:20:04 +0000 (16:20 +0900)]
sensord: initialize member variables in csocket constructors

Change-Id: I98156912b4dba0d68bba76b48e652366828b3b4c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRestore dependency from libsensord to sensord 56/54856/1
Mu-Woong Lee [Fri, 18 Dec 2015 07:56:05 +0000 (16:56 +0900)]
Restore dependency from libsensord to sensord

Change-Id: I2389a2ba8d30c1f82b967f134a5e928a73f2439f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCleanup internal package dependencies and so file path 36/54836/1
Mu-Woong Lee [Fri, 18 Dec 2015 06:21:47 +0000 (15:21 +0900)]
Cleanup internal package dependencies and so file path

Change-Id: Ibb415514bce593ca96f812e4b021278114b54375
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensord: sensord version up to 2.0.0 76/54776/1
kibak.yoon [Fri, 18 Dec 2015 01:31:23 +0000 (10:31 +0900)]
sensord: sensord version up to 2.0.0

Change-Id: I27fba64208605daeeb0423c65ebf6af2bb4add4c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRevert "sensord: extra data embedding" 75/54775/1
kibak.yoon [Fri, 18 Dec 2015 01:30:46 +0000 (10:30 +0900)]
Revert "sensord: extra data embedding"

This reverts commit 8baf020bc0e5ecff210e01a362560111edbefd4c.

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

8 years agosensord: modify proxi_change_state enum values 59/54359/1
Hongkuk, Son [Tue, 15 Dec 2015 04:58:07 +0000 (13:58 +0900)]
sensord: modify proxi_change_state enum values

NEAR 1 -> 0
FAR 0 -> 1
(tested on 3.0 reference target TM1)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I258537f0468d83f883e8372e2f0a2f95dc2bc6ae

8 years agosensord: sensor event listening thread support with GMainContext 79/54079/4
Hongkuk, Son [Fri, 11 Dec 2015 07:12:00 +0000 (16:12 +0900)]
sensord: sensor event listening thread support with GMainContext

Support application's new thread to receive sensor event with GMainContext input param.

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Iaaa817aeb4cde1f8d3e712702e83cc564e42ef78

8 years agosensord: use macro in sensord package config 39/54039/2
Hongkuk, Son [Fri, 11 Dec 2015 03:08:53 +0000 (12:08 +0900)]
sensord: use macro in sensord package config

replace hard-coded name to macros

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: If030926b32ed52a8431cdcdfdeb97ff0e7109c2f

8 years agoRemoving unused macros from check sensor API 69/54069/1
Adarsh Shree Ram [Fri, 11 Dec 2015 07:03:37 +0000 (12:33 +0530)]
Removing unused macros from check sensor API

The changes in this patch are based on the comments on an earlier patch regarding remvoing unnecessary macros.

Change-Id: Ia2c1cb4a94ca8b17df8625a4c52b2d841a977d44

8 years agoMerge branch 'tizen' into devel/tizen_3.0 91/53791/1
Mu-Woong Lee [Wed, 9 Dec 2015 10:14:08 +0000 (19:14 +0900)]
Merge branch 'tizen' into devel/tizen_3.0

Change-Id: I16e48d006b3b346f03fb6159757c193733272dc3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCleanup of xml file and related changes 54/52954/12
Adarsh Shree Ram [Wed, 2 Dec 2015 10:15:18 +0000 (15:45 +0530)]
Cleanup of xml file and related changes

Change-Id: Iee4990a20246b8d73e1bbbd5f16c50bbe5139342

8 years agoSeparate classes for event listener and client info 91/48591/20
Ankur [Fri, 27 Nov 2015 10:00:01 +0000 (15:30 +0530)]
Separate classes for event listener and client info

Modified the csensor_event_listener and separated the client information into a separate class. Earlier both the client information and the event listener functionality was present in a single class.
This is more structured code.

Review: Removing the functions from event_listener class as they have been moved to client_info class.
Review2: Removing m_client_info from csensor_event_listener and using it as a static instance.

Change-Id: Ie18e84023a8c448fbd8a06f2d2615b4e8c117c65

8 years agoRenaming uncal_gyro sensor to gyro_uncal sensor 37/52737/7
Ankur [Thu, 26 Nov 2015 10:29:01 +0000 (15:59 +0530)]
Renaming uncal_gyro sensor to gyro_uncal sensor

Change-Id: Ib504e2ba4984c2a1631e09ed4abdf88e90470ec3

8 years agoChanging sf_* to sensord_* APIs in test suite 47/52647/3
Adarsh Shree Ram [Wed, 25 Nov 2015 09:49:52 +0000 (15:19 +0530)]
Changing sf_* to sensord_* APIs in test suite

Change-Id: I44e9b5451d24b56042979bbe3bdaff6edca2c2cd

8 years agoMoving sensor definitions to sensor_types.h and cleanup of event definitions 43/52643/2
Ankur [Wed, 25 Nov 2015 09:46:51 +0000 (15:16 +0530)]
Moving sensor definitions to sensor_types.h and cleanup of event definitions

Change-Id: Ic3e1d7c098594134aba1f90da639b01f2f4c8908

8 years agoRemoving Separate library for sensor-plugins, included it in sensord exec 51/51951/4
Ankur [Tue, 17 Nov 2015 12:18:10 +0000 (17:48 +0530)]
Removing Separate library for sensor-plugins, included it in sensord exec

No Separate sensor-plugin library for sensord plugins, object files for sensor plugins now included in sensord exec.
Updated the sensor_plugin loader as per new structure

Change-Id: I03b18c148c00460c47de85fcbe3fa00a5b498213

8 years agoFixing build issues for auto_rotation and rv_raw 90/51790/1
Ankur [Mon, 16 Nov 2015 06:35:46 +0000 (12:05 +0530)]
Fixing build issues for auto_rotation and rv_raw

Tested auto_rotation on rd-pq

Change-Id: Ie5fb189bdad77ec7544406072770f03fe3145d0d

8 years agoFixing issues related to loading virtual sensors 99/51699/1
Ramasamy [Thu, 12 Nov 2015 10:39:12 +0000 (19:39 +0900)]
Fixing issues related to loading virtual sensors

- fixing loader file for virtual sensors
- cleanup

Change-Id: Id290de293f8090a15790aaf94ee22e7aa6d93797

8 years agoDebugging issues for loading and execution 62/51662/2
Ramasamy [Thu, 12 Nov 2015 02:04:55 +0000 (11:04 +0900)]
Debugging issues for loading and execution

- Accelerometer sensor loads and works correctly.
- The build system is independent for both sensord and sensor-haDebugging issues for loading and execution

Change-Id: Iff3066bfe211cdbd21999940ad5fb44d8483045a

8 years agoCleanup of unused pkg config files 06/51606/2
Ramasamy [Wed, 11 Nov 2015 06:45:16 +0000 (15:45 +0900)]
Cleanup of unused pkg config files

- Removing unused pkg config files
- cleanup

Change-Id: I8e25441b4a8ca9482dfd1e4b84a1a8eb4b99df7a

9 years agoRefactoring sensord build files 29/51529/1
Ramasamy [Tue, 10 Nov 2015 09:40:39 +0000 (18:40 +0900)]
Refactoring sensord build files

- Refactoring all cmake and spec files.
- single library for all sensord-plugins
- updated plugin loader for single sensord-plugins and hal-plugins lib
- moving pressure sensor config to sensor-hal
- adding separate library for sensord-plugins

Change-Id: I9333be215387a4d4fcd7b6a4cbdb7206c4a88bdf

9 years agoFixing Cmakelist and spec issues 20/51320/2
Ramasamy [Fri, 6 Nov 2015 12:25:08 +0000 (21:25 +0900)]
Fixing Cmakelist and spec issues

- Fixing issues in cmake and spec files after restructuring

Change-Id: I3a5bb8c74d2af6d24539ead4b7e5c411ca4ca0e3

9 years agoChanges as per the new sensord structure 07/50907/2
Adarsh Shree Ram [Tue, 3 Nov 2015 11:44:03 +0000 (17:14 +0530)]
Changes as per the new sensord structure

-UPdated CMakelists and spec files as per the new sensord structure
-updated header file inclusions as per the new file names
-moved files from shared to server folder

Change-Id: I06d7387d1c4a7dc0851e0ece7df0c11ddaa10b22

9 years agoRestructuring sensord package 16/50416/2
Ramasamy [Wed, 28 Oct 2015 11:07:49 +0000 (20:07 +0900)]
Restructuring sensord package

- Renaming, moving and restructuring files logically

Change-Id: Ifec6471c36be4669dbd90c1f1c0fe714a6267f5b

9 years agoAdding interface file and updating the corresponding files 68/50368/1
Ankur [Wed, 28 Oct 2015 07:31:58 +0000 (13:01 +0530)]
Adding interface file and updating the corresponding files

Change-Id: I8f91282995b2ff49195ae9b2c15b740df6635a42

9 years agoRenaming libsensord folder to client 55/50255/1
Ankur [Tue, 27 Oct 2015 06:30:45 +0000 (12:00 +0530)]
Renaming libsensord folder to client

updated the cmake files etc correspondingly

Change-Id: I47e4cc1abbaf8218ac6f4ec299a2b70a00d8ee19

9 years agoMoving hal files to new repo and updating CMakeLists and spec file 85/49985/2
Ankur [Thu, 22 Oct 2015 09:46:24 +0000 (15:16 +0530)]
Moving hal files to new repo and updating CMakeLists and spec file

-Deleting the Hal files for each sensor (moved to new repo)
-updating CMakelists for each sensor and shared/libsensord/server folders
-added the new project as the dependency in the spec file and the CMakelists

Change-Id: I313cf9ef00e86bea8fe852ded64c28a58d52f2d2

9 years agoDeleting unused file crw_lock.h and crw_lock.cpp 82/49982/1
Ankur [Thu, 22 Oct 2015 09:11:12 +0000 (14:41 +0530)]
Deleting unused file crw_lock.h and crw_lock.cpp

this class was not being used anywhere.

Change-Id: Ib379cb65bae7de550b470fe00b7f490c73e20bd0

9 years agoRepositioning of header files for improving modularity 03/48903/4
Adarsh Shree Ram [Thu, 1 Oct 2015 09:37:50 +0000 (15:07 +0530)]
Repositioning of header files for improving modularity

The header files are repositioned to remove existing depencies between files that are to be added to a new repo.

Change-Id: I94da30600627453dba0c60151627e2df7ff86d21

9 years agoMigrating some code to calculate event from proxi_sensor_hal to proxi_sensor 82/48882/3
Ankur [Thu, 22 Oct 2015 07:15:08 +0000 (12:45 +0530)]
Migrating some code to calculate event from proxi_sensor_hal to proxi_sensor

This code basically checks if the value read is for far or near and based on that, assigns a enum value to the event.
This code needs to be moved to proxi_sensor.cpp so that dependency between sensor_internal.h and proxi_sensor_hal.cpp is removed as proxi_sensor_hal.cpp needs to be moved to a separate repo later.

signed-off-by:"Ankur Garg <ankur29.garg@samsung.com>"
Change-Id: I5a088dc8b5de42f445e7c948b9d539e02167e905

9 years agoRestructuring the sensord framework codebase 95/48595/8
Adarsh Shree Ram [Thu, 22 Oct 2015 06:51:19 +0000 (12:21 +0530)]
Restructuring the sensord framework codebase

The codebase is segregated into 4 directories :libsensord,server,shared and plugins .The plugins directory contains all the sensor plugins under one folder.

Changes: Moved all individual sensor folders into a single folder plugins/
Moved sensor_event definitions files from libsensord(client) to shared as they are being used by plugins/server/client

Change-Id: I42900352c7068cf9fde188a83c92580c62274168

9 years agosensord: cplugin_info_list implementation 75/49875/1
Hongkuk, Son [Wed, 21 Oct 2015 06:08:54 +0000 (15:08 +0900)]
sensord: cplugin_info_list implementation

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I8180880b26021462398c94761206b84fd2c3dfbe

9 years agosensord: batch mode support 70/49870/1
Hongkuk, Son [Wed, 21 Oct 2015 05:26:47 +0000 (14:26 +0900)]
sensord: batch mode support

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Id5f72577237caeb9dd814796a7b059f53e68015d