Themes: add ability to theme quick settings battery tiles

This is to make the battery tiles more uniform to the rest
of quick settings and also allow the background to be themed

http://i.imgur.com/AA5bkMK.png

Change-Id: Iec03572a0fa3619d2652f30b6c260a278ed0c86b
HeadsUp: Add heads up quicksettings tile. (1/2)

Change-Id: Ibc6ffffb48ac1831ee5fe398577023960e0e79d4
Merge "Themes: add ability to theme quick settings battery tiles" into cm-11.0
HeadsUp: Respect system decorations when adding view.

    - FLAG_LAYOUT_IN_SCREEN ignores system decorations, so
    a heads up view in landscape would end up underneath the navbar

    - FLAG_LAYOUT_NO_LIMITS allows the window to exceed the screen
    limits all together

      Removing both these flags makes Heads Up respect both system
    decorations and the screen limits.

Change-Id: I6f111e1c5701d493979be0cb596f11bc1b437fda
Lockscreen Notifications [1/2]

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing

This should still be considered as beta, even if it seems to work very well for me.

Change-Id: I4df786ba1f0c154dfd933c73e52e48234f50668b
Lockscreen Notifications: Make "wake on notifications" user configurable

and some other small changes that hopefully will improve battery live

Change-Id: I78993d4c8804bc4d980b54a9d0551cc23708837a
Lockscreen notifications: make height user configurable [1/2]

Change-Id: I01b3517bbb0c36f6939eb965ce97f5b8b023fa6b
Lockscreen Notifications: fix possible NPE

Change-Id: I2d72cfbaa3419016d524ccb4871202e3a70a6ff4
Lockscreen Notifications: always scroll to bottom so one sees the newest notification first

Change-Id: I5c71fce01c5255bf2ef9ba05f9fb749fc23c4b4c
Lockscreen Notifications: several fixes

- fix notification not responding when removed and added in a short period of time (e.g. gravity screen start/stop)
- just unlock screen on notification click when there's an activity to start
- fix notification hide animation
- just wake screen on reposted notifications when it's not ongoing (wake on notification before made the device stay awake for ever when a download/countdown or something similiar was running)

Change-Id: Iff752a0a6cb1cbf4ce6c936fc1d251ee2a527756
Lockscreen Notifications: just scroll down in "showAllNotifications"

Change-Id: I0fbe9731d2264f44daca68bc0bde78fe6903ec57
Lockscreen Notifications: Copyright

Change-Id: I578499b0ac9a8396b05d5a6d46245edde586c34b
Lockscreen Notifications: make offset top user configurable & add privacy mode [1/2]

Change-Id: Ie51abaf1ccdeb2153c5dcca271787b7cf3168458
Lockscreen Notifications: Fix possible NPE

Change-Id: I6ef018eb5df10ff09fb69cc9aa2c8c614911959a
Lockscreen Notifications: make width dynamic (WRAP_CONTENT)

Change-Id: Ie58af879c508430c0cf412031d04038c24f33596
Lockscreen Notifications: make animations a bit faster

Change-Id: Ibe58795b45ce0bf7fb88aed77dee9667e333cdeb
Fix ongoing notifications reappearing when hidden

& some small animation tweaks again.

Change-Id: I5add0a6b48d33fb712c7de82633cd073e288d311
Lockscreen Notifications: fix notifications disappearing on orientation change

Change-Id: I9d1b23d7681fcabcccb77d7ced2b5f4e9b435931
Lockscreen Notifications: disable dynamic width for devices <= xhdpi

Change-Id: I05e8e2c446c6098789a20b2b001851d7a0d159fb
[1/2] Base: Lockscreen notifications: Allow apps to be excluded from being displayed

&& respect quiet hours

Credits to 0xD34D / ChameleonOS for the original implementation for Active Display

Change-Id: Ie0df1faedb275b1cf131d75d69d9d9cafc828dd9