summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-07-16util: Add handling code to safely read and write arraystizen_9.0_m2_releaseaccepted/tizen/unified/dev/20240718.035909accepted/tizen/unified/20240717.060540accepted/tizen/9.0/unified/20241030.234951tizen_9.0tizenaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedYunhee Seo1-30/+34
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>
2024-07-16battery: Remove old function pointer initializer codeYunhee Seo1-2/+0
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>
2024-07-05Use only hal-rootstrap package to buildaccepted/tizen/unified/dev/20240711.085706accepted/tizen/unified/20240711.011431Yunhee Seo14-57/+368
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>
2024-06-18packaging: Add support of armv7l arch type buildaccepted/tizen/unified/dev/20240701.073017accepted/tizen/unified/20240620.050720accepted/tizen/unified/20240619.151917Chanwoo Choi1-1/+1
Change-Id: I1b657590bc7d4cc870b6c7d265ebabd5021e2629 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2024-04-24Remove free data section when the module exitsaccepted/tizen/unified/dev/20240620.010511accepted/tizen/unified/20240614.085013Yunhee Seo5-17/+0
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>
2024-04-24external_connection: Change data struct variable nameYunhee Seo1-2/+2
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>
2024-04-23external_conneciton: Replace macro external connection device type to ↵Yunhee Seo1-3/+3
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>
2024-04-22battery: Replace macro power source definitions to ↵Yunhee Seo1-3/+3
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>
2024-04-22memory: Apply HAL ABI versioningYunhee Seo1-10/+13
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>
2024-04-18external_connection: Apply HAL ABI versioningYunhee Seo1-15/+18
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>
2024-04-16battery: Change macro HAL_DEVICE_BATTERY_HARDWARE_DEVICE_IDYunhee Seo1-2/+4
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>
2024-04-16battery: Apply HAL ABI versioningYunhee Seo1-13/+18
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>
2024-04-16battery: Fix incorrect module namingYunhee Seo1-8/+8
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>
2024-04-16Work in advance to apply HAL ABI versioningYunhee Seo5-5/+6
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>
2024-04-09haptic: Apply HAL ABI versioningYunhee Seo1-5/+10
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>
2024-04-09haptic: Fix incorrect module namingYunhee Seo1-11/+11
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>
2024-04-09display: Apply HAL ABI versioningYunhee Seo1-4/+9
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>
2024-04-09display: Fix incorrect module namingYunhee Seo1-8/+8
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>
2024-04-09Change header file inclusion pathYunhee Seo5-5/+5
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>
2023-09-20packaging: Add support of aarch64 architecture type buildChanwoo Choi1-1/+1
Change-Id: Ie2eecdd5ad7c5d021e518dd9337ac88db8ad4cf3 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2022-05-02usb-gadget: remove usb-gadget and add configuration filetizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220525.001052accepted/tizen/unified/20220526.144149accepted/tizen/8.0/unified/20231005.094451accepted/tizen/7.0/unified/hotfix/20221116.110403accepted/tizen/7.0/unified/20221110.062631tizen_7.0_hotfixaccepted/tizen_7.0_unified_hotfixYoungjae Cho5-109/+23
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>
2022-03-07battery: convert info.online value to standard onesubmit/tizen/20220308.032646accepted/tizen/unified/20220310.120855Youngjae Cho1-0/+6
Change-Id: I9c9d9c5ed7e8b67d92f2a7a8ee801baaeeca0900 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2022-02-15Update ABI versionYoungjae Cho6-6/+6
Change-Id: I7d98936224dc282e7376c49717ce9e99562f9322 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-12-20spec: add "ExclusiveArch: %{ix86} x86_64"submit/tizen/20211220.040453accepted/tizen/unified/20211220.133527INSUN PYO1-0/+1
Change-Id: I798d08acb49b2b4d89f8e7e3319b5d17f9ceebe5
2021-08-26Fix indentationINSUN PYO1-10/+10
Change-Id: Ifbfa5b1be539b4c568ae9a5f221569ed9199a276
2021-06-17Add libsyscommon to required package to provide linker flagYoungjae Cho1-1/+1
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>
2021-06-07Initialization for platform/hal/backend/emulator/device-emulatortizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163201submit/tizen/20210607.051743accepted/tizen/unified/20210607.124255accepted/tizen/6.5/unified/20211028.115424Hyotaek Shim3-5/+7
Change-Id: I61fd690091d4ad2cf323329d14992c34543605e2 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-03-19Change dbus function namesubmit/tizen/20210607.051206submit/tizen/20210607.045509taemin.yeom2-6/+6
Change-Id: I337f7887d7be6e4b52e7d207ced3368f65dc15d1 Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
2021-03-12memory: change return value when node is not supportedYunmi Ha1-2/+2
Change-Id: I9522448ace6d46f80ffe4099314c133c41a1657d Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-02-18memory: add new halapi backendYunmi Ha3-0/+83
Change-Id: I0f6af33a21c2e3257b9659b10e247942e98bb1d7 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-02-17Move unsubscribe_dbus_signal position to reset signal_idlokilee732-4/+6
Change-Id: I4a24e443ff5f1c07d8ccf178f212bbc1efcb0d42 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-02-17Change error and reset conditions for signal_idlokilee732-7/+7
Change-Id: I731836c82b3348d76d97ac005d1ce4b2cd8fe95e Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-02-17Use libsyscommon for dbuslokilee736-124/+18
Change-Id: Ic17d0180d14107f631d5c77d4f69fa3e9394a53b Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-02-15Move common macro to device-commonlokilee7314-61/+16
Change-Id: Ia506fbf4ddc5020df1c63c229fcd90afe702a36d Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-02-10Apply new hal-backend-common-usb_gadget.h headerINSUN PYO2-5/+2
Change-Id: I688cf83f4f0527429ae331eeb3ca598686847155
2021-02-09Remove build dependency with libdevice-nodelokilee736-1348/+5
Change-Id: I9d0aad4361f340882a3130ab86267ff9564499f3 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-01-26Apply rpm macro of hal install pathYunmi Ha7-7/+11
Change-Id: I3dac37a2c00d47d513c118229f269c68efa6176e Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-26usb_gadget: apply next HAL architecture (hal api + backend)INSUN PYO6-119/+81
Change-Id: Iacf00a03eeebfb24aa10348f4f8e157a71cd915d
2021-01-19Use file library of libsyscommonYunmi Ha4-109/+3
Change-Id: I574682ab013f430f848bcd9dcee466ea848f7109 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-14haptic: apply next HAL architecture (hal api + backend)Yunmi Ha4-1/+192
Change-Id: If57e0f96f5dada7567ab803989535e204d9e2627 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-01-14Add FEATURE_DLOG and change LOG_TAGlokilee733-2/+6
Change-Id: Ib769b2852375b931b928d395d30115f7612b3bef Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2021-01-13Apply next HAL architecture (hal api + backend)lokilee738-104/+238
Change-Id: I4a873fecc39384911c0b7c267c63b1b89821b496 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2020-09-07Coverity Fixlokilee731-8/+8
Change-Id: I13bb25754be97154bd3db878b2b08cd5860eac59 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2020-06-25Fix dbus_get_battery_info for info.temperature / 10lokilee731-1/+1
(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>
2020-03-17Remove unused usb_client hal featureINSUN PYO1-37/+6
Change-Id: I45c4e47f73383e6aa3b8fa09455d880d172260a7
2020-02-24Sync emulator's usb gadget to libdevice-node.INSUN PYO1-55/+2
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
2020-02-03Fix build error.INSUN PYO1-0/+4
A macro ARRAY_SIZE is defined in libdevice-node, and libdevice-node removes it." Change-Id: Id763d7f4008a0ce774f2ba263c8ba8817731e735
2019-12-30Remove 'stringop-truncation' warning for GCC-9Youngjae Cho2-3/+4
Change-Id: I5f5d364ec1245300705be1364291121511aa81cd Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2019-10-30Delete display_get_stateYoungjae Cho1-31/+0
Use dpms_get_state() instead of HAL display_get_state Change-Id: Ie2b8891cd408b64bf363fdccc3f44aef69fe6a06 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2019-09-24Add float typecasting to prevent the loss of fractional part in divisionYoungjae Cho1-2/+2
Change-Id: I596e67df50c253591bc8365e60623b31ca4c51d1 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>