SystemUI: Fix notification header disappearing on tablets

For some reason, the notification panel header has weird dimensions
when it has anything else than its original ColorDrawable as
background, and only on tablets.

We workaround this by not changing the drawable until requested.

Change-Id: Id76a5dcacf59c35b2e49681d6eeb4e828f7cbc58
SystemUI: Cleanup and enhance notification drawer header

- Crop properly images on tablets and landscale
- Use a separate layer instead of breaking header background
- Fix bug where you couldn't turn header back on after turning it off
- Added a gradient overlay

Change-Id: Ife399b82a3f272fb2ecc8e738c5f274f7682a556
Merge "DO NOT MERGE: Maintain binding to crashed listeners." into klp-dev
Changed contextual notification panel headers

See images - http://i.imgur.com/PupEJ5p.jpg

Change-Id: If848d162523610946c317919d2f6664d891906e6
Add evening time to header

Change-Id: I5d9a41d92803d64f67cf2fb9dd2c4294a947efc3
Merge "Handle provisioning APN by turning off/on data." into klp-dev
Import translations. DO NOT MERGE

Change-Id: I2a993d03ba28b42348c201919c4d1ab6bae23445
Auto-generated-cl: translation import
[DO NOT MERGE] Fix wallpaper cropping bugs

- take into account that image decoder might not
respect inSampleSize
- check rounded values so we don't have crop rects
that lie outside a bitmap's dimensions
- correctly set initial scale on bitmaps that are
larger than the screen size
- switch to using asynctask when setting wallpaper
dimensions
(cherry picked from commit e39c9a953ca11319b747b3aa79f4ccd082b775b7)

Change-Id: I43372f0bff37f139c8bc83f9956a967d0b4a8708
[DO NOT MERGE] Centering the crop by default in system wallpaper cropper

Bug: 12034934

Change-Id: Ice1b1140bd6e351dd4e520f555f245d84a645aac
(cherry picked from commit 2ab14daebac46307d2364733481edc3115bbf98c)
MediaPlayer: fix int overflow issue in MediaTimeProvider

Bug: 13394783
Change-Id: I228ded5cf198852fda867d136cd8b1aacd8b6584
Merge "Fix inverted conditional in View.setFilterTouchesWhenObscured." into klp-dev
Fix projection offset caching - DO NOT MERGE

bug:13214038

Because the caching of projection matrix didn't account for changes in
the offset flag, the flag could be ignored. Now we use both to verify
that the cached matrix can be used.

Change-Id: I193b94eaf0b98f046a6484f0866c3d25048653fd
(cherry picked from commit d04a6b15f74035fd2068f34225825b55e94521f4)
Merge "[DO NOT MERGE] Centering the crop by default in system wallpaper cropper" into klp-dev
Merge "[DO NOT MERGE] Fix wallpaper cropping bugs" into klp-dev
Merge "MediaPlayer: fix int overflow issue in MediaTimeProvider" into klp-dev
Fix loop limits.

Fixes bug 12207606.

Change-Id: I9b450d2bc2a72a1f6581147f8930188f34c85299
am 1c12f9e7: malloc some advances

* commit '1c12f9e76298c757423155ad812890d27effafe8':
  malloc some advances
am 183f97b7: am 1c12f9e7: malloc some advances

* commit '183f97b72faf7a0f45ad66e1b3fd9a4343cc7482':
  malloc some advances
Merge "Fix loop limits." into klp-dev
am 6eb28103: am 183f97b7: am 1c12f9e7: malloc some advances

* commit '6eb2810318262ff36014c52384ed3cdea19bd34e':
  malloc some advances