public static AllocationAdapter create1D(RenderScript rs, Allocation a) {
   rs.validate();
   AllocationAdapter aa = new AllocationAdapter(0, rs, a);
   aa.mConstrainedLOD = true;
   aa.mConstrainedFace = true;
   aa.mConstrainedY = true;
   aa.mConstrainedZ = true;
   aa.initLOD(0);
   return aa;
 }
 public static AllocationAdapter create2D(RenderScript rs, Allocation a) {
   android.util.Log.e("rs", "create2d " + a);
   rs.validate();
   AllocationAdapter aa = new AllocationAdapter(0, rs, a);
   aa.mConstrainedLOD = true;
   aa.mConstrainedFace = true;
   aa.mConstrainedY = false;
   aa.mConstrainedZ = true;
   aa.initLOD(0);
   return aa;
 }