Test for ActivityManager#getMemoryClass

Bug 3111822

Check the requirements specified in the
"Virtual Machine Compatibility" section in the CDD.
Check that the right memory class is specified for the device's
screen density and then try to allocate up to 75% of the
returned memory class to see if it actually works.

Change-Id: I06b50381977c5751fe4dcb64efd7345deb2991d2
4 files changed