Base: fix logic tinted system bar

1. fix action bar make statusbar icon changes with same color action bar text
       if current action bar background is null
2. move log into each bartransition so we can track what is changes
3. make process not changing system bar color
      if current screen color is same with before (less draw)
4. always reset system bar color when launching new apps
5. fix color changes using 3rd party app keyboard

Change-Id: If53178e24caae7dff30636eda440d0e618702e3e
Base: improve color fetch calculation

this also fix calculation for device without navigation bar

Change-Id: I5ea3fb5dd18dadf1ced0255b3bf6554a7b50079c
Base: respect layout changes before sending color broadcast

currently tinted system bar process is smart enough to determine
   when system bar need to change the background color
   now this patch improve how this process is done when when there is
   layout or window changes

example:
   open app, press home button
   open other app, press home button
   open recent or Omniswitch, open one of apps in there
   open again recent or Omniswitch, open other apps
   now system bar will take responsibility to changes the background color

another example:
   open app that has many activities like G+
   open notifications menu or input a message to post
   see system bar will take this layout transition to changes background color

for a scroll view, currently still need a touch to take process, because
   "View" is not a layout transition, so there is no way to take this to call tinted
   system bar process

fix notifications icon color not update after added
cleanup unused function

Change-Id: I0c69ad963d1589d6aad7c0135ed1007cbd2b4bba
Base: fix and improve tinted system bar

this also fix :
navigation bar button color not update
action bar color extractor
network activity color not update
color progress not apply to current configuration (on rotation)
some apps FCs e.g Google Earth and Plumbers

Change-Id: I748a24ab5467a9936cbd8decb37295edaeb93f64

Conflicts:
	packages/SystemUI/src/com/android/systemui/BatteryCircleMeterView.java
	packages/SystemUI/src/com/android/systemui/BatteryPercentMeterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsBasicBackBatteryTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsBasicBatteryTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkTraffic.java

Change-Id: I748a24ab5467a9936cbd8decb37295edaeb93f64
Base: allow to determine dominant color for notifications icon

this also fix current color after screen off

Pac____
PS1-6: things and stuff.
PS7: clean up and stuff.

Change-Id: I7af3210a67219cf6af85852a108081aa784681e9
Fix clock netstats and navbuttons (Except null image)

PS1: Initial
PS2: owain stuff
PS3: owain things
PS4: clean up previous patches effected this.
PS5: reorder for mass testing

Change-Id: I3b694bb3f5897aad8eecb2d6a82b0a502cd69afb
Halo: Fix NPE FC after tint

Change-Id: I2fbb2bdfe0554d404416241c33669110b91694cf
Disable EdgeGestureService by default, speed things up [Tinted Mod]

Change-Id: I009f9806c181a20d8059d9b3fddeaaa93f254730
Fix battery (and clock) coloring

P1-6: Stuff.
PS7:   Reorganize and clean up all battery views.
PS8:   Rebase
PS9:   Last Tuneup I hope

To-Do:
    -Make sure all the views actually display well
    -Pontentially pull another gray color if bad display

Change-Id: I54da0cc8499b270aab7b829a9638686084f25e63