public static void enableForegroundTrimming() {
    sTrimForeground = true;
  }
Controls whether or not the hardware renderer should aggressively
trim memory. Note that this must not be set for any process that
uses WebView! This should be only used by system_process or similar
that do not go into the background.
systemlib/src/main/java/android/view/HardwareRenderer.java