SystemUI: show statusbar icon if quiet hours is active

Reflects the 3 active modes we provide as status bar icon, similar to
android L.

Change-Id: Ic32242b0843f44de72174ee768ef04ee0f4535aa
fb: Show heads up at the bottom of the screen (1/2)

Due of user requests and indeed especially on hw key devices for a better
workflow we add an option to show heads up notifications on the bottom instead
of the top.

Animation we leave as is due that if it slide from the bottom into the screen it happens
to often that the user accidentaly interacts with it. If it comes from the top of the
container we add, the user has enough time to realize it. Sometimes a ms can make a big difference.

As well this commit fixes the wrong gap on the top if user boots up directly
into immersive mode.

PS:
- if IME keyboard is showing show the heads up on the top to do not disturb the typing.
PS:
- NPE if updatePosition is called to early from the system.

Change-Id: I5ec2ab97f3309e9e690bc60c9f5cfd19d4dab516
Skip broadcasting to a receiver if the receiver seems to be dead

If an application that has a broadcast receiver is killed
during broadcasting, thread variable of ProcessRecord becomes null
so that IIntentReceiver#performReceive() is called
in BroadcastQueue#performReceiveLocked(). But if binder driver has not
noticed the death of the application yet, it can't throw
DeadObjectException. After that, binder driver notices. But it can't
notify DeadObjectException to the caller because performReceive() is
async call. So broadcasting keeps on waiting for finishing
performReceive() until timeout.

This change checks the death of the application before calling
performReceive() and skips broadcasting to the receiver
if the application has already died.

Change-Id: Ifa02b8b1a7e7b6fd314de90fedff5b7a5326825d
[HWUI] Fix invisible views are still shown in popup window

Symptom: Invisible views are still shown in popup window

Root Cause: glClear isn't called if there is no draw command

Solution: Even if there is no draw command, it still calls glClear
          by startFrame().

Reproduce steps: App set one view in a popup window to invisible,
                 it will be still visible.

Change-Id: I36bc7b752434ad388fbb80ea63341ac778f48d35
Restore untrusted glStencilMask value on resume after functor

Fixes an issue where the stencil buffer is corrupted
(used in overdraw debugging, path clipping) when used in
conjunction with a HW accelerated WebView.

bug:15023700
bug:16465551

Change-Id: If201b503931380f7107a34e9a9a2f877a50f72b1
[Bitmap] Add null pointer protection in Bitmap_sameAs()

Symptom: SkBitmap::getAddr(int, int) may return NULL due to unrecognized config
(ex: kRLE_Index8_Config). This will cause memcmp method to crash. Since bm0 and
bm1 both have pixel data() (have passed NULL == getPixels() check), those 2
bitmaps should be valid (only unrecognized), we return JNI_FALSE to warn user
those 2 unrecognized config bitmaps may be different.

Change-Id: I6970c27de412110a3035d0a783112c4cd3ebc35b
SlimActions: add new actions and cleanup

A bit cleanup.

As well add 4 actions:

- camera intent
- play/pause music
- next music track
- prev music track
- wake up device

As well check for system ready on the other audio actions which are already present.

ToDo: One of the rare classes which are very bad documented. We need to add code comments
ASAP

Change-Id: Ib327b39fbd709c6b77fca5febe97712348937c40
SystemUI: italian translation

Change-Id: Ia32ddb47b43ee61de53efdcdd1b5014bbefaa8d5
Framework: Quiet Hours System Sounds (1/2)

Change-Id: I52c79a9fec98b5c75f88fc644766e830d5f6148e
Framework-base-core: Italian translation

Change-Id: If21ad6430295a1557acf0b22b28b258a471845b6
SystemUI: it Translation polishing

Removed untranslatable rows.I copy/pasted them without
translating but after seeing some Josue's reviews about
other commits i'm realizing that "cleaner is better" lol

Change-Id: Ib0dd24940f230799235a1f46aaeb773b4ddaaf56
SystemUI: Add missing hdpi resources for left gravity recent panel

Change-Id: Ic2915cb7be01be9e66620e4d7edc530e0d75b404
SystemUI: FR Translation

Change-Id: Id1b6943dea0cb45e855db655227536cbf1158d25
Core: FR Translation

Change-Id: Ifced4dfcfc83cf08afdbb47913c2c12c3adbb6ea
Keyguard: it translation string add

Added a missing string for the discharging percentage
in the lockscreen.

Change-Id: I433ea096859ebb4714a5773564d5f35e45e65077
FB: Slimrecents background color && transparency [2/2]

PS: now setting sticks through reboots and TRDS state
        changes. also, add reset to default color option.

PS: when resetting to default, use TRDS (png) resources
        instead of custom color

PS: remove LSN dependency

PS: make default background setting cognizant of
        recent panel gravity setting to display
        correct background resource
Change-Id: Icf0259ce45d416364d6e7a7a8c2038f6c4c0cbde
SystemUI: add missing status bar image

PS: resize to hdpi

Change-Id: I5c3218a8e819e8c047d5e2371d866bfd97a2e0fe
Keyguard: FR Translation add missing string

Change-Id: I3eae88f2e34569b0bf80e717afe118f7542cb53f
SystemUI: PL Translation

Credit goes to @xenu for this.

Change-Id: If7d3b12a5895c2527a1d2fb1385a3085427a47ce
QuickSettings : Register/unregister cast tile one time

Don't do these operations every time the parent is visible/invisible,
it causes jank.

Repro:

Turn on wifi on a network w/ chromecast
Swipe down quick settings panel really fast

Change-Id: I3dfcd3610abe96e1bfdab06ef3b876ccf5140ceb