Quicksettings: Few misc adjustements and fixes.

* Fix sleep time tile label on clean flash boot, was showing unknown till you set it in settings.
  Initialize screen timeout with default 30 seconds (wrongly initialized with 0 that is never compared).
* Use switch statement (better performance wise).
* Bit cleanup for wifi ap tile, useless resources reload.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
QS: Fix handling of dialer checks

Fixes an issue with network tile. Previously, if SystemUI crashed the network
mode tile would be disabled per the dialer check because constructor initialized
mUsesAospDialer to false.  Now we initialize it to the value of the system setting
and set it to 0 on shutdown.

Corrects display of disabled when the user has google dialer installed. Before,
the rssiTile would default to unknown.  Now it checks if google dialer is being
used and properly sets the disabled string.

PS1: Initial implement
PS2: Fix indents
PS3: Refactor content resolver
PS4: Update commit message
PS5: Style fixes

Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Change-Id: I75cd767667924762fa432c29192674ce9c402c20
Merge "QS: Fix handling of dialer checks" into kitkat
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat
LED: Battery Light [1/2]

==Requires==
in device tree's overlay/frameworks/base/core/res/res/values/config.xml:

    <!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
    <bool name="config_intrusiveBatteryLed">true</bool>

    <!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
    <bool name="config_multiColorBatteryLed">true</bool>

PS6: enable by default
PS7: rmv public.xml additions
PS8: incompatible types getInteger to getBoolean
PS9: Works

Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Change-Id: Iadaba42c1752e31cc77804e5b0d01788724c35c8
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: I1fdbaad92263c9f983a32900e74eba1f0367902b
Signed-off-by: Arham Jamal <arhamjamal@gmail.com>
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_frameworks_base into kk4.4

Conflicts:
	core/res/res/values/symbols.xml
	services/java/com/android/server/BatteryService.java

Change-Id: Ia7b44c878426f670c157639512ff86fb9dd61c67