Current view findFocus maybe null, which cause NullPointerException.
When run monkey test on TabHost application, easily reproduce the NullPointerException.
Refactor bad code to better.
Signed-off-by: duzhaoxi <du.zhaoxi@zte.com.cn>

Change-Id: I80757489e23cedecb18a9bb978c567d02111b53c
Native Runtime: Add LOG_ID_CRASH

Change-Id: I4e3a82636901c5169cc6b714a4fec815cd757c58
Improve how battery stats collects network stats.

This optimizes the path for battery stats to collect
per-uid network usage.  It now collects wifi and mobile
usage separately, with a path that allows it to recycle
all data structures and filter out stats it isn't
interested in before they come back to java.

This is setting us up for the actual goal, to collect
mobile stats independently each time the mobile radio
goes down, allowing us to distribute mobile radio usage
across uids based on the number of packets they transferred
during a session.

(cherry pick from commit d0c5b9abed60b7bc056d026bf0f2b2235410fb70)

Change-Id: I21a0f517cf087ea5aa8b8dd535e20b46e361a52b
Add BiCubic resize instrinsic

Change-Id: Iafec3f4260bb5d3a3133b034e42dfb0a94ae9f81
Fix improper use of JNI_ABORT for operations where Java objects are written.

In these RS API calls, it is possible (and very likely) that some Java objects
are written to via JNI calls into the RS driver. These writes can end up being
discarded if we specify JNI_ABORT, particularly if the Java object has been
moved due to GC. The change introduces a readonly mode for some macro calls
and updates other JNI callers to appropriately skip JNI_ABORT.

Change-Id: I8c5f2ae959b3fbc9008c9d2ac4542f2ebab29b06

Conflicts:
	rs/jni/android_renderscript_RenderScript.cpp