void | copy1DRangeFrom(int off, int count, float[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFrom(int off, int count, short[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFrom(int off, int count, Object array) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFrom(int off, int count, Allocation data, int dataOff) Copy part of an Allocation into this Allocation. |
void | copy1DRangeFrom(int off, int count, int[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFrom(int off, int count, byte[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFromUnchecked(int off, int count, byte[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFromUnchecked(int off, int count, short[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFromUnchecked(int off, int count, Object array) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFromUnchecked(int off, int count, int[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeFromUnchecked(int off, int count, float[] d) Copy an array into a 1D region of this Allocation. |
void | copy1DRangeTo(int off, int count, short[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeTo(int off, int count, Object array) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeTo(int off, int count, int[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeTo(int off, int count, float[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeTo(int off, int count, byte[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeToUnchecked(int off, int count, byte[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeToUnchecked(int off, int count, short[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeToUnchecked(int off, int count, Object array) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeToUnchecked(int off, int count, int[] d) Copy a 1D region of this Allocation into an array. |
void | copy1DRangeToUnchecked(int off, int count, float[] d) Copy a 1D region of this Allocation into an array. |
void | copy2DRangeFrom(int xoff, int yoff, int w, int h, Allocation data, int dataXoff, int dataYoff) Copy a rectangular region from an Allocation into a rectangular region in this Allocation. |
void | copy2DRangeFrom(int xoff, int yoff, Bitmap data) Copy a Bitmap into an Allocation. |
void | copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data) Copy from an array into a rectangular region in this Allocation. |
void | copy2DRangeFrom(int xoff, int yoff, int w, int h, Object array) Copy from an array into a rectangular region in this Allocation. |
void | copy2DRangeFrom(int xoff, int yoff, int w, int h, int[] data) Copy from an array into a rectangular region in this Allocation. |
void | copy2DRangeFrom(int xoff, int yoff, int w, int h, float[] data) Copy from an array into a rectangular region in this Allocation. |
void | copy2DRangeFrom(int xoff, int yoff, int w, int h, short[] data) Copy from an array into a rectangular region in this Allocation. |
void | copy2DRangeTo(int xoff, int yoff, int w, int h, short[] data) Copy from a rectangular region in this Allocation into an array. |
void | copy2DRangeTo(int xoff, int yoff, int w, int h, byte[] data) Copy from a rectangular region in this Allocation into an array. |
void | copy2DRangeTo(int xoff, int yoff, int w, int h, Object array) Copy from a rectangular region in this Allocation into an array. |
void | copy2DRangeTo(int xoff, int yoff, int w, int h, float[] data) Copy from a rectangular region in this Allocation into an array. |
void | copy2DRangeTo(int xoff, int yoff, int w, int h, int[] data) Copy from a rectangular region in this Allocation into an array. |
void | copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Allocation data, int dataXoff, int dataYoff, int dataZoff) Copy a rectangular region into the allocation from another allocation. |
void | copy3DRangeFrom(int xoff, int yoff, int zoff, int w, int h, int d, Object array) Copy from an array into a 3D region in this Allocation. |
void | copy3DRangeTo(int xoff, int yoff, int zoff, int w, int h, int d, Object array) |
void | copyFrom(Bitmap b) Copy into an Allocation from a Bitmap . |
void | copyFrom(short[] d) Copy into this Allocation from an array. |
void | copyFrom(int[] d) Copy into this Allocation from an array. |
void | copyFrom(BaseObj[] d) Copy an array of RS objects to the Allocation. |
void | copyFrom(byte[] d) Copy into this Allocation from an array. |
void | copyFrom(float[] d) Copy into this Allocation from an array. |
void | copyFrom(Allocation a) Copy an Allocation from an Allocation. |
void | copyFrom(Object array) Copy into this Allocation from an array. |
void | copyFromUnchecked(float[] d) Copy into this Allocation from an array. |
void | copyFromUnchecked(Object array) Copy into this Allocation from an array. |
void | copyFromUnchecked(short[] d) Copy into this Allocation from an array. |
void | copyFromUnchecked(int[] d) Copy into this Allocation from an array. |
void | copyFromUnchecked(byte[] d) Copy into this Allocation from an array. |
void | copyTo(Bitmap b) Copy from the Allocation into a Bitmap . |
void | copyTo(short[] d) Copy from the Allocation into a short array. |
void | copyTo(byte[] d) Copy from the Allocation into a byte array. |
void | copyTo(float[] d) Copy from the Allocation into a float array. |
void | copyTo(int[] d) Copy from the Allocation into a int array. |
void | copyTo(Object array) Copy from the Allocation into an array. |
static Allocation[] | createAllocations(RenderScript rs, Type t, int usage, int numAlloc) Creates a new Allocation Array with the given Type , and usage flags. |
static Allocation | createCubemapFromBitmap(RenderScript rs, Bitmap b, Allocation.MipmapControl mips, int usage) Creates a cubemap Allocation from a Bitmap containing the horizontal list of cube faces. |
static Allocation | createCubemapFromBitmap(RenderScript rs, Bitmap b) Creates a non-mipmapped cubemap Allocation for use as a graphics texture from a Bitmap containing the horizontal list of cube faces. |
static Allocation | createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg) Creates a non-mipmapped cubemap Allocation for use as a sampler input from 6 Bitmap objects containing the cube faces. |
static Allocation | createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, Allocation.MipmapControl mips, int usage) Creates a cubemap Allocation from 6 Bitmap objects containing the cube faces. |
static Allocation | createFromBitmap(RenderScript rs, Bitmap b) Creates an Allocation from a Bitmap . |
static Allocation | createFromBitmap(RenderScript rs, Bitmap b, Allocation.MipmapControl mips, int usage) Creates an Allocation from a Bitmap . |
static Allocation | createFromBitmapResource(RenderScript rs, Resources res, int id, Allocation.MipmapControl mips, int usage) Creates an Allocation from the Bitmap referenced by resource ID. |
static Allocation | createFromBitmapResource(RenderScript rs, Resources res, int id) Creates a non-mipmapped Allocation to use as a graphics texture from the Bitmap referenced by resource ID. |
static Allocation | createFromString(RenderScript rs, String str, int usage) Creates an Allocation containing string data encoded in UTF-8 format. |
static Allocation | createSized(RenderScript rs, Element e, int count) Creates an Allocation with a specified number of given elements |
static Allocation | createSized(RenderScript rs, Element e, int count, int usage) Creates an Allocation with a specified number of given elements |
static Allocation | createTyped(RenderScript rs, Type type, Allocation.MipmapControl mips, int usage) Creates a new Allocation with the given Type , mipmap flag, and usage flags. |
static Allocation | createTyped(RenderScript rs, Type type) Creates an Allocation for use by scripts with a given Type and no mipmaps |
static Allocation | createTyped(RenderScript rs, Type type, int usage) Creates an Allocation with the size specified by the type and no mipmaps generated by default |
void | destroy() For USAGE_IO_OUTPUT, destroy() implies setSurface(null). |
void | finalize() Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
void | generateMipmaps() Generate a mipmap chain. |
ByteBuffer | getByteBuffer() Gets or creates a ByteBuffer that contains the raw data of the current Allocation. |
int | getBytesSize() Get the size of the Allocation in bytes. |
Element | getElement() Get the Element of the Type of the Allocation. |
long | getStride() Gets the stride of the Allocation. |
Surface | getSurface() Returns the handle to a raw buffer that is being managed by the screen compositor. |
long | getTimeStamp() Get the timestamp for the most recent buffer held by this Allocation. |
Type | getType() Get the Type of the Allocation. |
int | getUsage() Get the usage flags of the Allocation. |
void | ioReceive() Receive the latest input into the Allocation. |
void | ioSend() Send a buffer to the output stream. |
void | resize(int dimX) This method was deprecated in API level 18. RenderScript objects should be immutable once created. The replacement is to create a new allocation and copy the contents. This function will throw an exception if API 21 or higher is used. |
void | setAutoPadding(boolean useAutoPadding) Specifies the mapping between the Allocation's cells and an array's elements when data is copied from the Allocation to the array, or vice-versa. |
void | setFromFieldPacker(int xoff, int component_number, FieldPacker fp) This is only intended to be used by auto-generated code reflected from the RenderScript script files and should not be used by developers. |
void | setFromFieldPacker(int xoff, FieldPacker fp) This is only intended to be used by auto-generated code reflected from the RenderScript script files and should not be used by developers. |
void | setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) This is only intended to be used by auto-generated code reflected from the RenderScript script files and should not be used by developers. |
void | setOnBufferAvailableListener(Allocation.OnBufferAvailableListener callback) Set a notification handler for USAGE_IO_INPUT . |
void | setSurface(Surface sur) Associate a Surface with this Allocation. |
void | syncAll(int srcLocation) Propagate changes from one usage of the Allocation to the other usages of the Allocation. |