Dima Zavin
471157a393
charger: key state being the same is not an error
...
Change-Id: I58d53899dbcca8329b65b189c1a6c5eea413c289
Signed-off-by: Dima Zavin <dima@android.com>
2011-10-13 13:04:38 -07:00
Dima Zavin
2d978c01ee
charger: ignore key event if value didn't change
...
Change-Id: Idcb481550eca53209be217361cac38e48368a04f
Signed-off-by: Dima Zavin <dima@android.com>
2011-10-12 16:18:23 -07:00
Dima Zavin
2471a6a395
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>
2011-10-12 16:16:07 -07:00
Dima Zavin
d11e1a0278
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>
2011-10-12 16:14:00 -07:00
Dima Zavin
db982b0660
am 73531557
: Revert "charger: show animation when the device is unplugged"
...
* commit '7353155717ec56e119a125cd6492c19df755b6ea':
Revert "charger: show animation when the device is unplugged"
2011-09-30 11:23:28 -07:00
Dima Zavin
01851eac69
am 823ebc4d
: charger: dump the last_kmsg when going into charger mode
...
* commit '823ebc4d824ea70e5ec7d376adf2fbce50eb9cb2':
charger: dump the last_kmsg when going into charger mode
2011-09-30 11:23:27 -07:00
Dima Zavin
7353155717
Revert "charger: show animation when the device is unplugged"
...
This reverts commit e0c70dad4b
.
2011-09-29 17:27:37 -07:00
Dima Zavin
823ebc4d82
charger: dump the last_kmsg when going into charger mode
...
Change-Id: I3b76bb5071d8a44adfb221774bb304bf296c8c1b
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-29 17:20:44 -07:00
Dima Zavin
a5bfd4e383
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%
2011-09-26 19:44:47 -07:00
Dima Zavin
df3429de12
am fc44f5f4
: charger: update assets
...
* commit 'fc44f5f4d4b3b05d9eba1ee787b70e1dfe0f18c5':
charger: update assets
2011-09-26 19:44:46 -07:00
Dima Zavin
1a5ca61b28
charger: use the new asset for almost full, and show full @ 95%
...
Change-Id: I5f8729260ae068d35d981ff2c16d576c3d4dd82f
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-26 14:14:19 -07:00
Dima Zavin
fc44f5f4d4
charger: update assets
...
Change-Id: I0c0d1206fdc3aa30382a9ee86edb88bba1e21e63
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-26 13:57:45 -07:00
Dima Zavin
d7802a2fa4
am e0c70dad
: charger: show animation when the device is unplugged
...
* commit 'e0c70dad4b4d417182e4c0ba8adae199f2622582':
charger: show animation when the device is unplugged
2011-09-26 13:14:56 -07:00
Dima Zavin
dcecd4cc77
resolved conflicts for merge of 0052abda
to master
...
Change-Id: Ia33ac80949bebaafd1a012b7b131dc3960eca862
2011-09-25 22:27:13 -07:00
Dima Zavin
e0c70dad4b
charger: show animation when the device is unplugged
...
Change-Id: I54af1bc61c73bbc993d1dff37174b16e1de5b7a4
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-25 22:19:49 -07:00
Dima Zavin
0052abdafd
charger: update charger UI with official graphics and animation
...
Change-Id: I1b36fa9e380797fe01812b57ac5d8c2c38857993
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-25 21:20:55 -07:00
Brian Swetland
303e6ac804
fix TINY_ANDROID build (exclude charger binary)
...
Change-Id: I28157cbadcb208df517052336f652f5810048cc1
Signed-off-by: Brian Swetland <swetland@google.com>
2011-09-20 17:38:06 -07:00
Dima Zavin
92312a515b
charger: reduce timeout for power-on with power key to 2 secs
...
Change-Id: I8d3a49678a7fc47282d7ab407722e7c1829e9187
Signed-off-by: Dima Zavin <dima@android.com>
2011-09-16 13:16:04 -07:00
Dima Zavin
f48b23688c
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>
2011-09-04 15:41:36 -07:00