frameworks/base: Squashed Linaro patches:

Summary:
Squashed commit of the following:

frameworks/base: Fix various aliasing violations

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

frameworks/base: Fix aliasing violations

Fix violations of strict aliasing rules

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

frameworks/base: Fix build in ISO C++11 mode

Fix various incompatibilities with ISO C++11:
- Assumption that char16_t is defined to uint16_t
- constexpr usage
- macro constructs that could be interpreted as string literals
- enum typesafety

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

base: Fix build after Parcel ABI fix in Binder

Adapt code to the fact that writeString16's first parameter
is now an uint16_t* to match the old ABI

Change-Id: I138af645c877f343f0490152b9702698b7d36582
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix compile errors

Fix ISO C++11 incompatibility in TextLayoutCache and
aliasing violation in FontRenderer

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

frameworks/base: Fix build in ISO C++11 mode

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

hwui: Fix build in ISO C++11 mode

Make sure log calls can't be confused with C++11 string literals

Change-Id: I1d458e92e690f6f2b922a05494db8c01da54e460
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Fix confusion about whether or not output() should be const

It probably should be const, but it isn't on master - let's try to
be closer to next upstream

Change-Id: Id26bf19d94a36d83b57488e8bd8d86fa21e784b2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>

Work around uint16_t vs. char16_t confusion

Change-Id: I188e5a82b2dba821710eaea85d6cbef2ae004ce9
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>

Test Plan: verified, depends on other patches

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D82

Conflicts:
	core/jni/android_os_FileUtils.cpp

 Author:    synergy dev <synergye@codefi.re>
 Changes to be committed:
	modified:   core/jni/Android.mk
	modified:   core/jni/android/graphics/TextLayoutCache.cpp
	modified:   core/jni/android/graphics/TextLayoutCache.h
	modified:   core/jni/android_hardware_Camera.cpp
	modified:   core/jni/android_media_AudioSystem.cpp
	modified:   core/jni/android_os_Debug.cpp
	new file:   core/jni/android_os_FileUtils.cpp
	modified:   core/jni/android_os_Parcel.cpp
	modified:   core/jni/android_util_AssetManager.cpp
	modified:   core/jni/android_util_Binder.cpp
	modified:   core/jni/android_util_Process.cpp
	modified:   core/jni/android_util_XmlBlock.cpp
	modified:   core/jni/android_view_KeyCharacterMap.cpp
	modified:   libs/androidfw/ResourceTypes.cpp
	modified:   libs/hwui/DisplayListOp.h
	modified:   libs/hwui/TextDropShadowCache.cpp
	modified:   libs/hwui/Vertex.h
	modified:   media/jni/android_media_MediaRecorder.cpp
	modified:   media/jni/android_mtp_MtpDatabase.cpp
	modified:   media/jni/mediaeditor/VideoEditorClasses.cpp
	modified:   media/jni/mediaeditor/VideoEditorMain.cpp