Lines Matching refs:Element

23 using android::RSC::Element;
25 android::RSC::sp<const Element> Element::getSubElement(uint32_t index) {
27 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
37 const char * Element::getSubElementName(uint32_t index) {
39 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
49 size_t Element::getSubElementArraySize(uint32_t index) {
51 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
61 uint32_t Element::getSubElementOffsetBytes(uint32_t index) {
63 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
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> &rs) { \
117 #define CREATE_VECTOR(N, T) android::RSC::sp<const Element> Element::N##_2(const android::RSC::sp<RS> &rs) { \
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) { \
148 void Element::updateVisibleSubElements() {
177 Element::Element(void *id, android::RSC::sp<RS> rs,
178 android::RSC::sp<const Element> * elements,
189 mElements = (android::RSC::sp<const Element> *)calloc(mElementsCount, sizeof(android::RSC::sp<const Element>));
195 memcpy(mElements, elements, mElementsCount * sizeof(android::RSC::sp<Element>));
216 Element::Element(void *id, android::RSC::sp<RS> rs) :
273 Element::Element(void *id, android::RSC::sp<RS> rs,
297 Element::~Element() {
313 void Element::updateFromNative() {
318 android::RSC::sp<const Element> Element::createUser(const android::RSC::sp<RS>& rs, RsDataType dt) {
320 return new Element(id, rs, dt, RS_KIND_USER, false, 1);
323 android::RSC::sp<const Element> Element::createVector(const android::RSC::sp<RS>& rs, RsDataType dt, uint32_t size) {
329 return new Element(id, rs, dt, RS_KIND_USER, false, size);
332 android::RSC::sp<const Element> Element::createPixel(const android::RSC::sp<RS>& rs, RsDataType dt, RsDataKind dk) {
387 return new Element(id, rs, dt, dk, true, size);
390 bool Element::isCompatible(const android::RSC::sp<const Element>&e) const {
408 Element::Builder::Builder(android::RSC::sp<RS> rs) {
414 mElements = (android::RSC::sp<const Element> *)calloc(mElementsVecSize, sizeof(android::RSC::sp<const Element>));
420 Element::Builder::~Builder() {
431 void Element::Builder::add(const android::RSC::sp<const Element>&e, const char * name, uint32_t arraySize) {
455 android::RSC::sp<const Element> * newElements = (android::RSC::sp<const Element> *)calloc(mElementsVecSize, sizeof(android::RSC::sp<const Element>));
460 memcpy(newElements, mElements, mElementsCount * sizeof(android::RSC::sp<Element>));
488 android::RSC::sp<const Element> Element::Builder::create() {
501 return new Element(id, mRS, mElements, mElementsCount, (const char **)mElementNames, mElementNameLengths, mArraySizes);