Home
last modified time | relevance | path

Searched refs:type_str (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/androidfw/
DResourceUtils.cpp59 if (base::expected<StringPiece, NullOrIOError> type_str = type_string_ref.string8(); in ToResourceName() local
60 type_str.ok()) { in ToResourceName()
61 name.type = type_str->data(); in ToResourceName()
62 name.type_len = type_str->size(); in ToResourceName()
63 } else if (UNLIKELY(IsIOError(type_str))) { in ToResourceName()
64 return base::unexpected(type_str.error()); in ToResourceName()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp276 StringPiece type_str; in ParseStyleParentReference() local
277 android::ExtractResourceName(name, &ref.package, &type_str, &ref.entry); in ParseStyleParentReference()
278 if (!type_str.empty()) { in ParseStyleParentReference()
280 const ResourceType* parsed_type = ParseResourceType(type_str); in ParseStyleParentReference()
283 err << "invalid resource type '" << type_str << "' for parent of style"; in ParseStyleParentReference()
289 if (!has_leading_identifiers && ref.package.empty() && !type_str.empty()) { in ParseStyleParentReference()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp500 const std::string type_str = name.type.to_string(); in ProcessResource() local
502 StringPrintf("%s.%s = (%s.%s & 0x00ffffff) | packageIdBits;", type_str.data(), in ProcessResource()
503 field_name.data(), type_str.data(), field_name.data())); in ProcessResource()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp366 const std::string type_str = util::GetString(type_pool_, type->id - 1); in ParseType() local
367 const ResourceType* parsed_type = ParseResourceType(type_str); in ParseType()
370 << "invalid type name '" << type_str << "' for type with ID " << type->id); in ParseType()