Lines Matching defs:count

648         int count = data_length / eSize;
649 if ((eSize * count) != data_length) {
653 copy1DRangeFromUnchecked(xoff, count, data);
687 private void data1DChecks(int off, int count, int len, int dataSize) {
692 if(count < 1) {
695 if((off + count) > mCurrentCount) {
696 throw new RSIllegalArgumentException("Overflow, Available count " + mCurrentCount +
697 ", got " + count + " at offset " + off + ".");
723 * @param count The number of elements to be copied.
726 public void copy1DRangeFromUnchecked(int off, int count, int[] d) {
727 int dataSize = mType.mElement.getBytesSize() * count;
728 data1DChecks(off, count, d.length * 4, dataSize);
729 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, d, dataSize);
736 * @param count The number of elements to be copied.
739 public void copy1DRangeFromUnchecked(int off, int count, short[] d) {
740 int dataSize = mType.mElement.getBytesSize() * count;
741 data1DChecks(off, count, d.length * 2, dataSize);
742 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, d, dataSize);
749 * @param count The number of elements to be copied.
752 public void copy1DRangeFromUnchecked(int off, int count, byte[] d) {
753 int dataSize = mType.mElement.getBytesSize() * count;
754 data1DChecks(off, count, d.length, dataSize);
755 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, d, dataSize);
762 * @param count The number of elements to be copied.
765 public void copy1DRangeFromUnchecked(int off, int count, float[] d) {
766 int dataSize = mType.mElement.getBytesSize() * count;
767 data1DChecks(off, count, d.length * 4, dataSize);
768 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, d, dataSize);
777 * @param count The number of elements to be copied.
780 public void copy1DRangeFrom(int off, int count, int[] d) {
782 copy1DRangeFromUnchecked(off, count, d);
791 * @param count The number of elements to be copied.
794 public void copy1DRangeFrom(int off, int count, short[] d) {
796 copy1DRangeFromUnchecked(off, count, d);
805 * @param count The number of elements to be copied.
808 public void copy1DRangeFrom(int off, int count, byte[] d) {
810 copy1DRangeFromUnchecked(off, count, d);
819 * @param count The number of elements to be copied.
822 public void copy1DRangeFrom(int off, int count, float[] d) {
824 copy1DRangeFromUnchecked(off, count, d);
831 * @param count The number of elements to be copied.
836 public void copy1DRangeFrom(int off, int count, Allocation data, int dataOff) {
839 count, 1, data.getID(mRS), dataOff, 0,
1258 * @param count the number of Elements in the Allocation
1265 int count, int usage) {
1268 return AllocationThunker.createSized(rs, e, count, usage);
1272 b.setX(count);
1287 * @param count the number of Elements in the Allocation
1291 static public Allocation createSized(RenderScript rs, Element e, int count) {
1292 return createSized(rs, e, count, USAGE_SCRIPT);