battery: introduce battery-plugin for iot-headless 23/268823/8
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 3 Jan 2022 09:35:05 +0000 (18:35 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 7 Jan 2022 04:39:53 +0000 (13:39 +0900)
commitc2943fb1db7e7098fbff74752e4dde29ae2b69f4
tree2d53d7f799200bbaa363e638078a346e5700f1a2
parentbeca677ef6aa79e84915ff7ee12811faf5fff313
battery: introduce battery-plugin for iot-headless

It handles battery event according to the iot-headless policy. Those
policies are specified in battery.conf. For now it only handles event
about charger connect/disconnect.
 1. It triggers power state transition. Those transition actions are
    specified in EVENT_ACTION section.
 2. It might hold wakelock for charger connection. It is specified in
    CHARGER_WAKELOCK section.

Change-Id: Iee6803604a25bacca5ce68953033b71560ed4ba8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
CMakeLists.txt
conf/battery.conf
packaging/deviced.spec
plugins/iot-headless/battery/CMakeLists.txt [new file with mode: 0644]
plugins/iot-headless/battery/battery-plugin.c [new file with mode: 0644]
plugins/iot-headless/input/input-config.c
plugins/iot-headless/power/power-event-lock.c
plugins/iot-headless/power/power-state-manager.c
src/battery/power-supply.c
src/shared/device-notifier.h