Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DLayoutTest.cpp62 text = utf8ToUtf16("oneword"); in TEST_F()
80 text = utf8ToUtf16("two words"); in TEST_F()
98 text = utf8ToUtf16("three words test"); in TEST_F()
116 text = utf8ToUtf16("two spaces"); in TEST_F()
146 text = utf8ToUtf16("oneword"); in TEST_F()
164 text = utf8ToUtf16("two words"); in TEST_F()
183 text = utf8ToUtf16("three words test"); in TEST_F()
203 text = utf8ToUtf16("two spaces"); in TEST_F()
236 text = utf8ToUtf16("oneword"); in TEST_F()
254 text = utf8ToUtf16("two words"); in TEST_F()
[all …]
DBidiUtilsTest.cpp33 auto text = utf8ToUtf16(LTR_1); in TEST()
92 auto text = utf8ToUtf16(RTL_1); in TEST()
151 auto text = utf8ToUtf16(std::string(LTR_1) + RTL_1); in TEST()
152 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
153 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
239 auto text = utf8ToUtf16(std::string(RTL_1) + LTR_1); in TEST()
240 uint32_t ltrLength = utf8ToUtf16(LTR_1).size(); in TEST()
241 uint32_t rtlLength = utf8ToUtf16(RTL_1).size(); in TEST()
327 auto text = utf8ToUtf16(std::string(LTR_1) + RTL_1 + LTR_2); in TEST()
328 uint32_t ltr1Length = utf8ToUtf16(LTR_1).size(); in TEST()
[all …]
DLayoutCacheTest.cpp48 auto text = utf8ToUtf16("android"); in TEST()
66 auto text1 = utf8ToUtf16("android"); in TEST()
67 auto text2 = utf8ToUtf16("ANDROID"); in TEST()
253 auto text = utf8ToUtf16("android"); in TEST()
264 auto text1 = utf8ToUtf16(std::string(10, c)); in TEST()
277 auto text = utf8ToUtf16(std::string(130, 'a')); in TEST()
DMeasuredTextTest.cpp61 auto text = utf8ToUtf16("Hello, World!"); in TEST()
79 auto text = utf8ToUtf16("Hello, World!"); in TEST()
104 auto text = utf8ToUtf16("Hello, World!"); in TEST()
122 auto text = utf8ToUtf16("Hello, World!"); in TEST()
147 auto text = utf8ToUtf16("Hello, World!"); in TEST()
217 auto text = utf8ToUtf16("Hello, World!"); in TEST()
294 auto text = utf8ToUtf16("Hello, World!"); in TEST()
364 auto text = utf8ToUtf16("Hello, World!"); in TEST()
DGreedyLineBreakerTest.cpp98 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
305 const std::vector<uint16_t> textBuf = utf8ToUtf16("Hyphenation is hyphenation."); in TEST_F()
580 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F()
633 const auto textBuf = utf8ToUtf16(""); in TEST_F()
641 const auto textBuf = utf8ToUtf16("A"); in TEST_F()
651 const auto textBuf = utf8ToUtf16("AB"); in TEST_F()
671 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
692 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
720 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
772 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
[all …]
DOptimalLineBreakerTest.cpp107 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
842 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F()
899 const auto textBuf = utf8ToUtf16(""); in TEST_F()
907 const auto textBuf = utf8ToUtf16("A"); in TEST_F()
917 const auto textBuf = utf8ToUtf16("AB"); in TEST_F()
938 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
957 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
985 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F()
1035 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F()
1068 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F()
[all …]
DLayoutSplitterTest.cpp30 auto utf16 = utf8ToUtf16(text); in parseTestString()
49 auto utf16 = utf8ToUtf16(text); in parseExpectString()
DLineBreakerTestHelper.h119 std::vector<uint16_t> u16Str = utf8ToUtf16(expected[i].mLineContent); in sameLineBreak()
DLayoutCoreTest.cpp31 auto utf16 = utf8ToUtf16(text); in buildLayout()
DWordBreakerTests.cpp486 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST()
/frameworks/minikin/tests/perftests/
DHyphenator.cpp32 std::vector<uint16_t> word = utf8ToUtf16("hyphen"); in BM_Hyphenator_short_word()
45 std::vector<uint16_t> word = utf8ToUtf16("Pneumonoultramicroscopicsilicovolcanoconiosis"); in BM_Hyphenator_long_word()
DWordBreaker.cpp32 std::vector<uint16_t> text = utf8ToUtf16(kLoremIpsum); in BM_WordBreaker_English()
/frameworks/av/media/mtp/
DMtpStringBuffer.cpp45 static std::u16string utf8ToUtf16(std::string input_str) { in utf8ToUtf16() function
106 std::u16string src16 = utf8ToUtf16(mString); in writeToPacket()
/frameworks/minikin/tests/util/
DUnicodeUtils.h32 std::vector<uint16_t> utf8ToUtf16(const std::string& text);
DUnicodeUtils.cpp105 std::vector<uint16_t> utf8ToUtf16(const std::string& text) { in utf8ToUtf16() function