Home
last modified time | relevance | path

Searched refs:Utf16ToUtf8 (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp231 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
236 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
246 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
295 decl.prefix = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
300 decl.uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
322 el->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
327 el->name = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
348 text->text = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
/frameworks/base/libs/androidfw/
DUtil.cpp58 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8() function
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp156 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString()
183 std::string new_substr = util::Utf16ToUtf8(substr); in PseudolocalizeStyledString()
201 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor))); in PseudolocalizeStyledString()
/frameworks/base/libs/androidfw/include/androidfw/
DUtil.h117 std::string Utf16ToUtf8(const StringPiece16& utf16);
/frameworks/base/tools/aapt2/util/
DUtil.cpp314 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8() function
427 return Utf16ToUtf8(GetString16(pool, idx)); in GetString()
DUtil.h202 std::string Utf16ToUtf8(const android::StringPiece16& utf16);
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp187 table_->CreatePackage(util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage()
428 util::Utf16ToUtf8(StringPiece16(entries.keyAt(i).string())); in ParseLibrary()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp49 util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName()
54 util::Utf16ToUtf8(StringPiece16(name_in.type, name_in.typeLen))); in ToResourceName()
69 util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp177 EXPECT_THAT(util::Utf16ToUtf8(StringPiece16(type_name16, len)), StrEq("string")); in TEST()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp225 util::Utf16ToUtf8(android::StringPiece16(table.getBasePackageName(i).string())); in GetAssignedPackageIds()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp910 result += util::Utf16ToUtf8(StringPiece16(name.type16, name.type_len)); in NativeGetResourceName()
922 result += util::Utf16ToUtf8(StringPiece16(name.entry16, name.entry_len)); in NativeGetResourceName()