battery: rename battery.online as charger_connected 36/270236/7
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 27 Jan 2022 01:46:10 +0000 (17:46 -0800)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 3 Feb 2022 05:19:09 +0000 (14:19 +0900)
commitda821cc39e8002408955587260de1af8b9082a88
treee63d823d5b392c891ce95617c950e033b4524141
parent37e7e856441de13dcdfb630b7ef066736bff12ac
battery: rename battery.online as charger_connected

 The charger_connected has changed to have only a value of 0 or 1,
which corresponds to charger disconnected/connected. At before, the
variable can have any integer other than 0 or 1, which implied which
type of charger had been connected. Instead of those integers, the
power_source_s or vconf can be utilized for charger type.
 The vconf, VCONFKEY_SYSMAN_CHARGER_TYPE, which was exclusive for MCD
product profile, has changed to have a one of the value belows, and it
will be changed according to battery.power_source_s.
    0 (none, charger disconnected or unknown type)
    1 (ac)
    2 (usb)
    3 (wireless)

Change-Id: I8ff4751e521585f94cd421a0edeba04651094bce
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/battery/lowbat-handler.c
src/battery/lowbat-handler.h
src/battery/power-supply.c
src/battery/power-supply.h
src/core/udev.h
src/touchscreen/touchscreen.c
tests/auto-test/battery.c