Lines Matching refs:name_in

44     const android::ResTable::resource_name& name_in) {  in ToResourceName()  argument
47 if (!name_in.package) { in ToResourceName()
52 util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName()
55 if (name_in.type) { in ToResourceName()
57 util::Utf16ToUtf8(StringPiece16(name_in.type, name_in.typeLen))); in ToResourceName()
58 } else if (name_in.type8) { in ToResourceName()
59 type = ParseResourceType(StringPiece(name_in.type8, name_in.typeLen)); in ToResourceName()
70 if (name_in.name) { in ToResourceName()
72 util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
73 } else if (name_in.name8) { in ToResourceName()
74 name_out.entry.assign(name_in.name8, name_in.nameLen); in ToResourceName()
81 Maybe<ResourceName> ToResourceName(const android::AssetManager2::ResourceName& name_in) { in ToResourceName() argument
83 if (!name_in.package) { in ToResourceName()
87 name_out.package = std::string(name_in.package, name_in.package_len); in ToResourceName()
90 if (name_in.type16) { in ToResourceName()
92 util::Utf16ToUtf8(StringPiece16(name_in.type16, name_in.type_len))); in ToResourceName()
93 } else if (name_in.type) { in ToResourceName()
94 type = ParseResourceType(StringPiece(name_in.type, name_in.type_len)); in ToResourceName()
105 if (name_in.entry16) { in ToResourceName()
107 util::Utf16ToUtf8(StringPiece16(name_in.entry16, name_in.entry_len)); in ToResourceName()
108 } else if (name_in.entry) { in ToResourceName()
109 name_out.entry = std::string(name_in.entry, name_in.entry_len); in ToResourceName()