Lines Matching defs:Allocation
55 * memory types. A {@link android.renderscript.Allocation#syncAll syncAll()}
59 * <p>Allocation data is uploaded in one of two primary ways. For simple
71 public class Allocation extends BaseObj {
75 Allocation mAdaptedAllocation;
152 * Get the element of the type of the Allocation.
163 * Get the usage flags of the Allocation.
174 * Get the size of the Allocation in bytes.
176 * @return size of the Allocation in bytes.
196 Allocation(int id, RenderScript rs, Type t, int usage) {
258 * Get the type of the Allocation.
309 throw new RSIllegalArgumentException("Allocation kind is " +
319 throw new RSIllegalArgumentException("Allocation kind is " +
329 throw new RSIllegalArgumentException("Allocation kind is " +
339 throw new RSIllegalArgumentException("Allocation kind is " +
403 * checked and will generate exceptions if the Allocation type
415 * checked and will generate exceptions if the Allocation type
427 * checked and will generate exceptions if the Allocation type
439 * checked and will generate exceptions if the Allocation type
602 * type checked and will generate exceptions if the Allocation
616 * type checked and will generate exceptions if the Allocation
630 * type checked and will generate exceptions if the Allocation
644 * type checked and will generate exceptions if the Allocation
665 public void copy1DRangeFrom(int off, int count, Allocation data, int dataOff) {
740 Allocation data, int dataXoff, int dataYoff) {
767 * Copy from the Allocation into a Bitmap. The bitmap must
768 * match the dimensions of the Allocation.
770 * @param b The bitmap to be set from the Allocation.
780 * Copy from the Allocation into a byte array. The array must
781 * be at least as large as the Allocation. The allocation must
784 * @param d The array to be set from the Allocation.
793 * Copy from the Allocation into a short array. The array must
794 * be at least as large as the Allocation. The allocation must
797 * @param d The array to be set from the Allocation.
806 * Copy from the Allocation into a int array. The array must be
807 * at least as large as the Allocation. The allocation must be
810 * @param d The array to be set from the Allocation.
819 * Copy from the Allocation into a float array. The array must
820 * be at least as large as the Allocation. The allocation must
823 * @param d The array to be set from the Allocation.
905 static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) {
912 throw new RSRuntimeException("Allocation creation failed.");
914 return new Allocation(id, rs, type, usage);
928 static public Allocation createTyped(RenderScript rs, Type type, int usage) {
942 static public Allocation createTyped(RenderScript rs, Type type) {
958 static public Allocation createSized(RenderScript rs, Element e,
967 throw new RSRuntimeException("Allocation creation failed.");
969 return new Allocation(id, rs, t, usage);
982 static public Allocation createSized(RenderScript rs, Element e, int count) {
1026 static public Allocation createFromBitmap(RenderScript rs, Bitmap b,
1036 return new Allocation(id, rs, t, usage);
1049 static public Allocation createFromBitmap(RenderScript rs, Bitmap b) {
1068 static public Allocation createCubemapFromBitmap(RenderScript rs, Bitmap b,
1099 return new Allocation(id, rs, t, usage);
1115 static public Allocation createCubemapFromBitmap(RenderScript rs,
1139 static public Allocation createCubemapFromCubeFaces(RenderScript rs,
1169 Allocation cubemap = Allocation.createTyped(rs, t, mips, usage);
1205 static public Allocation createCubemapFromCubeFaces(RenderScript rs,