frameworks/base: Fix various aliasing violations

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/jni/Android.mk

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/jni/Android.mk