Lines Matching defs:Element
26 android::RSC::sp<const Element> Element::getSubElement(uint32_t index) {
28 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
32 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Illegal sub-element index");
38 const char * Element::getSubElementName(uint32_t index) {
40 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
44 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Illegal sub-element index");
50 size_t Element::getSubElementArraySize(uint32_t index) {
52 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
56 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Illegal sub-element index");
62 uint32_t Element::getSubElementOffsetBytes(uint32_t index) {
64 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
68 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Illegal sub-element index");
75 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \
93 CREATE_USER(ELEMENT, ELEMENT);
102 #define CREATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \
116 #define CREATE_VECTOR(N, T) android::RSC::sp<const Element> Element::N##_2(android::RSC::sp<RS> rs) { \
122 android::RSC::sp<const Element> Element::N##_3(android::RSC::sp<RS> rs) { \
128 android::RSC::sp<const Element> Element::N##_4(android::RSC::sp<RS> rs) { \
146 void Element::updateVisibleSubElements() {
169 Element::Element(void *id, android::RSC::sp<RS> rs,
170 std::vector<android::RSC::sp<Element> > &elements,
243 Element::Element(void *id, android::RSC::sp<RS> rs,
265 Element::~Element() {
268 void Element::updateFromNative() {
273 android::RSC::sp<const Element> Element::createUser(android::RSC::sp<RS> rs, RsDataType dt) {
275 return new Element(id, rs, dt, RS_KIND_USER, false, 1);
278 android::RSC::sp<const Element> Element::createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) {
284 return new Element(id, rs, dt, RS_KIND_USER, false, size);
287 android::RSC::sp<const Element> Element::createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) {
341 return new Element(id, rs, dt, dk, true, size);
344 bool Element::isCompatible(android::RSC::sp<const Element>e) const {
360 Element::Builder::Builder(android::RSC::sp<RS> rs) {
365 void Element::Builder::add(android::RSC::sp</*const*/ Element>e, std::string &name, uint32_t arraySize) {
390 android::RSC::sp<const Element> Element::Builder::create() {
393 const Element ** elementArray = (const Element **)calloc(fieldCount, sizeof(Element *));
411 return new Element(id, mRS, mElements, mElementNames, mArraySizes);