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.cpp273 StringPiece type_str; in ParseStyleParentReference() local
274 android::ExtractResourceName(name, &ref.package, &type_str, &ref.entry); in ParseStyleParentReference()
275 if (!type_str.empty()) { in ParseStyleParentReference()
277 const ResourceType* parsed_type = ParseResourceType(type_str); in ParseStyleParentReference()
280 err << "invalid resource type '" << type_str << "' for parent of style"; in ParseStyleParentReference()
286 if (!has_leading_identifiers && ref.package.empty() && !type_str.empty()) { in ParseStyleParentReference()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp503 const auto type_str = name.type.to_string(); in ProcessResource() local
505 StringPrintf("%s.%s = (%s.%s & 0x00ffffff) | packageIdBits;", type_str.data(), in ProcessResource()
506 field_name.data(), type_str.data(), field_name.data())); in ProcessResource()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp372 const std::string type_str = android::util::GetString(type_pool_, type->id - 1); in ParseType() local
373 std::optional<ResourceNamedTypeRef> parsed_type = ParseResourceNamedType(type_str); in ParseType()
376 << "invalid type name '" << type_str << "' for type with ID " << int(type->id)); in ParseType()