don't disable lockscreen widgets on low memory devices (1/2)

Change-Id: I4ed76e259d156be43b85645e1473f35b762f18d7
Drop Lockscreen vibrate option [1/2]

It doesn't make sense to keep haptic feedback on, but
disable it only for that little unlock icon.
This option didn't do anything more than that.
Let's drop it and don't confuse users.

Change-Id: I0211deea61b2d5b048deb118c30fc1397a56d3ee
base: Remove unused strings

Change-Id: Icf1a1c50679df64cc1c79e93f20a33212436505e

Conflicts:
	core/res/res/values/symbols.xml

	modified:   core/res/res/values-af/cm_strings.xml
	modified:   core/res/res/values-ca/cm_strings.xml
	modified:   core/res/res/values-cs/cm_strings.xml
	modified:   core/res/res/values-da/cm_strings.xml
	modified:   core/res/res/values-de/cm_strings.xml
	modified:   core/res/res/values-es/cm_strings.xml
	modified:   core/res/res/values-fi/cm_strings.xml
	modified:   core/res/res/values-fr/cm_strings.xml
	modified:   core/res/res/values-hu/cm_strings.xml
	modified:   core/res/res/values-in/cm_strings.xml
	modified:   core/res/res/values-it/cm_strings.xml
	modified:   core/res/res/values-iw/cm_strings.xml
	modified:   core/res/res/values-ja/cm_strings.xml
	modified:   core/res/res/values-ko/cm_strings.xml
	modified:   core/res/res/values-lt/cm_strings.xml
	modified:   core/res/res/values-nb/cm_strings.xml
	modified:   core/res/res/values-nl/cm_strings.xml
	modified:   core/res/res/values-pl/cm_strings.xml
	modified:   core/res/res/values-pt-rPT/cm_strings.xml
	modified:   core/res/res/values-pt/cm_strings.xml
	modified:   core/res/res/values-ro/cm_strings.xml
	modified:   core/res/res/values-ru/cm_strings.xml
	modified:   core/res/res/values-sk/cm_strings.xml
	modified:   core/res/res/values-sv/cm_strings.xml
	modified:   core/res/res/values-tr/cm_strings.xml
	modified:   core/res/res/values-zh-rCN/cm_strings.xml
	modified:   core/res/res/values-zh-rTW/cm_strings.xml
	modified:   core/res/res/values/cm_strings.xml
Fix memory leak in PatchCache
Patch object should be deleted when removing its corresponding cache entry
 from PatchCache.

Change-Id: Ia54a85f61417593b289c5d56f118629e0f2f5923
Initialize pointer members to NULL to avoid illegal reference

mBitmap and mTexture is not initialized to NULL which causes
illegal address access when it fails to be created from
oversized bitmap.
Cherry-picked from AOSP: https://android-review.googlesource.com/#/c/79320/

Change-Id: Iea54bec8788bc5f3a10040fdb43f416c0d41a14c
FLAG_PRIVILEGED disappears if privileged app is updated and rebooted

Since Kitkat, an app pre-loaded under /system/priv-app/ has
FLAG_PRIVILEGED. However, if the app updated and the device
rebooted, privileged flag is unset from pkgFlags. This patch
fix issue to assign privileged flag when scanning the updated
packages.
Cherry-picked from AOSP: https://android-review.googlesource.com/#/c/79511/

Change-Id: Ic24b5882f65dabdfae9cc39da3d68661bed4fc31
Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value

To be able to customize the "WiFi scan always available"
setting we need to set a default value.

Change-Id: I3673f2613ab9b6a947aed7e29d4cc876140c2180
Fix incorrect name in eglSwapBuffers log wrapper

Change-Id: Ica8bae5540e51ce96ab35523049d61a9c621a2da
Don't confuse stat and stat64.

Cherry-picked from AOSP: https://android-review.googlesource.com/#/c/79462/

Change-Id: I45e65036d86c58943b9c273777f3f8be79a6966f
MediaFocusControl: Deny audio focus if notification stream is 0

Previously audio focus would be granted regardless of notification
volume, meaning that if notifications are muted the media stream would
still be dimished for focus. By checking if STREAM_NOTIFICATION is 0 and
if a notification stream is requesting focus, this is no longer an issue.

Change-Id: Ie10a64e58ce77174a3bbdeaa936646d40c24404f
Signed-off-by: Evan Anderson <evan1124@gmail.com>
SystemServer: Do not start Atlas Service on lowram devices.

Provide an on/off switch to control atlas service at start-up. This
service is disabled by default on lowram devices to save memory.

Atlas service is responsible for pre-loading drawables which
can be shareable among the applications. Found that the probability
of using same drawables in different apps concurrently is very less.
However it allocates fixed size of ion buffer based on config.
So by disabling it this memory overhead can be avoided. We are safe
to disable this service as it does not block any functionality.

Change-Id: I3c73111be71ff6a39f87d711e6dc9382637fd537