/frameworks/base/graphics/java/android/renderscript/ |
D | Element.java | 44 public class Element extends BaseObj { class 46 Element[] mElements; 161 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN() 175 public static Element U8(RenderScript rs) { in U8() 189 public static Element I8(RenderScript rs) { in I8() 196 public static Element U16(RenderScript rs) { in U16() 203 public static Element I16(RenderScript rs) { in I16() 210 public static Element U32(RenderScript rs) { in U32() 217 public static Element I32(RenderScript rs) { in I32() 224 public static Element U64(RenderScript rs) { in U64() [all …]
|
D | RenderScript.java | 589 Element mElement_U8; 590 Element mElement_I8; 591 Element mElement_U16; 592 Element mElement_I16; 593 Element mElement_U32; 594 Element mElement_I32; 595 Element mElement_U64; 596 Element mElement_I64; 597 Element mElement_F32; 598 Element mElement_F64; [all …]
|
D | ProgramVertexFixedFunction.java | 52 public InternalBuilder addInput(Element e) throws IllegalStateException { in addInput() 123 Element.Builder b = new Element.Builder(rs); in getConstantInputType() 124 b.add(Element.MATRIX4X4(rs), "MV"); in getConstantInputType() 125 b.add(Element.MATRIX4X4(rs), "P"); in getConstantInputType() 126 b.add(Element.MATRIX4X4(rs), "TexMatrix"); in getConstantInputType() 127 b.add(Element.MATRIX4X4(rs), "MVP"); in getConstantInputType() 166 Element.Builder b = new Element.Builder(mRS); in create() 167 b.add(Element.F32_4(mRS), "position"); in create() 168 b.add(Element.F32_4(mRS), "color"); in create() 169 b.add(Element.F32_3(mRS), "normal"); in create() [all …]
|
D | Allocation.java | 196 if ((mType.mElement.mType == Element.DataType.SIGNED_32) || in validateIsInt32() 197 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) { in validateIsInt32() 205 if ((mType.mElement.mType == Element.DataType.SIGNED_16) || in validateIsInt16() 206 (mType.mElement.mType == Element.DataType.UNSIGNED_16)) { in validateIsInt16() 214 if ((mType.mElement.mType == Element.DataType.SIGNED_8) || in validateIsInt8() 215 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) { in validateIsInt8() 223 if (mType.mElement.mType == Element.DataType.FLOAT_32) { in validateIsFloat32() 231 if ((mType.mElement.mType == Element.DataType.RS_ELEMENT) || in validateIsObject() 232 (mType.mElement.mType == Element.DataType.RS_TYPE) || in validateIsObject() 233 (mType.mElement.mType == Element.DataType.RS_ALLOCATION) || in validateIsObject() [all …]
|
D | Program.java | 68 Element mInputs[]; 69 Element mOutputs[]; 144 Element mInputs[]; 145 Element mOutputs[]; 158 mInputs = new Element[MAX_INPUT]; in BaseProgramBuilder() 159 mOutputs = new Element[MAX_OUTPUT]; in BaseProgramBuilder() 277 p.mInputs = new Element[mInputCount]; in initProgram() 279 p.mOutputs = new Element[mOutputCount]; in initProgram()
|
D | Type.java | 46 Element mElement; 73 public Element getElement() { in getElement() 188 mElement = new Element(elementID, mRS); in updateFromNative() 206 Element mElement; 214 public Builder(RenderScript rs, Element e) { in Builder()
|
D | Mesh.java | 182 Element e; 250 public Builder addVertexType(Element e, int size) throws IllegalStateException { in addVertexType() 307 public Builder addIndexSetType(Element e, int size, Primitive p) { in addIndexSetType() 317 Type newType(Element e, int size) { in newType() 520 Element mElement; 731 Element.Builder b = new Element.Builder(mRS); in create() 733 b.add(Element.createVector(mRS, in create() 734 Element.DataType.FLOAT_32, in create() 738 b.add(Element.F32_4(mRS), "color"); in create() 742 b.add(Element.F32_2(mRS), "texture0"); in create() [all …]
|
/frameworks/base/libs/rs/ |
D | rsElement.cpp | 24 Element::Element(Context *rsc) : ObjectBase(rsc) { in Element() function in Element 31 Element::~Element() { in ~Element() 35 void Element::preDestroy() const { in preDestroy() 44 void Element::clear() { in clear() 51 size_t Element::getSizeBits() const { in getSizeBits() 63 void Element::dumpLOGV(const char *prefix) const { in dumpLOGV() 75 void Element::serialize(OStream *stream) const { in serialize() 93 Element *Element::createFromStream(Context *rsc, IStream *stream) { in createFromStream() 109 return (Element *)Element::create(rsc, in createFromStream() 116 const Element **subElems = new const Element *[fieldCount]; in createFromStream() [all …]
|
D | rsElement.h | 29 class Element : public ObjectBase { 34 void add(const Element *e, const char *nameStr, uint32_t arraySize); 35 ObjectBaseRef<const Element> create(Context *rsc); 37 Vector<ObjectBaseRef<const Element> > mBuilderElementRefs; 38 Vector<const Element *> mBuilderElements; 59 const Element * getField(uint32_t idx) const {return mFields[idx].e.get();} in getField() 71 static Element *createFromStream(Context *rsc, IStream *stream); 73 static ObjectBaseRef<const Element> createRef(Context *rsc, 78 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count, 79 const Element **, [all …]
|
D | rsProgramVertex.cpp | 153 ObjectBaseRef<const Element> matrixElem = Element::createRef(rsc, RS_TYPE_MATRIX_4X4, in init() 155 ObjectBaseRef<const Element> f2Elem = Element::createRef(rsc, RS_TYPE_FLOAT_32, in init() 157 ObjectBaseRef<const Element> f3Elem = Element::createRef(rsc, RS_TYPE_FLOAT_32, in init() 159 ObjectBaseRef<const Element> f4Elem = Element::createRef(rsc, RS_TYPE_FLOAT_32, in init() 162 Element::Builder constBuilder; in init() 167 ObjectBaseRef<const Element> constInput = constBuilder.create(rsc); in init() 169 Element::Builder inputBuilder; in init() 174 ObjectBaseRef<const Element> attrElem = inputBuilder.create(rsc); in init()
|
D | rsType.h | 29 Type * createTex2D(const Element *, size_t w, size_t h, bool mip); 35 const Element * getElement() const {return mElement.get();} in getElement() 68 static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e, 72 static Type* getType(Context *rsc, const Element *e, in getType() 96 ObjectBaseRef<const Element> mElement;
|
D | rsProgramFragment.cpp | 100 …ObjectBaseRef<const Element> colorElem = Element::createRef(rsc, RS_TYPE_FLOAT_32, RS_KIND_USER, f… in init() 101 Element::Builder builder; in init() 103 ObjectBaseRef<const Element> constInput = builder.create(rsc); in init()
|
D | rsFont.cpp | 493 …ObjectBaseRef<const Element> colorElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, … in initRenderState() 494 …ObjectBaseRef<const Element> gammaElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, … in initRenderState() 495 Element::Builder builder; in initRenderState() 498 ObjectBaseRef<const Element> constInput = builder.create(mRSC); in initRenderState() 528 …ObjectBaseRef<const Element> alphaElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_8, RS_KIND_PIXE… in initTextTexture() 558 …ObjectBaseRef<const Element> indexElem = Element::createRef(mRSC, RS_TYPE_UNSIGNED_16, RS_KIND_USE… in initVertexArrayBuffers() 583 …ObjectBaseRef<const Element> posElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, fa… in initVertexArrayBuffers() 584 …ObjectBaseRef<const Element> texElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, fa… in initVertexArrayBuffers() 586 Element::Builder builder; in initVertexArrayBuffers() 589 ObjectBaseRef<const Element> vertexDataElem = builder.create(mRSC); in initVertexArrayBuffers()
|
D | rsType.cpp | 177 Element *elem = Element::createFromStream(rsc, stream); in createFromStream() 209 ObjectBaseRef<Type> Type::getTypeRef(Context *rsc, const Element *e, in getTypeRef() 269 Element *e = static_cast<Element *>(_e); in rsi_TypeCreate()
|
/frameworks/base/sax/java/android/sax/ |
D | Element.java | 32 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 …]
|
D | RootElement.java | 66 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()
|
D | Children.java | 30 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/libs/rs/driver/ |
D | rsdShader.h | 26 class Element; variable 71 …void initAddUserElement(const android::renderscript::Element *e, android::String8 *names, uint32_t… 96 …void logUniform(const android::renderscript::Element *field, const float *fd, uint32_t arraySize ); 97 …void setUniform(const android::renderscript::Context *rsc, const android::renderscript::Element *f…
|
D | rsdShader.cpp | 92 const Element *e = mRSProgram->mHal.state.inputElements[ct].get(); in getGLSLInputString() 94 const Element *f = e->getField(field); in getGLSLInputString() 116 const Element *e = mRSProgram->mHal.state.inputElements[ct].get(); in appendAttributes() 118 const Element *f = e->getField(field); in appendAttributes() 213 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in appendUserConstants() 215 const Element *f = e->getField(field); in appendUserConstants() 250 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { in logUniform() 296 void RsdShader::setUniform(const Context *rsc, const Element *field, const float *fd, in setUniform() 460 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement(); in setupUserConstants() 462 const Element *f = e->getField(field); in setupUserConstants() [all …]
|
D | rsdMeshObj.h | 26 class Element; variable 50 bool isValidGLComponent(const android::renderscript::Element *elem, uint32_t fieldIdx);
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestRS.java | 21 import android.renderscript.Element; 22 import android.renderscript.Element.DataKind; 23 import android.renderscript.Element.DataType; 190 b = new Builder(mRS, Element.RGBA_8888(mRS)); in initBuffers() 196 b = new Builder(mRS, Element.createPixel(mRS, DataType.UNSIGNED_16, DataKind.PIXEL_DEPTH)); in initBuffers()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestRS.java | 23 import android.renderscript.Element.DataType; 24 import android.renderscript.Element.DataKind; 175 Type.Builder b = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in initRS() 184 Element.createPixel(mRS, DataType.UNSIGNED_16, in initRS()
|
D | FBOSyncRS.java | 23 import android.renderscript.Element.DataType; 24 import android.renderscript.Element.DataKind; 176 Type.Builder b = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in initRS() 192 Element.createPixel(mRS, DataType.UNSIGNED_16, in initRS()
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
D | UT_alloc.java | 32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals() 43 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
D | SafeSaxTest.java | 20 import android.sax.Element; 92 Element entry = root.requireChild(ATOM_NAMESPACE, "entry"); in testListener() 93 Element id = entry.requireChild(ATOM_NAMESPACE, "id"); in testListener() 213 Element entry = root.getChild(ATOM_NAMESPACE, "entry"); in newContentHandler() 233 Element author = entry.getChild(ATOM_NAMESPACE, "author"); in newContentHandler() 241 Element mediaGroup = entry.getChild(MEDIA_NAMESPACE, "group"); in newContentHandler()
|