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>

Conflicts:
	media/libstagefright/Android.mk
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>
frameworks/av: Fix Visualizer's get/set parameter methods not worked bug

This commit fixes broken Visualizer's get/set parameter methods.
The bug was introduced by modifications to avoid complilation errors.(*1, *2)

  (*1) Commit ID: d64a966f40b05f514312291b2e43b6e7c475845c

    frameworks/media: Fix aliasing violations

  (*2) Commit ID: 350adb3460dfa29eac5e34c3e2a90cf5011ce3d4

    EffectVisualizer: Fix aliasing violations

Change-Id: I5fcef8d958108bf442b96d7726069f82ffbfe49c

Fixed strict alasing bug

Change-Id: I62d5d7efd0ec332b0f58bd12811f88d36aff6eba

Conflicts:
	services/audioflinger/Effects.cpp
Fix aliasing violations (properly)

Big ups to Haruki Hasegawa for the 4.3 equivalent:
	10d8e90 - frameworks/av: Fix Visualizer's get/set parameter methods not worked bug

Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Change-Id: Id914f57700c21b8fa2dc4c2ca3b1c8872bf31256

Conflicts:
	media/libmedia/Visualizer.cpp
Revert "Use -fno-strict-aliasing"

This reverts commit 704e963f96b42a4c0576f8dfc7a33b437c133cfd.
Reduce log verbosity: Don't spam logcat

Change-Id: Id223f63554771eecd89f38d74440cfedbd2bad60
Set net_log to NULL unless debugging.

This way methods can exit early instead of logging by testing if the net_log is NULL.

Change-Id: I49e91460967ba3edad7d7b894a90df0589e8ccb2
warnings be gone.

(cherry picked from commit 84333e0475bc911adc16417f4ca327c975cf6c36)

Modified by Mark Salyzyn <salyzyn@google.com> to keep merge conflicts
or errors downstream to a minimum.

Change-Id: Ic3b272f9cbf3155001aabd2f79728f1bc31de613
Conflicts:
	media/libstagefright/ACodec.cpp
	media/libstagefright/AwesomePlayer.cpp
	media/libstagefright/FLACExtractor.cpp
	media/libstagefright/codecs/amrnb/dec/SoftAMR.cpp
warnings be gone (2/4)

(cherry picked from commit 84333e0475bc911adc16417f4ca327c975cf6c36)
(squashed with commit b4a7a2df4c28c3f32b5d877b54831d2cc5d78f81)

Change-Id: I048a2c6868515716c7cd7319a3d0abe6311dac4e
warnings be gone (3/4)

(cherry picked from commit 84333e0475bc911adc16417f4ca327c975cf6c36)
(squashed with commit b4a7a2df4c28c3f32b5d877b54831d2cc5d78f81)

Change-Id: I0c5a0c3ea32bb5091d90c7391c67edd02e50397f