DO NOT MERGE: improve TestVirtualDisplayRecycles to reduce memory usage
TestVirtualDisplayRecycles allocates lots of memory.
in low memory system, this test get failed because
android.media.cts process died by low-memory killer easily.
To prevent low memory case during test,
- clear the allocated buffer for dalvik to get more chance
to do GC at window cleanup
- call cleanupGl() at stopComposition
Signed-off-by: Harry Hong <email@example.com>
(cherry picked from commit caf25cf58f45c3c2039de16d37242deab0e45c57)
(cherry picked from commit 1c01e9d1bb4724b983e9d756ce7238a162f9f7a2)
1 file changed