SystemUI: handle contact not found and close inputstream

If the favorite contact is deleted, SystemUI would crash trying
to get the information for it.

Additionally create the BitmapDrawable directly from the inputstream
and close it afterwards.

Change-Id: Ic83df9adcc3e3a4c8ea493811838755dc69c1931
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Revert "Solve three memory leaks related to PatchCache"

This reverts commit dd28e60db27582a2634143dbb46dad67058a6625.
[Navigation bar] Allow "right to left" gesture to launch search panel

Symptom: "Bottom to up" gesture can launch search panel in portrait, but "right to left" gesture CANNOT in landscape.
Root Cause: Not handled.
Solution: Set swapXY to handle this in landscape case.

Change-Id: I1793280b3656af6912e6b4583b08e80a0a38e44a
Fix graphics corruption caused by HWUI caches

Some caches(PatchCache, TextureCache, PathCache) for HWUI
uses deferred removal for their cache entries even though
actual resource objects are immediately freed by
ResourceCache.
For this reason, the uniqueness of a resource address in
the caches is not guaranteed in specific cases.
(Because malloc() can return the same address when malloc()
and free() called very frequently.)

So it can be possible the cache have two cache entries for
two different resources but the same memory address.
(Of course one of the resources is already freed.)
It also can be possible mGarbage vector in PatchCache has
duplicated addresses and this can lead to duplicated free
blocks in the free block list and graphics corruption.
(Deferred removal was implmeneted based on an assumption of
unique resource addresses.)

So this patch makes sure resource objects are freed after
the resources are removed from the caches to guarantee
the uniqueness of a resource address and prevent graphics
corruption.

Change-Id: I040f033a4fc783d2c4bc04b113589657c36fb15b
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
Fix AOSP build - DO NOT MERGE

Change-Id: I42b420c2ce89ce364a2809b28b827964e6923fa1
Adds ability to answer call with hardware HOME button (preparation to winter time)

Change-Id: Ic11449acf87c6b4d932142b74158af7441658b3d
FWB: Custom scrolling values 1/2

ported/modified from https://gerrit.omnirom.org/#/c/4251/
originally written by Yanuar Harry <ai.the.smarties.physics@gmail.com>

AICP:
PS2: fix build
PS3: Use default values as defaults

Change-Id: I7f23fe736507f836137c5d6dc0b5fd2ad4a95462
jingles-recents: back to black

PS2: remove holodark and set it default to all conditions
PS3: correct font color
PS4: fix derp and whiten out recents_callout

Change-Id: Ia2b93390353e9d09c78f0ed5d27c1bdcfebb3466