Run EglConfigTest in a Single Activity

Creating a new Activity to run each iteration for EglConfigTest is
not compatible with both normal Android and Android Auto. Instead,
a single Activty will be used with the logic running on a background
thread and the rendering occurring on the UI thread. This means that
only the GLSurfaceView is created/destroyed each iteration rather than
the full Activity.

Bug: 144129937
Test: atest android.opengl.cts.EglConfigTest#testEglConfigs
Change-Id: I2797378ecc610045136abb103fe988f52fd7a7d5
2 files changed