platform/hal/backend/emulator/device-emulator.git
10 months agoutil: Add handling code to safely read and write arrays 10/314610/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.234951 accepted/tizen/unified/20240717.060540 accepted/tizen/unified/dev/20240718.035909 accepted/tizen/unified/x/20241218.081932 accepted/tizen/unified/x/asan/20241224.003800 tizen_9.0_m2_release
Yunhee Seo [Tue, 16 Jul 2024 07:21:32 +0000 (16:21 +0900)]
util: Add handling code to safely read and write arrays

There was a missing code for handling the null character
so that it doesn't exceed the array size when reading and storing strings.
The code has been modified to handle the array safely.
To avoid overflow issue, this is necessary.

Change-Id: Ib75301a07906391c57fb739ef3399ff211cd1503
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
10 months agobattery: Remove old function pointer initializer code 96/314596/1
Yunhee Seo [Tue, 16 Jul 2024 04:47:40 +0000 (13:47 +0900)]
battery: Remove old function pointer initializer code

As applying HAL ABI Versioning, old style function pointer initialization was removed.
However, this one line was omitted.
This is necessary for proper function pointer initialization.

Change-Id: I2942f0243b01a3f834bdedc3e2d2a06e696bdb87
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoUse only hal-rootstrap package to build 86/314086/1 accepted/tizen/unified/20240711.011431 accepted/tizen/unified/dev/20240711.085706
Yunhee Seo [Fri, 5 Jul 2024 04:41:03 +0000 (13:41 +0900)]
Use only hal-rootstrap package to build

As support hal-abi-versioning, the hal-backend package should be built
using only the hal-rootstrap.
Other packages not included in the hal-roostrap have been deleted to remove dependencies.
util is added to replace functions of dlog and libsyscommon package.

Change-Id: I5ba534c5b52a201b0cc4fba999a04b25970636c3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agopackaging: Add support of armv7l arch type build 55/313055/1 accepted/tizen/unified/20240619.151917 accepted/tizen/unified/20240620.050720 accepted/tizen/unified/dev/20240701.073017
Chanwoo Choi [Tue, 18 Jun 2024 11:30:15 +0000 (20:30 +0900)]
packaging: Add support of armv7l arch type build

Change-Id: I1b657590bc7d4cc870b6c7d265ebabd5021e2629
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
13 months agoRemove free data section when the module exits 32/310232/2 accepted/tizen/unified/20240614.085013 accepted/tizen/unified/dev/20240620.010511
Yunhee Seo [Wed, 24 Apr 2024 07:49:40 +0000 (16:49 +0900)]
Remove free data section when the module exits

In the hal backend module, when the moudle exits, the hal_backend_[module]_funcs was
handled from [module]_exit function.
The data parameter is handed over from hal-api-common put_backend function.
And data is pointing to hal_backend_[module]_funcs, and free by hal-backend module.
As memory release operation moves to the hal-api-device side,
also double free operation is useless, thus it is deleted from hal-backend.

Change-Id: Ic11290b3643205d41f4d07807b04ad66748882b1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoexternal_connection: Change data struct variable name 29/310229/1
Yunhee Seo [Wed, 24 Apr 2024 07:32:36 +0000 (16:32 +0900)]
external_connection: Change data struct variable name

In hal_device_external_connection_info_s structure,
the name used to distinguish specific device type with string name.
Since there is an enumeration that can distinguish device types,
change the name to an appropriate one.
"name" is changed to "device_type".

Change-Id: I5ec4cfa800c8fb68113669866f236bd53647de53
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoexternal_conneciton: Replace macro external connection device type to hal_device_exte... 59/310159/1
Yunhee Seo [Tue, 23 Apr 2024 08:02:25 +0000 (17:02 +0900)]
external_conneciton: Replace macro external connection device type to hal_device_external_connection_device_type_e

As external connection device type macros are replaced by hal_device_external_connection_device_type_e,
definition usage logic is also changed.

Change-Id: I1f617f86f605290a7f3c21ebe3724e7d503cb346
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobattery: Replace macro power source definitions to hal_device_battery_power_source_type_e 97/310097/1
Yunhee Seo [Mon, 22 Apr 2024 11:34:06 +0000 (20:34 +0900)]
battery: Replace macro power source definitions to hal_device_battery_power_source_type_e

