Fix my derp

Change-Id: If1039fa83e210ee66a6a6146d29dc65ec056a69d
Merge "Fix advanced reboot" into lollipop
[1/2] frameworks/base: Battery and Notification Lights

PS2: *) Add back a few missing pieces
     *) Do not clear light state in onPanelRevealed(),
        update lights on ACTION_SCREEN_ON instead

PS3: *) Wrap long lines
     *) Disable config_multiColorNotificationLed by default
     *) Revert config_defaultNotificationLedOff
        from 1000 back to AOSP default of 2000

PS4: *) Clear lights in onPanelRevealed() if
        keyguard is not active.

PS5: Coding style tuning

Pulled together from:

Author: DvTonder <david.vantonder@gmail.com>
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Mon Nov 4 00:57:51 2013 +0000
Framework: Port CM9 features to CM10
Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb

Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Sun Dec 8 15:24:41 2013 +0700
BatteryService: fix FC on boot until battery stat is present
updateLightsLocked() can be called from CM's added SettingsObserver
when battery stat is not present, causing an FC and a loop until
battery stat is present.
Change-Id: Ic4438fe50e98f1aa05ae1d0d26240bf9410fd92f

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Tue Dec 31 16:22:05 2013 -0800
[2/2] Framework: instant led test
Adds support a new notification extra boolean
EXTRA_FORCE_SHOW_LIGHTS.  Used by settings
notification light picker to force lights on
when the screen is on.
Change-Id: If0a42d32b28fe8c02ef5f7dd148db7eb478fac17

Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Apr 24 11:09:55 2013 +0200
Allow creating custom dialogs in DialogPreference.
This allows creating non-AlertDialogs while still using the click and
state handling of DialogPreference.
Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Mon Aug 18 04:56:28 2014 +0300
Add support for single color notification LED (1/2)
Change-Id: I367af77036da9e87c6dd0df552ce4c56d945a44d

Change-Id: I564fdb6ca6c5bbcf890afa4b9a2f9fa7bf8b9604
framework:Thread synchronization for UI update

Issue : Framework reboot was observed due to out of sync between
        two threads which inturn causes Null pointer exception
        while updating airplanemode.
Fix : Handled Null pointer exception and the crash is not observed.
CRs-Fixed: 570122

Change-Id: I2e969f6e7726ffcf8648b366ebb54cb2b0afc292
Merge "[1/2] frameworks/base: Battery and Notification Lights" into lollipop
Fix advanced reboot

Change-Id: Ie2d240069e614a039f2c5e645d5f02725bfac313
Add a HAF access permission

This is signature protected, and extremely dangerous since it
grants system GID.

Change-Id: I2528813de9341187f18ef708e7251b4e5e4003a3
Merge "Add a HAF access permission" into lollipop
Merge "Add Profiles." into lollipop
Add Profiles.

Change-Id: Id195de6f8c0b1cd08fc0c32b4347c7c97c347bb1
Profiles : Global actions (Power dialog)

Change-Id: I9c7c5440b7b893eafefcfb6421ab6e7fec7401df
GlobalActions: public CharSequence getLabelForAccessibility

Change-Id: Ia600163654c9486a09e0cc632d6c8a4e964edda0
Profiles: Fix global action for profile

Change-Id: I29f568bf00a30131ceeae819654a8000d727713b
Merge changes I29f568bf,Ia6001636,I9c7c5440 into lollipop

* changes:
  Profiles: Fix global action for profile
  GlobalActions: public CharSequence getLabelForAccessibility
  Profiles : Global actions (Power dialog)
platform.xml: Fix syntax error

Change-Id: I1c2a5b2cce8deaccf0c5e120cf923723a8f9acfd