Fix google-build-using-namespace warnings in rs.

* Most files define classes in renderscript namespace.
  Define them in the namespace instead of "using namespace ...".
  Some files define global C++ names, and we replace
  "using namespace ..." with using declarations of the required names.
* Add "NOLINT" comment to rsg_generator.c output code to suppress
  such warnings.

Bug: 32670901
Test: build with WITH_TIDY=1
Change-Id: I9b0edcad3e1fb37c79927b05fd58fb1a301bdf22
diff --git a/rsFont.cpp b/rsFont.cpp
index 0b557f2..903328b 100644
--- a/rsFont.cpp
+++ b/rsFont.cpp
@@ -30,8 +30,8 @@
 #include FT_BITMAP_H
 #endif //ANDROID_RS_SERIALIZE
 
-using namespace android;
-using namespace android::renderscript;
+namespace android {
+namespace renderscript {
 
 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) {
     mInitialized = false;
@@ -854,9 +854,6 @@
 }
 #endif //ANDROID_RS_SERIALIZE
 
-namespace android {
-namespace renderscript {
-
 RsFont rsi_FontCreateFromFile(Context *rsc,
                               char const *name, size_t name_length,
                               float fontSize, uint32_t dpi) {