Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DResourceUtils.cpp79 std::string ToFormattedResourceString(AssetManager2::ResourceName* resource_name) { in ToFormattedResourceString() argument
81 if (resource_name->package != nullptr) { in ToFormattedResourceString()
82 result.append(resource_name->package, resource_name->package_len); in ToFormattedResourceString()
85 if (resource_name->type != nullptr || resource_name->type16 != nullptr) { in ToFormattedResourceString()
90 if (resource_name->type != nullptr) { in ToFormattedResourceString()
91 result.append(resource_name->type, resource_name->type_len); in ToFormattedResourceString()
93 result += util::Utf16ToUtf8(StringPiece16(resource_name->type16, resource_name->type_len)); in ToFormattedResourceString()
97 if (resource_name->entry != nullptr || resource_name->entry16 != nullptr) { in ToFormattedResourceString()
102 if (resource_name->entry != nullptr) { in ToFormattedResourceString()
103 result.append(resource_name->entry, resource_name->entry_len); in ToFormattedResourceString()
[all …]
DAssetManager2.cpp602 ResourceName resource_name; in GetLastResourceResolution() local
612 &resource_name); in GetLastResourceResolution()
613 resource_name_string = ToFormattedResourceString(&resource_name); in GetLastResourceResolution()
979 uint32_t AssetManager2::GetResourceId(const std::string& resource_name, in GetResourceId() argument
983 if (!ExtractResourceName(resource_name, &package_name, &type, &entry)) { in GetResourceId()
DResourceTypes.cpp4265 bool ResTable::getResourceName(uint32_t resID, bool allowUtf8, resource_name* outName) const in getResourceName()
5835 resource_name rname; in stringToValue()
5875 resource_name rname; in stringToValue()
7171 resource_name current_res; in createIdmap()
7491 resource_name resName; in print()
7578 resource_name resName; in print()
/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/tools/aapt2/cmd/
DOptimize.cpp305 for (StringPiece resource_name : util::Tokenize(contents, ',')) { in ExtractObfuscationWhitelistFromConfig() local
307 resource_name.to_string()); in ExtractObfuscationWhitelistFromConfig()
335 ResourceNameRef resource_name; in ExtractConfig() local
336 if (!ResourceUtils::ParseResourceName(resource_string, &resource_name)) { in ExtractConfig()
340 if (!resource_name.package.empty()) { in ExtractConfig()
347 options->resources_blacklist.insert(resource_name.ToResourceName()); in ExtractConfig()
350 resource_name.entry.to_string()); in ExtractConfig()
/frameworks/base/tools/aapt2/java/
DProguardRules.h68 inline void AddReference(const UsageLocation& file, const ResourceName& resource_name) { in AddReference() argument
69 reference_set_[resource_name].insert(file); in AddReference()
DJavaClassGenerator.cpp540 const ResourceNameRef resource_name( in ProcessType() local
548 err << "invalid symbol name '" << resource_name << "'"; in ProcessType()
553 if (resource_name.type == ResourceType::kStyleable) { in ProcessType()
559 ProcessStyleable(resource_name, id, *styleable, package_name_to_generate, out_type_class_def, in ProcessType()
562 ProcessResource(resource_name, id, *entry, out_type_class_def, out_rewrite_method_def, in ProcessType()
/frameworks/base/tools/aapt2/
DResourcesInternal.proto32 string resource_name = 1; field
39 string resource_name = 1; field
DResourceUtils.h79 const android::ResTable::resource_name& name);
DResourceUtils.cpp44 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()
DIdmap_test.cpp96 ResTable::resource_name res_name; in TEST_F()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceUtils.h39 std::string ToFormattedResourceString(AssetManager2::ResourceName* resource_name);
DAssetManager2.h203 uint32_t GetResourceId(const std::string& resource_name, const std::string& fallback_type = {},
DResourceTypes.h1769 struct resource_name struct
1781 bool getResourceName(uint32_t resID, bool allowUtf8, resource_name* outName) const; argument
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp584 if (!ResourceUtils::ParseResourceName(pb_file.resource_name(), &name_ref)) { in DeserializeCompiledFileFromPb()
586 error << "invalid resource name in compiled file header: " << pb_file.resource_name(); in DeserializeCompiledFileFromPb()
604 if (!ResourceUtils::ParseResourceName(pb_symbol.resource_name(), &name_ref)) { in DeserializeCompiledFileFromPb()
607 << pb_file.resource_name(); in DeserializeCompiledFileFromPb()
/frameworks/base/cmds/idmap/
Dinspect.cpp151 struct ResTable::resource_name data; in resource_metadata()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp119 ResTable::resource_name actual_name; in Exists()