As Power source type macros are replaced by hal_device_battery_power_source_type_e,
definition usage logic also changed to utilize enum type.

Change-Id: Ice809de2630e65e7db6fbe95372a8340ca765df3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agomemory: Apply HAL ABI versioning 64/310064/1
Yunhee Seo [Mon, 22 Apr 2024 02:42:35 +0000 (11:42 +0900)]
memory: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-memory side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"memory" -> "device-memory"

Change-Id: I2e65bd3a7b7a230c95aaba86ce9a0d0fead80346
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoexternal_connection: Apply HAL ABI versioning 52/309952/1
Yunhee Seo [Thu, 18 Apr 2024 09:02:44 +0000 (18:02 +0900)]
external_connection: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-external_connection side.

Change-Id: I335aa6954d4a8862b5c74b5a8768de7b5fcdd784
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobattery: Change macro HAL_DEVICE_BATTERY_HARDWARE_DEVICE_ID 66/309766/1
Yunhee Seo [Tue, 16 Apr 2024 11:04:55 +0000 (20:04 +0900)]
battery: Change macro HAL_DEVICE_BATTERY_HARDWARE_DEVICE_ID

As HAL_DEVICE_BATTERY_HARDWARE_DEVICE_ID is removed from hal/api/device,
it is changed to BATTERY_HARDWARE_DEVICE_ID.
Because that macro is removed from platform side before,
and only used in hal-backend device-emulator.

Change-Id: I4b33f60cdea84ff5a98e9bc28d3979df479e9596
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobattery: Apply HAL ABI versioning 42/309742/3
Yunhee Seo [Tue, 16 Apr 2024 07:25:46 +0000 (16:25 +0900)]
battery: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-battery side.

Change-Id: I30ac0eafdecab58ce88d97cc5013a11997113fe8
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobattery: Fix incorrect module naming 41/309741/1
Yunhee Seo [Tue, 16 Apr 2024 07:09:02 +0000 (16:09 +0900)]
battery: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "haptic" but "device-battery".

Change-Id: If1629874ed9a6571951d81f0fd458119816ec810
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoWork in advance to apply HAL ABI versioning 19/309719/1
Yunhee Seo [Mon, 15 Apr 2024 08:40:30 +0000 (17:40 +0900)]
Work in advance to apply HAL ABI versioning

To apply HAL ABI versioning, major/minor_version is added.
Also, as removed abi_version policy, abi_version variable is removed.

Change-Id: If3254cd36c9594c686ad34f11974032cb968eb8b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Apply HAL ABI versioning 01/309401/1
Yunhee Seo [Tue, 9 Apr 2024 11:16:05 +0000 (20:16 +0900)]
haptic: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-haptic side.

Change-Id: If1accb11e605c76698790111c3ec56cf1d8f6868
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Fix incorrect module naming 00/309400/1
Yunhee Seo [Tue, 9 Apr 2024 11:14:58 +0000 (20:14 +0900)]
haptic: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "haptic" but "device-haptic".

Change-Id: I49b75853d00afb10342f7b14f29e4ff2e01d463d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Apply HAL ABI versioning 99/309399/1
Yunhee Seo [Tue, 9 Apr 2024 11:12:04 +0000 (20:12 +0900)]
display: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-display side.

Change-Id: Id0337c23e69d47241612f4b22e1de71bc3bb9c1a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Fix incorrect module naming 98/309398/1
Yunhee Seo [Tue, 9 Apr 2024 11:11:03 +0000 (20:11 +0900)]
display: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "display" but "device-display".

Change-Id: I33f7d13c8fb97f216f2d099c959559fce92501af
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoChange header file inclusion path 97/309397/1
Yunhee Seo [Tue, 9 Apr 2024 11:10:18 +0000 (20:10 +0900)]
Change header file inclusion path

As the header files installation path below hal-api-device module is changed,
the inclusion path is also changed.

