Searched defs:utf16 (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 51 std::u16string utf16; local 52 utf16.resize(utf16_length); 53 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin(), 55 return utf16; 58 std::string Utf16ToUtf8(const StringPiece16& utf16) { argument 59 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); 66 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
|
/frameworks/minikin/tests/unittest/ |
H A D | LayoutTest.cpp | 49 auto utf16 = utf8ToUtf16(text); local 50 Range range(0, utf16.size()); 51 layout.doLayout(utf16, range, Bidi::FORCE_LTR, paint, StartHyphenEdit::NO_EDIT, 59 auto utf16 = utf8ToUtf16(text); local 60 Range range(0, utf16.size()); 61 layout.doLayoutWithPrecomputedPieces(utf16, range, Bidi::FORCE_LTR, paint,
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 124 auto utf16 = asciiToUtf16(text); local 127 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, minikin::Bidi::LTR, 133 auto utf16 = asciiToUtf16(text); local 136 canvas->drawTextOnPath(utf16.get(), strlen(text), minikin::Bidi::LTR, path, 0, 0, glyphPaint, 161 std::unique_ptr<uint16_t[]> utf16(new uint16_t[length]); 163 utf16.get()[i] = str[i]; 165 return utf16;
|
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 307 std::u16string utf16; local 308 utf16.resize(utf16_length); 310 &*utf16.begin(), utf16_length + 1); 311 return utf16; 314 std::string Utf16ToUtf8(const StringPiece16& utf16) { argument 315 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); 322 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
|
/frameworks/base/tools/aapt2/cmd/ |
H A D | Link.cpp | 274 const StringPiece& path, bool keep_raw_values, bool utf16, 287 options.use_utf16 = utf16; 664 false /*utf16*/, options_.output_format, archive_writer); 1578 true /*utf16*/, options_.output_format, writer); 273 FlattenXml(IAaptContext* context, const xml::XmlResource& xml_res, const StringPiece& path, bool keep_raw_values, bool utf16, OutputFormat format, IArchiveWriter* writer) argument
|
Completed in 135 milliseconds