base: fix init handling of tinted system bar

force same behaviour like after changing setting

PS. 2 :
   fix initial background color

PS. 3 :
   make sure initial gradient is 0

Change-Id: I87eddcaa5223c1af15fa8c089f22ed9cb4774f7b

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
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/SignalClusterView.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
Base: Floating window with multitasking

basic floating window are taken from AOSPA (HALO) by @D4rKn3sSyS

Drawables courtesy of @Alex Cruz thanks to him :)

with heavy change to get this work for multitasking

this feature, has ability to:
1. Moveable window to various position
2. Scaling window with 2 finger like zoom in/out
3. Double tap in actionbar or above window to fullscreen or back to floating window
4. Automatically resize when Snapping into one of side (Top, Bottom, Left, Right)
   (taken from xhalofloatingwindow by @zst123)
5. Automatically switch focus from other app (taken from multiwindow by @xplodwild)
6. Unlimited floating window app (depends on RAM)

this is still under testing, to make fully works
so if there any bug because of this, DO NOT REPORT INTO OMNIROM JIRA

to make app launch using Floating window feature

you must add Intent.FLAG_FLOATING_WINDOW
before start an activity

for example you can look at https://gerrit.omnirom.org/6515

need https://gerrit.omnirom.org/#/c/6561

PS.17 : fix scaling
PS.18 : fix layout calculation when rotate
PS.19 : support minimize/maximize window (see App circle sidebar)
PS.20 : fix previouse app
PS.21 : rebased due to changes in 4.4.3_r1.1
PS.26 : rebased
PS.27 : rebased
PS.29 : rebased

Change-Id: Iad00c239de7d66e8bb45205ce626d4f08417b7cd

Conflicts:
	core/java/android/app/Activity.java
	core/java/android/app/ActivityThread.java
	core/java/android/app/IActivityManager.java
	core/java/android/content/Intent.java
	core/java/android/view/Window.java
	core/java/com/android/internal/widget/ActionBarView.java
	core/res/res/values/custom_strings.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/am/ActivityRecord.java
	services/java/com/android/server/am/ActivityStack.java
	services/java/com/android/server/wm/WindowManagerService.java