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/rsMatrix3x3.cpp b/rsMatrix3x3.cpp
index 4f27fcc..b1db2bc 100644
--- a/rsMatrix3x3.cpp
+++ b/rsMatrix3x3.cpp
@@ -22,8 +22,8 @@
 #include "string.h"
 #include "math.h"
 
-using namespace android;
-using namespace android::renderscript;
+namespace android {
+namespace renderscript {
 
 void Matrix3x3::loadIdentity() {
     m[0] = 1.f;
@@ -78,3 +78,5 @@
     }
 }
 
+} // namespace renderscript
+} // namespace android