Home
last modified time | relevance | path

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

123

/frameworks/base/tools/aapt2/
DResource.h88 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 …]
DResourceUtils.h78 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 = {});
DResourceTable_test.cpp127 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 …]
DNameMangler.h47 Maybe<ResourceName> MangleName(const ResourceName& name) { in MangleName()
54 return ResourceName(policy_.target_package_name, name.type, in MangleName()
DDebug.cpp76 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 …]
DResourceUtils.cpp43 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()
DDebug.h38 static void PrintStyleGraph(ResourceTable* table, const ResourceName& target_style);
DValueVisitor_test.cpp50 Reference ref(ResourceName{"android", ResourceType::kAttr, "foo"}); in TEST()
/frameworks/base/tools/aapt2/cmd/
DOptimize_test.cpp43 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/
DSymbolTable.cpp73 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 …]
DSymbolTable.h37 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/
DResourceFilter_test.cpp40 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()
DResourceFilter.cpp23 ResourceFilter::ResourceFilter(const std::unordered_set<ResourceName>& blacklist) in ResourceFilter()
31 ResourceName resource = ResourceName({}, type->type, (*it)->name); in Consume()
DResourceFilter.h31 explicit ResourceFilter(const std::unordered_set<ResourceName>& blacklist);
37 std::unordered_set<ResourceName> blacklist_;
/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;
/frameworks/base/tools/aapt2/link/
DReferenceLinker.cpp187 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/
DProguardRules.h39 ResourceName name;
68 inline void AddReference(const UsageLocation& file, const ResourceName& resource_name) { in AddReference()
83 std::map<ResourceName, std::set<UsageLocation>> reference_set_;
DProguardRules.cpp97 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/
DResourceUtils.h36 AssetManager2::ResourceName* out_name);
39 std::string ToFormattedResourceString(AssetManager2::ResourceName* resource_name);
/frameworks/base/libs/androidfw/
DResourceUtils.cpp54 AssetManager2::ResourceName* out_name) { in ToResourceName()
79 std::string ToFormattedResourceString(AssetManager2::ResourceName* resource_name) { in ToFormattedResourceString()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp120 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()
DContext.h181 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/
DTableFlattener.h46 std::set<ResourceName> name_collapse_exemptions;
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java1421 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 …]

123