base: added NPE check for lockscreen see through and mPowerRequest

java.lang.NullPointerException
at com.android.server.power.DisplayPowerController.updateButtonLight(DisplayPowerController.java:1727)
at com.android.server.power.DisplayPowerController.setButtonTimout(DisplayPowerController.java:1796)
at com.android.server.power.PowerManagerService.updateUserActivitySummaryLocked(PowerManagerService.java:1404)

F/SystemServer(  711): BOOT FAILURE making Power Manager Service ready
F/SystemServer(  711): java.lang.NullPointerException
F/SystemServer(  711): 	at com.android.server.power.DisplayPowerController.requestPowerState(DisplayPowerController.java:786)
F/SystemServer(  711): 	at com.android.server.power.PowerManagerService.updateDisplayPowerStateLocked(PowerManagerService.java:1750)
F/SystemServer(  711): 	at com.android.server.power.PowerManagerService.updatePowerStateLocked(PowerManagerService.java:1193)

Change-Id: I4fba4a30ede28627e01e0ce4656a4d0d37f5bfd1
[1/2] Base: NavigationBar customization

Includes:

- Allows user to customize navigation bar.
  Features :
   - Choose from 1-6 # of buttons
   - Re-arrange / assign buttons
  Id: Idc9f5f401f15d207504e49de47666bb5510a06ca

- Navbar : Rework logic for determining orientation
  This patch introduces better checks for hybrid ui's.
  This should fix issues of small buttons due to incorrect ui determination
  Thanks Rolf Arne Schulze for testing :)
  Id: If5b61dc4764a98deedb5b801d11451fed2488cba

- Make navigation bar ready for per-user configuration.
  Also clean it up a bit.
  Id: Ic10bd161fce53bf30048a0cb927dcf1e2bfa7774

- Fix layout on N10
- Remove uncessary padding and logic
- Phone fixes
- Phone padding fixes

PS6: Added RTL support (http://review.cyanogenmod.org/#/c/55059/)
PS7: Navbar: Fix MDPI & HDPI landscape layout (http://review.cyanogenmod.org/#/c/56098/)

OmniGears part: https://gerrit.omnirom.org/#/c/3156/

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Change-Id: I5bcdd53e8344e8ce137088544a4a3964655c53af
Power menu: standarize capitalization for Screen record

Change "Screen Record" to "Screen record" to match the standard menu
styling.

Change-Id: I61c7adfe06c1d5ebc53c1c0b15b76e6d28a749f4
SystemUI: Add missing sound permissions for screen recording

Change-Id: If948aabfd5c2e09f192f12aa02830d39346d2c6c
[1/4] base: Audio Themes Support

Change-Id: Id80dc7f0bcbd39b5305d6ea0fb8bd9fa516f3634
Merge "SystemUI: Add missing sound permissions for screen recording" into android-4.4
Merge "[1/4] base: Audio Themes Support" into android-4.4
base: tweaks to support force usage of soft keys for devices with capacitive buttons

Two minor tweaks to support that use case.
For devices with capactivive buttons disabling those buttons
need two steps

1) disable buttons backlight - dark mode
2) settings - buttons - custom actions and set all buttons
to "no-action". This fix is needed to get a working home button
and working "long press back to kill" for that setup

PS5
better solution

PS6
cleanup

PS9
whitespace

Change-Id: I563e877580c09df45383e4485c6cbb965aca0b31
[1/2] Base: Disable safe headset volume warning

Settings: https://gerrit.omnirom.org/#/c/5203/

PS7
adjust defaut value

Change-Id: I83e2f180a872ccdec99ef44c4455f6173da340cc
Merge "Power menu: standarize capitalization for Screen record" into android-4.4
Merge branch 'android-4.4' of https://github.com/omnirom/android_frameworks_base into android-4.4