History log of /system/core/charger/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd8e6504e355d2c73a2aaad260475f72af0495bf 07-Dec-2012 Devin Kim <dojip.kim@lge.com> charger: Do not suspend when disconnecting from charger

The device should be power off when disconnecting from charger.
If the device enter to suspend, the device couldn't handle the power off
process. So the device shouldn't suspend to handle the power off at that time

Bug: 7429504
Change-Id: I9a0a60e53f315cd83550dc730a33bc7bd464ef67
harger.c
40156b8a91363da69675e7e4cb7947c371871654 07-Dec-2012 Iliyan Malchev <malchev@google.com> charger: fix build

Looks like libsuspend is not available on all platforms.

Change-Id: Ic32dc93221f3c488e846da35235f247f4ddb4c69
Signed-off-by: Iliyan Malchev <malchev@google.com>
harger.c
9255713bcf929e7cdd2817481f0dd08f838285c3 16-Nov-2012 choongryeol.lee <choongryeol.lee@lge.com> charger: suspend enable in charger mode

To reduce power consumption after charging completion, enable suspend when LCD
is turned off.

Bug: 7429504
Change-Id: I34731dc392661c9051a20cea74f70d94a8aaeb42
Signed-off-by: Iliyan Malchev <malchev@google.com>
ndroid.mk
harger.c
209c7b0fad9604d1dde1b74d9f9d577b923469fd 13-Oct-2012 Dima Zavin <dima@android.com> charger: allow devices to skip the initial display blank

The theory behind the blank was that the kernel would not
re-initilize the display on boot (and leave it to whatever
the bootloader configured it to) until after the first
blank request.

On some devices, the bootloader does not turn the screen on,
but it's done by the kernel and thus. This makes the extra blank at
start unnecessary.

Bug: 7319529
Change-Id: I9ad9856186df6e9e23ebbe86e83b641423e16dcb
Signed-off-by: Dima Zavin <dima@android.com>
ndroid.mk
harger.c
7e014ce6defdfe596d83ff549a13f7215151069e 12-Sep-2012 Elliott Hughes <enh@google.com> am cdc4a400: am cb71ed30: am 50e2555d: Merge "Always include <sys/socket.h> before <linux/netlink.h>."

* commit 'cdc4a400b3a47564887ac1220bfb7f6f8312a71e':
Always include <sys/socket.h> before <linux/netlink.h>.
b77d3d724945f38b39f3116e3aead4edcbd08a36 12-Sep-2012 Elliott Hughes <enh@google.com> Always include <sys/socket.h> before <linux/netlink.h>.

Newer kernel headers files aren't stand alone. (This has long been true of
glibc's copy, but we only recently updated external/kernel-headers.)

Change-Id: Iebcb40902b2f29fe509e207e2f3a9d02a7e40602
harger.c
c60e6e7e585551fa97cac2ac71dc1ddf54cd0242 24-Aug-2012 Stephen Hines <srhines@google.com> Link directly with libm due to libpng dependency.

Change-Id: I9a9b8c3db025b8391b6a0e96ca24ed9cda3ab9a2
ndroid.mk
9ec3f3e2e4ccb18ed85fa47015b0fa71985710c4 01-Nov-2011 Dima Zavin <dima@android.com> charger: make the almost-full frame only show when it's current level

Change-Id: Id53de101dd3c211d376abfd748e7646e28291749
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
471157a393d052aece013d1f8b7701aaadca3b6c 13-Oct-2011 Dima Zavin <dima@android.com> charger: key state being the same is not an error

Change-Id: I58d53899dbcca8329b65b189c1a6c5eea413c289
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
2d978c01ee71002b3c5999126c009ec07a773c30 13-Oct-2011 Dima Zavin <dima@android.com> charger: ignore key event if value didn't change

Change-Id: Idcb481550eca53209be217361cac38e48368a04f
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
2471a6a3956c591b3979b9b73a0d68f3b214da57 13-Oct-2011 Dima Zavin <dima@android.com> charger: sync with the current key state on boot

If the power key was down when we booted, we would not have
gotten the down event and thus the device would not have rebooted until
the user released and pressed it again.

Change-Id: Iecb8c3dba773bce4647748715d056e8e1d77f7e0
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
d11e1a0278c602c761ac37d843926e1eba5a63f1 13-Oct-2011 Dima Zavin <dima@android.com> charger: print last_kmsg directly using klog_write

using the macros introduced extra characters that made things align
poorly.

Change-Id: I4924134be159723b4e4ed905c4293a42358d0ff5
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
db982b06606e885186efc1ee32c9dd96216c12dc 30-Sep-2011 Dima Zavin <dima@android.com> am 73531557: Revert "charger: show animation when the device is unplugged"

* commit '7353155717ec56e119a125cd6492c19df755b6ea':
Revert "charger: show animation when the device is unplugged"
01851eac692286bcd842abf5c4f50654e3a4100c 30-Sep-2011 Dima Zavin <dima@android.com> am 823ebc4d: charger: dump the last_kmsg when going into charger mode

