[TEMP] build a few modules with GCC for now

Conflicts:
	media/libmediaplayerservice/Android.mk
	media/libstagefright/Android.mk
Fix c++11 narrowing

Summary:
I.E. Fixes the following:
error: non-constant-expression cannot be narrowed from
type 'uint32_t' (aka 'unsigned int') to 'long' in initializer list

const struct timespec req = {0, ns};
                                ^~

The best fix for these narrowing
violations is to use static casting

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D103
frameworks/av: Squashed Linaro patches

Summary:
frameworks/media: Fix aliasing violations
Change-Id: I0c3ad4d935abe6cf6df222f7d70381d868f15fe8
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

downmix: Fix aliasing violation

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

EffectVisualizer: Fix aliasing violations

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

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

Fix build in ISO C++ 11 mode: constructs that are being interpreted as
new string literals and const vs. constexpr

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

av: More ISO C++ 11 fixes

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

av: Fix build in ISO C++11 mode

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

av: Fix compile errors

Don't use memcpy() on areas that may overlap
Fix aliasing violation

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

libstagefright: audioflinger: use no strict aliasing for now

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

libcameraservice: Fix build in ISO C++11 mode

Change log macro define so it can't be confused for a C++11 string
literal

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

Use -fno-strict-aliasing

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

Use uint16_t instead of char16_t (C++11 compliance)

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

Fix aliasing violations

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

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

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

Conflicts:
	media/libstagefright/Android.mk
libstagefright: cast parameter as argument type

Summary:
Fix the following:
packages/inputmethods/PinyinIME/jni/android/com_android_inputmethod_pinyin_PinyinDecoderService.cpp:217:65: error: cannot
initialize a parameter of type 'jboolean *' (aka 'unsigned char *') with an rvalue of type 'bool'
  char16 *fixed_ptr = (char16*)(*env).GetStringChars(fixed_str, false);
                                                                ^~~~~
libnativehelper/include/nativehelper/jni.h:835:59: note: passing argument to parameter 'isCopy' here
    const jchar* GetStringChars(jstring string, jboolean* isCopy)
                                                          ^

frameworks/av/media/libstagefright/id3/ID3.cpp:606:13: error: no matching member function for call to 'setTo'
        id->setTo(framedata, len);
        ~~~~^~~~~
system/core/include/utils/String8.h:78:33: note: candidate function not viable: no known conversion from 'const uint16_t *'
(aka 'const unsigned short *') to 'const char *' for 1st argument
            status_t            setTo(const char* other, size_t numChars);
                                ^
system/core/include/utils/String8.h:79:33: note: candidate function not viable: no known conversion from 'const uint16_t *'
(aka 'const unsigned short *') to 'const char16_t *' for 1st argument
            status_t            setTo(const char16_t* other, size_t numChars);
                                ^
system/core/include/utils/String8.h:80:33: note: candidate function not viable: no known conversion from 'const uint16_t *'
(aka 'const unsigned short *') to 'const char32_t *' for 1st argument
            status_t            setTo(const char32_t* other,
                                ^
system/core/include/utils/String8.h:76:33: note: candidate function not viable: requires single argument 'other', but 2
arguments were provided
            void                setTo(const String8& other);
                                ^
system/core/include/utils/String8.h:77:33: note: candidate function not viable: requires single argument 'other', but 2
arguments were provided
            status_t            setTo(const char* other);
                                ^

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D106
SurfaceMediaSource.h: include <util/Macros.h>

Summary: Depends on D107

Test Plan: verified

Reviewers: randall.rushing, synergy

Reviewed By: synergy

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