frameworks/base: Fix aliasing violations

Fix violations of strict aliasing rules

Change-Id: I77102a842719ed87a98f2f359549f70a9232987c
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Merge "frameworks/base: Fix aliasing violations" into kitkat