sensorservice: Fix init sequence for pre-1.1 API sensor HALs

The sensors API introduced a new flush() method that older binaries
won't have. For those, replace the firstFlush invocation with a
setDelay call since a lot of implementations interpreted that as
the initialization step.
We also don't want any kind of call to flush() to happen when it
isn't there, since it'll either hit a random OEM extension or
a memory address we really don't want to execute.

Change-Id: I26ce923fe385751fed7d1c483a53c074249f0620
Not needed anymore for t0lte devices

Revert "SensorEventQueue: Allow setRate on sensor enable"

This reverts commit 24e8e8fed698c644f42bf832423258e3598bb419.

Change-Id: Iad67e28502bf250d4523240089cc0b1edc77672d
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
native: added null check and remove EGL fallback

Change-Id: I589a1b0eae4c885ada1ee58a69bf2bcace822a45
native: go back to default heap sizes

causes on some devices to much problems. The one which want
to have a higher value can set it in device tree

Change-Id: Ie9fcd45ce5ea7ba34690c6c9d9320bb7b76bb7a5
Merge "Not needed anymore for t0lte devices" into kk4.4
surfaceflinger: Apply bugfixes to the correct hwc code paths

Patches to deal with corner-case layer states were mistakenly merged into
the pre-1.0-hwc code paths. Move them to their intended locations

thanks ricardo for the correction

Change-Id: I64ca0fa2ef975c3a9e8f09dc15d3ce49b92d86b7
Graphics:Add error check when create GraphicBuffer

Big thanks to steven676 who found this commit to fix
graphics issues on many devices

Change-Id: Ib0ca59bf1dfe4ae0266c29c91c1dbe3d02c0904e
Author: Lingyun Zhu <lingyun.zhu@intel.com>
Signed-off-by: Lingyun Zhu <lingyun.zhu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 50141
Merge "Graphics:Add error check when create GraphicBuffer" into kk4.4
Update HWUI config for xxhdpi/2GB devices

Change-Id: Ic9ba16b0360f2b755a1d23aa51eddc61beee2bac
sensorservice: Set the rate for pre-1.1 HALs _after_ activation

We want to be sure these are applied in the same sequence they
used to be...

Change-Id: Ied2ba08ed3c4bed3a80bac6ab5471fcea9ba2c09
native: go back to our custom heap sizes

after eliminating the problems we had we can go back

This reverts commit 5ee007698de14ae5491f5f124c3e2f8fa11520be.

Change-Id: I4a06f890ef36142732d26e0c88355c70e39a9f35
Merge branch 'kk4.4' of git://github.com/SlimRoms/frameworks_native into kk4.4

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp

Change-Id: I37ab9aefb521363bb4b4f531c4ae447397ee5f72