Change-Id: I45a43b3863e9a53d58cc62fc4c4588ec8da6ec1d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
20 months agopackaging: Add support of aarch64 architecture type build 29/299129/1
Chanwoo Choi [Wed, 20 Sep 2023 09:01:42 +0000 (18:01 +0900)]
packaging: Add support of aarch64 architecture type build

Change-Id: Ie2eecdd5ad7c5d021e518dd9337ac88db8ad4cf3
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agousb-gadget: remove usb-gadget and add configuration file 55/274555/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062631 accepted/tizen/7.0/unified/hotfix/20221116.110403 accepted/tizen/8.0/unified/20231005.094451 accepted/tizen/unified/20220526.144149 submit/tizen/20220525.001052 tizen_7.0_m2_release tizen_8.0_m2_release
Youngjae Cho [Mon, 2 May 2022 08:11:37 +0000 (17:11 +0900)]
usb-gadget: remove usb-gadget and add configuration file

The actual operation of usb-gadget is no more hal dependent. Instead,
the deviced is now in charge of running usb-gadget. The hal backend
has changed to provide only target specific usb-gadget configurations.
If there is no target specific configurations, deviced runs usb-gadget
with default configurations.

Change-Id: I1dc5bbdacc0622ace2cfe88b89fcd3266ce61f63
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agobattery: convert info.online value to standard one 23/272023/2 accepted/tizen/unified/20220310.120855 submit/tizen/20220308.032646
Youngjae Cho [Mon, 7 Mar 2022 02:17:18 +0000 (11:17 +0900)]
battery: convert info.online value to standard one

Change-Id: I9c9d9c5ed7e8b67d92f2a7a8ee801baaeeca0900
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoUpdate ABI version 76/271076/1
Youngjae Cho [Tue, 15 Feb 2022 06:28:34 +0000 (15:28 +0900)]
Update ABI version

Change-Id: I7d98936224dc282e7376c49717ce9e99562f9322
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agospec: add "ExclusiveArch: %{ix86} x86_64" 85/268285/2 accepted/tizen/unified/20211220.133527 submit/tizen/20211220.040453
INSUN PYO [Mon, 20 Dec 2021 03:55:23 +0000 (12:55 +0900)]
spec: add "ExclusiveArch: %{ix86} x86_64"

Change-Id: I798d08acb49b2b4d89f8e7e3319b5d17f9ceebe5

3 years agoFix indentation 90/263090/1
INSUN PYO [Thu, 26 Aug 2021 05:38:02 +0000 (14:38 +0900)]
Fix indentation

Change-Id: Ifbfa5b1be539b4c568ae9a5f221569ed9199a276

3 years agoAdd libsyscommon to required package to provide linker flag 74/259974/1
Youngjae Cho [Thu, 17 Jun 2021 06:05:01 +0000 (15:05 +0900)]
Add libsyscommon to required package to provide linker flag

For haltest, it cannot run by itself because it is not able to resolve
sys_get_int() symbol of libsyscommon. Therefore, provide ldflag to
locate libsyscommon.so

Change-Id: I5351662241a66c960bcb914e141ae331097e80b7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoInitialization for platform/hal/backend/emulator/device-emulator 80/259380/2 accepted/tizen/6.5/unified/20211028.115424 accepted/tizen/unified/20210607.124255 submit/tizen/20210607.051743 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Hyotaek Shim [Mon, 7 Jun 2021 05:12:29 +0000 (14:12 +0900)]
Initialization for platform/hal/backend/emulator/device-emulator

Change-Id: I61fd690091d4ad2cf323329d14992c34543605e2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoChange dbus function name submit/tizen/20210607.045509 submit/tizen/20210607.051206
taemin.yeom [Fri, 19 Mar 2021 08:41:50 +0000 (17:41 +0900)]
Change dbus function name

Change-Id: I337f7887d7be6e4b52e7d207ced3368f65dc15d1
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
4 years agomemory: change return value when node is not supported
Yunmi Ha [Fri, 12 Mar 2021 02:30:47 +0000 (11:30 +0900)]
memory: change return value when node is not supported

Change-Id: I9522448ace6d46f80ffe4099314c133c41a1657d
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agomemory: add new halapi backend
Yunmi Ha [Thu, 18 Feb 2021 05:09:42 +0000 (14:09 +0900)]
memory: add new halapi backend

