Creating the jni and java layer to integrate a3d

Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
diff --git a/libs/rs/rsStream.h b/libs/rs/rsStream.h
index 5ccd6ca..d401cd12 100644
--- a/libs/rs/rsStream.h
+++ b/libs/rs/rsStream.h
@@ -86,6 +86,13 @@
     OStream(uint64_t length, bool use64);
     ~OStream();
     
+    void align(uint32_t bytes) {
+        mPos = (mPos + (bytes - 1)) & (~(bytes - 1));
+        if(mPos >= mLength) {
+            growSize();
+        }
+    }
+    
     void addF(float v) {
         uint32_t uintV = *reinterpret_cast<uint32_t*> (&v);
         addU32(uintV);