battery: Divide "display_changed" plugin interface 50/291850/10
authorTaeminYeom <taemin.yeom@samsung.com>
Mon, 24 Apr 2023 01:23:25 +0000 (10:23 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Tue, 16 May 2023 09:05:36 +0000 (18:05 +0900)
commit490d4eccca7ec27ce2588c6e9ff77b3e49b0aae1
tree9fe6faff8a7ba33c9f9e7c246261af3d4565bfd3
parent9cf1687fef7c97151235a453fbdf4ee4e7216609
battery: Divide "display_changed" plugin interface

In battery notificaion plugin, there was a function "display_changed"
used as a getter and setter duplicated about display state in
mobile and wearable battery plugin.
To divide the role of getting and setting display state
and they can be used in common devices, it is moved to core.

The role of setting display state in battery moudle is included in
new function "handle_display_state_changed", and it calls plugin interface
"launch_health_popup_by_display_state".

Previous "display_changed" is deleted from mobile battery plugin.
In wearable, the role of "display_changed" is moved to new function
"launch_health_popup_by_display_state". And it consists of the action
when display state is changed.

Change-Id: I1f63502ba36f10fcf93c99987c9ce132295397aa
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
plugins/mobile/battery/battery-notification.c
plugins/wearable/battery/battery-notification.c
src/battery/battery-ops.h
src/battery/power-supply.c