PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)

This will add the option to disable waking up the device when a charger
is plugged or unplugged.

Change-Id: I3367041a05931510f367dafe412b173c80b89df1
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
QuickSettings: fix missing GPS state

This will show the appropiate image when GPS got a fix.

PS2: use image set in the state object.
PS3: fix derp
PS4: it's too late - sorry
PS5: int ain't null

Change-Id: Id4055a9a811f42d411abaf740c7a6c8e8c240e9c
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)" into jb-mr1
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1