Merge tag 'android-5.0.0_r5' into HEAD

Android 5.0.0 release 5
frameworks: Add inital Evervolv Toolbox setting.

 * DISABLE_TOOLBOX is going to be used to bring the users experience to
   as close to stock experience as possible.

Change-Id: Ie106f0e16bccab4aa81abc64e92bf9751c21de20
Add framework definition to include Torch

Change-Id: I21de929089b06e5022f90c1fab6228a543102a19
Configurable 0, 90, 180 and 270 degree rotation

 *Modified for toolbox disable.

Contributor: jonasl
Change-Id: Ia1859c51d71ef9d01cec2d13c6468ed89c6ac53e
add am_pm statusbar clock choice to toolbox

Change-Id: Ib4d63f6218ccec553415139ebaf5d35ee4bca7a2
allow forcing HighEndGfx mode

people have already started fipping the lomRam prop to enable
transparent status bar, this will enable it with fewer
repercussions

Change-Id: Ied6de65276425fa1e7db0bf9da35f1932a355172
Support for fake density

Change-Id: Ia2c7a7ba3af4242a2abbe503becae5519ff1f7e5
Yes, I'd like a dessert...

 enable the dessert case dream by default

Change-Id: Ib020dffd83b062d7381cdeffe45d82e5dad8c409
SystemUI: bring back battery options

Change-Id: I1ab289c25a806f5994c14a11593d1d9a7818d1b8
SystemUI: 6-bar signal icon sytle option

 - updated for lollipop

Change-Id: I13f53c9500b44286c1cb93fd27ad1275b1d29484
Extended Powermenu (Squashed)

Port reboot option to Power Menu.

  * Ported from ICS, including hot reboot (overlay still needed).
  * Quite a bit changed from ics -> jb, so i just did this manually.
  * drewis - manual port from pm to power for ShutdownThread for 4.2
  * elginsk8r - manual port from 4.4 -> 5.0

 This is the 2nd commit message:

power menu: fix a few things that got lost during reboot options port

* Shutdownthread stuff already applied

 This is the 3rd commit message:

Extended Power Menu - Screenshot

This adds the screenshot option to the device power menu and leverages
the built-in ICS functionality to take the resulting image.

It is dependant on the Extended Power Menu - Reboot commit

 This is the 4th commit message:

power menu: use only stock options when DISABLE_TOOLBOX is set

 This is the 5th commit message:

fwbs: Add support to individually hide power menu options.

 This is the 6th commit message:

frameworks: Add a setting to specify the screenshot delay.

 * Only works from power menu
 * Defaults to 1 second (1000ms)

 This is the 7th commit message:

Remove GB alert drawable from reboot menu

 This is the 8th commit message:

Framework: fix reboot dialog title for tablets

Change-Id: Iea99bc542b20df728965233a94de6b1b172ef974

extended powermenu: fix usage

 - define options in overlay
 - add GLOBAL_ACTIONS for reboot and screenshot

Change-Id: I1e09f032c048c19e5bf480f3148472219382f2a3
Add an option to change the device hostname (1/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I44e4771f4415a32fe66867d4dd90f1ad138341e1
Policy: support for volume wake/music control

port from ics:
commit 153e40d29fae542b9c70f994d64e4c043645a523
Author: Sven Dawitz <sven@dawitz.de>
Date:   Sun Jan 8 21:32:43 2012 -0700

    add lockscreen volume button music control (framework part)

        *long-press vol up for next, vol down for previous
        *screen must be off to work
commit 7cee3218014293da1d131f3adfd0a53c1b23a473
Author: Andrew Sutherland <dr3wsuth3rland@gmail.com>
Date:   Fri Jan 13 22:03:51 2012 -0600

    volume button wake
commit 238568c72f140708d59db28ec520b15a35f12369
Author: Andrew Sutherland <dr3wsuth3rland@gmail.com>
Date:   Fri Apr 6 18:03:49 2012 -0500

    adjust vol wake / music control logic

    to allow concurrent operation (short press wakes / long press skips track)
    based on patch from <daneshm90@gmail.com>

* drewis - adjusted for 4.{2,3,4} api

 This is the 2nd commit message:

PhoneWindowManager: let DISABLE_TOOLBOX remove vol/trackball customizations

 This is the 2nd commit message:

fix vol wake

Change-Id: I42c41f7ccba4cee377c31c144be1bbf2e339e875
power menu: re-color reboot/screenshot drawables for L

Change-Id: Ia20e5c5bc8296e71c2e3cec924e32319f79eed93
SettingsProvider: Update icon.

Change-Id: I9e1b540e0268643371dd95593eaefa63d4a1827d
Reintroduce button-backlight (and respective inactivity timeout)

The power manager rewrite from Change I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
completely removed support for control of the button backlights, which makes
all capacitive buttons out there stay dark. The commit message in that change
mentions it hasn't been implemented _yet_, so this fix should be temporary
until upstream does their own implementation

[RC: Updated to 5.0]

Change-Id: I6094c446e0b8c23f57d30652a3cbd35dee5e821a
Camera: Don't throw exceptions when value pairs have spaces in them

"(1,2)" worked, "(1, 2)" crapped out. Fix it.

Change-Id: I71262909280f88d930898a2bcf37d379add4fdea
Camera: Add support for QC camera features.

Added APIs and keys for all QC features. This
will enable application to get/set paramters.
(cherrypicked from commit d0c5a0ee7e9af41320fed00ff324c6d0f22eb697)

Change-Id: I68c23aaf7267645efeb4d4743b390a048292b7fd
Telephony: Set the value of min match according to one property

CTA requires to match 11 phone numbers, so use the value of the property
"persist.env.c.phone.matchnum" to set it 11 in case of CTA tests, but by
default it is 7 without change.

Change-Id: I8cd4105c06c71af1ad242858d8de474459d96ee1
Telephony: Check the length of phone numbers before use

If the phone number string is null or empty, just return
to avoid null exception.

CRs-Fixed: 399293

Change-Id: I78db37d70e38cd2782c13621f98dc25d8624bfb7