/frameworks/compile/mclinker/lib/MC/ |
D | Attribute.cpp | 19 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 …]
|
D | AttributeSet.cpp | 20 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()
|
D | Input.cpp | 35 m_pAttr(const_cast<Attribute*>(pProxy.attr())), in Input() 66 m_pAttr(const_cast<Attribute*>(pProxy.attr())), in Input()
|
/frameworks/compile/mclinker/include/mcld/MC/ |
D | AttributeSet.h | 17 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;
|
D | Input.h | 21 class Attribute; variable 79 const Attribute* attribute() const { return m_pAttr; } in attribute() 113 Attribute* m_pAttr;
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlPullParser.h | 134 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 …]
|
D | XmlDom.h | 68 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,
|
D | XmlDom.cpp | 101 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/ |
D | ManifestFixer.cpp | 34 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 …]
|
D | XmlCompatVersioner_test.cpp | 58 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()
|
D | XmlCompatVersioner.h | 37 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,
|
D | XmlCompatVersioner.cpp | 25 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()
|
D | XmlReferenceLinker.cpp | 83 Attribute default_attribute(android::ResTable_map::TYPE_ANY); in Visit() 91 el->attributes.push_back(xml::Attribute{xml::kSchemaAndroid, "angle", "0"}); in Visit() 96 for (xml::Attribute& attr : el->attributes) { in Visit() 100 const Attribute* attribute = &default_attribute; in Visit()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util.cpp | 140 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/native/services/surfaceflinger/DisplayHardware/ |
D | Hal.h | 49 using Attribute = IComposerClient::Attribute; variable 79 inline std::string to_string(hardware::graphics::composer::hal::Attribute attribute) { in to_string() 81 case hardware::graphics::composer::hal::Attribute::INVALID: in to_string() 83 case hardware::graphics::composer::hal::Attribute::WIDTH: in to_string() 85 case hardware::graphics::composer::hal::Attribute::HEIGHT: in to_string() 87 case hardware::graphics::composer::hal::Attribute::VSYNC_PERIOD: in to_string() 89 case hardware::graphics::composer::hal::Attribute::DPI_X: in to_string() 91 case hardware::graphics::composer::hal::Attribute::DPI_Y: in to_string()
|
/frameworks/compile/mclinker/include/mcld/ |
D | AttributeOption.h | 20 const Attribute& predefined() const { return m_Predefined; } in predefined() 21 Attribute& predefined() { return m_Predefined; } in predefined() 27 Attribute m_Predefined;
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues_test.cpp | 228 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 …]
|
D | ValueVisitor.h | 41 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);
|
D | ResourceValues.cpp | 522 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() 590 Attribute* Attribute::Clone(StringPool* /*new_pool*/) const { in Clone() 591 return new Attribute(*this); in Clone() 594 std::string Attribute::MaskString() const { in MaskString() 693 void Attribute::Print(std::ostream* out) const { in Print() 713 static void BuildAttributeMismatchMessage(const Attribute& attr, const Item& value, in BuildAttributeMismatchMessage() [all …]
|
D | ResourceTable_test.cpp | 112 Attribute* attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST() 117 util::make_unique<Attribute>(), test::GetDiagnostics())); in TEST() 119 attr = test::GetValue<Attribute>(&table, "android:attr/foo"); in TEST() 128 Attribute attr_one(android::ResTable_map::TYPE_STRING); in TEST() 130 Attribute attr_two(android::ResTable_map::TYPE_STRING | android::ResTable_map::TYPE_REFERENCE); in TEST() 134 util::make_unique<Attribute>(attr_one), test::GetDiagnostics())); in TEST() 136 util::make_unique<Attribute>(attr_two), test::GetDiagnostics())); in TEST()
|
/frameworks/compile/slang/StripUnkAttr/ |
D | strip_unknown_attributes.cpp | 31 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/ |
D | EffectsConfig.cpp | 146 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/ |
D | LayoutParserWrapper.java | 49 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/ |
D | configdump.cpp | 25 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/ |
D | JavaClassGenerator_test.cpp | 340 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() 540 .AddValue("android:attr/foo", ResourceId(0x01010000), util::make_unique<Attribute>()) in TEST()
|