Move to dynamic dispatch. Add support for IoAllocation* in rs.spec.

Change-Id: I013409cbb758ce5aae78347acb39c43d07aeb9bf
diff --git a/tests/cppbasic/compute.cpp b/tests/cppbasic/compute.cpp
index d1647c4..0f7bd18 100644
--- a/tests/cppbasic/compute.cpp
+++ b/tests/cppbasic/compute.cpp
@@ -32,7 +32,7 @@
     sp<Allocation> aout = Allocation::createTyped(rs, t);
     printf("Allocation %p %p\n", ain.get(), aout.get());
 
-    sp<ScriptC_mono> sc = new ScriptC_mono(rs, NULL, 0);
+    sp<ScriptC_mono> sc = new ScriptC_mono(rs);
     printf("new script\n");
 
     // We read back the status from the script-side via a "failed" allocation.
@@ -66,8 +66,8 @@
     {
         sp<const Element> e = Element::I32(rs);
         Type::Builder tb(rs, e);
-        tb.setX(5);
-        tb.setY(5);
+        tb.setX(8);
+        tb.setY(8);
         sp<const Type> t = tb.create();
         sp<Allocation> kern1_in = Allocation::createTyped(rs, t);
         sp<Allocation> kern1_out = Allocation::createTyped(rs, t);
diff --git a/tests/cppbasic/mono.rs b/tests/cppbasic/mono.rs
index d49d0f7..f134b36 100644
--- a/tests/cppbasic/mono.rs
+++ b/tests/cppbasic/mono.rs
@@ -15,7 +15,7 @@
  */
 
 #pragma version(1)
-#pragma rs java_package_name(com.android.rs.image)
+#pragma rs java_package_name(com.android.rs.cppbasic)
 #pragma rs_fp_relaxed
 
 int g_i = 4;