platform/hal/backend/emulator/sensor-emulator.git
5 months agoChange C++ class to C structure of functions for sensor devices 00/317100/7 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20250116.154259
SangYoun Kwak [Tue, 24 Dec 2024 07:14:48 +0000 (16:14 +0900)]
Change C++ class to C structure of functions for sensor devices

The hal interface between backend and api is changed to use C functions
rather than giving C++ object directly.
To accomplish that, codes are changed as below:
 * Functions for api calls are added
 * Device id is added to distinguish between the target sensor devices.
   Device id is required since it is hard to know which device should be
   used for a random api call.

Change-Id: Iaf474e4a7dfcb596995d95fb3bd96a25444d7c34
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
5 months agoModify to install udev rules under /hal/lib 59/317559/1 accepted/tizen/9.0/unified/20250109.040118
SangYoun Kwak [Fri, 3 Jan 2025 07:12:55 +0000 (16:12 +0900)]
Modify to install udev rules under /hal/lib

The udev rules should be installed under /hal/lib since it has no
dependency on architectures.
To install udev rules under /hal/lib, "/hal/lib" is used instead of
%{buildroot}.

Change-Id: I7ab907d9d4fcc282d09bcc1abcf73037aa7d20df
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoModify to use hal_backend_sensor_funcs allocated from caller 88/313888/1 accepted/tizen_unified_dev accepted/tizen_unified_x_asan accepted/tizen/9.0/unified/20241030.233628 accepted/tizen/unified/20240704.075651 accepted/tizen/unified/dev/20240708.001614 accepted/tizen/unified/x/20241218.081936 accepted/tizen/unified/x/asan/20241224.003804 tizen_9.0_m2_release
SangYoun Kwak [Wed, 3 Jul 2024 07:35:20 +0000 (16:35 +0900)]
Modify to use hal_backend_sensor_funcs allocated from caller

With HAL ABI versioning, the hal_backend_sensor_funcs, which is a
container of sensor backend functions is allocated from hal-api-sensor.
Thus, it is modified to use hal_backend_sensor_funcs allocated from the
caller(hal-api-sensor).

Change-Id: I6ad5c106f6848d8a2064ede8d90bfb5eb11e4adf
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoModify to be buildable with hal-rootstrap 40/313340/1 accepted/tizen/unified/20240625.163147 accepted/tizen/unified/dev/20240701.073022
SangYoun Kwak [Mon, 24 Jun 2024 07:43:19 +0000 (16:43 +0900)]
Modify to be buildable with hal-rootstrap

To use hal-rootstrap as a only BuildRequires package, with contains
every package that hal backends need, spec file and cmake file are
modified.
Also, hal-rootstrap does not have 'dlog-internal.h'(it should be used
only for internal), symbols from it like SLOGE are replaced by functions
provided by 'dlog.h'.

Change-Id: I078befbec7ddae394bf657631e3ae28571242c18
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agoInitialize major_version and minor_version as v1.0 28/313128/1 accepted/tizen/unified/20240621.010421
Chanwoo Choi [Wed, 19 Jun 2024 07:26:15 +0000 (16:26 +0900)]
Initialize major_version and minor_version as v1.0

Initialize major_version and minor_version as v1.0
in order to support the new HAL API versioning method
and then remove the deprecated abi_version field.

Change-Id: Ie655d7dc3a5798b4738052826b174b43feb8a42e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
11 months agoExclude riscv64 63/313063/1 accepted/tizen/unified/20240619.151944
wchang kim [Wed, 19 Jun 2024 00:00:28 +0000 (09:00 +0900)]
Exclude riscv64

Change-Id: Id31a6afd28e546ed05275a3c718a634d4310488d

20 months agopackaging: Add support of aarch64 architecture type build 30/299130/2
Chanwoo Choi [Wed, 20 Sep 2023 09:07:10 +0000 (18:07 +0900)]
packaging: Add support of aarch64 architecture type build

