Prevent GPU driver from exposing OpenGL ES 3.0 support

The Adreno GPU driver currently in use breaks various CTS tests when
using its OpenGL ES 3.0 implementation. Falling back to OpenGL ES 2.0
fixes these issues (via ro.opengles.version). This, however, leads to
inconsistent version information between the system property and what
the driver is exposing. Therefore, filter out OpenGL ES 3.x related
information from the OpenGL (ES) interfaces.

Two changes are required:
* The wrappers for glGetString in libGLESv1_CM, libGLESv2 and
  libGLESv3 (same implementation as libGLESv2) are extended to replace
  any 3.x version strings by a 2.0 version string.
* eglGetConfigAttrib must not expose EGL_OPENGL_ES3_BIT_KHR for
  EGL_RENDERABLE_TYPE. It does not have a wrapper yet; this change adds
  a wrapper directly in the EGL library loader.

Issue: FP2N-260
Issue: FP2P-170
Test: run cts --skip-preconditions --skip-device-info -m CtsGraphicsTestCases --test android.opengl.cts.OpenGlEsVersionTest#testOpenGlEsVersion
Depends-On: I1f1b27d06f2c9ddf8b6350031544c37758e5e8c6
Change-Id: I8a0888e95418c147b8d4c455a7892bd53f7d04d8
(cherry picked from commit 380b4fe0cb7447906a4947cee0b709061cddf04f)
3 files changed