Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/rs/support/java/src/android/support/v8/renderscript/
DElement.java61 public class Element extends BaseObj { class
63 Element[] mElements;
237 public Element getSubElement(int index) { in getSubElement()
317 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN()
331 public static Element U8(RenderScript rs) { in U8()
345 public static Element I8(RenderScript rs) { in I8()
352 public static Element U16(RenderScript rs) { in U16()
359 public static Element I16(RenderScript rs) { in I16()
366 public static Element U32(RenderScript rs) { in U32()
373 public static Element I32(RenderScript rs) { in I32()
[all …]
DScriptIntrinsicHistogram.java48 public static ScriptIntrinsicHistogram create(RenderScript rs, Element e) { in create()
49 if ((!e.isCompatible(Element.U8_4(rs))) && in create()
50 (!e.isCompatible(Element.U8_3(rs))) && in create()
51 (!e.isCompatible(Element.U8_2(rs))) && in create()
52 (!e.isCompatible(Element.U8(rs)))) { in create()
104 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) &&
105 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) &&
106 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) &&
107 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) {
151 if (mOut.getType().getElement() != Element.U32(mRS) &&
[all …]
DScriptIntrinsicColorMatrix.java52 public static ScriptIntrinsicColorMatrix create(RenderScript rs, Element e) { in create()
53 if (!e.isCompatible(Element.U8_4(rs))) { in create()
225 if (!ain.getElement().isCompatible(Element.U8(mRS)) &&
226 !ain.getElement().isCompatible(Element.U8_2(mRS)) &&
227 !ain.getElement().isCompatible(Element.U8_3(mRS)) &&
228 !ain.getElement().isCompatible(Element.U8_4(mRS)) &&
229 !ain.getElement().isCompatible(Element.F32(mRS)) &&
230 !ain.getElement().isCompatible(Element.F32_2(mRS)) &&
231 !ain.getElement().isCompatible(Element.F32_3(mRS)) &&
232 !ain.getElement().isCompatible(Element.F32_4(mRS))) {
[all …]
DAllocation.java84 private Element.DataType validateObjectIsPrimitiveArray(Object d, boolean checkType) { in validateObjectIsPrimitiveArray()
99 return Element.DataType.SIGNED_64; in validateObjectIsPrimitiveArray()
107 return Element.DataType.SIGNED_32; in validateObjectIsPrimitiveArray()
115 return Element.DataType.SIGNED_16; in validateObjectIsPrimitiveArray()
123 return Element.DataType.SIGNED_8; in validateObjectIsPrimitiveArray()
130 return Element.DataType.FLOAT_32; in validateObjectIsPrimitiveArray()
137 return Element.DataType.FLOAT_64; in validateObjectIsPrimitiveArray()
253 public Element getElement() { in getElement()
400 if ((mType.mElement.mType == Element.DataType.SIGNED_64) || in validateIsInt64()
401 (mType.mElement.mType == Element.DataType.UNSIGNED_64)) { in validateIsInt64()
[all …]
/frameworks/rs/cpp/
DScriptIntrinsics.cpp35 ScriptIntrinsic::ScriptIntrinsic(sp<RS> rs, int id, sp<const Element> e) in ScriptIntrinsic()
46 sp<ScriptIntrinsic3DLUT> ScriptIntrinsic3DLUT::create(const sp<RS>& rs, const sp<const Element>& e)… in create()
47 if (e->isCompatible(Element::U8_4(rs)) == false) { in create()
54 ScriptIntrinsic3DLUT::ScriptIntrinsic3DLUT(sp<RS> rs, sp<const Element> e) in ScriptIntrinsic3DLUT()
80 sp<ScriptIntrinsicBlend> ScriptIntrinsicBlend::create(const sp<RS>& rs, const sp<const Element>& e)… in create()
81 if (e->isCompatible(Element::U8_4(rs)) == false) { in create()
88 ScriptIntrinsicBlend::ScriptIntrinsicBlend(sp<RS> rs, sp<const Element> e) in ScriptIntrinsicBlend()
215 sp<ScriptIntrinsicBlur> ScriptIntrinsicBlur::create(const sp<RS>& rs, const sp<const Element>& e) { in create()
216 if ((e->isCompatible(Element::U8_4(rs)) == false) && in create()
217 (e->isCompatible(Element::U8(rs)) == false)) { in create()
[all …]
DElement.cpp23 using android::RSC::Element;
25 android::RSC::sp<const Element> Element::getSubElement(uint32_t index) { in getSubElement()
37 const char * Element::getSubElementName(uint32_t index) { in getSubElementName()
49 size_t Element::getSubElementArraySize(uint32_t index) { in getSubElementArraySize()
61 uint32_t Element::getSubElementOffsetBytes(uint32_t index) { in getSubElementOffsetBytes()
74 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(const android::RSC::sp<RS>& rs…
102 #define CREATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(const android::RSC::sp<RS>…
117 #define CREATE_VECTOR(N, T) android::RSC::sp<const Element> Element::N##_2(const android::RSC::sp<R…
123 android::RSC::sp<const Element> Element::N##_3(const android::RSC::sp<RS> &rs) { \
129 android::RSC::sp<const Element> Element::N##_4(const android::RSC::sp<RS> &rs) { \
[all …]
DrsCppStructs.h45 class Element; variable
449 sp<const Element> U8;
450 sp<const Element> U8_2;
451 sp<const Element> U8_3;
452 sp<const Element> U8_4;
453 sp<const Element> I8;
454 sp<const Element> I8_2;
455 sp<const Element> I8_3;
456 sp<const Element> I8_4;
457 sp<const Element> U16;
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicHistogram.java44 public static ScriptIntrinsicHistogram create(RenderScript rs, Element e) { in create()
45 if ((!e.isCompatible(Element.U8_4(rs))) && in create()
46 (!e.isCompatible(Element.U8_3(rs))) && in create()
47 (!e.isCompatible(Element.U8_2(rs))) && in create()
48 (!e.isCompatible(Element.U8(rs)))) { in create()
94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach()
95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach()
141 if (mOut.getType().getElement() != Element.U32(mRS) && in setOutput()
[all …]
DElement.java53 public class Element extends BaseObj { class
55 Element[] mElements;
233 public Element getSubElement(int index) { in getSubElement()
313 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN()
331 public static Element U8(RenderScript rs) { in U8()
349 public static Element I8(RenderScript rs) { in I8()
360 public static Element U16(RenderScript rs) { in U16()
371 public static Element I16(RenderScript rs) { in I16()
382 public static Element U32(RenderScript rs) { in U32()
393 public static Element I32(RenderScript rs) { in I32()
[all …]
DScriptIntrinsicColorMatrix.java63 public static ScriptIntrinsicColorMatrix create(RenderScript rs, Element e) { in create()
245 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach()
246 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
247 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
248 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach()
249 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach()
250 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach()
251 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach()
252 !ain.getElement().isCompatible(Element.F32_4(mRS))) { in forEach()
257 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach()
[all …]
DScriptIntrinsicResize.java53 Element e = ain.getElement(); in setInput()
54 if (!e.isCompatible(Element.U8(mRS)) && in setInput()
55 !e.isCompatible(Element.U8_2(mRS)) && in setInput()
56 !e.isCompatible(Element.U8_3(mRS)) && in setInput()
57 !e.isCompatible(Element.U8_4(mRS)) && in setInput()
58 !e.isCompatible(Element.F32(mRS)) && in setInput()
59 !e.isCompatible(Element.F32_2(mRS)) && in setInput()
60 !e.isCompatible(Element.F32_3(mRS)) && in setInput()
61 !e.isCompatible(Element.F32_4(mRS))) { in setInput()
/frameworks/rs/
DrsElement.cpp23 Element::Element(Context *rsc) : ObjectBase(rsc) { in Element() function in android::renderscript::Element
32 Element::~Element() { in ~Element()
36 void Element::operator delete(void* ptr) { in operator delete()
38 Element *e = (Element*) ptr; in operator delete()
43 void Element::preDestroy() const { in preDestroy()
53 void Element::clear() { in clear()
71 size_t Element::getSizeBits() const { in getSizeBits()
83 size_t Element::getSizeBitsUnpadded() const { in getSizeBitsUnpadded()
95 void Element::dumpLOGV(const char *prefix) const { in dumpLOGV()
107 void Element::serialize(Context *rsc, OStream *stream) const { in serialize()
[all …]
DrsElement.h39 class Element : public ObjectBase {
51 const Element **fields;
89 const Element * getField(uint32_t idx) const {return mFields[idx].e.get();} in getField()
103 static Element *createFromStream(Context *rsc, IStream *stream);
105 static ObjectBaseRef<const Element> createRef(Context *rsc,
110 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count,
111 const Element **,
116 static const Element* create(Context *rsc, in create()
121 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create()
125 static const Element* create(Context *rsc, size_t count,
[all …]
/frameworks/rs/tests/lldb/cpp/Allocations/
DAllocations.cpp83 Type::Builder typeI8Builder(mRS, Element::I8(mRS)); in createSignedAllocations()
89 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2); in createSignedAllocations()
90 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4); in createSignedAllocations()
91 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSize / 4); in createSignedAllocations()
93 Type::Builder typeI16_2Builder(mRS, Element::I16_2(mRS)); in createSignedAllocations()
98 mShortAllocation = Allocation::createSized(mRS, Element::I16(mRS), mAllocSize); in createSignedAllocations()
100 mShort3Allocation = Allocation::createSized(mRS, Element::I16_3(mRS), mAllocSize / 4); in createSignedAllocations()
101 mShort4Allocation = Allocation::createSized(mRS, Element::I16_4(mRS), mAllocSize / 4); in createSignedAllocations()
103 Type::Builder typeI32_3Builder(mRS, Element::I32_3(mRS)); in createSignedAllocations()
107 mIntAllocation = Allocation::createSized(mRS, Element::I32(mRS), mAllocSize); in createSignedAllocations()
[all …]
/frameworks/rs/tests/lldb/jni/Allocations/jniallocations/
Djniallocations.cpp87 Type::Builder typeI8Builder(mRS, Element::I8(mRS)); in createSignedAllocations()
93 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2); in createSignedAllocations()
94 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4); in createSignedAllocations()
95 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSize / 4); in createSignedAllocations()
97 Type::Builder typeI16_2Builder(mRS, Element::I16_2(mRS)); in createSignedAllocations()
102 mShortAllocation = Allocation::createSized(mRS, Element::I16(mRS), mAllocSize); in createSignedAllocations()
104 mShort3Allocation = Allocation::createSized(mRS, Element::I16_3(mRS), mAllocSize / 4); in createSignedAllocations()
105 mShort4Allocation = Allocation::createSized(mRS, Element::I16_4(mRS), mAllocSize / 4); in createSignedAllocations()
107 Type::Builder typeI32_3Builder(mRS, Element::I32_3(mRS)); in createSignedAllocations()
111 mIntAllocation = Allocation::createSized(mRS, Element::I32(mRS), mAllocSize); in createSignedAllocations()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlDom.h36 class Element; variable
44 Element* parent = nullptr;
51 using ElementCloneFunc = std::function<void(const Element&, Element*)>;
85 class Element : public Node {
101 Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name);
102 Element* FindChildWithAttribute(const android::StringPiece& ns, const android::StringPiece& name,
106 std::vector<Element*> GetChildElements();
110 std::unique_ptr<Element> CloneElement(const ElementCloneFunc& el_cloner) const;
137 std::unique_ptr<xml::Element> root;
149 Element* FindRootElement(Node* node);
[all …]
DXmlDom.cpp42 std::unique_ptr<xml::Element> root;
43 std::stack<xml::Element*> node_stack;
44 std::unique_ptr<xml::Element> pending_element;
89 stack->pending_element = util::make_unique<Element>(); in StartNamespaceHandler()
110 std::unique_ptr<Element> el; in StartElementHandler()
114 el = util::make_unique<Element>(); in StartElementHandler()
134 Element* this_el = el.get(); in StartElementHandler()
222 static void CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) { in CopyAttributes()
262 std::unique_ptr<Element> root; in Inflate()
263 std::stack<Element*> node_stack; in Inflate()
[all …]
/frameworks/base/sax/java/android/sax/
DElement.java30 public class Element { class
35 final Element parent;
38 ArrayList<Element> requiredChilden;
46 Element(Element parent, String uri, String localName, int depth) { in Element() method in Element
57 public Element getChild(String localName) { in getChild()
64 public Element getChild(String uri, String localName) { in getChild()
83 public Element requireChild(String localName) { in requireChild()
92 public Element requireChild(String uri, String localName) { in requireChild()
93 Element child = getChild(uri, localName); in requireChild()
96 requiredChilden = new ArrayList<Element>(); in requireChild()
[all …]
/frameworks/rs/tests/cpp_api/cppf16/
Dcompute.cpp4 using android::RSC::Element;
11 void testAllocationCreation(const sp<RS>& rs, const sp<const Element>& e, uint32_t nDims) { in testAllocationCreation()
34 sp<const Element> half = Element::F16(rs); in main()
35 sp<const Element> half2 = Element::F16_2(rs); in main()
36 sp<const Element> half3 = Element::F16_3(rs); in main()
37 sp<const Element> half4 = Element::F16_4(rs); in main()
/frameworks/rs/tests/lldb/java/Allocations/src/com/android/rs/allocations/
DMainActivity.java120 Type.Builder typeI8Builder = new Type.Builder(mRS, Element.I8(mRS)); in createSignedAllocations()
127 mChar2Allocation = Allocation.createSized(mRS, Element.I8_2(mRS), mAllocSize / 2); in createSignedAllocations()
129 mChar3Allocation = Allocation.createSized(mRS, Element.I8_3(mRS), mAllocSize / 4); in createSignedAllocations()
131 mChar4Allocation = Allocation.createSized(mRS, Element.I8_4(mRS), mAllocSize / 4); in createSignedAllocations()
134 Type.Builder typeI16_2Builder = new Type.Builder(mRS, Element.I16_2(mRS)); in createSignedAllocations()
139 mShortAllocation = Allocation.createSized(mRS, Element.I16(mRS), mAllocSize); in createSignedAllocations()
143 mShort3Allocation = Allocation.createSized(mRS, Element.I16_3(mRS), mAllocSize / 4); in createSignedAllocations()
145 mShort4Allocation = Allocation.createSized(mRS, Element.I16_4(mRS), mAllocSize / 4); in createSignedAllocations()
148 Type.Builder typeI32_3Builder = new Type.Builder(mRS, Element.I32_3(mRS)); in createSignedAllocations()
152 mIntAllocation = Allocation.createSized(mRS, Element.I32(mRS), mAllocSize); in createSignedAllocations()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DStream.h32 class Element<audio_stream_type_t>
35 Element(const std::string &name) in Element() function
39 ~Element() {} in ~Element()
76 Element(const Element &object);
77 Element &operator=(const Element &object);
87 typedef Element<audio_stream_type_t> Stream;
DInputSource.h31 class Element<audio_source_t>
34 Element(const std::string &name) in Element() function
38 ~Element() {} in ~Element()
75 Element(const Element &object);
76 Element &operator=(const Element &object);
84 typedef Element<audio_source_t> InputSource;
DStrategy.h31 class Element<routing_strategy>
34 Element(const std::string &name) in Element() function
38 ~Element() {} in ~Element()
75 Element(const Element &object);
76 Element &operator=(const Element &object);
84 typedef Element<routing_strategy> Strategy;
DUsage.h31 class Element<audio_usage_t>
34 Element(const std::string &name) in Element() function
38 ~Element() {} in ~Element()
75 Element(const Element &object);
76 Element &operator=(const Element &object);
83 typedef Element<audio_usage_t> Usage;
/frameworks/base/tools/bit/
Daapt.cpp50 struct Element { struct
51 Element* parent; argument
56 vector<Element*> children; argument
64 Element(); argument
65 ~Element();
68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse);
72 Element::Element() in Element() function in Element
76 Element::~Element() in ~Element()
85 Element::GetAttr(const string& ns, const string& name) const in GetAttr()
98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse) in FindElements()
[all …]

12345678910>>...18