EGL_OPENGL_ES3_BIT_KHR is set as ES 3 context is requested.

OpenGL ES have 3 configuration: 1(EGL10.EGL_RENDERABLE_TYPE),
2(EGL_OPENGL_ES2_BIT), 3(EGL_OPENGL_ES3_BIT_KHR). The driver
should be get the according configuration parameter.
Now 1 is set to driver when Configuration 3 is set from user.
Specification EGL_OPENGL_ES3_BIT_KHR is set to driver when a OpenGL
ES 3 context is requested in setEGLContextClientVersion().

Change-Id: I980d9d8dbe5754295f8329fcf9378962d669fa89
Signed-off-by: Jin Zhebin <zhebinx.jin@intel.com>
Signed-off-by: bdeng3X <bingx.deng@intel.com>
Fix the case where essential root activity vanishes from a task stack.

The following case creates a task stack which doesn't contain root
activity whose frontOfTask property is true.

[Precondition of a task stack]
  Top activity C    <== Focused
  Parent activity B
  Root activity A   <== Its frontOfTask property holds true.

[Procedure]
  1. Finish the B activity from C.
  2. Finish the A activity immediately after step 1.

[Resulted stack]
  Top activity C <== Focused, but frontOfTask holds false.

This patch can avoid the above case.

Change-Id: Icc456b010f67a79a655212007afb169f99797d7b
Frameworks: apple can do...we can do as well

incredible apple engineers speeded up the overall UI and reduced per default slightly
the animation scales. Well we do as well and reduce it from 1 to 0.75...smooth, looks well
and does not break anything

Change-Id: Icbcc889e49c8d3ab24cf2b1c10bbe0e8bf7e7637
remove unused import.

This change resynchronizes AOSP with internal master.
The import line is unused.

Change-Id: I98bef1f88dee758f5bdcec35fba204f793d4028e
remove unneeded import statements.

Internal master is out of sync with AOSP. Resync.

Change-Id: Ia3105a4b6eb835f719471a26ae4cb33962c5b19e
Check Accessibility state before send Accessibility Event

AccessibilityManager.sendAccessibilityEvent must be called in
Accessibility enable state. Otherwise system will throw one
IllegalStateException if Accessibility is disbaled.

This issue happened during MTBF test.

Change-Id: I6cd9be0709a41e0d557f104bd9372b07c6a66997
Signed-off-by: jshe32X<jianchunx.shen@intel.com>
Signed-off-by: Guobin Zhang<guobin.zhang@intel.com>
idmap: Don't log spam "CREATING STRING CACHE"

Change-Id: Idce5aa5881c8e860eca9749cc85f748303c913c0
Fix a bug in KeyStore.getInstance().

Sometimes keystore process may die unexpectedly, so client cannot connect it.

Let KeyStore.getInstance() return null when it cannot get KeyStore
service, so that caller can get informed to prevent NullPointerExcepion.

Change-Id: I7aafc959dee9a77fda80ab6eb5c82f9a3f56f959
Signed-off-by: hanpengx <pengfeix.han@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Fix the wrong parameter setting in uploadToTexture()
with GLES20

Google optimized the uploadToTexture with GLES3.0+,
This allows us to upload a sub-rectangle of texture,
but this has compliance issue with GLES20, for
GLES20 we have to upload entire stripes.

Change-Id: I8987cd8347913c61b7fa45bd47be1189aa6bdb05
Signed-off-by: Shenghua Lu <shenghua.lu@intel.com>
Signed-off-by: Guobin Zhang<guobin.zhang@intel.com>
Rebuild displayList tree when clearDisplayList()

Ensure displaylist stability, we should make each
getdisplaylist() become effective. If not, which can
cause some abnornal GUI display, this patch fixed it.

Change-Id: I137b6e34ad18a2c8d796809ec7e53357c826949d
Signed-off-by: Shenghua Lu <shenghua.lu@intel.com>
Signed-off-by: Guobin Zhang<guobin.zhang@intel.com>
fix trivial typo: s/meansure/measure

Change-Id: I6d879a03f23fc9ad69b1d676bf7a0a08c1124524
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
WifiStateMachine: fix socket fd missed closing issue

Socket fd closing operation is missed in SupplicantStartingState
which will lead to fd leakage in system_server process

Change-Id: I9947d13fc73f16ca71a7b234727f39a39c6a60c8
Signed-off-by: jiaguo <jiaguo@marvell.com>