Change-Id: I0f6af33a21c2e3257b9659b10e247942e98bb1d7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoMove unsubscribe_dbus_signal position to reset signal_id
lokilee73 [Wed, 17 Feb 2021 05:47:48 +0000 (14:47 +0900)]
Move unsubscribe_dbus_signal position to reset signal_id

Change-Id: I4a24e443ff5f1c07d8ccf178f212bbc1efcb0d42
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoChange error and reset conditions for signal_id
lokilee73 [Wed, 17 Feb 2021 05:34:05 +0000 (14:34 +0900)]
Change error and reset conditions for signal_id

Change-Id: I731836c82b3348d76d97ac005d1ce4b2cd8fe95e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoUse libsyscommon for dbus
lokilee73 [Tue, 16 Feb 2021 07:53:55 +0000 (16:53 +0900)]
Use libsyscommon for dbus

Change-Id: Ic17d0180d14107f631d5c77d4f69fa3e9394a53b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoMove common macro to device-common
lokilee73 [Mon, 15 Feb 2021 02:30:51 +0000 (11:30 +0900)]
Move common macro to device-common

Change-Id: Ia506fbf4ddc5020df1c63c229fcd90afe702a36d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoApply new hal-backend-common-usb_gadget.h header
INSUN PYO [Wed, 10 Feb 2021 03:26:49 +0000 (12:26 +0900)]
Apply new hal-backend-common-usb_gadget.h header

Change-Id: I688cf83f4f0527429ae331eeb3ca598686847155

4 years agoRemove build dependency with libdevice-node
lokilee73 [Tue, 9 Feb 2021 06:01:53 +0000 (15:01 +0900)]
Remove build dependency with libdevice-node

Change-Id: I9d0aad4361f340882a3130ab86267ff9564499f3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoApply rpm macro of hal install path
Yunmi Ha [Tue, 26 Jan 2021 05:24:31 +0000 (14:24 +0900)]
Apply rpm macro of hal install path

Change-Id: I3dac37a2c00d47d513c118229f269c68efa6176e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agousb_gadget: apply next HAL architecture (hal api + backend)
INSUN PYO [Tue, 19 Jan 2021 06:10:04 +0000 (15:10 +0900)]
usb_gadget: apply next HAL architecture (hal api + backend)

Change-Id: Iacf00a03eeebfb24aa10348f4f8e157a71cd915d

4 years agoUse file library of libsyscommon
Yunmi Ha [Tue, 19 Jan 2021 08:54:08 +0000 (17:54 +0900)]
Use file library of libsyscommon

Change-Id: I574682ab013f430f848bcd9dcee466ea848f7109
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agohaptic: apply next HAL architecture (hal api + backend)
Yunmi Ha [Thu, 14 Jan 2021 10:22:09 +0000 (19:22 +0900)]
haptic: apply next HAL architecture (hal api + backend)

Change-Id: If57e0f96f5dada7567ab803989535e204d9e2627
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoAdd FEATURE_DLOG and change LOG_TAG
lokilee73 [Thu, 14 Jan 2021 07:40:52 +0000 (16:40 +0900)]
Add FEATURE_DLOG and change LOG_TAG

Change-Id: Ib769b2852375b931b928d395d30115f7612b3bef
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoApply next HAL architecture (hal api + backend)
lokilee73 [Wed, 13 Jan 2021 12:25:08 +0000 (21:25 +0900)]
Apply next HAL architecture (hal api + backend)

Change-Id: I4a873fecc39384911c0b7c267c63b1b89821b496
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoCoverity Fix
lokilee73 [Mon, 7 Sep 2020 07:52:02 +0000 (16:52 +0900)]
Coverity Fix

Change-Id: I13bb25754be97154bd3db878b2b08cd5860eac59
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoFix dbus_get_battery_info for info.temperature / 10
lokilee73 [Thu, 25 Jun 2020 02:13:26 +0000 (11:13 +0900)]
Fix dbus_get_battery_info for info.temperature / 10

