Lines Matching refs:Element
80 private Element.DataType validateObjectIsPrimitiveArray(Object d, boolean checkType) { in validateObjectIsPrimitiveArray()
95 return Element.DataType.SIGNED_64; in validateObjectIsPrimitiveArray()
103 return Element.DataType.SIGNED_32; in validateObjectIsPrimitiveArray()
111 return Element.DataType.SIGNED_16; in validateObjectIsPrimitiveArray()
119 return Element.DataType.SIGNED_8; in validateObjectIsPrimitiveArray()
126 return Element.DataType.FLOAT_32; in validateObjectIsPrimitiveArray()
133 return Element.DataType.FLOAT_64; in validateObjectIsPrimitiveArray()
260 public Element getElement() { in getElement()
351 if ((mType.mElement.mType == Element.DataType.SIGNED_64) || in validateIsInt64()
352 (mType.mElement.mType == Element.DataType.UNSIGNED_64)) { in validateIsInt64()
360 if ((mType.mElement.mType == Element.DataType.SIGNED_32) || in validateIsInt32()
361 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) { in validateIsInt32()
369 if ((mType.mElement.mType == Element.DataType.SIGNED_16) || in validateIsInt16()
370 (mType.mElement.mType == Element.DataType.UNSIGNED_16)) { in validateIsInt16()
378 if ((mType.mElement.mType == Element.DataType.SIGNED_8) || in validateIsInt8()
379 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) { in validateIsInt8()
387 if (mType.mElement.mType == Element.DataType.FLOAT_32) { in validateIsFloat32()
395 if (mType.mElement.mType == Element.DataType.FLOAT_64) { in validateIsFloat64()
403 if ((mType.mElement.mType == Element.DataType.RS_ELEMENT) || in validateIsObject()
404 (mType.mElement.mType == Element.DataType.RS_TYPE) || in validateIsObject()
405 (mType.mElement.mType == Element.DataType.RS_ALLOCATION) || in validateIsObject()
406 (mType.mElement.mType == Element.DataType.RS_SAMPLER) || in validateIsObject()
407 (mType.mElement.mType == Element.DataType.RS_SCRIPT) || in validateIsObject()
408 (mType.mElement.mType == Element.DataType.RS_MESH) || in validateIsObject()
409 (mType.mElement.mType == Element.DataType.RS_PROGRAM_FRAGMENT) || in validateIsObject()
410 (mType.mElement.mType == Element.DataType.RS_PROGRAM_VERTEX) || in validateIsObject()
411 (mType.mElement.mType == Element.DataType.RS_PROGRAM_RASTER) || in validateIsObject()
412 (mType.mElement.mType == Element.DataType.RS_PROGRAM_STORE)) { in validateIsObject()
541 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) { in validateBitmapFormat()
550 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) || in validateBitmapFormat()
560 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGB) || in validateBitmapFormat()
570 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) || in validateBitmapFormat()
589 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { in copyFromUnchecked()
624 copyFromUnchecked(d, Element.DataType.SIGNED_32, d.length); in copyFromUnchecked()
635 copyFromUnchecked(d, Element.DataType.SIGNED_16, d.length); in copyFromUnchecked()
646 copyFromUnchecked(d, Element.DataType.SIGNED_8, d.length); in copyFromUnchecked()
657 copyFromUnchecked(d, Element.DataType.FLOAT_32, d.length); in copyFromUnchecked()
685 copyFromUnchecked(d, Element.DataType.SIGNED_32, d.length); in copyFrom()
697 copyFromUnchecked(d, Element.DataType.SIGNED_16, d.length); in copyFrom()
709 copyFromUnchecked(d, Element.DataType.SIGNED_8, d.length); in copyFrom()
721 copyFromUnchecked(d, Element.DataType.FLOAT_32, d.length); in copyFrom()
853 Element.DataType dt, int arrayLen) { in copy1DRangeFromUnchecked()
884 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.SIGNED_32, d.length); in copy1DRangeFromUnchecked()
896 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.SIGNED_16, d.length); in copy1DRangeFromUnchecked()
908 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.SIGNED_8, d.length); in copy1DRangeFromUnchecked()
920 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.FLOAT_32, d.length); in copy1DRangeFromUnchecked()
950 copy1DRangeFromUnchecked(off, count, d, Element.DataType.SIGNED_32, d.length); in copy1DRangeFrom()
964 copy1DRangeFromUnchecked(off, count, d, Element.DataType.SIGNED_16, d.length); in copy1DRangeFrom()
978 copy1DRangeFromUnchecked(off, count, d, Element.DataType.SIGNED_8, d.length); in copy1DRangeFrom()
992 copy1DRangeFromUnchecked(off, count, d, Element.DataType.FLOAT_32, d.length); in copy1DRangeFrom()
1030 Element.DataType dt, int arrayLen) { in copy2DRangeFromUnchecked()
1070 Element.DataType.SIGNED_8, data.length); in copy2DRangeFrom()
1086 Element.DataType.SIGNED_16, data.length); in copy2DRangeFrom()
1102 Element.DataType.SIGNED_32, data.length); in copy2DRangeFrom()
1118 Element.DataType.FLOAT_32, data.length); in copy2DRangeFrom()
1192 Object array, Element.DataType dt, int arrayLen) { in copy3DRangeFromUnchecked()
1263 private void copyTo(Object array, Element.DataType dt, int arrayLen) { in copyTo()
1292 copyTo(d, Element.DataType.SIGNED_8, d.length); in copyTo()
1304 copyTo(d, Element.DataType.SIGNED_16, d.length); in copyTo()
1316 copyTo(d, Element.DataType.SIGNED_32, d.length); in copyTo()
1328 copyTo(d, Element.DataType.FLOAT_32, d.length); in copyTo()
1434 static public Allocation createSized(RenderScript rs, Element e, in createSized()
1459 static public Allocation createSized(RenderScript rs, Element e, int count) { in createSized()
1463 static Element elementFromBitmap(RenderScript rs, Bitmap b) { in elementFromBitmap()
1466 return Element.A_8(rs); in elementFromBitmap()
1469 return Element.RGBA_4444(rs); in elementFromBitmap()
1472 return Element.RGBA_8888(rs); in elementFromBitmap()
1475 return Element.RGB_565(rs); in elementFromBitmap()
1482 Element e = elementFromBitmap(rs, b); in typeFromBitmap()
1524 t.getElement().isCompatible(Element.RGBA_8888(rs)) && in createFromBitmap()
1633 Element e = elementFromBitmap(rs, b); in createCubemapFromBitmap()
1708 Element e = elementFromBitmap(rs, xpos); in createCubemapFromCubeFaces()
1839 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage); in createFromString()