Add BAMF theme engine

Thanks to travp624 @ TeamBaked for originally porting this

Change-Id: I9dd9347ac62e3b1fb49a4562d84eb7b295cdc2b2
FW: Missed call breath & MMS Breath
Credit: Bajee

Change-Id: I076b18193d7df5e726813ade5110a78968d0e6ea
FW: Halo
Credit: Paranoid Android

Change-Id: Ic47c74e4b8735b2461a1d54be3ba8cdd30c3d7d6
HALO cleanup

hdpi and mdpi drawables were inconsistent, if you plan to use HALO on
lower res devices you must reproduce them.

Change-Id: I2746837bacd60c3079ace4c7523a68b8cd415f5f

Conflicts:
	core/java/com/android/internal/widget/ActionBarView.java
HALO: new drawables for hdpi and mdpi

- scaled down the xhdpi drawables properly for hdpi and mdpi
- removed some old and unused halo pngs

Conflicts:
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_normal.png
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_pressed.png

Change-Id: I90e8052453b6f4cb62657bb5c59dc2382088271e
HALO: Option to pause the underlying app (1/2)
- adds an option to pause the active app when using HALO
- this is enabled by default for devices with low memory
- (currently: <640MB RAM available to the kernel)

Change-Id: I7fdf02ec1dc2da0de35925dbdd0e06ad4a37719a
Credit: tonyp
Reworked transparent layer
When a halo'ed window is opened, the transparent layer will be always visible. It will manage the background dim.
This fixes some apps dimming its sandboxed processes (like chrome).

LayerActivity manages its own lifecycle. When it's focused after paused it finishes itself.

System processes (identified by "android" pkg in SystemUI and system uid in Activity) don't use the layer and still use their own background. This
has been kept this way to not interfere with their activity.

Change-Id: Ic395db4b9c31f6b839d86c7bd9fd8507c7905241
Credit: Beerbong
Fix little derp causing visual bug
To reproduce, disable halo, and press "clear all notifications" button

Change-Id: Ie5d4ebdd65224e114fd9a5c9aeec878a3e42f029
Credit: Jesus David
Halo: Add master switch to disable Halo (1/2)
-Port master switch from @Der-Schubi.
-Fixed Halo not showed at first notifiction pulldown.

Change-Id: I07ee32b66c1e8c4f832f436bf8c38925093fcaf4
Credit: Der-Schubi
Don't assume any ringtone is present on external storage.

If that assumption doesn't hold true, the user will lose his ringtone
and won't know why.

Change-Id: I89409e1351792d020c5458f5104f4bb9f2a040f2
Expand Profiles [1/2]

This commit expands the profiles power menu entry in the to be
- Always hidden
- Hidden only on the lockscreen
- Always show [not applicable to secure lockscreen]

Change-Id: I2e7262abc4043523150e96b330f92c8c042d1d2a
Lockscreen : Fix widgets disabled

Currently, when keyguard widgets are disabled via the DevicePolicyManager,
a default widget if specified via widget_default_package_name/widget_default_class_name
is added on the main screen, and if not successful the default status widget is added.

However in its current state, each cycle of the lockscreen alternates between the two widgets.
Reason is, the default app widget is constantly recycled on screen power cycles, and in such events,
when checkAppWidgetConsistency() fails to add the widget (since the id is no longer valid), it toggles
back to the default status widget, and resets the stored id. Next cycle a new id is allocated and it works
and so on ...

This patchset addresses this issue by not removing the default status widget if not necessary, hence
preserving its id and fixing the toggling issue.

Change-Id: I6b21d18346fed5accc72141097939c92ee9aaa3c
Add Statusbar Quick Peek [1/2]

Adds the ability to peek at the statusbar when hidden
by swiping down from the top edge of the screen.

PS 1/3 : Fixed Derp!
PS 4   : Added Fullscreen app support!
PS 5   : Added Pie Detection
PS 6   : Derp forgot the TOP Flag!
PS 7/9 : Some fixes

Change-Id: I4beda91e21518cd2fa391ff1b0fe23ea8e24370e
Annex styled Fonts - Condensed Font
Launch music player on headset connect
Launches the default music player when a headset is connected

Change-Id: Ia7ae372d3a4d316042730f0bab53229ab656abae
Credit: CyanogenMod & Danesh
Don't bring home to the front if we're opening a floating activity
Fixed build error...
Cleaned up some stuff...

Change-Id: Id4aa73b612046f5a8aad6e1781b6e59e9de956a5
New wallpapers...

Change-Id: I7f1ae682161fea3aea8f15daae1bea5c24955af6
FW: Forgot these two spots for wallpapers...

Change-Id: I3002fb3aab3e0e3abf11b81f9c162159f9d1be76