/frameworks/base/tools/aapt2/ |
D | Resource.h | 83 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 …]
|
D | Debug.cpp | 76 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 …]
|
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 | Debug.h | 37 const ResourceName& target_style);
|
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 | SdkConstants.h | 58 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 | 146 const ResourceName kAndroidStyleFooName("android", ResourceType::kStyle, in TEST() 148 const ResourceName kStyleFooName({}, ResourceType::kStyle, "foo"); in TEST()
|
/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 | 74 const ResourceName& name = ref.value().name.value(); in Visit()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 1113 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/ |
D | Builders.h | 112 ResourceName res_name = ParseNameOrDie(name); in AddValue() 120 ResourceName res_name = ParseNameOrDie(name); 193 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_;
|
D | Common.h | 51 inline ResourceName ParseNameOrDie(const android::StringPiece& str) { in ParseNameOrDie()
|
/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 | 54 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/ |
D | TableFlattener_test.cpp | 87 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/ |
D | Compile.cpp | 411 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()
|
D | Link.cpp | 116 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()
|