Lines Matching refs:Element

511 struct RenderScriptRuntime::Element {  struct in RenderScriptRuntime
564 std::vector<Element> children; // Child Element fields for structs argument
653 RenderScriptRuntime::Element element;
680 ConstString RenderScriptRuntime::Element::GetFallbackStructName() { in GetFallbackStructName()
1966 bool RenderScriptRuntime::JITElementPacked(Element &elem, in JITElementPacked()
2002 elem.type = static_cast<RenderScriptRuntime::Element::DataType>(results[0]); in JITElementPacked()
2004 static_cast<RenderScriptRuntime::Element::DataKind>(results[1]); in JITElementPacked()
2023 bool RenderScriptRuntime::JITSubelements(Element &elem, in JITSubelements()
2043 Element child; in JITSubelements()
2234 void RenderScriptRuntime::FindStructTypeName(Element &elem, in FindStructTypeName()
2241 elem.type_name = Element::GetFallbackStructName(); // Default type name if in FindStructTypeName()
2319 void RenderScriptRuntime::SetElementSize(Element &elem) { in SetElementSize()
2321 const Element::DataType type = *elem.type.get(); in SetElementSize()
2322 assert(type >= Element::RS_TYPE_NONE && type <= Element::RS_TYPE_FONT && in SetElementSize()
2330 if ((type == Element::RS_TYPE_NONE) && (elem.children.size() > 0)) { in SetElementSize()
2331 for (Element &child : elem.children) { in SetElementSize()
2339 else if (type == Element::RS_TYPE_UNSIGNED_5_6_5 || in SetElementSize()
2340 type == Element::RS_TYPE_UNSIGNED_5_5_5_1 || in SetElementSize()
2341 type == Element::RS_TYPE_UNSIGNED_4_4_4_4) { in SetElementSize()
2343 } else if (type < Element::RS_TYPE_ELEMENT) { in SetElementSize()
2498 if (file_type > Element::RS_TYPE_FONT) { in LoadAllocation()
2506 if (alloc_type >= Element::RS_TYPE_ELEMENT && in LoadAllocation()
2507 alloc_type <= Element::RS_TYPE_FONT) in LoadAllocation()
2508 target_type_name_idx = static_cast<Element::DataType>( in LoadAllocation()
2509 (alloc_type - Element::RS_TYPE_ELEMENT) + in LoadAllocation()
2510 Element::RS_TYPE_MATRIX_2X2 + 1); in LoadAllocation()
2512 if (file_type >= Element::RS_TYPE_ELEMENT && in LoadAllocation()
2513 file_type <= Element::RS_TYPE_FONT) in LoadAllocation()
2514 head_type_name_idx = static_cast<Element::DataType>( in LoadAllocation()
2515 (file_type - Element::RS_TYPE_ELEMENT) + Element::RS_TYPE_MATRIX_2X2 + in LoadAllocation()
2572 const Element &elem) { in PopulateElementHeaders()
2592 for (const RenderScriptRuntime::Element &child : elem.children) { in PopulateElementHeaders()
2613 size_t RenderScriptRuntime::CalculateElementHeaderSize(const Element &elem) { in CalculateElementHeaderSize()
2620 for (const Element &child : elem.children) in CalculateElementHeaderSize()
3206 const Element::DataType type = *alloc->element.type.get(); in DumpAllocation()
3208 assert(type >= Element::RS_TYPE_NONE && type <= Element::RS_TYPE_FONT && in DumpAllocation()
3212 if (type >= Element::RS_TYPE_ELEMENT) in DumpAllocation()
3285 if ((type == Element::RS_TYPE_NONE) && in DumpAllocation()
3287 (alloc->element.type_name != Element::GetFallbackStructName())) { in DumpAllocation()
3410 Element::DataType type = *alloc->element.type.get(); in ListAllocations()
3417 if (type >= Element::RS_TYPE_ELEMENT && type <= Element::RS_TYPE_FONT) in ListAllocations()
3419 static_cast<Element::DataType>((type - Element::RS_TYPE_ELEMENT) + in ListAllocations()
3420 Element::RS_TYPE_MATRIX_2X2 + 1); in ListAllocations()
3438 const Element::DataKind kind = *alloc->element.type_kind.get(); in ListAllocations()
3439 if (kind < Element::RS_KIND_USER || kind > Element::RS_KIND_PIXEL_YUV) in ListAllocations()