Fix a resource race bug in PathCache

When enabled defer rendering, it will do precache for DrawPathOp.
The paint used for creating PathTask in precache just get the address
of mFilteredPaint of OpenGLRenderer. So for the following defer
operation like DrawTextOp has possibility change the mFilteredPaint
by getPaint while another WorkerThread in PathCache is using the paint
which pointed to the same address of mFilteredPaint to generate bitmap.
As a result, it will generate a wrong bitmap for generateTexture in
PathCache. To fix it, do a copy of paint when creating PathTask.

CRs-Fixed: 664244

Change-Id: I5516f5b143458b88d3573d15b7ebb34f688800c7
Don't read configs on every touch event for double tap to sleep

Got the idea from Dave Kessler - VanirAOSP

Change-Id: Ice60896dbd0bcd2de1dbff07baa7bf60af0cad58
ActivityManager: Rejigger HighEndGfx: only propget/stringcomp and resget once (in isHighEnd, rather than constructor)

Change-Id: I6ec977a9e8c7f46b186594c7bf6cad6a690121c9
Memoize memory class lookup methods

These methods are commonly accessed.  Lets make sure we only do systemproperties lookup
once since these values aren't changing afterwords.

Change-Id: I77802ed367e4180f4d97e6abbd98170e6cf7a0d4

Conflicts:
	core/java/android/app/ActivityManager.java
Let AbsListView cache as the app using it sees fit

Change-Id: Ib1b2a9a9ac4f38564cc4d00ee78d245c16b03396

Conflicts:
	core/java/android/widget/AbsListView.java
Revert "idmap: Don't log spam "CREATING STRING CACHE""

This reverts commit aeb9a5b8a122bb36334500c1b6ade84878949864.
idmap: reduce CREATING STRING CACHE verbosity

Change-Id: I7febe358b3b302427650edc1d00772fc9d2d547c
Reduce memory leaks by removing all views.

Change-Id: I64b95981425840d101c8122421281976d0251bae