platform/core/api/sensor.git
8 years agocapi-sensor: indent the source code properly and add/remove spaces as 29/65729/2
kibak.yoon [Tue, 12 Apr 2016 08:24:08 +0000 (17:24 +0900)]
capi-sensor: indent the source code properly and add/remove spaces as
coding rules

- Extra space before ( in function call
- Missing space after ,
- [IDT_R_TAB]

Change-Id: I39c63bb183e32553c48b53a03b4035665197f540
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: add returning NOT_SUPPORTED in sensor_set_max_batch_latency 80/65280/1
kibak.yoon [Tue, 5 Apr 2016 08:53:09 +0000 (17:53 +0900)]
capi-sensor: add returning NOT_SUPPORTED in sensor_set_max_batch_latency

* if max_batch_count is 0, it means that batching feature is not supported on this
  sensor. so checking max_batch_count is added.

Change-Id: I466b7406cdb5dfeeb584d0f23bbe8e6d2011ffcf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: store batch_latency in listener 79/65279/1
kibak.yoon [Tue, 5 Apr 2016 10:16:11 +0000 (19:16 +0900)]
capi-sensor: store batch_latency in listener

- when sensor_register_event_cb() is called after calling set_max_batch_latency(),
  batch_latency is reset to 0.
- so it has to be modified to store the value of batch_latency in
  listener.

Change-Id: I424a4b94df423a75ff18ee9459fa2a846039ce13
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: rename sensor_get_sensor_*_ex() APIs to proper names 34/63934/3
kibak.yoon [Tue, 29 Mar 2016 01:50:43 +0000 (10:50 +0900)]
capi-sensor: rename sensor_get_sensor_*_ex() APIs to proper names

Change-Id: I517243b6c4abe0954e9842a3e224f88e13ee5e62
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: API returns an error to be clearer 82/63682/1
kibak.yoon [Thu, 24 Mar 2016 17:01:55 +0000 (02:01 +0900)]
capi-sensor: API returns an error to be clearer

* if client doesn't have privilege to use some privileged sensors,
  APIs has to return PERMISSION_DENIED.

Change-Id: I315c69f5780af72b18d77ffdca5b161a22175800
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: add implementation of sensor_listener_set_attribute_int 08/62708/2
kibak.yoon [Thu, 17 Mar 2016 13:16:49 +0000 (22:16 +0900)]
capi-sensor: add implementation of sensor_listener_set_attribute_int

Change-Id: I82550778555fe2894da3e8ddeaf23d8d08b6c021
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: add implementation of sensor_is_wake_up API 07/62707/1
kibak.yoon [Thu, 17 Mar 2016 13:16:24 +0000 (22:16 +0900)]
capi-sensor: add implementation of sensor_is_wake_up API

Change-Id: Ia483723431fe3685abc28a675305c0dbd596f29f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agocapi-sensor: clean up implementation of sensor_is_supported() 06/62706/1
kibak.yoon [Thu, 17 Mar 2016 13:15:47 +0000 (22:15 +0900)]
capi-sensor: clean up implementation of sensor_is_supported()

Change-Id: I1938ddc91fd1f0c86cf34dd74cc22435392924b7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRename & reorder sleep stage enum 46/59546/1
Mu-Woong Lee [Tue, 16 Feb 2016 10:35:11 +0000 (19:35 +0900)]
Rename & reorder sleep stage enum

Change-Id: I585baf0a3a11b0589383fc0179c690796879b23e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agocapi-system-sensor: version 0.2.2 19/59419/1
kibak.yoon [Mon, 15 Feb 2016 10:32:19 +0000 (19:32 +0900)]
capi-system-sensor: version 0.2.2

Change-Id: Idf17072350890a870eb7503569d6617b374c5f2c
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge "Remove activity/gesture enums & update doxygen script" into devel/tizen_3.0
Mu-Woong Lee [Mon, 15 Feb 2016 03:57:25 +0000 (19:57 -0800)]
Merge "Remove activity/gesture enums & update doxygen script" into devel/tizen_3.0

8 years agocapi-sensor: send sensor data to callback as pointer directly 50/59350/1
kibak.yoon [Sat, 13 Feb 2016 09:01:56 +0000 (18:01 +0900)]
capi-sensor: send sensor data to callback as pointer directly

Change-Id: I197608055abe0dae0f6c54e1d9a1534904759790
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRemove activity/gesture enums & update doxygen script 99/59299/2
Mu-Woong Lee [Fri, 12 Feb 2016 08:16:31 +0000 (17:16 +0900)]
Remove activity/gesture enums & update doxygen script

Change-Id: I652808ca263a7726eaacdb159ebc605f9334a830
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agodoxygen: add since tag for wearable profile 16/58716/1
Mu-Woong Lee [Wed, 3 Feb 2016 05:15:56 +0000 (14:15 +0900)]
doxygen: add since tag for wearable profile

Change-Id: I3aa6b707c29c2b8249bf2b828e93f1f8e5e9ce7d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agodoxygen: remove privilege tags 11/58711/1
Mu-Woong Lee [Wed, 3 Feb 2016 05:08:08 +0000 (14:08 +0900)]
doxygen: remove privilege tags

Change-Id: Iebfaa9a2f949563598e2bd1e093d5cd4268952ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agodoxygen: update descriptions about interval and privilege 90/58090/1
Mu-Woong Lee [Wed, 27 Jan 2016 11:06:32 +0000 (20:06 +0900)]
doxygen: update descriptions about interval and privilege

Change-Id: Iaadc3685bae19ce4e963febaa1bbb9aa4382e0f2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMerge "util: fix the axis enum values" into devel/tizen_3.0
Mu-Woong Lee [Fri, 22 Jan 2016 04:15:12 +0000 (20:15 -0800)]
Merge "util: fix the axis enum values" into devel/tizen_3.0

8 years agoutil: fix the axis enum values 05/57705/1
Mu-Woong Lee [Fri, 22 Jan 2016 02:23:18 +0000 (11:23 +0900)]
util: fix the axis enum values

Change-Id: I01b87c5e8b2e54e1b75925737348db5e68cd9362
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agocapi-sensor: remove unnecessary type transition function 42/57442/3
kibak.yoon [Wed, 20 Jan 2016 07:03:59 +0000 (16:03 +0900)]
capi-sensor: remove unnecessary type transition function

- capi sensor type and internal sensor type will be maintained to be
  identical in the future.

related patch : https://review.tizen.org/gerrit/#/c/57438/

Change-Id: I7866667805dafe8c31326a75ea5cdeb4e086ad67
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoDeclare new functions and sensor types 30/57430/12
Mu-Woong Lee [Wed, 20 Jan 2016 05:44:14 +0000 (14:44 +0900)]
Declare new functions and sensor types

Change-Id: Ia1c7f7ee92665f69cba542b9d042a1122bdb5120
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agocapi-sensor: modify description for interval default/range 49/57349/1
Hongkuk, Son [Tue, 19 Jan 2016 09:24:15 +0000 (18:24 +0900)]
capi-sensor: modify description for interval default/range

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

8 years agocapi-sensor: fix sensor_listener_set_max_batch_latency() 96/55396/1
Hongkuk, Son [Wed, 23 Dec 2015 10:45:47 +0000 (19:45 +0900)]
capi-sensor: fix sensor_listener_set_max_batch_latency()

Previously, it was skipped to call sensord_change_event_max_batch_latency().
Now modify to call sensord_change_event_max_batch_latency().
This returns SENSOR_ERROR_NONE.

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

8 years agoVersioning to 0.2.1 11/55211/1
Mu-Woong Lee [Tue, 22 Dec 2015 11:27:02 +0000 (20:27 +0900)]
Versioning to 0.2.1

For backward compatibility, the major version is reset to 0.

Change-Id: I89d02213ebfadd756697c0dfbb01429bd9592da8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agocapi-sensor: add a checking index of internal sensor type 97/54897/1
kibak.yoon [Fri, 18 Dec 2015 11:42:15 +0000 (20:42 +0900)]
capi-sensor: add a checking index of internal sensor type

Change-Id: I8c77cddaf149e6de6b72f04815df91358bedf6ea
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensord: fix the bug which index can be out of range 96/54896/1
kibak.yoon [Fri, 18 Dec 2015 11:29:13 +0000 (20:29 +0900)]
sensord: fix the bug which index can be out of range

Change-Id: Idd64bde22e2a901627cd20b46174cbb4bf6e593f
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoVersion 2.0.0 (sycned with sensord) 92/54892/1
Mu-Woong Lee [Fri, 18 Dec 2015 11:40:15 +0000 (20:40 +0900)]
Version 2.0.0 (sycned with sensord)

Change-Id: Ifc8a16f8bb1928f94899d5dd4993e0e8d520df21
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agocapi-sensor: modify sensor_type_t name to sync with sensord 31/54031/1
Hongkuk, Son [Fri, 11 Dec 2015 02:14:32 +0000 (11:14 +0900)]
capi-sensor: modify sensor_type_t name to sync with sensord

from UNCAL_GYROSCOPE_SENSOR to GYROSCOPE_UNCAL_SENSOR

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

8 years agocapi-sensor: Put a space after closing brace 04/53604/1
Hongkuk, Son [Tue, 8 Dec 2015 05:21:25 +0000 (14:21 +0900)]
capi-sensor: Put a space after closing brace

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

8 years agocapi-sensor: clean api description and code 05/51905/3
Hongkuk, Son [Tue, 17 Nov 2015 06:55:55 +0000 (15:55 +0900)]
capi-sensor: clean api description and code

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

9 years agocapi-sensor: sync with SPIN tizen_2.4 22/49822/1 accepted/tizen/mobile/20151114.082259 accepted/tizen/tv/20151114.082415 accepted/tizen/wearable/20151114.082542 submit/tizen/20151113.112518
Hongkuk, Son [Tue, 20 Oct 2015 11:51:43 +0000 (20:51 +0900)]
capi-sensor: sync with SPIN tizen_2.4

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

9 years agocapi-sensor: sync with tizen_2.4 99/49099/1
Hongkuk, Son [Tue, 6 Oct 2015 10:34:27 +0000 (19:34 +0900)]
capi-sensor: sync with tizen_2.4

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

9 years agoAdding new sensor types for geomagnetic_rv, gaming_rv, uncal_gyro sensors 36/41636/6
Ankur [Wed, 17 Jun 2015 04:53:06 +0000 (10:23 +0530)]
Adding new sensor types for geomagnetic_rv, gaming_rv, uncal_gyro sensors

Updated the sensor type enum by adding the new sensors geomagnetic_rv, gaming_rv, and uncal_gyro sensors.

Change-Id: I22bc7bbac538aa708afef43777817a43827163f0

9 years agocapi-sensor: rename sensors.h to sensor.h 71/35471/1 tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/common/20150521.125442 accepted/tizen/mobile/20150406.020344 accepted/tizen/tv/20150302.123849 accepted/tizen/wearable/20150402.065353 submit/tizen/20150304.022845 submit/tizen_common/20150303.022446 submit/tizen_common/20150520.888885 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_mobile/20150303.022210 submit/tizen_mobile/20150402.061913 submit/tizen_tv/20150226.040306 submit/tizen_tv/20150226.063944 submit/tizen_tv/20150302.084059 submit/tizen_wearable/20150402.061918 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Kibak Yoon [Mon, 16 Feb 2015 07:38:50 +0000 (16:38 +0900)]
capi-sensor: rename sensors.h to sensor.h

sensor.h is proper header name for sensor capi from the tizen 2.3

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: Ia63af806dd341d57fe3436f2a43a0374ffff492a

9 years agocapi-sensor: add sensor types for HRM sensor 65/35465/1
Kibak Yoon [Mon, 16 Feb 2015 07:25:48 +0000 (16:25 +0900)]
capi-sensor: add sensor types for HRM sensor

Heart Rate Monitor Sensor type is added and supported.

added the following types:
- SENSOR_HRM
- SENSOR_HRM_LED_GREEN
- SENSOR_HRM_LED_IR
- SENSOR_HRM_LED_RED

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I5faf535c5c229809ff45ce53844a48f0bca7ff18

9 years agocapi-sensor: fix the wrong version of package 64/35464/1
Kibak Yoon [Mon, 16 Feb 2015 07:24:05 +0000 (16:24 +0900)]
capi-sensor: fix the wrong version of package

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I99e2ec242f5363c59c68cb45eab1640227f126dd

9 years agocapi-sensor: change the log level to debug 63/35463/1
Kibak Yoon [Mon, 16 Feb 2015 07:21:34 +0000 (16:21 +0900)]
capi-sensor: change the log level to debug

convert to the debug level since it is not error situation

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I669dc8f27c4f316e141607a624c1ec5bdc4853a2

9 years agosensord: convert cpp to C because they are from opensource 62/35462/1
Kibak Yoon [Mon, 16 Feb 2015 07:00:22 +0000 (16:00 +0900)]
sensord: convert cpp to C because they are from opensource

the original files of them from open source are based on C not cpp.
so change the language of these files to C language.

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I8ae5369c8e9d611576c754d7cbb2e4ae6d04dffb

9 years agocapi-sensor: merge tizen 2.3 capi to public 21/33921/6 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/common/20150126.084337 accepted/tizen/mobile/20150128.051434 accepted/tizen/tv/20150126.090008 accepted/tizen/wearable/20150126.111146 submit/tizen/20150122.074344 submit/tizen/20150124.064355
Kibak Yoon [Fri, 16 Jan 2015 13:37:18 +0000 (22:37 +0900)]
capi-sensor: merge tizen 2.3 capi to public

the features of tizen 2.3 Sensor API are the followings:
* in Tizen 2.2, the API set was seperately for each sensor. so this API
  set(start, stop, setting interval and so on) was added when each sensor
  added. in Tizen 2.3, they are consolidated to 1 API set. sensor is
  managed by handle and enumeration type.
  ie. sensor_(accelerometer)_start() APIs
      -> sensor_listener_start(acc_handle) API
  - if new sensor type is added, simply fix only two lines.
* added two APIs for getting sensor handle(s)
  ie. sensor_get_default_sensor, sensor_get_sensor_list APIs
* added new sensors.
  ie. pressure sensor, ultraviolet sensor and so on.
* removed some sensors.
  ie. motion sensor(managing it is moved to context-service)
* cleaned up the code.

see the doxygen for more information on those APIs:
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.apireference/group__CAPI__SYSTEM__SENSOR__MODULE.html

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I9a6b6a042075e941a2e6e4ee8d63149bbc463d01

10 years agopackaging: pkgconfig should mention version and cleanup 14/25714/2 tizen_3.0_ivi accepted/tizen/common/20141124.160850 accepted/tizen/ivi/20141203.010010 submit/tizen_common/20141124.152017 submit/tizen_ivi/20141201.000000 submit/tizen_ivi/20141201.014922 submit/tizen_ivi/20141202.062010 tizen_3.0_ivi_release
Philippe Coval [Fri, 8 Aug 2014 13:33:44 +0000 (15:33 +0200)]
packaging: pkgconfig should mention version and cleanup

efl looks for it

Change-Id: Ice9c3d6cd18ca628256f3ce8743fb71aba50150f
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agoBug fix : modify order of sensor_motion_snap_e enum values 58/13558/2 accepted/tizen/ivi/stable accepted/tizen/mobile accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_generic accepted/tizen_ivi_panda tizen_3.0.2014.q3_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_ivi_panda accepted/tizen/20131210.214035 accepted/tizen/ivi/20140308.005116 accepted/tizen/ivi/panda/20140403.015056 accepted/tizen/mobile/20131216.220407 accepted/tizen/mobile/20140310.024645 submit/tizen/20131210.045140 submit/tizen/20140307.080325 submit/tizen_ivi_panda/20140403.011825 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release
kibak.yoon [Mon, 9 Dec 2013 11:47:47 +0000 (20:47 +0900)]
Bug fix : modify order of sensor_motion_snap_e enum values

Compile time error with sensor_motion_snap_e enum values usages.
because SENSOR_MOTION_SNAP_Y_POSITIVE(2) has same value as SENSOR_MOTION_SNAP_X_POSITIVE(2)

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

11 years agoresetting manifest requested domain to floor 83/4583/1 accepted/tizen/ivi/genivi tizen_ivi_genivi accepted/tizen/20130710.221609 accepted/tizen/20130912.151131 accepted/tizen/20130912.191602 accepted/tizen/20130912.195619 accepted/tizen/ivi/genivi/20140131.061630 accepted/tizen_ivi_stable/20131116.101519 ivi_oct_m2 submit/tizen/20130710.102607 submit/tizen/20130912.080356 submit/tizen/20130912.090655 submit/tizen_ivi_genivi/20140131.060730 submit/tizen_ivi_stable/20131116.100119
Alexandru Cornea [Fri, 28 Jun 2013 17:17:29 +0000 (20:17 +0300)]
resetting manifest requested domain to floor

11 years agofix incorrect API name tizen_2.1 2.1b_release accepted/tizen/20130520.193234 accepted/tizen_2.1/20130425.035543 submit/tizen/20130520.200757 submit/tizen_2.1/20130424.230555
JuHyun Kim [Wed, 10 Apr 2013 10:13:15 +0000 (19:13 +0900)]
fix incorrect API name

11 years agoremove test code
JuHyun Kim [Wed, 10 Apr 2013 05:26:57 +0000 (14:26 +0900)]
remove test code

11 years agoFix hard-coded library path in *.pc
Junfeng Dong [Mon, 25 Mar 2013 12:09:11 +0000 (20:09 +0800)]
Fix hard-coded library path in *.pc

Change-Id: Ib1f93eb6da7703bca6bb0ad4013e31151f809a42

11 years agomerge with master
Jinkun Jang [Fri, 15 Mar 2013 16:12:08 +0000 (01:12 +0900)]
merge with master

11 years agoTizen 2.1 base
Jinkun Jang [Tue, 12 Mar 2013 16:46:11 +0000 (01:46 +0900)]
Tizen 2.1 base

12 years agoInitial empty repository
Eunkyoung Kim [Fri, 6 Jan 2012 12:59:30 +0000 (21:59 +0900)]
Initial empty repository