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");
38 const char * Element::getSubElementName(uint32_t index) {
40 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
50 size_t Element::getSubElementArraySize(uint32_t index) {
52 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
62 uint32_t Element::getSubElementOffsetBytes(uint32_t index) {
64 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
75 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \
103 #define CREATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(android::RSC::sp<RS> rs) { \
118 #define CREATE_VECTOR(N, T) android::RSC::sp<const Element> Element::N##_2(android::RSC::sp<RS> rs) { \
124 android::RSC::sp<const Element> Element::N##_3(android::RSC::sp<RS> rs) { \
130 android::RSC::sp<const Element> Element::N##_4(android::RSC::sp<RS> rs) { \
149 void Element::updateVisibleSubElements() {
178 Element::Element(void *id, android::RSC::sp<RS> rs,
179 android::RSC::sp<const Element> * elements,
190 mElements = (android::RSC::sp<const Element> *)calloc(mElementsCount, sizeof(android::RSC::sp<Element>));
196 memcpy(mElements, elements, mElementsCount * sizeof(android::RSC::sp<Element>));
217 Element::Element(void *id, android::RSC::sp<RS> rs) :
274 Element::Element(void *id, android::RSC::sp<RS> rs,
298 Element::~Element() {
314 void Element::updateFromNative() {
319 android::RSC::sp<const Element> Element::createUser(android::RSC::sp<RS> rs, RsDataType dt) {
321 return new Element(id, rs, dt, RS_KIND_USER, false, 1);
324 android::RSC::sp<const Element> Element::createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) {
330 return new Element(id, rs, dt, RS_KIND_USER, false, size);
333 android::RSC::sp<const Element> Element::createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) {
388 return new Element(id, rs, dt, dk, true, size);
391 bool Element::isCompatible(android::RSC::sp<const Element>e) const {
409 Element::Builder::Builder(android::RSC::sp<RS> rs) {
415 mElements = (android::RSC::sp<const Element> *)calloc(mElementsVecSize, sizeof(android::RSC::sp<Element>));
421 Element::Builder::~Builder() {
432 void Element::Builder::add(android::RSC::sp<const Element>e, const char * name, uint32_t arraySize) {
456 android::RSC::sp<const Element> * newElements = (android::RSC::sp<const Element> *)calloc(mElementsVecSize, sizeof(android::RSC::sp<Element>));
461 memcpy(newElements, mElements, mElementsCount * sizeof(android::RSC::sp<Element>));
489 android::RSC::sp<const Element> Element::Builder::create() {
502 return new Element(id, mRS, mElements, mElementsCount, (const char **)mElementNames, mElementNameLengths, mArraySizes);