platform/core/system/plugin/deviced-mobile.git
11 months agoinput: Change variables type for proper type casting 00/314000/1 accepted/tizen_unified_dev accepted/tizen/unified/20240704.173833 accepted/tizen/unified/dev/20240708.001547
Yunhee Seo [Thu, 4 Jul 2024 02:00:40 +0000 (11:00 +0900)]
input: Change variables type for proper type casting

When syscommon_resman_get_resource_attr_uint64_with_2_user_data() treats getter data,
that type is handled with u_int64_t type.
However, getter parameter type was int/unsigned int type.
The types should be changed to appropriate ones
because they can cause problems when handled as 4 bytes size.
They are not compatible with the size of u_int64_t type.

Change-Id: Ib603de22cf5f825a4b28f7fbbdac83674d3ac9e0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoinput: Add SYSCOMMON_PLUGIN_MODULE_DEVICED_INPUT plugin-backend 97/312897/1 accepted/tizen/unified/20240618.060048 accepted/tizen/unified/dev/20240620.000245
Yunhee Seo [Fri, 14 Jun 2024 07:34:10 +0000 (16:34 +0900)]
input: Add SYSCOMMON_PLUGIN_MODULE_DEVICED_INPUT plugin-backend

Add SYSCOMMON_PLUGIN_MODULE_DEVICED_INPUT plugin-backend skeleton code
for mobile profile.
There were logic that changed the display state according to input key
in the mobile profile.
Those logic related display is moved to plugin-backend from deviced mobile profile.

After display module is refactored, these codes will also be refactored.

Change-Id: I7d9b9bac0251ee1a48d8563a6e7b4a96aa5ba3f7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agodisplay: Add display capability setting 96/312896/1
Yunhee Seo [Fri, 14 Jun 2024 07:29:31 +0000 (16:29 +0900)]
display: Add display capability setting

Sets powerkey/homekey display capability according to the policy of mobile profile.

Change-Id: I0d216442dbe73a7a9cf930d12fe2f499075d3f90
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agobattery: Refactor health_timer_cb() 95/312895/1
Yunhee Seo [Fri, 7 Jun 2024 04:56:46 +0000 (13:56 +0900)]
battery: Refactor health_timer_cb()

health_timer_cb was too long and was handling various logics.
The code that can be pulled out as a function is extracted.
Also, duplicated logic is extracted as a function.

1. handle_abnormal_battery_health_by_event_option_type
 -> This sets display lock and requests low-battery popup.
    It is only used when the battery health is abnormal.
    There were many overlapping codes, and only the battery event and option
    were different, so this is extracted as a function.

2. log_abnormal_battery_health
 -> This gets battery health string and leaves a critical_log for abnormal battery health.

In addition, health_timer_cb() had many functions with long parameters.
To enhance readability, function indentation is modified.

Change-Id: Ifb5a1499c29ea2b29f28ba3c378cb6acf864907c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agodisplay: Add SYSCOMMON_PLUGIN_MODULE_DEVICED_DISPLAY plugin-backend 94/312894/1
Yunhee Seo [Wed, 5 Jun 2024 05:05:53 +0000 (14:05 +0900)]
display: Add SYSCOMMON_PLUGIN_MODULE_DEVICED_DISPLAY plugin-backend

Add SYSCOMMON_PLUGIN_MODULE_DEVICED_DISPLAY plugin-backend skeleton code
for mobile profile.
To support syscommon_plugin_deviced_display_get_backend(), initialization code is added.
Also, mobile specific display config is set.

Change-Id: I246f4678e05d1056fea8f79351505a32d5dc9db0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agobattery: Relocate abnormal battery health handling logic 93/312893/1
Yunhee Seo [Fri, 31 May 2024 07:46:49 +0000 (16:46 +0900)]
battery: Relocate abnormal battery health handling logic

Move the logic used specifically for deviced mobile plugin to mobile plugin backend.
Abnormal battery health signal subscription was only used in deviced mobile plugin.
Thus, the signal subscription and handling part is moved to here.

Change-Id: Ibc026567f6079784a3f3d30fb6570073319d9f46
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agobattery: Fix wrong symbol name 92/312892/1
Yunhee Seo [Tue, 4 Jun 2024 01:38:05 +0000 (10:38 +0900)]
battery: Fix wrong symbol name

Change symbol name to system_plugin_backend_deviced_battery_data.
Because data keyword was missing, the battery module in plugin backend
could not be loaded properly.
To load battery module, this is necessary.

Change-Id: I3630a4460d94a43259c2e4e0f7a91910411a0db3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoRemove unneeded abi_version 22/308022/1 accepted/tizen/unified/20240318.071352
SangYoun Kwak [Fri, 15 Mar 2024 08:35:29 +0000 (17:35 +0900)]
Remove unneeded abi_version

Change-Id: I3d1d03ca66735627f4ef138bb253ce21ddfe4633
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
19 months agobattery: Initialize update_ovp 19/301219/2 accepted/tizen/unified/20231122.172538
Yunhee Seo [Fri, 10 Nov 2023 08:03:44 +0000 (17:03 +0900)]
battery: Initialize update_ovp

There is no specific policy update_ovp for mobile.
It is initialized by NULL.

Change-Id: I621b1722e38396737d0fd7f81c5a4bdeb6accdc0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
22 months agobattery: Add is_possible_to_notify_battery_full() 07/296407/3 accepted/tizen/8.0/unified/20231005.093832 accepted/tizen/unified/20230731.175246 tizen_8.0_m2_release
Yunhee Seo [Wed, 26 Jul 2023 10:53:09 +0000 (19:53 +0900)]
battery: Add is_possible_to_notify_battery_full()

is_possible_to_notify_battery_full() is used from deviced to decide whether to notify battery full or not.
This function is relocated from deviced plugin module to here.

Change-Id: I02f7d52f0b2d3b5df4b9372c3f136aab2bb36df2
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
22 months agobattery: Add skeleton code for building 98/295398/3
Youngjae Cho [Thu, 6 Jul 2023 09:02:18 +0000 (18:02 +0900)]
battery: Add skeleton code for building

Add skeleton code for battery plugin

Change-Id: I313ccab72a6ee6a1b802ce65f71fc7fd060da0b4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoInitial empty repository
Tizen Infrastructure [Thu, 20 Apr 2023 02:38:58 +0000 (02:38 +0000)]
Initial empty repository