/frameworks/base/tools/aapt2/ |
D | Resource.h | 88 struct ResourceName { struct 93 ResourceName() = default; argument 94 ResourceName(const android::StringPiece& p, ResourceType t, const android::StringPiece& e); 96 int compare(const ResourceName& other) const; 116 ResourceNameRef(const ResourceName& rhs); // NOLINT(google-explicit-constructor) 120 ResourceNameRef& operator=(const ResourceName& rhs); 124 ResourceName ToResourceName() const; 164 ResourceName name; 177 ResourceName name; 197 ResourceName name; [all …]
|
D | ResourceUtils.h | 78 Maybe<ResourceName> ToResourceName( 84 Maybe<ResourceName> ToResourceName( 85 const android::AssetManager2::ResourceName& name_in); 207 const std::function<void(const ResourceName&)>& on_create_reference = {}); 211 const std::function<void(const ResourceName&)>& on_create_reference = {});
|
D | ResourceTable_test.cpp | 127 const ResourceName name = test::ParseNameOrDie("android:attr/foo"); in TEST() 201 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST() 227 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST() 257 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST() 279 const ResourceName foo = test::ParseNameOrDie("android:string/foo"); in TEST() 285 const ResourceName bar = test::ParseNameOrDie("android:string/bar"); in TEST() 290 const ResourceName baz = test::ParseNameOrDie("android:string/baz"); in TEST() 299 const ResourceName foo = test::ParseNameOrDie("android:string/foo"); in TEST() 304 const ResourceName bar = test::ParseNameOrDie("android:string/bar"); in TEST() 312 const ResourceName name = test::ParseNameOrDie("android:string/foo"); in TEST() [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 | Debug.cpp | 76 const ResourceName& parent_name = parent_ref.name.value(); in Visit() 160 const ResourceName& name = entry.key.name.value(); in Visit() 216 const ResourceName& name = attr.name.value(); in Visit() 352 static size_t GetNodeIndex(const std::vector<ResourceName>& names, const ResourceName& name) { in GetNodeIndex() 359 void Debug::PrintStyleGraph(ResourceTable* table, const ResourceName& target_style) { in PrintStyleGraph() 360 std::map<ResourceName, std::set<ResourceName>> graph; in PrintStyleGraph() 362 std::queue<ResourceName> styles_to_visit; in PrintStyleGraph() 365 const ResourceName& style_name = styles_to_visit.front(); in PrintStyleGraph() 366 std::set<ResourceName>& parents = graph[style_name]; in PrintStyleGraph() 386 std::vector<ResourceName> names; in PrintStyleGraph() [all …]
|
D | ResourceUtils.cpp | 43 Maybe<ResourceName> ToResourceName( in ToResourceName() 46 ResourceName name_out; in ToResourceName() 81 Maybe<ResourceName> ToResourceName(const android::AssetManager2::ResourceName& name_in) { in ToResourceName() 82 ResourceName name_out; in ToResourceName() 328 ref.name = ResourceName(package, ResourceType::kAttr, name.empty() ? trimmed_str : name); in ParseXmlAttributeName() 378 const ResourceName& enum_symbol_resource_name = symbol.symbol.name.value(); in TryParseEnumSymbol() 407 const ResourceName& flag_symbol_resource_name = in TryParseFlagSymbol() 631 const std::function<void(const ResourceName&)>& on_create_reference) { in TryParseItemForAttribute() 692 const std::function<void(const ResourceName&)>& on_create_reference) { in TryParseItemForAttribute()
|
D | Debug.h | 38 static void PrintStyleGraph(ResourceTable* table, const ResourceName& target_style);
|
D | ValueVisitor_test.cpp | 50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"}); in TEST()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize_test.cpp | 43 const std::set<ResourceName>& name_collapse_exemptions = in TEST_F() 47 EXPECT_THAT(name_collapse_exemptions, Contains(ResourceName({}, ResourceType::kString, "foo"))); in TEST_F() 48 EXPECT_THAT(name_collapse_exemptions, Contains(ResourceName({}, ResourceType::kDimen, "bar"))); in TEST_F() 60 const std::set<ResourceName>& name_collapse_exemptions = in TEST_F() 64 EXPECT_THAT(name_collapse_exemptions, Contains(ResourceName({}, ResourceType::kString, "foo"))); in TEST_F() 65 EXPECT_THAT(name_collapse_exemptions, Contains(ResourceName({}, ResourceType::kDimen, "bar"))); in TEST_F()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 73 const SymbolTable::Symbol* SymbolTable::FindByName(const ResourceName& name) { in FindByName() 74 const ResourceName* name_with_package = &name; in FindByName() 79 Maybe<ResourceName> name_with_package_impl; in FindByName() 81 name_with_package_impl = ResourceName(mangler_->GetTargetPackageName(), name.type, name.entry); in FindByName() 92 const ResourceName* mangled_name = name_with_package; in FindByName() 93 Maybe<ResourceName> mangled_name_impl; in FindByName() 163 const ResourceName& name, const std::vector<std::unique_ptr<ISymbolSource>>& sources) { in FindByName() 185 const ResourceName& name) { in FindByName() 190 return FindByName(ResourceName(name.package, ResourceType::kAttrPrivate, name.entry)); in FindByName() 303 android::AssetManager2::ResourceName name; in LookupAttributeInTable() [all …]
|
D | SymbolTable.h | 37 inline android::hash_t hash_type(const ResourceName& name) { in hash_type() 91 const Symbol* FindByName(const ResourceName& name); 110 android::LruCache<ResourceName, std::shared_ptr<Symbol>> cache_; 125 const ResourceName& name, const std::vector<std::unique_ptr<ISymbolSource>>& sources) = 0; 140 const ResourceName& name, 156 const ResourceName& name) = 0; 179 const ResourceName& name) override; 200 const ResourceName& name) override;
|
/frameworks/base/tools/aapt2/optimize/ |
D | ResourceFilter_test.cpp | 40 std::unordered_set<ResourceName> blacklist = { in TEST() 41 ResourceName({}, ResourceType::kString, "blacklisted"), in TEST() 42 ResourceName({}, ResourceType::kString, "blacklisted2"), in TEST() 64 std::unordered_set<ResourceName> blacklist = { in TEST() 65 ResourceName({}, ResourceType::kString, "blacklisted"), in TEST()
|
D | ResourceFilter.cpp | 23 ResourceFilter::ResourceFilter(const std::unordered_set<ResourceName>& blacklist) in ResourceFilter() 31 ResourceName resource = ResourceName({}, type->type, (*it)->name); in Consume()
|
D | ResourceFilter.h | 31 explicit ResourceFilter(const std::unordered_set<ResourceName>& blacklist); 37 std::unordered_set<ResourceName> blacklist_;
|
/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;
|
/frameworks/base/tools/aapt2/link/ |
D | ReferenceLinker.cpp | 187 const ResourceName& name = ref.name.value(); in IsSymbolVisible() 211 const ResourceName& name = reference.name.value(); in ResolveSymbol() 215 ResourceName(callsite.package, name.type, name.entry)); in ResolveSymbol() 230 symbol = symbols->FindByName(ResourceName(split_package, name.type, name.entry)); in ResolveSymbol() 311 ResourceName& full_name = fully_qualified.name.value(); in WriteResourceName() 330 const ResourceName& ref_name = ref.name.value(); in WriteAttributeName() 341 ResourceName& full_name = fully_qualified.name.value(); in WriteAttributeName() 394 ResourceName name(package->name, type->type, entry->name); in Consume()
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.h | 39 ResourceName name; 68 inline void AddReference(const UsageLocation& file, const ResourceName& resource_name) { in AddReference() 83 std::map<ResourceName, std::set<UsageLocation>> reference_set_;
|
D | ProguardRules.cpp | 97 ResourceName ref_name = ref->name.value(); in AddReference() 99 ref_name = ResourceName(file_.name.package, ref_name.type, ref_name.entry); in AddReference() 494 ReferenceVisitor(aapt::IAaptContext* context, ResourceName from, KeepSet* keep_set) in ReferenceVisitor() 500 ResourceName reference_name = reference->name.value(); in Visit() 502 reference_name = ResourceName(context_->GetCompilationPackage(), reference_name.type, in Visit() 511 ResourceName from_; 521 ResourceName from(pkg->name, type->type, entry->name); in CollectResourceReferences()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceUtils.h | 36 AssetManager2::ResourceName* out_name); 39 std::string ToFormattedResourceString(AssetManager2::ResourceName* resource_name);
|
/frameworks/base/libs/androidfw/ |
D | ResourceUtils.cpp | 54 AssetManager2::ResourceName* out_name) { in ToResourceName() 79 std::string ToFormattedResourceString(AssetManager2::ResourceName* resource_name) { in ToFormattedResourceString()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 120 ResourceName res_name = ParseNameOrDie(name); in AddValue() 130 ResourceName res_name = ParseNameOrDie(name); in SetSymbolState() 141 ResourceName res_name = ParseNameOrDie(name); in SetOverlayable() 184 Attribute::Symbol{Reference(ResourceName({}, ResourceType::kId, name)), value}); in AddItem()
|
D | Context.h | 181 std::unique_ptr<SymbolTable::Symbol> FindByName(const ResourceName& name) override { in FindByName() 198 std::map<ResourceName, SymbolTable::Symbol*> name_map_;
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.h | 46 std::set<ResourceName> name_collapse_exemptions;
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 1421 final ResourceName name = new ResourceName(packageName, resId); in getDrawable() 1847 private Drawable getCachedIcon(@NonNull ResourceName name) { in getCachedIcon() 1873 private void putCachedIcon(@NonNull ResourceName name, @NonNull Drawable dr) { in putCachedIcon() 1890 ResourceName nm = sIconCache.keyAt(i); in handlePackageBroadcast() 1898 ResourceName nm = sStringCache.keyAt(i); in handlePackageBroadcast() 1918 private static final class ResourceName { class in ApplicationPackageManager 1922 ResourceName(String _packageName, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName 1927 ResourceName(ApplicationInfo aInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName 1931 ResourceName(ComponentInfo cInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName 1935 ResourceName(ResolveInfo rInfo, int _iconId) { in ResourceName() method in ApplicationPackageManager.ResourceName [all …]
|