Home
last modified time | relevance | path

Searched refs:ResourceName (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/tools/aapt2/
DResource.h84 struct ResourceName { struct
89 ResourceName() = default; argument
90 ResourceName(const android::StringPiece& p, ResourceType t, const android::StringPiece& e);
92 int compare(const ResourceName& other) const;
112 ResourceNameRef(const ResourceName& rhs); // NOLINT(implicit)
116 ResourceNameRef& operator=(const ResourceName& rhs);
118 ResourceName ToResourceName() const;
155 ResourceName name;
161 ResourceName name;
178 ResourceName name;
[all …]
DDebug.cpp78 const ResourceName& name = entry.key.name.value(); in Visit()
106 const ResourceName& name = attr.name.value(); in Visit()
162 const ResourceName name(package->name, type->type, entry->name); in PrintTable()
191 static size_t GetNodeIndex(const std::vector<ResourceName>& names, const ResourceName& name) { in GetNodeIndex()
198 void Debug::PrintStyleGraph(ResourceTable* table, const ResourceName& target_style) { in PrintStyleGraph()
199 std::map<ResourceName, std::set<ResourceName>> graph; in PrintStyleGraph()
201 std::queue<ResourceName> styles_to_visit; in PrintStyleGraph()
204 const ResourceName& style_name = styles_to_visit.front(); in PrintStyleGraph()
205 std::set<ResourceName>& parents = graph[style_name]; in PrintStyleGraph()
225 std::vector<ResourceName> names; in PrintStyleGraph()
[all …]
DNameMangler.h47 Maybe<ResourceName> MangleName(const ResourceName& name) { in MangleName()
54 return ResourceName(policy_.target_package_name, name.type, in MangleName()
DResourceUtils.h76 Maybe<ResourceName> ToResourceName(
196 const std::function<void(const ResourceName&)>& on_create_reference = {});
200 const std::function<void(const ResourceName&)>& on_create_reference = {});
DResourceUtils.cpp36 Maybe<ResourceName> ToResourceName( in ToResourceName()
38 ResourceName name_out; in ToResourceName()
285 ref.name = ResourceName(package, ResourceType::kAttr, name.empty() ? trimmed_str : name); in ParseXmlAttributeName()
335 const ResourceName& enum_symbol_resource_name = symbol.symbol.name.value(); in TryParseEnumSymbol()
364 const ResourceName& flag_symbol_resource_name = in TryParseFlagSymbol()
575 const std::function<void(const ResourceName&)>& on_create_reference) { in TryParseItemForAttribute()
636 const std::function<void(const ResourceName&)>& on_create_reference) { in TryParseItemForAttribute()
DDebug.h37 const ResourceName& target_style);
DSdkConstants.h59 ApiVersion FindAttributeSdkLevel(const ResourceName& name);
DSdkConstants.cpp735 ApiVersion FindAttributeSdkLevel(const ResourceName& name) { in FindAttributeSdkLevel()
DValueVisitor_test.cpp50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"}); in TEST()
DResourceUtils_test.cpp139 const ResourceName kAndroidStyleFooName("android", ResourceType::kStyle, "foo"); in TEST()
140 const ResourceName kStyleFooName({}, ResourceType::kStyle, "foo"); in TEST()
DResourceParser.cpp89 ResourceName name;
290 std::set<ResourceName> stripped_resources; in ParseResources()
346 for (const ResourceName& stripped_resource : stripped_resources) { in ParseResources()
593 auto on_create_reference = [&](const ResourceName& name) { in ParseXml()
1131 ResourceName({}, ResourceType::kStyle, style_name.substr(0, pos))); in ParseStyle()
/frameworks/base/tools/aapt2/process/
DSymbolTable.h36 inline android::hash_t hash_type(const ResourceName& name) { in hash_type()
89 const Symbol* FindByName(const ResourceName& name);
108 android::LruCache<ResourceName, std::shared_ptr<Symbol>> cache_;
123 const ResourceName& name, const std::vector<std::unique_ptr<ISymbolSource>>& sources) = 0;
138 const ResourceName& name,
154 const ResourceName& name) = 0;
177 const ResourceName& name) override;
197 const ResourceName& name) override;
DSymbolTable.cpp67 const SymbolTable::Symbol* SymbolTable::FindByName(const ResourceName& name) { in FindByName()
68 const ResourceName* name_with_package = &name; in FindByName()
73 Maybe<ResourceName> name_with_package_impl; in FindByName()
75 name_with_package_impl = ResourceName(mangler_->GetTargetPackageName(), name.type, name.entry); in FindByName()
86 const ResourceName* mangled_name = name_with_package; in FindByName()
87 Maybe<ResourceName> mangled_name_impl; in FindByName()
157 const ResourceName& name, const std::vector<std::unique_ptr<ISymbolSource>>& sources) { in FindByName()
179 const ResourceName& name) { in FindByName()
184 return FindByName(ResourceName(name.package, ResourceType::kAttrPrivate, name.entry)); in FindByName()
271 Maybe<ResourceName> parsed_name = ResourceUtils::ToResourceName(entry_name); in LookupAttributeInTable()
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner.cpp35 const ResourceName& name, ResourceTablePackage* pkg, in AssignId()
56 std::map<ResourceId, ResourceName> assigned_ids; in Consume()
63 const ResourceName name(package->name, type->type, entry->name); in Consume()
84 const ResourceName& existing_name = result.first->second; in Consume()
101 const ResourceName& pre_assigned_name = stable_id_entry.first; in Consume()
104 const ResourceName& existing_name = result.first->second; in Consume()
DIdAssigner.h34 explicit IdAssigner(const std::unordered_map<ResourceName, ResourceId>* map) in IdAssigner() argument
40 const std::unordered_map<ResourceName, ResourceId>* assigned_id_map_ = nullptr;
DInlineXmlFormatParser.cpp67 const ResourceName& name = ref.value().name.value(); in Visit()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1127 final ResourceName name = new ResourceName(packageName, resId); in getDrawable()
1479 private Drawable getCachedIcon(@NonNull ResourceName name) { in getCachedIcon()
1505 private void putCachedIcon(@NonNull ResourceName name, @NonNull Drawable dr) { in putCachedIcon()
1522 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast()
1530 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast()
1550 private static final class ResourceName { class in ApplicationPackageManager
1554 ResourceName(String _packageName, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
1559 ResourceName(ApplicationInfo aInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
1563 ResourceName(ComponentInfo cInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
1567 ResourceName(ResolveInfo rInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.cpp109 ResourceName res_name = ParseNameOrDie(name); in AddValue()
118 ResourceName res_name = ParseNameOrDie(name); in SetSymbolState()
159 Attribute::Symbol{Reference(ResourceName({}, ResourceType::kId, name)), value}); in AddItem()
DContext.h167 std::unique_ptr<SymbolTable::Symbol> FindByName(const ResourceName& name) override { in FindByName()
184 std::map<ResourceName, SymbolTable::Symbol*> name_map_;
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h77 struct ResourceName { struct
172 bool GetResourceName(uint32_t resid, ResourceName* out_name);
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.h121 std::map<ResourceId, ResourceName> id_index_;
DBinaryResourceParser.cpp51 explicit ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceName>* mapping) in ReferenceIdToNameVisitor()
71 const std::map<ResourceId, ResourceName>* mapping_;
360 const ResourceName name( in ParseType()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener_test.cpp90 const ResourceName expected_res_name = test::ParseNameOrDie(expected_name); in Exists()
126 Maybe<ResourceName> resName = ResourceUtils::ToResourceName(actual_name); in Exists()
259 const ResourceName name = test::ParseNameOrDie( in BuildTableWithSparseEntries()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp401 xmlres->file.name = ResourceName({}, *ParseResourceType(path_data.resource_dir), path_data.name); in CompileXml()
462 res_file.name = ResourceName({}, *ParseResourceType(path_data.resource_dir), path_data.name); in CompilePng()
572 res_file.name = ResourceName({}, *ParseResourceType(path_data.resource_dir), path_data.name); in CompileFile()
DLink.cpp118 std::unordered_map<ResourceName, ResourceId> stable_id_map;
213 const ResourceName& name, in FindByName()
557 file_op.xml_to_flatten->file.name = ResourceName(pkg->name, type->type, entry->name); in Flatten()
616 const std::unordered_map<ResourceName, ResourceId>& id_map, in WriteStableIdMapToPath() argument
625 const ResourceName& name = entry.first; in WriteStableIdMapToPath()
640 std::unordered_map<ResourceName, ResourceId>* out_id_map) { in LoadStableIdMap() argument
1186 Maybe<ResourceName> mangled_name = in MergeCompiledFile()
1519 ResourceName name(package->name, type->type, entry->name); in Run()

12