/frameworks/base/tools/aapt2/ |
D | Resource.h | 84 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 …]
|
D | Debug.cpp | 78 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 …]
|
D | NameMangler.h | 47 Maybe<ResourceName> MangleName(const ResourceName& name) { in MangleName() 54 return ResourceName(policy_.target_package_name, name.type, in MangleName()
|
D | ResourceUtils.h | 76 Maybe<ResourceName> ToResourceName( 196 const std::function<void(const ResourceName&)>& on_create_reference = {}); 200 const std::function<void(const ResourceName&)>& on_create_reference = {});
|
D | ResourceUtils.cpp | 36 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()
|
D | Debug.h | 37 const ResourceName& target_style);
|
D | SdkConstants.h | 59 ApiVersion FindAttributeSdkLevel(const ResourceName& name);
|
D | SdkConstants.cpp | 735 ApiVersion FindAttributeSdkLevel(const ResourceName& name) { in FindAttributeSdkLevel()
|
D | ValueVisitor_test.cpp | 50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"}); in TEST()
|
D | ResourceUtils_test.cpp | 139 const ResourceName kAndroidStyleFooName("android", ResourceType::kStyle, "foo"); in TEST() 140 const ResourceName kStyleFooName({}, ResourceType::kStyle, "foo"); in TEST()
|
D | ResourceParser.cpp | 89 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/ |
D | SymbolTable.h | 36 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;
|
D | SymbolTable.cpp | 67 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/ |
D | IdAssigner.cpp | 35 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()
|
D | IdAssigner.h | 34 explicit IdAssigner(const std::unordered_map<ResourceName, ResourceId>* map) in IdAssigner() argument 40 const std::unordered_map<ResourceName, ResourceId>* assigned_id_map_ = nullptr;
|
D | InlineXmlFormatParser.cpp | 67 const ResourceName& name = ref.value().name.value(); in Visit()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 1127 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/ |
D | Builders.cpp | 109 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()
|
D | Context.h | 167 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/ |
D | AssetManager2.h | 77 struct ResourceName { struct 172 bool GetResourceName(uint32_t resid, ResourceName* out_name);
|
/frameworks/base/tools/aapt2/unflatten/ |
D | BinaryResourceParser.h | 121 std::map<ResourceId, ResourceName> id_index_;
|
D | BinaryResourceParser.cpp | 51 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/ |
D | TableFlattener_test.cpp | 90 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/ |
D | Compile.cpp | 401 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()
|
D | Link.cpp | 118 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()
|