Lines Matching refs:name_in
61 std::optional<ResourceName> ToResourceName(const android::ResTable::resource_name& name_in) { in ToResourceName() argument
64 if (!name_in.package) { in ToResourceName()
68 name_out.package = android::util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName()
71 ToResourceNamedType(name_in.type, name_in.name8, name_in.typeLen); in ToResourceName()
77 if (name_in.name) { in ToResourceName()
78 name_out.entry = android::util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
79 } else if (name_in.name8) { in ToResourceName()
80 name_out.entry.assign(name_in.name8, name_in.nameLen); in ToResourceName()
87 std::optional<ResourceName> ToResourceName(const android::AssetManager2::ResourceName& name_in) { in ToResourceName() argument
89 if (!name_in.package) { in ToResourceName()
93 name_out.package = std::string(name_in.package, name_in.package_len); in ToResourceName()
96 ToResourceNamedType(name_in.type16, name_in.type, name_in.type_len); in ToResourceName()
102 if (name_in.entry16) { in ToResourceName()
103 name_out.entry = android::util::Utf16ToUtf8(StringPiece16(name_in.entry16, name_in.entry_len)); in ToResourceName()
104 } else if (name_in.entry) { in ToResourceName()
105 name_out.entry = std::string(name_in.entry, name_in.entry_len); in ToResourceName()