OSDN Git Service

Integrate new power connnect/disconnect broadcasts
authorChristopher Tate <ctate@google.com>
Thu, 9 Apr 2009 23:03:56 +0000 (16:03 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 9 Apr 2009 23:03:56 +0000 (16:03 -0700)
commit06ba55476ee9703c876d223cd41bd73c5f85f42d
tree597ed553c488fdb9ff882887c45b1e2e1fe4f66f
parent4d08efb7d80db0e2d69c60a5fee6a923e440daac
Integrate new power connnect/disconnect broadcasts

Two new broadcasts, Intent.ACTION_POWER_CONNECTED and
Intent.ACTION_POWER_CONNECTED, that are issued when the device is plugged
and unplugged from USB or AC power.  This pulls two changes from the
open-source Gerrit repo into the internal Donut codeline:

1241 fda6fae Added broadcasts for external power events.
9491 37f8ca1 Fix system service crash when booting while on battery power

The current.xml API description has also been updated to include the
new Intent fields; the new API was approved in the original OSS change.
api/current.xml
core/java/android/content/Intent.java
services/java/com/android/server/BatteryService.java