Lines Matching defs:data

31  * {@link android.renderscript.Type} with the memory to provide storage for user data and objects.
35 * <p>Allocations are the primary way data moves into and out of scripts. Memory is user
41 * <li>Graphics Vertex: accessable as graphical vertex data.</li>
56 * call is necessary after the script data is updated to
59 * <p>Allocation data is uploaded in one of two primary ways. For simple
131 * graphics copy of the allocation data will contain a full
154 * @return Element that describes the structure of data in the
359 * data from an array.
361 * @param d the source data array
370 * data from an array.
372 * @param d the source data array
381 * data from an array.
383 * @param d the source data array
392 * data from an array.
394 * @param d the source data array
406 * @param d the source data array
418 * @param d the source data array
430 * @param d the source data array
442 * @param d the source data array
472 final byte[] data = fp.getData();
474 int count = data.length / eSize;
475 if ((eSize * count) != data.length) {
476 throw new RSIllegalArgumentException("Field packer length " + data.length +
479 copy1DRangeFromUnchecked(xoff, count, data);
499 final byte[] data = fp.getData();
503 if (data.length != eSize) {
504 throw new RSIllegalArgumentException("Field packer sizelength " + data.length +
509 component_number, data, data.length);
546 * structured data from an array.
550 * @param d the source data array
560 * structured data from an array.
564 * @param d the source data array
574 * structured data from an array.
578 * @param d the source data array
588 * structured data from an array.
592 * @param d the source data array
607 * @param d the source data array
621 * @param d the source data array
635 * @param d the source data array
649 * @param d the source data array.
661 * @param data the source data allocation.
662 * @param dataOff off The offset of the first element in data to
665 public void copy1DRangeFrom(int off, int count, Allocation data, int dataOff) {
668 count, 1, data.getID(mRS), dataOff, 0,
669 data.mSelectedLOD, data.mSelectedFace.mID);
697 * @param data to be placed into the allocation
699 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data) {
703 w, h, data, data.length);
706 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, short[] data) {
710 w, h, data, data.length * 2);
713 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, int[] data) {
717 w, h, data, data.length * 4);
720 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, float[] data) {
724 w, h, data, data.length * 4);
735 * @param data source allocation.
736 * @param dataXoff X offset in data of the region to update.
737 * @param dataYoff Y offset in data of the region to update.
740 Allocation data, int dataXoff, int dataYoff) {
745 w, h, data.getID(mRS), dataXoff, dataYoff,
746 data.mSelectedLOD, data.mSelectedFace.mID);
756 * @param data the bitmap to be copied
758 public void copy2DRangeFrom(int xoff, int yoff, Bitmap data) {
760 validateBitmapFormat(data);
761 validate2DRange(xoff, yoff, data.getWidth(), data.getHeight());
762 mRS.nAllocationData2D(getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace.mID, data);
899 * @param type renderscript type describing data layout
922 * @param type renderscript type describing data layout
938 * @param type renderscript type describing data layout
1017 * @param b bitmap source for the allocation data
1023 * @return renderscript allocation containing bitmap data
1044 * @param b bitmap source for the allocation data
1046 * @return renderscript allocation containing bitmap data
1065 * @return allocation containing cubemap data
1112 * @return allocation containing cubemap data
1136 * @return allocation containing cubemap data
1202 * @return allocation containing cubemap data