Searched refs:Utf16ToUtf8 (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/cmds/idmap2/libidmap2/ |
D | ResourceUtils.cpp | 32 using android::util::Utf16ToUtf8; 45 out += Utf16ToUtf8(StringPiece16(name.type16, name.type_len)); in ResToTypeEntryName() 51 out += Utf16ToUtf8(StringPiece16(name.entry16, name.entry_len)); in ResToTypeEntryName()
|
/frameworks/base/libs/androidfw/ |
D | ResourceUtils.cpp | 93 result += util::Utf16ToUtf8(StringPiece16(resource_name->type16, resource_name->type_len)); in ToFormattedResourceString() 105 result += util::Utf16ToUtf8(StringPiece16(resource_name->entry16, resource_name->entry_len)); in ToFormattedResourceString()
|
D | Util.cpp | 59 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8() function
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.cpp | 232 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 237 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 247 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 297 decl.prefix = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 302 decl.uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 324 el->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 329 el->name = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 350 text->text = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 157 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString() 184 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString() 202 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor))); in PseudolocalizeStyledString()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 62 using android::util::Utf16ToUtf8; 125 out += Utf16ToUtf8(StringPiece16(str16, len)); in GetValue()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Util.h | 118 std::string Utf16ToUtf8(const StringPiece16& utf16);
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 196 table_->CreatePackage(util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage() 433 util::Utf16ToUtf8(StringPiece16(entries.keyAt(i).string())); in ParseLibrary() 446 overlayable->name = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->name, in ParseOverlayable() 448 overlayable->actor = util::Utf16ToUtf8(strcpy16_dtoh((const char16_t*)header->actor, in ParseOverlayable()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 52 util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName() 57 util::Utf16ToUtf8(StringPiece16(name_in.type, name_in.typeLen))); in ToResourceName() 72 util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName() 92 util::Utf16ToUtf8(StringPiece16(name_in.type16, name_in.type_len))); in ToResourceName() 107 util::Utf16ToUtf8(StringPiece16(name_in.entry16, name_in.entry_len)); in ToResourceName()
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 435 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8() function 548 return Utf16ToUtf8(GetString16(pool, idx)); in GetString()
|
D | Util.h | 212 std::string Utf16ToUtf8(const android::StringPiece16& utf16);
|
/frameworks/base/libs/androidfw/tests/ |
D | LoadedArsc_test.cpp | 179 EXPECT_THAT(util::Utf16ToUtf8(StringPiece16(type_name16, len)), StrEq("string")); in TEST()
|