* commit '823ebc4d824ea70e5ec7d376adf2fbce50eb9cb2':
charger: dump the last_kmsg when going into charger mode
7353155717ec56e119a125cd6492c19df755b6ea 30-Sep-2011 Dima Zavin <dima@android.com> Revert "charger: show animation when the device is unplugged"

This reverts commit e0c70dad4b4d417182e4c0ba8adae199f2622582.
harger.c
823ebc4d824ea70e5ec7d376adf2fbce50eb9cb2 30-Sep-2011 Dima Zavin <dima@android.com> charger: dump the last_kmsg when going into charger mode

Change-Id: I3b76bb5071d8a44adfb221774bb304bf296c8c1b
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
a5bfd4e3835b44296896da933ca9484441148ae3 27-Sep-2011 Dima Zavin <dima@android.com> am 1a5ca61b: charger: use the new asset for almost full, and show full @ 95%

* commit '1a5ca61b28b3269b625b7a7162b4f50734f7fea9':
charger: use the new asset for almost full, and show full @ 95%
df3429de1294de4b3cadfbfcca06e8c9dc4e090d 27-Sep-2011 Dima Zavin <dima@android.com> am fc44f5f4: charger: update assets

* commit 'fc44f5f4d4b3b05d9eba1ee787b70e1dfe0f18c5':
charger: update assets
1a5ca61b28b3269b625b7a7162b4f50734f7fea9 26-Sep-2011 Dima Zavin <dima@android.com> charger: use the new asset for almost full, and show full @ 95%

Change-Id: I5f8729260ae068d35d981ff2c16d576c3d4dd82f
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
fc44f5f4d4b3b05d9eba1ee787b70e1dfe0f18c5 26-Sep-2011 Dima Zavin <dima@android.com> charger: update assets

Change-Id: I0c0d1206fdc3aa30382a9ee86edb88bba1e21e63
Signed-off-by: Dima Zavin <dima@android.com>
mages/battery_0.png
mages/battery_1.png
mages/battery_2.png
mages/battery_3.png
mages/battery_4.png
mages/battery_5.png
mages/battery_charge.png
mages/battery_fail.png
d7802a2fa4c5ebda3fe0becbd195479d13793a46 26-Sep-2011 Dima Zavin <dima@android.com> am e0c70dad: charger: show animation when the device is unplugged

* commit 'e0c70dad4b4d417182e4c0ba8adae199f2622582':
charger: show animation when the device is unplugged
dcecd4cc775a2fdc0212a0a76b861ee987ec2ef3 26-Sep-2011 Dima Zavin <dima@android.com> resolved conflicts for merge of 0052abda to master

Change-Id: Ia33ac80949bebaafd1a012b7b131dc3960eca862
e0c70dad4b4d417182e4c0ba8adae199f2622582 23-Sep-2011 Dima Zavin <dima@android.com> charger: show animation when the device is unplugged

Change-Id: I54af1bc61c73bbc993d1dff37174b16e1de5b7a4
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
0052abdafd7179fc4a7458f09d2f95c74dda0021 23-Sep-2011 Dima Zavin <dima@android.com> charger: update charger UI with official graphics and animation

Change-Id: I1b36fa9e380797fe01812b57ac5d8c2c38857993
Signed-off-by: Dima Zavin <dima@android.com>
ndroid.mk
harger.c
mages/battery_0.png
mages/battery_1.png
mages/battery_2.png
mages/battery_3.png
mages/battery_4.png
mages/battery_charge.png
mages/battery_fail.png
mages/charging.png
303e6ac804c110ae54a51b56a217d70e97313c10 21-Sep-2011 Brian Swetland <swetland@google.com> fix TINY_ANDROID build (exclude charger binary)

Change-Id: I28157cbadcb208df517052336f652f5810048cc1
Signed-off-by: Brian Swetland <swetland@google.com>
ndroid.mk
92312a515b0b877deed5dfdbf9d7613e8d66fee5 16-Sep-2011 Dima Zavin <dima@android.com> charger: reduce timeout for power-on with power key to 2 secs

Change-Id: I8d3a49678a7fc47282d7ab407722e7c1829e9187
Signed-off-by: Dima Zavin <dima@android.com>
harger.c
f48b23688c1303212c65e470af9f9f3892e98f8e 30-Aug-2011 Dima Zavin <dima@android.com> core: Add a standalone charger UI binary

This can be launched from an 'on charger' section in init, which
is processed if androidboot.mode=charger is supplied on kernel
command line.

This is a standalone binary that has a simple "user interface"
and allows the standard production kernel to run while charging.
This removes the burden from the bootloader to get low-power mode
working.

Currently, the device will "power-on" (i.e. reboot) into normal
mode if the power key is pressed for X seconds, and will also
power down the device if the usb/ac cable is removed for Y seconds.

Change-Id: I780594b99211cb09de7f8519a69c5962eb91348a
Signed-off-by: Dima Zavin <dima@android.com>
ndroid.mk
harger.c
mages/charging.png