frameworks/base: Fix various aliasing violations

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>

Conflicts:
	core/jni/Android.mk

Change-Id: I580222f689f7cd677bb5c5f0f8919624640897d3