Home
last modified time | relevance | path

Searched refs:Attribute (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/compile/mclinker/lib/MC/
DAttribute.cpp19 bool AttrConstraint::isLegal(const Attribute& pAttr) const { in isLegal()
52 const Attribute& pBase, in AttributeProxy()
96 const Attribute*& pBase, in ReplaceOrRecord()
97 Attribute*& pCopy) { in ReplaceOrRecord()
98 Attribute* result = pParent.exists(*pCopy); in ReplaceOrRecord()
109 Attribute* copy = new Attribute(*m_pBase); in setWholeArchive()
115 Attribute* copy = new Attribute(*m_pBase); in unsetWholeArchive()
121 Attribute* copy = new Attribute(*m_pBase); in setAsNeeded()
127 Attribute* copy = new Attribute(*m_pBase); in unsetAsNeeded()
133 Attribute* copy = new Attribute(*m_pBase); in setAddNeeded()
[all …]
DAttributeSet.cpp20 AttributeSet::AttributeSet(unsigned int pNum, const Attribute& pPredefined) in AttributeSet()
35 Attribute* AttributeSet::exists(const Attribute& pAttr) const { in exists()
37 return const_cast<Attribute*>(&m_Predefined); in exists()
50 void AttributeSet::record(mcld::Attribute& pAttr) { in record()
DInput.cpp35 m_pAttr(const_cast<Attribute*>(pProxy.attr())), in Input()
66 m_pAttr(const_cast<Attribute*>(pProxy.attr())), in Input()
/frameworks/base/tools/aapt2/
DResourceValues_test.cpp228 Attribute attr1(TYPE_DIMENSION); in TEST()
233 Attribute attr2(TYPE_INTEGER | TYPE_ENUM); in TEST()
235 attr2.symbols.push_back(Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), in TEST()
242 Attribute attr3(TYPE_INTEGER | TYPE_FLAGS); in TEST()
245 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
247 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bar")), 0x02u}); in TEST()
249 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/baz")), 0x04u}); in TEST()
251 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/bat")), 0x80u}); in TEST()
262 Attribute attr4(TYPE_ENUM); in TEST()
264 Attribute::Symbol{Reference(test::ParseNameOrDie("android:id/foo")), 0x01u}); in TEST()
[all …]
DValueVisitor.h41 virtual void Visit(Attribute* value) { VisitAny(value); } in Visit()
80 virtual void Visit(const Attribute* value) { in Visit()
110 void VisitSubValues(Attribute* attribute) { in VisitSubValues()
111 for (Attribute::Symbol& symbol : attribute->symbols) { in VisitSubValues()
147 DECL_VISIT_COMPOUND_VALUE(Attribute);
DResourceValues.cpp522 Attribute::Attribute(uint32_t t) in Attribute() function in aapt::Attribute
528 std::ostream& operator<<(std::ostream& out, const Attribute::Symbol& s) { in operator <<()
542 bool Attribute::Equals(const Value* value) const { in Equals()
543 const Attribute* other = ValueCast<Attribute>(value); in Equals()
576 bool Attribute::IsCompatibleWith(const Attribute& attr) const { in IsCompatibleWith()
594 Attribute* Attribute::Clone(StringPool* /*new_pool*/) const { in Clone()
595 return new Attribute(*this); in Clone()
598 std::string Attribute::MaskString() const { in MaskString()
697 void Attribute::Print(std::ostream* out) const { in Print()
717 static void BuildAttributeMismatchMessage(const Attribute& attr, const Item& value, in BuildAttributeMismatchMessage()
[all …]
DResourceTable_test.cpp110 Attribute* attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
115 util::make_unique<Attribute>(), test::GetDiagnostics())); in TEST()
117 attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST()
126 Attribute attr_one(android::ResTable_map::TYPE_STRING); in TEST()
128 Attribute attr_two(android::ResTable_map::TYPE_STRING | android::ResTable_map::TYPE_REFERENCE); in TEST()
132 util::make_unique<Attribute>(attr_one), test::GetDiagnostics())); in TEST()
134 util::make_unique<Attribute>(attr_two), test::GetDiagnostics())); in TEST()
/frameworks/compile/mclinker/include/mcld/MC/
DAttribute.h77 class Attribute : public AttributeBase {
131 bool isLegal(const Attribute& pAttr) const;
152 const Attribute& pBase,
168 const Attribute* attr() const { return m_pBase; } in attr()
180 AttributeProxy& assign(Attribute* pBase);
184 const Attribute* m_pBase;
189 inline bool operator==(const Attribute& pLHS, const Attribute& pRHS) {
196 inline bool operator!=(const Attribute& pLHS, const Attribute& pRHS) {
DAttributeSet.h17 class Attribute; variable
27 typedef std::vector<Attribute*> AttrSet;
34 AttributeSet(unsigned int pNum, const Attribute& pPredefined);
46 Attribute* exists(const Attribute& pAttr) const;
49 void record(Attribute& pAttr);
53 const Attribute& m_Predefined;
DInput.h21 class Attribute; variable
79 const Attribute* attribute() const { return m_pAttr; } in attribute()
113 Attribute* m_pAttr;
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.h134 struct Attribute { struct
139 int compare(const Attribute& rhs) const; argument
140 bool operator<(const Attribute& rhs) const;
141 bool operator==(const Attribute& rhs) const;
142 bool operator!=(const Attribute& rhs) const;
145 using const_iterator = std::vector<Attribute>::const_iterator;
173 std::vector<Attribute> attributes;
287 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { in compare()
293 inline bool XmlPullParser::Attribute::operator<(const Attribute& rhs) const {
297 inline bool XmlPullParser::Attribute::operator==(const Attribute& rhs) const {
[all …]
DXmlDom.cpp101 static bool less_attribute(const Attribute& lhs, const Attribute& rhs) { in less_attribute()
125 Attribute attribute; in StartElementHandler()
228 Attribute attr; in CopyAttributes()
242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
380 for (const xml::Attribute& attr : src.attributes) { in Clone()
381 xml::Attribute cloned_attr; in Clone()
417 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute()
418 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
421 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute()
432 [&](const Attribute& attr) -> bool { in RemoveAttribute()
[all …]
DXmlDom.h68 explicit AaptAttribute(const ::aapt::Attribute& attr, const Maybe<ResourceId>& resid = {})
72 aapt::Attribute attribute;
77 struct Attribute { struct
94 std::vector<Attribute> attributes; argument
100 Attribute* FindAttribute(const android::StringPiece& ns, const android::StringPiece& name);
101 const Attribute* FindAttribute(const android::StringPiece& ns,
103 Attribute* FindOrCreateAttribute(const android::StringPiece& ns,
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp34 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsNotEmpty()
50 static bool NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, in NameIsJavaClassName()
72 if (xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name")) { in OptionalNameIsJavaClassName()
79 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaClassName()
89 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, "name"); in RequiredNameIsJavaPackage()
119 xml::Attribute* attr = el->FindAttribute({}, kFeatureSplit); in AutoGenerateIsFeatureSplit()
126 xml::Attribute* attr = el->FindAttribute(xml::kSchemaAndroid, kIsFeatureSplit); in AutoGenerateIsFeatureSplit()
139 el->attributes.push_back(xml::Attribute{xml::kSchemaAndroid, kIsFeatureSplit, "true"}); in AutoGenerateIsFeatureSplit()
146 xml::Attribute* attr = el->FindAttribute({}, "package"); in VerifyManifest()
176 if (xml::Attribute* attr = el->FindAttribute("", "coreApp")) { in FixCoreAppAttribute()
[all …]
DXmlCompatVersioner_test.cpp58 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
60 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
62 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
64 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
66 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
68 util::make_unique<Attribute>(TYPE_STRING)) in SetUp()
DXmlCompatVersioner.h37 xml::Attribute attr;
47 const xml::Attribute& src_attr,
70 void ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr,
81 Attribute attr;
89 std::vector<DegradeResult> Degrade(const xml::Element& src_el, const xml::Attribute& src_attr,
DXmlCompatVersioner.cpp25 static xml::Attribute CopyAttr(const xml::Attribute& src, StringPool* out_string_pool) { in CopyAttr()
26 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
35 static bool CopyAttribute(const xml::Attribute& src_attr, bool generated, xml::Element* dst_el, in CopyAttribute()
37 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
54 void XmlCompatVersioner::ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr, in ProcessRule()
165 const xml::Attribute& src_attr, in Degrade()
171 DegradeResult{xml::Attribute{xml::kSchemaAndroid, attr.name, src_attr.value, in Degrade()
DXmlReferenceLinker.cpp83 Attribute default_attribute(android::ResTable_map::TYPE_ANY); in Visit()
87 for (xml::Attribute& attr : el->attributes) { in Visit()
91 const Attribute* attribute = &default_attribute; in Visit()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp140 return xml::AaptAttribute(Attribute(), id); in CreateAttributeWithId()
185 manifest_el->attributes.push_back(xml::Attribute{"", "package", app_info.package}); in GenerateSplitManifest()
189 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
197 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
205 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
221 manifest_el->attributes.push_back(xml::Attribute{"", "split", split_name.str()}); in GenerateSplitManifest()
225 xml::Attribute{"", "configForSplit", app_info.split_name.value()}); in GenerateSplitManifest()
233 manifest_el->attributes.push_back(xml::Attribute{"", "targetConfig", target_config_str.str()}); in GenerateSplitManifest()
238 xml::Attribute{xml::kSchemaAndroid, "hasCode", "false", CreateAttributeWithId(kHasCode), in GenerateSplitManifest()
248 static Maybe<std::string> ExtractCompiledString(const xml::Attribute& attr, in ExtractCompiledString()
[all …]
/frameworks/compile/mclinker/include/mcld/
DAttributeOption.h20 const Attribute& predefined() const { return m_Predefined; } in predefined()
21 Attribute& predefined() { return m_Predefined; } in predefined()
27 Attribute m_Predefined;
/frameworks/compile/slang/StripUnkAttr/
Dstrip_unknown_attributes.cpp31 B.addAttribute(llvm::Attribute::ReadNone); in stripUnknownAttributes()
32 B.addAttribute(llvm::Attribute::ReadOnly); in stripUnknownAttributes()
39 F.removeFnAttr(llvm::Attribute::ArgMemOnly); in stripUnknownAttributes()
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp146 const char* name = xmlLibrary.Attribute("name"); in parseLibrary()
147 const char* path = xmlLibrary.Attribute("path"); in parseLibrary()
172 const char* name = xmlEffect.Attribute("name"); in parseEffect()
182 const char* libraryName = xmlImpl.Attribute("library"); in parseEffect()
183 const char* uuid = xmlImpl.Attribute("uuid"); in parseEffect()
236 const char* streamType = xmlStream.Attribute("type"); in parseStream()
248 const char* effectName = xmlApply.get().Attribute("effect"); in parseStream()
267 const char* address = xmlDevice.Attribute("address"); in parseDeviceEffects()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayoutParserWrapper.java49 private List<Attribute> mAttributes;
112 mAttributes = count > 0 ? new ArrayList<Attribute>(count) : in peekNext()
113 Collections.<Attribute>emptyList(); in peekNext()
115 mAttributes.add(new Attribute(mDelegate.getAttributeNamespace(i), in peekNext()
184 for (Attribute attribute : mAttributes) { in getAttributeValue()
206 private static class Attribute { class in LayoutParserWrapper
212 public Attribute(@Nullable String namespace, String name, String value) { in Attribute() method in LayoutParserWrapper.Attribute
/frameworks/native/opengl/tests/configdump/
Dconfigdump.cpp25 struct Attribute { struct
31 Attribute attributes[] = { argument
81 for (unsigned attr = 0 ; attr<sizeof(attributes)/sizeof(Attribute) ; attr++) { in main()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp340 Attribute attr; in TEST()
350 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
378 Attribute attr; in TEST()
388 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
419 .AddValue("android:attr/layout_gravity", util::make_unique<Attribute>()) in TEST()
420 .AddValue("android:attr/background", util::make_unique<Attribute>()) in TEST()
465 Attribute attr; in TEST()
471 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
503 .AddValue("android:attr/foo", ResourceId(0x00010000), util::make_unique<Attribute>()) in TEST()
534 .AddValue("android:attr/foo", ResourceId(0x01010000), util::make_unique<Attribute>()) in TEST()

12345