Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp197 outName = util::utf8ToUtf16(name); in splitName()
199 outNs = util::utf8ToUtf16(StringPiece(name, (p - name))); in splitName()
200 outName = util::utf8ToUtf16(p + 1); in splitName()
207 std::u16string namespaceUri = uri != nullptr ? util::utf8ToUtf16(uri) : std::u16string(); in startNamespaceHandler()
213 prefix != nullptr ? util::utf8ToUtf16(prefix) : std::u16string(), in startNamespaceHandler()
230 attribute.value = util::utf8ToUtf16(*attrs++); in startElementHandler()
248 util::utf8ToUtf16(StringPiece(s, len)) in characterDataHandler()
271 prefix != nullptr ? util::utf8ToUtf16(prefix) : std::u16string(), in endNamespaceHandler()
284 util::utf8ToUtf16(comment) in commentDataHandler()
DXmlDom.cpp50 *outName = util::utf8ToUtf16(name); in splitName()
52 *outNs = util::utf8ToUtf16(StringPiece(name, (p - name))); in splitName()
53 *outName = util::utf8ToUtf16(p + 1); in splitName()
79 ns->namespacePrefix = util::utf8ToUtf16(prefix); in startNamespaceHandler()
83 ns->namespaceUri = util::utf8ToUtf16(uri); in startNamespaceHandler()
112 attribute.value = util::utf8ToUtf16(*attrs++); in startElementHandler()
147 text->text += util::utf8ToUtf16(StringPiece(s, len)); in characterDataHandler()
154 text->text = util::utf8ToUtf16(StringPiece(s, len)); in characterDataHandler()
165 stack->pendingComment += util::utf8ToUtf16(comment); in commentDataHandler()
/frameworks/base/tools/aapt2/compile/
DPseudolocalizer_test.cpp32 pseudo.start() + pseudo.text(util::utf8ToUtf16(input)) + pseudo.end()); in simpleHelper()
44 pseudo.text(util::utf8ToUtf16(in1)) + in compoundHelper()
45 pseudo.text(util::utf8ToUtf16(in2)) + in compoundHelper()
46 pseudo.text(util::utf8ToUtf16(in3)) + in compoundHelper()
DCompile.cpp99 util::utf8ToUtf16(dirStr), in extractResourcePathData()
100 util::utf8ToUtf16(name), in extractResourcePathData()
/frameworks/base/tools/aapt2/proto/
DTableProtoDeserializer.cpp74 util::utf8ToUtf16(pbPackage.package_name()), id); in deserializeFromPb()
76 const ResourceType* resType = parseResourceType(util::utf8ToUtf16(pbType.name())); in deserializeFromPb()
85 ResourceEntry* entry = type->findOrCreateEntry(util::utf8ToUtf16(pbEntry.name())); in deserializeFromPb()
96 entry->symbolStatus.comment = util::utf8ToUtf16(pbStatus.comment()); in deserializeFromPb()
374 outValue->setComment(util::utf8ToUtf16(pbItem.comment())); in deserializeItemCommon()
447 std::u16string utf16Name = util::utf8ToUtf16(pbFile.resource_name()); in deserializeCompiledFileFromPb()
459 utf16Name = util::utf8ToUtf16(pbSymbol.resource_name()); in deserializeCompiledFileFromPb()
DProtoHelpers.cpp36 StringPool::Ref ref = srcPool->makeRef(util::utf8ToUtf16(source.path)); in serializeSourceToPb()
/frameworks/base/tools/aapt2/link/
DLink.cpp405 std::u16string genPath = util::utf8ToUtf16(ResourceUtils::buildResourceFileName( in linkAndVersionXmlFile()
1482 options.privateSymbols = util::utf8ToUtf16(privateSymbolsPackage.value()); in link()
1487 util::utf8ToUtf16(minSdkVersion.value()); in link()
1492 util::utf8ToUtf16(targetSdkVersion.value()); in link()
1497 util::utf8ToUtf16(renameManifestPackage.value()); in link()
1502 util::utf8ToUtf16(renameInstrumentationTargetPackage.value()); in link()
1506 options.manifestFixerOptions.versionCodeDefault = util::utf8ToUtf16(versionCode.value()); in link()
1510 options.manifestFixerOptions.versionNameDefault = util::utf8ToUtf16(versionName.value()); in link()
1514 options.customJavaPackage = util::utf8ToUtf16(customJavaPackage.value()); in link()
1521 options.extraJavaPackages.insert(util::utf8ToUtf16(package)); in link()
DTableMerger.cpp296 std::u16string path = util::utf8ToUtf16(ResourceUtils::buildResourceFileName(fileDesc, in mergeFileImpl()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp252 type = parseResourceType(util::utf8ToUtf16(StringPiece(resName.type8, resName.typeLen))); in getResourceName()
266 name.entry = util::utf8ToUtf16(StringPiece(resName.name8, resName.nameLen)); in getResourceName()
/frameworks/base/tools/aapt2/util/
DUtil.h208 std::u16string utf8ToUtf16(const StringPiece& utf8);
DUtil.cpp424 std::u16string utf8ToUtf16(const StringPiece& utf8) { in utf8ToUtf16() function