Home
last modified time | relevance | path

Searched refs:resource_name (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/libs/androidfw/
DResourceUtils.cpp98 std::string ToFormattedResourceString(const AssetManager2::ResourceName& resource_name) { in ToFormattedResourceString() argument
100 if (resource_name.package != nullptr) { in ToFormattedResourceString()
101 result.append(resource_name.package, resource_name.package_len); in ToFormattedResourceString()
104 if (resource_name.type != nullptr || resource_name.type16 != nullptr) { in ToFormattedResourceString()
109 if (resource_name.type != nullptr) { in ToFormattedResourceString()
110 result.append(resource_name.type, resource_name.type_len); in ToFormattedResourceString()
112 result += util::Utf16ToUtf8(StringPiece16(resource_name.type16, resource_name.type_len)); in ToFormattedResourceString()
116 if (resource_name.entry != nullptr || resource_name.entry16 != nullptr) { in ToFormattedResourceString()
121 if (resource_name.entry != nullptr) { in ToFormattedResourceString()
122 result.append(resource_name.entry, resource_name.entry_len); in ToFormattedResourceString()
[all …]
DAssetManager2.cpp991 auto resource_name = ToResourceName(last_resolution_.type_string_ref, in GetLastResourceResolution() local
994 resource_name_string = resource_name.has_value() ? in GetLastResourceResolution()
995 ToFormattedResourceString(resource_name.value()) : "<unknown>"; in GetLastResourceResolution()
1436 const std::string& resource_name, const std::string& fallback_type, in GetResourceId() argument
1439 if (!ExtractResourceName(resource_name, &package_name, &type, &entry)) { in GetResourceId()
/frameworks/base/tools/aapt2/optimize/
DObfuscator.cpp117 ResourceName resource_name({}, type->named_type, entry->name); in HandleShortenFilePaths() local
118 if (path_shorten_exemptions.find(resource_name) != path_shorten_exemptions.end()) { in HandleShortenFilePaths()
158 ResourceName resource_name({}, type_name, entry.name); in ObfuscateResourceName() local
160 name_collapse_exemptions.find(resource_name) != name_collapse_exemptions.end()) { in ObfuscateResourceName()
161 onObfuscate(Result::Keep_ExemptionList, resource_name); in ObfuscateResourceName()
169 onObfuscate(Result::Keep_Overlayable, resource_name); in ObfuscateResourceName()
171 onObfuscate(Result::Obfuscated, resource_name); in ObfuscateResourceName()
186 const ResourceName& resource_name) { in HandleCollapseKeyStringPool() argument
188 id_resource_map.insert({entryResId, resource_name.entry}); in HandleCollapseKeyStringPool()
/frameworks/base/cmds/idmap2/tests/
DFabricatedOverlayTests.cpp82 ASSERT_EQ("com.example.target:drawable/dr1", it.resource_name); in TEST()
91 ASSERT_EQ("com.example.target:integer/int1", it.resource_name); in TEST()
99 ASSERT_EQ("com.example.target:string/int3", it.resource_name); in TEST()
107 ASSERT_EQ("com.example.target:string/string1", it.resource_name); in TEST()
115 ASSERT_EQ("com.example.target.split:integer/int2", it.resource_name); in TEST()
172 ASSERT_EQ("com.example.target:integer/int1", it.resource_name); in TEST()
179 ASSERT_EQ("com.example.target:string/string1", it.resource_name); in TEST()
/frameworks/base/cmds/idmap2/include/idmap2/
DFabricatedOverlay.h45 Builder& SetResourceValue(const std::string& resource_name, uint8_t data_type,
48 Builder& SetResourceValue(const std::string& resource_name, uint8_t data_type,
52 Builder& SetResourceValue(const std::string& resource_name,
68 std::string resource_name; member
DResourceContainer.h60 std::string resource_name; member
/frameworks/base/tools/aapt2/tools/consumers/
Dduplicates.py101 resource_name = None
109 resource_name = "{0}/{1}".format(attrs["type"], attrs["name"])
111 resource_name = "{0}/{1}".format(tag_name, attrs["name"])
113 resource_name,
/frameworks/base/cmds/idmap2/libidmap2/
DFabricatedOverlay.cpp89 const std::string& resource_name, uint8_t data_type, uint32_t data_value, in SetResourceValue() argument
92 Entry{resource_name, data_type, data_value, "", std::nullopt, 0, 0, configuration, false}); in SetResourceValue()
97 const std::string& resource_name, uint8_t data_type, const std::string& data_string_value, in SetResourceValue() argument
100 Entry{resource_name, in SetResourceValue()
113 const std::string& resource_name, std::optional<android::base::borrowed_fd>&& binary_value, in SetResourceValue() argument
116 entries_.emplace_back(Entry{resource_name, 0, 0, "", binary_value, in SetResourceValue()
195 if (!android::ExtractResourceName(StringPiece(res_entry.resource_name), &package_substr, in Build()
197 return Error("failed to parse resource name '%s'", res_entry.resource_name.c_str()); in Build()
202 return Error("resource name '%s' missing type name", res_entry.resource_name.c_str()); in Build()
206 return Error("resource name '%s' missing entry name", res_entry.resource_name.c_str()); in Build()
DResourceMapping.cpp127 const auto target_resid = target.GetResourceId(overlay_pair.resource_name); in FromContainers()
/frameworks/base/cmds/idmap2/self_targeting/
DSelfTargeting.cpp54 builder.SetResourceValue(entry_params.resource_name, *entry_params.data_binary_value, in CreateFrroFile()
58 builder.SetResourceValue(entry_params.resource_name, dataType, in CreateFrroFile()
61 builder.SetResourceValue(entry_params.resource_name, dataType, in CreateFrroFile()
/frameworks/base/tools/aapt2/java/
DProguardRules.h67 inline void AddReference(const UsageLocation& file, const ResourceName& resource_name) { in AddReference() argument
68 reference_set_[resource_name].insert(file); in AddReference()
DJavaClassGenerator.cpp556 const ResourceNameRef resource_name(package_name_to_generate, target_type, in ProcessType() local
562 err << "invalid symbol name '" << resource_name << "'"; in ProcessType()
567 if (resource_name.type.type == ResourceType::kStyleable) { in ProcessType()
570 if (!ProcessStyleable(resource_name, id, *styleable, package_name_to_generate, in ProcessType()
575 ProcessResource(resource_name, id, *entry, out_type_class_def, out_rewrite_method_def, in ProcessType()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp516 ResourceNameRef resource_name; in ParseResourceConfig() local
517 if (!ResourceUtils::ParseResourceName(resource_string, &resource_name)) { in ParseResourceConfig()
521 if (!resource_name.package.empty()) { in ParseResourceConfig()
528 out_resource_exclude_list.insert(resource_name.ToResourceName()); in ParseResourceConfig()
530 out_name_collapse_exemptions.insert(resource_name.ToResourceName()); in ParseResourceConfig()
532 out_path_shorten_exemptions.insert(resource_name.ToResourceName()); in ParseResourceConfig()
/frameworks/base/tools/aapt2/
DResourcesInternal.proto31 string resource_name = 1; field
38 string resource_name = 1; field
DResourceUtils.h77 std::optional<ResourceName> ToResourceName(const android::ResTable::resource_name& name);
DDebug.cpp547 std::string resource_name; member
578 return a.resource_name < b.resource_name; in DumpOverlayable()
596 printer->Println(item.resource_name); in DumpOverlayable()
DResourceUtils.cpp61 std::optional<ResourceName> ToResourceName(const android::ResTable::resource_name& name_in) { in ToResourceName()
/frameworks/base/libs/androidfw/tests/
DSplit_test.cpp135 ResTable::resource_name baseName; in TEST_F()
141 ResTable::resource_name frName; in TEST_F()
236 ResTable::resource_name name; in TEST_F()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceUtils.h38 std::string ToFormattedResourceString(const AssetManager2::ResourceName& resource_name);
DResourceTypes.h1876 std::string resource_name; member
1980 struct resource_name struct
1992 bool getResourceName(uint32_t resID, bool allowUtf8, resource_name* outName) const; argument
DAssetManager2.h246 const std::string& resource_name, const std::string& fallback_type = {},
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp541 const auto& resource_name = iter->second; in ParseStagedAliases() local
543 if (!table_->AddResource(NewResourceBuilder(resource_name) in ParseStagedAliases()
554 if (!table_->RemoveResource(resource_name, staged_id)) { in ParseStagedAliases()
556 staged_entries_to_remove_.insert({resource_name, staged_id}); in ParseStagedAliases()
DTableFlattener.cpp478 const ResourceName& resource_name) { in FlattenTypes() argument
489 << resource_name.to_string() in FlattenTypes()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp606 if (!ResourceUtils::ParseResourceName(pb_file.resource_name(), &name_ref)) { in DeserializeCompiledFileFromPb()
608 error << "invalid resource name in compiled file header: " << pb_file.resource_name(); in DeserializeCompiledFileFromPb()
626 if (!ResourceUtils::ParseResourceName(pb_symbol.resource_name(), &name_ref)) { in DeserializeCompiledFileFromPb()
629 << pb_file.resource_name(); in DeserializeCompiledFileFromPb()
DProtoSerialize.cpp380 const ResourceName& resource_name) { in SerializeTableToPb() argument

12