(Before)
device_battery_get_property(DEVICE_BATTERY_PROPERTY_TEMPERATURE=286
device_thermal_get_temperature(DEVICE_THERMAL_BATTERY=28

(After)
device_battery_get_property(DEVICE_BATTERY_PROPERTY_TEMPERATURE=28
device_thermal_get_temperature(DEVICE_THERMAL_BATTERY=28

Change-Id: Ia5afcd778a2bf0c1621376db6b7d4e787474379b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoRemove unused usb_client hal feature
INSUN PYO [Tue, 17 Mar 2020 01:06:10 +0000 (10:06 +0900)]
Remove unused usb_client hal feature

Change-Id: I45c4e47f73383e6aa3b8fa09455d880d172260a7

5 years agoSync emulator's usb gadget to libdevice-node.
INSUN PYO [Mon, 24 Feb 2020 02:54:15 +0000 (11:54 +0900)]
Sync emulator's usb gadget to libdevice-node.

The usb gadget hal on all targets has been moved to libdevice-node.
Only emulator hal did not sync, I sync it.

Change-Id: I784379f9666bf82fbebb862d728e6ce80e6891ff

5 years agoFix build error.
INSUN PYO [Mon, 3 Feb 2020 00:03:18 +0000 (09:03 +0900)]
Fix build error.

A macro ARRAY_SIZE is defined in libdevice-node, and libdevice-node removes it."

Change-Id: Id763d7f4008a0ce774f2ba263c8ba8817731e735

5 years agoRemove 'stringop-truncation' warning for GCC-9
Youngjae Cho [Mon, 30 Dec 2019 02:06:15 +0000 (11:06 +0900)]
Remove 'stringop-truncation' warning for GCC-9

Change-Id: I5f5d364ec1245300705be1364291121511aa81cd
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoDelete display_get_state
Youngjae Cho [Wed, 30 Oct 2019 04:53:33 +0000 (13:53 +0900)]
Delete display_get_state

Use dpms_get_state() instead of HAL display_get_state

Change-Id: Ie2b8891cd408b64bf363fdccc3f44aef69fe6a06
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoAdd float typecasting to prevent the loss of fractional part in division
Youngjae Cho [Tue, 24 Sep 2019 02:43:49 +0000 (11:43 +0900)]
Add float typecasting to prevent the loss of fractional part in division

Change-Id: I596e67df50c253591bc8365e60623b31ca4c51d1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoAdd support for voltage_now, voltage_average, temperature information
Youngjae Cho [Wed, 18 Sep 2019 02:52:33 +0000 (11:52 +0900)]
Add support for voltage_now, voltage_average, temperature information

Change-Id: I3a623dd4919354da3ea4fb0a0a023e773aaddeaf
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoAdd display_get_state to get lcd state
lokilee73 [Mon, 15 Jul 2019 08:55:17 +0000 (17:55 +0900)]
Add display_get_state to get lcd state

Change-Id: I105931b402d864fff36050640a20fa86076591ab
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRemove unused plugin about cpu, process, memory and vibrator
lokilee73 [Tue, 29 Jan 2019 10:28:54 +0000 (19:28 +0900)]
Remove unused plugin about cpu, process, memory and vibrator

OAL(OEM Adaptation Layer) in libdevice-node is removed,
because HAL was implemented.
So, OAL in emulator has to be removed as well.

Change-Id: I6a4715a2c508ebf198de3a780cc9c03b2c620cd1
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoMove shared files to hwcommon package
Paweł Szewczyk [Thu, 28 Jun 2018 13:19:07 +0000 (15:19 +0200)]
Move shared files to hwcommon package

Change-Id: I448ad19aa235603b3b3eb3a027cc022f3ea12d98
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agousb_gadget: Change name of double-defined functions
Paweł Szewczyk [Thu, 28 Jun 2018 12:58:42 +0000 (14:58 +0200)]
usb_gadget: Change name of double-defined functions

Some functions were defined in hwcommon library with the same names as
those in this implementation. Changing their names fixes this problem.

Change-Id: I6425076d52d6ad11d3a6eeb9ac66b863f313cd04
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
7 years agobattery : read fails /sys/class/power_supply/battery/capacity at the first access...
INSUN PYO [Thu, 22 Jun 2017 05:24:58 +0000 (14:24 +0900)]
battery : read fails /sys/class/power_supply/battery/capacity at the first access time.

When the TW emulator first accesses /sys/class/power_supply/battery/capacity,
it sometimes returns an empty string.

So, lowbat_monitor() is called with 0 parameter.
"0" means that battery level is 0.
When deviced detects battery level 0, it creates a 30 second power off timer.
So the emulator automatically powers off intermittently after 35 seconds.

If an empty string is returned, we modify it to read /sys/clas/power_supply/battery/capacity again.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ieefd950fe175ef138814624f6a3957ac7432cc74

8 years agopackage: update version (0.0.21)
Jinhyung Choi [Fri, 20 Jan 2017 02:10:49 +0000 (11:10 +0900)]
package: update version (0.0.21)

Change-Id: Ie07c8180d62ce1d494c05f1a99fc8bf18bd00af1
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
8 years agodisplay: change readdir_r to readdir
Jinhyung Choi [Wed, 18 Jan 2017 11:17:20 +0000 (20:17 +0900)]
display: change readdir_r to readdir

Change-Id: Ic13966485605a76019b274cc06ec654f9af8d8b6
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
8 years agoAdd USB config HAL implementation for slp-gadget
taeyoung [Tue, 20 Sep 2016 04:16:48 +0000 (13:16 +0900)]
Add USB config HAL implementation for slp-gadget

This implementation of USB config HAL allows to apply
abstract gadget description received from USB gadget HAL
to USB gadget subsystem in Kernel via slp-gadget sysfs
interface.

Change-Id: I20821cf04b6a07d79b74dae257c175b70ce854ea
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agoAdd USB gadget HAL implementation
taeyoung [Tue, 20 Sep 2016 02:44:30 +0000 (11:44 +0900)]
Add USB gadget HAL implementation

USB gadget HAL is an abstraction layer which translates
set of functions into full USB gadget description specific
for this particular device.

Change-Id: I7b3faca4e116de28e053d96a6eb6d1e280a36edd
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agodisplay: return raw brightness value
taeyoung [Thu, 7 Jul 2016 01:35:50 +0000 (10:35 +0900)]
display: return raw brightness value

- The brightness value from driver is returned to device daemon.
  device daemon will calculate it for users

Change-Id: I376df8af520676a3dffcd8ec5543a1cac8df46f6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
9 years agopackage: update version (0.0.20)
Jinhyung Choi [Thu, 16 Jun 2016 06:19:48 +0000 (15:19 +0900)]
package: update version (0.0.20)

Change-Id: I4692a61f107632c32b8fae3ef94755d6f167abde
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
9 years agobattery: battery HAL is added
Taeyoung Kim [Wed, 4 May 2016 07:57:04 +0000 (16:57 +0900)]
battery: battery HAL is added

- Battery HAL is used for kernels which do not use
  standard interfaces of Mainline kernel.

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: Iff96a1eca7ad4f3bb03176346eebf79baf666142

9 years agoexternal connection: add HAL for external connection
Taeyoung Kim [Thu, 26 May 2016 09:54:26 +0000 (18:54 +0900)]
external connection: add HAL for external connection

- HAL is added for external connection such as usb cable
  ans earjack. The HAL handles the signal from emuld.

Change-Id: I27624450dcd4ab40c34a473675615fd76d11c13c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agopackage: update version (0.0.18)
Jinhyung Choi [Wed, 23 Mar 2016 11:29:26 +0000 (20:29 +0900)]
package: update version (0.0.18)

Change-Id: I1d018c0188a91d843c7de2d30ac13aeb74bef5ed
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
9 years agosource: fix readdir_r bug
Jinhyung Choi [Wed, 23 Mar 2016 11:28:41 +0000 (20:28 +0900)]
source: fix readdir_r bug

Change-Id: I57bedffa51aa353c88c6e960dcd1a219fa903d30
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
9 years agopackage: update version (0.0.18)
Jinhyung Choi [Wed, 23 Mar 2016 07:24:17 +0000 (16:24 +0900)]
package: update version (0.0.18)

Change-Id: I04d23e69537c452d8bf1e37c097ce475b71d794f
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
9 years agosource: remove unused file
Jinhyung Choi [Wed, 23 Mar 2016 04:59:22 +0000 (13:59 +0900)]
source: remove unused file

Change-Id: Ice7cd2cda2110938a67f8a32728319239ac73382
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
9 years agosource: add integer casting for floating point result
Jinhyung Choi [Wed, 23 Mar 2016 04:45:40 +0000 (13:45 +0900)]
source: add integer casting for floating point result

Change-Id: Iea5db57949dfabe0ed0afee2901f434796231b78
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
9 years agopackage: update version (0.0.17)
ChulHo Song [Fri, 18 Mar 2016 05:54:26 +0000 (14:54 +0900)]
package: update version (0.0.17)

Change-Id: I610cfa23be8f65095e4cef250ae57f90b7175cfd
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
9 years agosource: readdir -> readdir_r
ChulHo Song [Fri, 18 Mar 2016 05:53:13 +0000 (14:53 +0900)]
source: readdir -> readdir_r

Change-Id: I68684b6453d7f67f13b4b4deb427546be933b5d3
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
9 years agoHAL: add display HAL for emulator
Taeyoung Kim [Tue, 15 Mar 2016 09:57:51 +0000 (18:57 +0900)]
HAL: add display HAL for emulator

- HAL for emulator is added. Currently just display HAL
  is available.

Change-Id: Ib683cb26c45f26b803f78850ee643e64e63f0c56
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agofix some defects
ChulHo Song [Mon, 4 Jan 2016 06:06:07 +0000 (15:06 +0900)]
fix some defects

Change-Id: I7439b61a60a6e3d5eecf0c7524c7e8ef62792986
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
9 years agobuild: add a "-Wall" option
ChulHo Song [Thu, 5 Nov 2015 05:37:33 +0000 (14:37 +0900)]
build: add a "-Wall" option

Change-Id: I875c32cfdebe544e69a8dd0edadc13207ae7958c
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
9 years agobuild: add a "-Werror" option and fix build error
ChulHo Song [Wed, 4 Nov 2015 12:42:55 +0000 (21:42 +0900)]
build: add a "-Werror" option and fix build error

Change-Id: Idffa8e5e7588ad5788ff17a93a9c27513b82539d
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
10 years agodebug: fixed installed path
Jinhyung Choi [Thu, 28 May 2015 03:37:36 +0000 (12:37 +0900)]
debug: fixed installed path

Change-Id: Id7d3aa64306bbd5e3c9eb4e407a2a91b58956853
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
10 years agopackage: changes package name same as repository name
Jinhyung Choi [Wed, 5 Nov 2014 09:52:24 +0000 (18:52 +0900)]
package: changes package name same as repository name

Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
Conflicts:
AUTHORS
CMakeLists.txt
debian/control
debian/rules
src/device_manager_io.c

Change-Id: I21cbc54c9a2f9bcff162e64cfb7e7ce9ae782ab4

11 years agofixed the bug of spec file
jihye kim [Mon, 11 Nov 2013 03:07:59 +0000 (12:07 +0900)]
fixed the bug of spec file

- modify Group and License
- modify Summary

Change-Id: I345f41cc767c097f56c6eb98a8fb11d4ab599943
Signed-off-by: jihye kim <jihye1128.kim@samsung.com>
11 years agoadded license file into rpm package
jihye kim [Mon, 30 Sep 2013 03:17:51 +0000 (12:17 +0900)]
added license file into rpm package

Change-Id: I34b397dc4416f02a2b50a917b6122b423f786c2b
Signed-off-by: jihye kim <jihye1128.kim@samsung.com>
11 years agoMerge branch 'sdk-develop' into tizen
Yeongkyoon Lee [Thu, 26 Sep 2013 08:18:46 +0000 (17:18 +0900)]
Merge branch 'sdk-develop' into tizen

11 years agoInitial empty repository
Sehong Na [Thu, 12 Sep 2013 05:42:43 +0000 (22:42 -0700)]
Initial empty repository

12 years agochange license (Floar -> Apache 2)
jihye [Tue, 30 Apr 2013 05:43:34 +0000 (14:43 +0900)]
change license (Floar -> Apache 2)

Change-Id: Ice8f67925ab0d70359d9c3cd81588151ab32cda0

12 years agoupdate flora license (1.0 -> 1.1)
jihye [Mon, 29 Apr 2013 06:11:04 +0000 (15:11 +0900)]
update flora license (1.0 -> 1.1)

Change-Id: I66e149bc8cfcbee5e27d3cd00e7c8193f5018066

12 years agoremove redundant header to avoid runtime mismatch (sync with exynos)
jihye [Fri, 26 Apr 2013 09:27:07 +0000 (18:27 +0900)]
remove redundant header to avoid runtime mismatch (sync with exynos)

Change-Id: I55454789e7fc105daa31e25e4c6f6388d427ffe9

12 years agoupdate flora license file
jihye1128.kim [Thu, 18 Apr 2013 09:27:30 +0000 (18:27 +0900)]
update flora license file

12 years agomodify flora license file
jihye1128.kim [Thu, 18 Apr 2013 07:01:46 +0000 (16:01 +0900)]
modify flora license file

12 years agoMerge branch 'master' into tizen_2.1
jihye1128.kim [Thu, 18 Apr 2013 02:53:25 +0000 (11:53 +0900)]
Merge branch 'master' into tizen_2.1

Conflicts:
include/devman_define_node_path.h
include/devman_plugin_intf.h
packaging/device-manager-plugin-maru.spec
src/device_manager_io.c
src/device_manager_plugin_maru.c

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

12 years agoTizen 2.1 base
Jinkun Jang [Tue, 12 Mar 2013 17:13:36 +0000 (02:13 +0900)]
Tizen 2.1 base

12 years agoadd api (sync with exynos)
jihye kim [Thu, 28 Feb 2013 06:10:02 +0000 (15:10 +0900)]
add api (sync with exynos)

12 years agoFixed build on x86_64.
Junfeng Dong [Thu, 31 Jan 2013 13:13:58 +0000 (21:13 +0800)]
Fixed build on x86_64.

Change-Id: Ieb8f3d0f771428ac9117fc9611ed390a485776b6

12 years agoupdate LICENSE files
jihye kim [Wed, 23 Jan 2013 11:33:32 +0000 (20:33 +0900)]
update LICENSE files

12 years agoupdate license file and boiler plate code
jihye kim [Thu, 17 Jan 2013 07:25:34 +0000 (16:25 +0900)]
update license file and boiler plate code

12 years agomodify maintainer
jihye kim [Thu, 3 Jan 2013 10:49:28 +0000 (19:49 +0900)]
modify maintainer

12 years agoadd AUTHORS and NOTICE file
jihye kim [Thu, 3 Jan 2013 10:32:23 +0000 (19:32 +0900)]
add AUTHORS and NOTICE file

12 years agomodify bug (protex)
jihye kim [Fri, 28 Dec 2012 07:23:08 +0000 (16:23 +0900)]
modify bug (protex)

12 years agoRevert "add API (sys_set_power_lock, sys_get_power_lock_support)"
Sangjin Kim [Tue, 18 Dec 2012 08:25:54 +0000 (17:25 +0900)]
Revert "add API (sys_set_power_lock, sys_get_power_lock_support)"
Cause of platform request.

This reverts commit 9d2f25f1076729d004ac497dafe91870ed79640a.

12 years agoadd API (sys_set_power_lock, sys_get_power_lock_support)
jihye kim [Tue, 18 Dec 2012 05:01:23 +0000 (14:01 +0900)]
add API (sys_set_power_lock, sys_get_power_lock_support)

12 years agofix bug(exynos -> emul)
jihye kim [Mon, 19 Nov 2012 07:01:54 +0000 (16:01 +0900)]
fix bug(exynos -> emul)

12 years agoadd new API (OEM_sys_get_hdmi_support)
jihye kim [Mon, 19 Nov 2012 06:30:45 +0000 (15:30 +0900)]
add new API (OEM_sys_get_hdmi_support)