Fix icons overflowing status bar view in center clock and date layout

Based on @maxwen commits
1 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
2 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
3 - https://github.com/maxwen/frameworks_base/commit/b5f7820e50fd03522b5462777779a4520594c796

All credits goes to him.

Change-Id: I23be4b166941159d6b5891442bfcefa3678a0603
Squashed add support Tinted System bar [1/2]

https://github.com/omnirom/android_frameworks_base/commit/f1f5360b75a397bc2eeb58bf98d44cd6c141e2ec
https://github.com/omnirom/android_frameworks_base/commit/a27287480818f8442cd8a48591c36c7a0333a932
https://github.com/omnirom/android_frameworks_base/commit/0bd6c0a87af264401fcc5a4abac8537243f0e3ee
https://github.com/omnirom/android_frameworks_base/commit/b687fd0c47afe60a6922b2460f94e7fb063075d4
https://github.com/omnirom/android_frameworks_base/commit/b37b9bd14de19e57fbb1b0f8656d8d0a935aae99
https://github.com/omnirom/android_frameworks_base/commit/0310fdf9e283c6cbf05af07e7808a9881fc174a2

General fixes were also applied to make things work with floating windows and other features included in DU

- Credit/Thanks to ChameleonOs and Thinking Bridge for the base code
- Also thanks to @MuhammadAG for Actionbar implementation (Xposed-Tinted-Status-Bar)

Change-Id: I40f533dd404a02e10a85fed78123c60ffd51f387

Conflicts:
	core/java/android/app/Activity.java
	core/java/android/view/IWindowManager.aidl
	core/java/android/view/WindowManagerPolicy.java
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
	core/res/res/values/custom_strings.xml
	core/res/res/values/symbols.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
	packages/SystemUI/src/com/android/systemui/statusbar/tv/TvStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	policy/src/com/android/internal/policy/impl/SystemGesturesPointerEventListener.java
	services/java/com/android/server/StatusBarManagerService.java
	services/java/com/android/server/wm/WindowManagerService.java
	tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java
Fix MIUI carrier color [Tinted Mod]

Change-Id: I8bc47f7e4fc1f155d5083e936d08d6e9897f43ed

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Allow to determine dominant color for notifications icon [Tinted Mod]

this also fix current color after screen off

Change-Id: I7af3210a67219cf6af85852a108081aa784681e9

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarTransitions.java
Tinted: Navbar color change fix

Change-Id: I9943122425fb0099f553f65abf6411627995ee7c

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
Fix statusbar/center clock icon showing up without any notifications

This has been a hot topic in the G+ community with users that can't read....glad to have this fixed.

Change-Id: Ieecefc61f566a60d231f4be3111aa20bffd9d04a
Take date into account to not overflow icons in stock or center clock
- This commit complements this other: https://github.com/cristianomatos/android_frameworks_base/commit/0f1165e0149850107314b9781acf2c2b9994f8e7

Change-Id: I469aedf2abb811edbe180a397480829f33ea3245
Tinted: Speed up with compromise

Change-Id: I64776d4a9cb36a84a2637fab2a61a0eb4cd1862e

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Dynamic Color Changer Tile [1/2]

To do list
- Add QS flip animation
- Add longpres to switch between screen color and action bar color

PS2 - Added QS flip animation
PS3 - Added ability to switch between screen color and action bar color
PS4 - Fixed mdpi icon (photoshop made it look like shit)
PS5 - Fixed other icons as well

Change-Id: I0069940cd8ed3fdc674b908746f6710b672aaac1

Conflicts:
	core/java/com/android/internal/util/slim/QSConstants.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
Rename the DCC tile (see pics below)

Screen Color enabled - http://i.imgur.com/XXrwiRj.png
Action Bar enabled - http://i.imgur.com/2bFeftc.png
Off - http://i.imgur.com/53nIhkZ.png

Change-Id: Ic166ba21a4d5d57ec313981fdc8cd23c23197bfe

Conflicts:
	packages/SystemUI/res/values/strings.xml
Halo: Fix NPE FC after tint

Change-Id: Iebf2ba4cb6b6c6d423383c8c83fddfa0a1e57cf0
Tinted: speed up more

Inspired from here https://github.com/DirtyUnicorns-KitKat/frameworks_base/commit/ae2214b3b5d6e94056cc5c0b42e330451182eba1
Credit to Alex Cruz

Change-Id: I65b971f32cc6053577fdde09f70804240fc708fa
Revert "SystemUI: Fix missing top task in recent panel."

See http://review.cyanogenmod.org/#/c/74397/

This reverts commit 0616667d980db1aa32d6dd1956d6fc2e232cf5a3.

Change-Id: I0d024a3b75204521546380c955680cb4c8c9468e
Frameworks: clean up heads up text color code

Change-Id: I5998876f3abd3e928d6cf263b3b9dbebd7511182
Fixing memory leak in RenderBufferCache

In our devices with higher resolution we have observed a memory
leak in the HWUI code. When there is GC or tree modification
and buffer size is greater than the default size, we make sure
buffer is deleted.

Change-Id: Idf7052ccaf43c8a784ce0e7bdab336dca29bffd8
Signed-off-by: Samsung <aosp@samsung.com>
Revert "Avoid collision with RIL constant 1138, used in some Samsung devices for RIL_UNSOL_TETHERED_MODE_STATE_CHANGED."

Later Qualcomm RILs will use the STK_CC_ALPHA_NOTIFY message, and this
causes the radio to parse the parcel in a very incorrect manner.

This reverts commit 8e3fee66ff3a1d55f1aa69df7b52fdcab33f1f82.

Change-Id: I94e2867f130b88c4c9eff17293edd0b64dda516a
Update SET_ACTIVITY_WATCHER protection to signature|system

Change-Id: Iabf8ad2fc4b298e96b494917a140e0e4ea4e26e2
PackageManager: Add optional prelaunch check step

This ability is protected by config overlays.

Change-Id: I0c80bd9ec6bda3d21557aaa9503f05ff86adf434
Provide non-interactive APIs to BackupManagerService

- Add return codes for backup and restore in FullBackupRestoreObserver
- Add non-interactive backup and restore methods in BackupManagerService
- Add per-file filters for backup in BackupAgent

Change-Id: Ic1dfd5d144507263baad76f7088a52eab2fb283a
Support full size application screenshots

Add optional width and height parameters for
ease of capturing entire application screenshots

Change-Id: I6d154f6b33bfb8ec90e3757a40382c1dc6feaad3