Change-Id: I268867ea09fdc1ac09abf4b3d5b78f1c7514c77b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agoUpdate ABI version 88/271088/1 accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.061626 accepted/tizen/7.0/unified/hotfix/20221116.110407 accepted/tizen/8.0/unified/20231005.094455 accepted/tizen/unified/20220601.141628 submit/tizen/20220531.024845 tizen_7.0_m2_release tizen_8.0_m2_release
TaeminYeom [Tue, 15 Feb 2022 07:28:20 +0000 (16:28 +0900)]
Update ABI version

Change-Id: Ie3bdff3f5e5ece435fac80439da7c0dd4a984aeb
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
3 years agoFix build issue regarding cmake 3.21.3 22/269322/1 accepted/tizen/unified/20220113.011258 submit/tizen/20220113.012710
Hyotaek Shim [Thu, 13 Jan 2022 01:25:40 +0000 (10:25 +0900)]
Fix build issue regarding cmake 3.21.3

Change-Id: I82357f79a6e63cfde80d137554f342149138a0cd
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoFix SHUB_INST macro values with kernel 08/264608/2 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.115445 accepted/tizen/unified/20210927.120917 submit/tizen/20210927.070854 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
taemin.yeom [Mon, 27 Sep 2021 06:28:03 +0000 (15:28 +0900)]
Fix SHUB_INST macro values with kernel

Change-Id: I7f4812b89d1174dd852032ecb1e8b29f7b116d84
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoUpgrade sensorhub modules including pedometer sensor 78/263678/2 accepted/tizen/unified/20210909.002346 submit/tizen/20210908.064312
Yunmi Ha [Wed, 8 Sep 2021 05:29:48 +0000 (14:29 +0900)]
Upgrade sensorhub modules including pedometer sensor

Change-Id: I459f25679c366c387f7ac78680b4bf3837e737a0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoAdd .gitignore 50/261250/2 accepted/tizen/unified/20210714.134310 submit/tizen/20210714.022758
Hyotaek Shim [Wed, 14 Jul 2021 02:29:14 +0000 (11:29 +0900)]
Add .gitignore

Change-Id: I2db76fb5c3473ee2899b6964c6d3515d182f34ed
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoDisable debug log 26/261226/1
Yunmi Ha [Tue, 13 Jul 2021 10:38:58 +0000 (19:38 +0900)]
Disable debug log

Change-Id: I341c3febad35c0a8fe285f540ac99e1901d68e31
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoInitialization for platform/hal/backend/emulator/sensor-emulator 02/259402/1 accepted/tizen/unified/20210607.124244 submit/tizen/20210607.083349
Hyotaek Shim [Mon, 7 Jun 2021 08:28:56 +0000 (17:28 +0900)]
Initialization for platform/hal/backend/emulator/sensor-emulator

Change-Id: Ia6f148b12db6175d22f4b681d6b9e4faeb4aacdd
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoChange dlog tag as HAL_BACKEND_SENSOR
Yunmi Ha [Tue, 27 Apr 2021 07:52:37 +0000 (16:52 +0900)]
Change dlog tag as HAL_BACKEND_SENSOR

Change-Id: I36bb6ec42b2a29f63a3dcd721dd0d3ca72d99b35
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoChange install path of udev rules
Yunmi Ha [Tue, 20 Apr 2021 08:01:22 +0000 (17:01 +0900)]
Change install path of udev rules

- For separation of HAL.img, change udev rule files path to under /hal
https://code.sec.samsung.net/jira/browse/TSYSTEM-1039

Change-Id: I17160800909374176b7ba8a2bc93d4becdb59e2c
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoUse hal-sensor-types
Boram Bae [Tue, 2 Feb 2021 05:20:18 +0000 (14:20 +0900)]
Use hal-sensor-types

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

