Lines Matching refs:Allocation
33 public class Allocation extends BaseObj {
37 Allocation(int id, RenderScript rs, Type t) {
85 throw new IllegalArgumentException("Array too small for allocation type.");
183 throw new IllegalStateException("allocation failed.");
226 throw new IllegalStateException("allocation failed.");
240 static public Allocation createTyped(RenderScript rs, Type type)
248 return new Allocation(id, rs, type);
251 static public Allocation createSized(RenderScript rs, Element e, int count)
263 return new Allocation(id, rs, t);
291 static public Allocation createFromBitmap(RenderScript rs, Bitmap b, Element dstFmt, boolean genMips)
301 return new Allocation(id, rs, t);
304 static public Allocation createBitmapRef(RenderScript rs, Bitmap b)
315 Allocation a = new Allocation(id, rs, t);
320 static Allocation createFromBitmapBoxed(RenderScript rs, Bitmap b, Element dstFmt, boolean genMips)
328 return new Allocation(id, rs, null);
331 static public Allocation createFromBitmapResource(RenderScript rs, Resources res, int id, Element dstFmt, boolean genMips)
347 return new Allocation(allocationId, rs, null);
363 static public Allocation createFromBitmapResourceBoxed(RenderScript rs, Resources res, int id, Element dstFmt, boolean genMips)