Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/
DResource.h83 struct ResourceName { struct
88 ResourceName() = default; argument
89 ResourceName(const android::StringPiece& p, ResourceType t, const android::StringPiece& e);
91 int compare(const ResourceName& other) const;
111 ResourceNameRef(const ResourceName& rhs); // NOLINT(implicit)
115 ResourceNameRef& operator=(const ResourceName& rhs);
117 ResourceName ToResourceName() const;
154 ResourceName name;
160 ResourceName name;
177 ResourceName name;
[all …]
DDebug.cpp76 const ResourceName& name = entry.key.name.value(); in Visit()
100 const ResourceName& name = attr.name.value(); in Visit()
154 ResourceName name(package->name, type->type, entry->name); in PrintTable()
183 static size_t GetNodeIndex(const std::vector<ResourceName>& names, in GetNodeIndex()
184 const ResourceName& name) { in GetNodeIndex()
192 const ResourceName& target_style) { in PrintStyleGraph()
193 std::map<ResourceName, std::set<ResourceName>> graph; in PrintStyleGraph()
195 std::queue<ResourceName> styles_to_visit; in PrintStyleGraph()
198 const ResourceName& style_name = styles_to_visit.front(); in PrintStyleGraph()
199 std::set<ResourceName>& parents = graph[style_name]; 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 = {});
DDebug.h37 const ResourceName& target_style);
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()
DSdkConstants.h58 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.cpp146 const ResourceName kAndroidStyleFooName("android", ResourceType::kStyle, in TEST()
148 const ResourceName kStyleFooName({}, ResourceType::kStyle, "foo"); in TEST()
/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.cpp74 const ResourceName& name = ref.value().name.value(); in Visit()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1113 final ResourceName name = new ResourceName(packageName, resId); in getDrawable()
1465 private Drawable getCachedIcon(@NonNull ResourceName name) { in getCachedIcon()
1491 private void putCachedIcon(@NonNull ResourceName name, @NonNull Drawable dr) { in putCachedIcon()
1508 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast()
1516 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast()
1536 private static final class ResourceName { class in ApplicationPackageManager
1540 ResourceName(String _packageName, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
1545 ResourceName(ApplicationInfo aInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
1549 ResourceName(ComponentInfo cInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
1553 ResourceName(ResolveInfo rInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.h112 ResourceName res_name = ParseNameOrDie(name); in AddValue()
120 ResourceName res_name = ParseNameOrDie(name);
193 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_;
DCommon.h51 inline ResourceName ParseNameOrDie(const android::StringPiece& str) { in ParseNameOrDie()
/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.cpp54 const std::map<ResourceId, ResourceName>* mapping) in ReferenceIdToNameVisitor()
74 const std::map<ResourceId, ResourceName>* mapping_;
366 const ResourceName name( in ParseType()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener_test.cpp87 const ResourceName expected_res_name = test::ParseNameOrDie(expected_name); in Exists()
123 Maybe<ResourceName> resName = ResourceUtils::ToResourceName(actual_name); in Exists()
257 const ResourceName name = test::ParseNameOrDie( in BuildTableWithSparseEntries()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp411 xmlres->file.name = ResourceName({}, *ParseResourceType(path_data.resource_dir), path_data.name); in CompileXml()
475 res_file.name = ResourceName({}, *ParseResourceType(path_data.resource_dir), path_data.name); in CompilePng()
584 res_file.name = ResourceName({}, *ParseResourceType(path_data.resource_dir), path_data.name); in CompileFile()
DLink.cpp116 std::unordered_map<ResourceName, ResourceId> stable_id_map;
211 const ResourceName& name, in FindByName()
556 file_op.xml_to_flatten->file.name = ResourceName(pkg->name, type->type, entry->name); in Flatten()
610 const std::unordered_map<ResourceName, ResourceId>& id_map, in WriteStableIdMapToPath() argument
619 const ResourceName& name = entry.first; in WriteStableIdMapToPath()
634 std::unordered_map<ResourceName, ResourceId>* out_id_map) { in LoadStableIdMap() argument
1179 Maybe<ResourceName> mangled_name = in MergeCompiledFile()
1511 ResourceName name(package->name, type->type, entry->name); in Run()

12