Frameworks/base: Wall Werror in core/jni

Turn on -Wall -Werror in core/jni. Fix warnings.

Clang TODO: For GCC we need to turn off Wunused-but-set-variable in
the GL bindings. However, Clang doesn't have that warning and thus
complains about an unknown pragma. It is necessary to make the
pragma #ifdef-ed on the compiler being GCC.

Change-Id: I14cab48d45c2771eef0432082356c47ed44a3d7f
Merge "Frameworks/base: Wall Werror in core/jni"
Frameworks/base: Wall Werror in packages

Turn on -Wall -Werror in packages/. Fix warnings.

Change-Id: I4ec7256a7df46017e1895575719f2b5aca978bd0
Merge "Frameworks/base: Wall Werror in packages"
Frameworks/base: Fix build

Fix a typo.

Change-Id: Ida417c842563576b053d9f5553a2aa8d5862897c
Merge "Frameworks/base: Fix build"