Keyguard: fix NPE setting lockscreen wallpaper

After boot the view might not be laid out and so getWidth() and
getHeight() return 0 and will cause a NullPointerException in
createBitmap().

Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Change-Id: Ibacf4199a69709dc34d21695732c2a5360533a23
More Heads Up fixes

PS2: more

Change-Id: I8da6ff46986fade8c43cd8966606ded031e4348e
Add Heads Up toggle

Drawables from CM

Change-Id: If5b09e5e2c3711bdef69045398115f368c7e738c
Revert "Bye Bye Holo Blue Light"

This reverts commit 2d1d3e7a35b5946d0dc0938db711ae5c6a35ce78.

Change-Id: Id5525193ec5c579bd74c4adc8de2ab7cb81d8e09
SlimRecents: Rework show top most task feature

recently introduced this feature needed a bit rework. Basic changes

- do not call settings provider on every preload to prevent high IO work.
  Use our observer for that
- Use internal flag logic to mark topmost task
- Move interpretation of the expanded state into the card
- Due that topmost task is always collapsed do not show expanded icon at all
- Minor cleanup

PS:
- set mFirstTask to null if it is not used

Change-Id: Ifaabc035b6b9bd2d4527d5b34a1bca9c80a74e32
QS: Update heads up tile icons

The bell icon for the "on" state look a bit crappy.
Update them too look more lika a bell.

Screenshot: http://goo.gl/rC1VFD

Change-Id: I9a6a54a5ee9ac0100ebf749ee3babe02eb0e2e32
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
Fix tiles height for 4 and 5 tiles per row

Finaly I found what we missed. Now I can sleep again :).

Change-Id: I02952e9c4534d187eb2ca503b9f7630db868edb2
Signed-off-by: kecinzer <kecinzer@gmail.com>
SystemUI: Improve HeadsUp expanding performance.

Change-Id: Ifd31caca6d2eb2432772b6a63f6b545f8288f449