Home
last modified time | relevance | path

Searched refs:Attribute (Results 1 – 25 of 113) 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()
/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/
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 …]
DResourceParser_test.cpp328 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F()
332 attr = test::GetValue<Attribute>(&table_, "attr/bar"); in TEST_F()
348 EXPECT_THAT(test::GetValueForConfig<Attribute>(&table_, "attr/foo", watch_config), IsNull()); in TEST_F()
349 EXPECT_THAT(test::GetValueForConfig<Attribute>(&table_, "attr/baz", watch_config), IsNull()); in TEST_F()
352 EXPECT_THAT(test::GetValue<Attribute>(&table_, "attr/foo"), NotNull()); in TEST_F()
353 EXPECT_THAT(test::GetValue<Attribute>(&table_, "attr/baz"), NotNull()); in TEST_F()
361 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F()
380 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F()
395 Attribute* attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F()
409 Attribute* enum_attr = test::GetValue<Attribute>(&table_, "attr/foo"); in TEST_F()
[all …]
/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.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,
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()
378 for (const xml::Attribute& attr : src.attributes) { in Clone()
379 xml::Attribute cloned_attr; in Clone()
415 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute()
416 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
419 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute()
430 [&](const Attribute& attr) -> bool { in RemoveAttribute()
[all …]
/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()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeSaPayload.java383 List<Attribute> decodeAttributes(int length, ByteBuffer inputBuffer) throws IkeException; in decodeAttributes()
427 public List<Attribute> decodeAttributes(int length, ByteBuffer inputBuffer)
429 List<Attribute> list = new LinkedList<>();
432 Pair<Attribute, Integer> pair = Attribute.readFrom(inputBuffer);
458 protected Transform(int type, int id, List<Attribute> attributeList) { in Transform()
485 List<Attribute> attributeList = sAttributeDecoder.decodeAttributes(length, inputBuffer); in readFrom()
506 private static void validateAttributeUniqueness(List<Attribute> attributeList) in validateAttributeUniqueness()
509 for (Attribute attr : attributeList) { in validateAttributeUniqueness()
518 protected abstract boolean hasUnrecognizedAttribute(List<Attribute> attributeList); in hasUnrecognizedAttribute()
600 protected EncryptionTransform(int id, List<Attribute> attributeList) in EncryptionTransform()
[all …]
/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/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/av/media/libeffects/config/src/
DEffectsConfig.cpp136 const char* name = xmlLibrary.Attribute("name"); in parseLibrary()
137 const char* path = xmlLibrary.Attribute("path"); in parseLibrary()
162 const char* name = xmlEffect.Attribute("name"); in parseEffect()
172 const char* libraryName = xmlImpl.Attribute("library"); in parseEffect()
173 const char* uuid = xmlImpl.Attribute("uuid"); in parseEffect()
226 const char* streamType = xmlStream.Attribute("type"); in parseStream()
238 const char* effectName = xmlApply.get().Attribute("effect"); in parseStream()
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeSaPayloadTest.java37 import com.android.ike.ikev2.message.IkeSaPayload.Attribute;
107 private List<Attribute> mAttributeListWithKeyLength128;
178 Pair<Attribute, Integer> pair = Attribute.readFrom(inputBuffer); in testDecodeAttribute()
179 Attribute attribute = pair.first; in testDecodeAttribute()
182 assertEquals(Attribute.ATTRIBUTE_TYPE_KEY_LENGTH, attribute.type); in testDecodeAttribute()
217 List<Attribute> attributeList = new LinkedList<>(); in testDecodeEncryptionTransformWithInvalidKeyLength()
218 Attribute keyLengAttr = new KeyLengthAttribute(SaProposal.KEY_LEN_AES_128 + 1); in testDecodeEncryptionTransformWithInvalidKeyLength()
265 .thenReturn(new LinkedList<Attribute>()); in testDecodePrfTransform()
300 .thenReturn(new LinkedList<Attribute>()); in testDecodeIntegrityTransform()
351 .thenReturn(new LinkedList<Attribute>()); in testDecodeDhGroupTransform()
[all …]
/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