FM Radio: Add support for FM Radio in Android

moved permissions to frameworks/native

Change-Id: I27ded70f7bc116a1b1c9cff2383c4899afe746ec
Revert "libgui: Bring back support for mHeap-based screenshots"

This reverts commit e5dfc8f220eed32fffc0b26b6aca55444f4f7b8e.

This patch was obviously horribly mismerged, as it brings in a pile
of non-ifdefed code when implementing a patch that was previously
100% ifdefed.

It's also causing crashes on i9100g

Change-Id: Ia1ade0b76269204fab6660a4e1ad26853a043e60
libEGL: workaround for google bug 10194508

Some of device's older blobs don't have EGL_KHL_gl_colorspace extension
and need this workaround

Change-Id: I811538e7d595f18055d13ca608098c049b4cb9b9
frameworks_native: Add back PixelFormatInfo

Change-Id: Id911a534c038311b69438c4171a523ccb1b29d99
Surfaceflinger: Remove ifdef on GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE

https://github.com/omnirom/android_frameworks_native/commit/e0c4ab43ce7a851ab5fefbd2e8e259daf1c48c68

The above revert commit brought the if (!useReadPixels) statement back in when it isn't
necessary.

Huge thanks to ankitkv for discovering this!

Change-Id: Ifceb27c836ad9c2d73f48127727ba5d2849e5daf
SensorEventQueue: Allow setRate on sensor enable

4.3 and earlier would set the sensor rate on activation and then set it again
when setRate was called.

Some sensor HALs assume this will happen and ignore the first setRate

Conditionally the first one back in for such broken HALs

Change-Id: If1c259b0fd5517a1272cdad0a1abf1fe0fb5a7d1
GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
Add BoardConfig flag TARGET_USES_OPENGLES_FOR_SCREEN_CAPTURE

This flag forces usage flags:
GRALLOC_USAGE_HW_TEXTURE and GRALLOC_USAGE_HW_RENDERER
in captureScreenImplLocked regardless of useReadPixels value

This fixes the EGL_NO_IMAGE_KHR error returned from
eglCreateImageKHR (blank images returned from screenshot path)

This is a better and safer approach than https://gerrit.omnirom.org/#/c/2670/.

Change-Id: I37437827434dbc3bec80956f1e199dbe8e3d255a
Revert "Add BoardConfig flag TARGET_USES_OPENGLES_FOR_SCREEN_CAPTURE"

So apparently this isn't needed. -_-
See: http://review.cyanogenmod.org/#/c/55376/

This reverts commit 05aff6836224f6a6cf648f2385535d1bf2a23fe7.

Change-Id: I119c476f403469a8102ac3207a6528e7efd697e3
binder: add compat symbol

Required for older blobs

Change-Id: Ib18d2513570382432d49f302ab041230650372f2
frameworks/native: Fix toroplus radio with CFLAGS

This is a commit to fix the LTE radio on toroplus,
since the binaries contain a broken reference to
an old no longer existent object. This fixes that
with a CFLAGS to be enabled in the .mk files of the
toroplus device files (like BoardConfig.mk).

Credit for the original fix goes to
Sean McClenaghan (cyberkitsune09@gmail.com)
http://review.cyanogenmod.org/#/c/47134/

PS 2-3: forgot some stuff in the commit message

Change-Id: I2c0f05d1f70b96ad801971f23f6f9cf4e0fa7167
native: merge qcom CAF kk_2.7_rb18

Conflicts:

	libs/ui/GraphicBufferAllocator.cpp
	services/surfaceflinger/Android.mk