Add support Tinted System bar [1/2]

Modified tinted systembar to work with
Fusion rom also added Custom Color for statusbar icon support.

Credit: Omnirom for the base code

Signed-off-by: Fusion-Rom <dragon7780@hotmail.nl>
Left handed navbar: fix keyboard placement in immersive mode
when using immersive mode with left handed navbar in landscape the keyboard doesn't account for
the navbar appearing from the left and leaves an empty layer on the right, we need to use mStableLeft
so it takes its position accordingly.

Signed-off-by: dragon <dragon7780@hotmail.nl>
wifi: show devices behind a firewall that are connected to the  WiFi hotspot

* Clients that are behind a firewall, in particular Windows-PCs tend
to not respond to the request invoked by the isReached(val)-method.
Executing a ping instead and evaluating the outcome enables us to
bypass the firewall.

Change-Id: If857545c7a4d5fbc9d2dc919096a9c84e64d6877
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/fusion/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
Set AnimationScale default to 1.0

Signed-off-by: dragon <dragon7780@hotmail.nl>
Wifi notifications: notify when wifi connects [1/2]

Options:
  off (default)
  a dry white toast
  a notification
  a notification with a sound

For those of us that survive on wifi islands in small college towns this is
a nice addition

The first notification will be canceled if it happens within 30 seconds of
ACTION_BOOT_COMPLETED to help prevent startup notification spamming. 5 of the
previous connections are stored and it will update the content description
accordingly if you've reconnected to one

Change-Id: I50f00aabad692d2547f4c74bdaaae84947ba84eb

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/fusion_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
Fix Floating window black bg derp

Change-Id: Ide4232d83ec1161f8ed9964621e5f045e30ac61a
Fix gesturelockscreen not being secure

Signed-off-by: dragon <dragon7780@hotmail.nl>
[1/2] Fix Heads up show on bottom

Signed-off-by: dragon <dragon7780@hotmail.nl>
Frameworks: Ability to Enable/Disable the Lid Controlling Sleep.

  * Include logic so that if the lid does not control sleep
    it will not control unlocking of the device.  This prevents
    the case of the lid not waking the device, but unlocking
    the device.
  * Still allows the use of Smart Cover window.  Even if lid
    is not set to control sleep, waking the device with the
    Power button will display the Smart Window information.

PS4: Add import android.view.WindowManagerPolicy & Fix Build - Thanx Davor ;)

Requires: http://gerrit.aicp-rom.com/#/c/3240/

Change-Id: I83d96696fefedc19fc3bce7265a4fcf2d4c894bc

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Avoid SysUI force close due a miss check of ENABLE_HEADS_UP

@cristianomatos

Signed-off-by: dragon <dragon7780@hotmail.nl>
Themes: Force recompiling common resources when scanning theme

If a theme is re-installed multiple times and in less time than
the 3 minute timout for common resources, it is possible for the
installation to fail because it does not compile the common resources.
This is not something an average user would encounter normally but
theme designers that are working on there theme and constantly
installing updates have a better chance of encountering this situation.
We simply remove the theme from mAvailableCommonResources which will
allow them to be recompiled.

Change-Id: I04b64645157dbb1d0c26fab95c851b34bfff3f42
linearlayout: fix measurement of childrens when parent and childrens have exactly the same pixels

When children measure exactly the same width/height than the parent, any child with
width/height == 0 and with weight > 0 must be reset. Otherwise, the view will retains
the same width/height between measurements calls (that is not valid if the view changed
its orientation).

This explain the bug in CYAN-5471 when in hpdi devices the spacer view has the same
width after rotate from landscape to portrait when language is german and date beewteen
September 10-30. Steps to repro in i9100 (hdpi):

1.- Set language to german and date to September, 10.
2.- First run, the expanded bar has the same width that its children (480px the current
screen size), but spacer has 0px (because it isn't being measured by linearlayout).
3.- Rotate to landscape, spacer gains space and all buttons are displayed correctly.
4.- Rotate to portrait, spacer has the same width that in step 3, because it isn't measured
again and delta == 0;

This patch forces this views to be re-measured to 0 to match the current delta (the views doesn't
need to be expanded or shrinked).

JIRA: CYAN-5471
https://jira.cyanogenmod.org/browse/CYAN-5471
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Change-Id: Iab60337eca6ded7b2b4d57fdcc95863be461db34
Reduce carrier logo size

Signed-off-by: dragon <dragon7780@hotmail.nl>
NLP Combo feature : screen network locations

***This is just the missing part***

If Combo Provider is listening for network
locations, it will want to screen these locations
before they are sent out to clients.

CRs-fixed: 483398

Change-Id: I3156e85307b40aee9fb06b433c83153c84b8ed42
(cherry picked from commit ddbb57088ac245defa661d377408cb6985e67562)
(cherry picked from commit 53c26d1255ffca867e9446e1f4fd5b9e8cfdb7d0)
(cherry picked from commit ad1c7fe0b66211fcb0749de434a6a939d1bc1978)
 MTU should be 1358 as per 3GPP standards, especially for LTE radio interfaces.

Change-Id: I5d3601b05a41d4c59cff3b39ddfb66d00cb23c45
Signed-off-by: Stacy Devino <swylie@oceusnetworks.com>
Frameworks: clean up heads up text color code

Change-Id: I5998876f3abd3e928d6cf263b3b9dbebd7511182
'Delete application' development shortcut

Just another shortcut that enables the 'delete application' action
 in recent tasks list and in the notification area

Change-Id: Ia80882b9ec06f4dd14de1e087d29103d80fdd362
Replace default wallpaper

Signed-off-by: Fusion-Rom <dragon7780@hotmail.nl>