Home
last modified time | relevance | path

Searched refs:Element (Results 1 – 25 of 174) sorted by relevance

1234567

/frameworks/rs/cpp/
DRenderScript.h30 class Element; variable
37 friend class Element; variable
75 Element *U8;
76 Element *I8;
77 Element *U16;
78 Element *I16;
79 Element *U32;
80 Element *I32;
81 Element *U64;
82 Element *I64;
[all …]
DElement.h27 class Element : public BaseObj {
50 sp<const Element> getSubElement(uint32_t index);
94 static sp<const Element> BOOLEAN(RenderScript *rs);
95 static sp<const Element> U8(RenderScript *rs);
96 static sp<const Element> I8(RenderScript *rs);
97 static sp<const Element> U16(RenderScript *rs);
98 static sp<const Element> I16(RenderScript *rs);
99 static sp<const Element> U32(RenderScript *rs);
100 static sp<const Element> I32(RenderScript *rs);
101 static sp<const Element> U64(RenderScript *rs);
[all …]
DElement.cpp29 sp<const Element> Element::getSubElement(uint32_t index) { in getSubElement()
39 const char * Element::getSubElementName(uint32_t index) { in getSubElementName()
49 size_t Element::getSubElementArraySize(uint32_t index) { in getSubElementArraySize()
59 uint32_t Element::getSubElementOffsetBytes(uint32_t index) { in getSubElementOffsetBytes()
70 #define CREATE_USER(N, T) sp<const Element> Element::N(RenderScript *rs) { \
98 #define CREATE_PIXEL(N, T, K) sp<const Element> Element::N(RenderScript *rs) { \
107 #define CREATE_VECTOR(N, T) sp<const Element> Element::N##_2(RenderScript *rs) { \
110 sp<const Element> Element::N##_3(RenderScript *rs) { \
113 sp<const Element> Element::N##_4(RenderScript *rs) { \
128 void Element::updateVisibleSubElements() { in updateVisibleSubElements()
[all …]
DType.h37 sp<const Element> mElement;
44 sp<const Element> getElement() const { in getElement()
88 sp<const Element> mElement;
91 Builder(RenderScript *rs, sp<const Element> e);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DElement.java51 public class Element extends BaseObj { class
53 android.renderscript.Element mE;
55 NElement(android.renderscript.Element e) { in NElement()
68 Element[] mElements;
229 public Element getSubElement(int index) { in getSubElement()
309 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN()
323 public static Element U8(RenderScript rs) { in U8()
337 public static Element I8(RenderScript rs) { in I8()
344 public static Element U16(RenderScript rs) { in U16()
351 public static Element I16(RenderScript rs) { in I16()
[all …]
DRenderScript.java479 Element mElement_U8;
480 Element mElement_I8;
481 Element mElement_U16;
482 Element mElement_I16;
483 Element mElement_U32;
484 Element mElement_I32;
485 Element mElement_U64;
486 Element mElement_I64;
487 Element mElement_F32;
488 Element mElement_F64;
[all …]
DAllocation.java158 public Element getElement() { in getElement()
211 if ((mType.mElement.mType == Element.DataType.SIGNED_32) || in validateIsInt32()
212 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) { in validateIsInt32()
220 if ((mType.mElement.mType == Element.DataType.SIGNED_16) || in validateIsInt16()
221 (mType.mElement.mType == Element.DataType.UNSIGNED_16)) { in validateIsInt16()
229 if ((mType.mElement.mType == Element.DataType.SIGNED_8) || in validateIsInt8()
230 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) { in validateIsInt8()
238 if (mType.mElement.mType == Element.DataType.FLOAT_32) { in validateIsFloat32()
246 if ((mType.mElement.mType == Element.DataType.RS_ELEMENT) || in validateIsObject()
247 (mType.mElement.mType == Element.DataType.RS_TYPE) || in validateIsObject()
[all …]
/frameworks/base/graphics/java/android/renderscript/
DElement.java50 public class Element extends BaseObj { class
52 Element[] mElements;
220 public Element getSubElement(int index) { in getSubElement()
300 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN()
314 public static Element U8(RenderScript rs) { in U8()
328 public static Element I8(RenderScript rs) { in I8()
335 public static Element U16(RenderScript rs) { in U16()
342 public static Element I16(RenderScript rs) { in I16()
349 public static Element U32(RenderScript rs) { in U32()
356 public static Element I32(RenderScript rs) { in I32()
[all …]
DRenderScript.java694 Element mElement_U8;
695 Element mElement_I8;
696 Element mElement_U16;
697 Element mElement_I16;
698 Element mElement_U32;
699 Element mElement_I32;
700 Element mElement_U64;
701 Element mElement_I64;
702 Element mElement_F32;
703 Element mElement_F64;
[all …]
DProgramVertexFixedFunction.java60 public InternalBuilder addInput(Element e) throws IllegalStateException { in addInput()
139 Element.Builder b = new Element.Builder(rs); in getConstantInputType()
140 b.add(Element.MATRIX4X4(rs), "MV"); in getConstantInputType()
141 b.add(Element.MATRIX4X4(rs), "P"); in getConstantInputType()
142 b.add(Element.MATRIX4X4(rs), "TexMatrix"); in getConstantInputType()
143 b.add(Element.MATRIX4X4(rs), "MVP"); in getConstantInputType()
183 Element.Builder b = new Element.Builder(mRS); in create()
184 b.add(Element.F32_4(mRS), "position"); in create()
185 b.add(Element.F32_4(mRS), "color"); in create()
186 b.add(Element.F32_3(mRS), "normal"); in create()
[all …]
DAllocation.java198 public Element getElement() { in getElement()
267 if ((mType.mElement.mType == Element.DataType.SIGNED_32) || in validateIsInt32()
268 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) { in validateIsInt32()
276 if ((mType.mElement.mType == Element.DataType.SIGNED_16) || in validateIsInt16()
277 (mType.mElement.mType == Element.DataType.UNSIGNED_16)) { in validateIsInt16()
285 if ((mType.mElement.mType == Element.DataType.SIGNED_8) || in validateIsInt8()
286 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) { in validateIsInt8()
294 if (mType.mElement.mType == Element.DataType.FLOAT_32) { in validateIsFloat32()
302 if ((mType.mElement.mType == Element.DataType.RS_ELEMENT) || in validateIsObject()
303 (mType.mElement.mType == Element.DataType.RS_TYPE) || in validateIsObject()
[all …]
DProgram.java68 Element mInputs[];
69 Element mOutputs[];
201 Element mInputs[];
202 Element mOutputs[];
216 mInputs = new Element[MAX_INPUT]; in BaseProgramBuilder()
217 mOutputs = new Element[MAX_OUTPUT]; in BaseProgramBuilder()
353 p.mInputs = new Element[mInputCount]; in initProgram()
355 p.mOutputs = new Element[mOutputCount]; in initProgram()
/frameworks/rs/
DrsElement.cpp24 Element::Element(Context *rsc) : ObjectBase(rsc) { in Element() function in Element
33 Element::~Element() { in ~Element()
37 void Element::preDestroy() const { in preDestroy()
46 void Element::clear() { in clear()
59 size_t Element::getSizeBits() const { in getSizeBits()
71 size_t Element::getSizeBitsUnpadded() const { in getSizeBitsUnpadded()
83 void Element::dumpLOGV(const char *prefix) const { in dumpLOGV()
95 void Element::serialize(Context *rsc, OStream *stream) const { in serialize()
113 Element *Element::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
129 return (Element *)Element::create(rsc, in createFromStream()
[all …]
DrsElement.h37 class Element : public ObjectBase {
49 const Element **fields;
63 void add(const Element *e, const char *nameStr, uint32_t arraySize);
64 ObjectBaseRef<const Element> create(Context *rsc);
66 Vector<ObjectBaseRef<const Element> > mBuilderElementRefs;
67 Vector<const Element *> mBuilderElements;
97 const Element * getField(uint32_t idx) const {return mFields[idx].e.get();} in getField()
110 static Element *createFromStream(Context *rsc, IStream *stream);
112 static ObjectBaseRef<const Element> createRef(Context *rsc,
117 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count,
[all …]
DrsProgramVertex.cpp168 ObjectBaseRef<const Element> matrixElem = Element::createRef(rsc, RS_TYPE_MATRIX_4X4, in init()
170 ObjectBaseRef<const Element> f2Elem = Element::createRef(rsc, RS_TYPE_FLOAT_32, in init()
172 ObjectBaseRef<const Element> f3Elem = Element::createRef(rsc, RS_TYPE_FLOAT_32, in init()
174 ObjectBaseRef<const Element> f4Elem = Element::createRef(rsc, RS_TYPE_FLOAT_32, in init()
177 Element::Builder constBuilder; in init()
182 ObjectBaseRef<const Element> constInput = constBuilder.create(rsc); in init()
184 Element::Builder inputBuilder; in init()
189 ObjectBaseRef<const Element> attrElem = inputBuilder.create(rsc); in init()
/frameworks/support/renderscript/v8/rs_support/
DrsElement.cpp24 Element::Element(Context *rsc) : ObjectBase(rsc) { in Element() function in Element
33 Element::~Element() { in ~Element()
37 void Element::preDestroy() const { in preDestroy()
46 void Element::clear() { in clear()
59 size_t Element::getSizeBits() const { in getSizeBits()
71 size_t Element::getSizeBitsUnpadded() const { in getSizeBitsUnpadded()
83 void Element::dumpLOGV(const char *prefix) const { in dumpLOGV()
95 void Element::serialize(Context *rsc, OStream *stream) const { in serialize()
113 Element *Element::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
129 return (Element *)Element::create(rsc, in createFromStream()
[all …]
DrsElement.h37 class Element : public ObjectBase {
49 const Element **fields;
63 void add(const Element *e, const char *nameStr, uint32_t arraySize);
64 ObjectBaseRef<const Element> create(Context *rsc);
66 Vector<ObjectBaseRef<const Element> > mBuilderElementRefs;
67 Vector<const Element *> mBuilderElements;
97 const Element * getField(uint32_t idx) const {return mFields[idx].e.get();} in getField()
110 static Element *createFromStream(Context *rsc, IStream *stream);
112 static ObjectBaseRef<const Element> createRef(Context *rsc,
117 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count,
[all …]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DColladaParser.java34 import org.w3c.dom.Element;
105 Element docEle = mDom.getDocumentElement(); in exportSceneData()
109 Element l = (Element)nl.item(i); in exportSceneData()
117 Element c = (Element)nl.item(i); in exportSceneData()
125 Element img = (Element)nl.item(i); in exportSceneData()
133 Element e = (Element)nl.item(i); in exportSceneData()
142 Element m = (Element)nl.item(i); in exportSceneData()
151 Element m = (Element)nl.item(i); in exportSceneData()
160 Element s = (Element)nl.item(i); in exportSceneData()
166 private void getRenderable(Element shape, Transform t) { in getRenderable()
[all …]
DSceneManager.java91 Type.Builder b = new Type.Builder(rs, Element.RGBA_8888(rs)); in getDefault()
214 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), in getStringAsAllocation()
302 Element.Builder b = new Element.Builder(rs); in getDefaultVS()
303 b.add(Element.MATRIX_4X4(rs), "model"); in getDefaultVS()
306 b = new Element.Builder(rs); in getDefaultVS()
307 b.add(Element.MATRIX_4X4(rs), "viewProj"); in getDefaultVS()
310 b = new Element.Builder(rs); in getDefaultVS()
311 b.add(Element.F32_4(rs), "position"); in getDefaultVS()
312 b.add(Element.F32_2(rs), "texture0"); in getDefaultVS()
313 b.add(Element.F32_3(rs), "normal"); in getDefaultVS()
[all …]
DShaderParam.java26 import android.renderscript.Element;
61 static ScriptField_ShaderParam_s fillInParams(Element constantElem, in fillInParams()
74 Element subElem = constantElem.getSubElement(i); in fillInParams()
77 if (subElem.getDataType() == Element.DataType.FLOAT_32) { in fillInParams()
79 } else if (subElem.getDataType() == Element.DataType.MATRIX_4X4) { in fillInParams()
90 if (subElem.getDataType() == Element.DataType.FLOAT_32) { in fillInParams()
/frameworks/base/sax/java/android/sax/
DElement.java32 public class Element { class
37 final Element parent;
40 ArrayList<Element> requiredChilden;
48 Element(Element parent, String uri, String localName, int depth) { in Element() method in Element
59 public Element getChild(String localName) { in getChild()
66 public Element getChild(String uri, String localName) { in getChild()
85 public Element requireChild(String localName) { in requireChild()
94 public Element requireChild(String uri, String localName) { in requireChild()
95 Element child = getChild(uri, localName); in requireChild()
98 requiredChilden = new ArrayList<Element>(); in requireChild()
[all …]
DRootElement.java66 public class RootElement extends Element {
101 Element current = null;
132 Element child = children.get(uri, localName); in startElement()
142 Element root = RootElement.this; in startRoot()
147 + Element.toString(uri, localName), locator); in startRoot()
153 void start(Element e, Attributes attributes) { in start()
180 Element current = this.current; in endElement()
DChildren.java30 Element getOrCreate(Element parent, String uri, String localName) { in getOrCreate()
65 Element get(String uri, String localName) { in get()
86 static class Child extends Element {
91 Child(Element parent, String uri, String localName, int depth, in Child()
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_element.java22 import android.renderscript.Element.*;
23 import android.renderscript.Element.DataKind.*;
24 import android.renderscript.Element.DataType.*;
29 Element simpleElem;
30 Element complexElem;
77 simpleElem = Element.F32_3(RS); in initializeGlobals()
DUT_copy_test.java34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2()
35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2()
58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3()
59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3()
82 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()
83 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()

1234567