Change-Id: Ie2acbdfc16533007f931e0aa1b74ea39d59de1a9
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
4 years agoUse hal-api-sensor instead of legacy interface
Boram Bae [Wed, 27 Jan 2021 04:25:51 +0000 (13:25 +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 an install path for libsensorhub-hal to /hal/lib/sensorhub/

Change-Id: I4c4df4b7e72eebcb86116ea49c7addf12b95b573
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
6 years agoFixing build error with new dlog format
srinivasa.m [Tue, 11 Dec 2018 11:18:36 +0000 (16:48 +0530)]
Fixing build error with new dlog format

Change-Id: I410ed778a5050aab48ffbaedc89b750f8addee74
Signed-off-by: srinivasa.m <srinivasa.m@samsung.com>
7 years agosensor-hal-emulator: hot fix to get data from pedometer
kibak.yoon [Tue, 24 Oct 2017 15:29:28 +0000 (00:29 +0900)]
sensor-hal-emulator: hot fix to get data from pedometer

Change-Id: I8ef694dbd85c4b7f043174589d476c61ade428cd
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
(cherry picked from commit e94ca9a101e9ae2ed2f08303156ca98c015199e9)

7 years agosensor: hal: emul: clean package spec file
kibak.yoon [Tue, 12 Sep 2017 03:24:37 +0000 (12:24 +0900)]
sensor: hal: emul: clean package spec file

- version 1.0.4
- fix group name
- clean %build section
- clean %install section
- use macro for /usr/lib directory

Change-Id: I5c95399fe77df95d09bf149cacce05d2f8e40995
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor: hal: emul: change readdir_r to readdir
kibak.yoon [Tue, 12 Sep 2017 03:22:00 +0000 (12:22 +0900)]
sensor: hal: emul: change readdir_r to readdir

- it should be changed because readdir_r() is deprecated function
- there is no thread issue because it guarantees that it runs in one
  thread.

Change-Id: Ie5a7694936c6d1f8093e8cd5513dfb236c173ea7
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor: hal: emul: fix coding rule violations
kibak.yoon [Tue, 12 Sep 2017 03:16:51 +0000 (12:16 +0900)]
sensor: hal: emul: fix coding rule violations

Change-Id: I2bad9fe102fa444afbbebf190772ac6902d68fe6
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
7 years agosensor: lib: rebuild so libraries with toolchain ABI update
kibak.yoon [Thu, 20 Jul 2017 09:11:33 +0000 (18:11 +0900)]
sensor: lib: rebuild so libraries with toolchain ABI update

base repo :
http://download.tizen.org/snapshots/tizen/base/tizen-base_20170711.1

Change-Id: If0e6fadbfd0a8a75ff89e70eeb30175dabeac706
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: emul: remove key-related tags from sensor input devices
kibak.yoon [Fri, 19 May 2017 09:33:33 +0000 (18:33 +0900)]
sensor-hal: emul: remove key-related tags from sensor input devices

Change-Id: Ib497fcefee4b28eddc01778043713d40b4a58e3d
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: emul: update the license macro and date
kibak.yoon [Wed, 22 Mar 2017 04:27:51 +0000 (13:27 +0900)]
sensor-hal: emul: update the license macro and date

Change-Id: Ie94ad5884ffbc86f17fa0f04231609b63c9be1ab
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: emul: enable pedometer sensor
kibak.yoon [Tue, 13 Dec 2016 09:39:07 +0000 (18:39 +0900)]
sensor-hal: emul: enable pedometer sensor

Change-Id: I7fc17769f3ee7ef259115f48868400621c3811c8
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor: modify sensor udev rule
kibak.yoon [Thu, 23 Feb 2017 06:27:31 +0000 (15:27 +0900)]
sensor: modify sensor udev rule

- the node providing the specific event(e.g., HWHEEL, WHEEL) is assumed
  to be INPUT_KEY by systemd.
- so this patch modify the rule so that it is not skipped.
- systemd udev patch :-
  https://lists.freedesktop.org/archives/systemd-devel/2015-April/030662.html

Change-Id: I88e707d410a92cfb893e7a1a55f26e56224ee7d0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-emul: change libdir to the hard coded path(/usr/lib) for udev
kibak.yoon [Mon, 31 Oct 2016 05:54:44 +0000 (14:54 +0900)]
sensor-hal-emul: change libdir to the hard coded path(/usr/lib) for udev

udev uses the fixed path(/usr/lib/udev/rules.d) regardless of 32/64bit platform.

Change-Id: I90733781729e404fbe639de50ad5718f7da9d74a
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen
kibak.yoon [Thu, 30 Jun 2016 02:38:22 +0000 (11:38 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: emul: version 1.0.3
  sensor-hal-emul: remove useless config-related xml file

Change-Id: I448fcf0fd682fbd108d33a55bcb7b28e4518d198
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: emul: version 1.0.3
kibak.yoon [Thu, 30 Jun 2016 02:34:42 +0000 (11:34 +0900)]
sensor-hal: emul: version 1.0.3

Change-Id: I1bd6069c651f9ae7e1d75b61801c88ebb79bb7b0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal-emul: remove useless config-related xml file
kibak.yoon [Wed, 29 Jun 2016 07:36:46 +0000 (16:36 +0900)]
sensor-hal-emul: remove useless config-related xml file

- remove sensor.xml.in
- remove useless dependencies
- move sensor device configurations from xml to source code directly

Change-Id: I6b88f28582d64f4014c0eb46ae00857ecbe5b99e
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen
kibak.yoon [Tue, 28 Jun 2016 12:58:24 +0000 (21:58 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal: include missing header files for monotonic timestamp
  Rename the rpm to sensor-hal-emulator

Change-Id: Id1abd22b845df499a3bd2ca283497f895d239a1b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agosensor-hal: include missing header files for monotonic timestamp
kibak.yoon [Tue, 28 Jun 2016 10:00:25 +0000 (19:00 +0900)]
sensor-hal: include missing header files for monotonic timestamp

- for using monotonic timestamp, "linux/input.h" has to be included.

Change-Id: I21246e7c95a56c5b524c6d17320a9ab67b50e351
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
8 years agoRename the rpm to sensor-hal-emulator
Mu-Woong Lee [Fri, 17 Jun 2016 00:52:04 +0000 (09:52 +0900)]
Rename the rpm to sensor-hal-emulator

Change-Id: I371825541c708c24c584b5b63751d3a27cd2d6ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRename the rpm to sensor-hal-emulator
Mu-Woong Lee [Fri, 17 Jun 2016 00:52:04 +0000 (09:52 +0900)]
Rename the rpm to sensor-hal-emulator

Change-Id: I371825541c708c24c584b5b63751d3a27cd2d6ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
9 years agoMerge branch 'devel/tizen_3.0' into tizen
kibak.yoon [Thu, 16 Jun 2016 10:00:57 +0000 (19:00 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor-hal-emul: add udev rules for sensor device node

Change-Id: I5e4cca8136980f5194d11cf6e3620f1b304df9bf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-emul: add udev rules for sensor device node
kibak.yoon [Mon, 30 May 2016 11:18:27 +0000 (20:18 +0900)]
sensor-hal-emul: add udev rules for sensor device node

- update permission/smack rules

Change-Id: I5ef165c6c75eeb05bebd87548499b63143622567
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agosensor-hal-emul: initial commit for emulator sensor HAL
kibak.yoon [Wed, 11 May 2016 08:21:00 +0000 (17:21 +0900)]
sensor-hal-emul: initial commit for emulator sensor HAL

Change-Id: I0786cff7c9c8427ef0c974906b0685b439cd03d1
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
9 years agoInitial empty repository
KyungMi Lee [Wed, 16 Dec 2015 23:25:37 +0000 (15:25 -0800)]
Initial empty repository